Class BasicLattice

  • All Implemented Interfaces:
    Lattice

    public class BasicLattice
    extends java.lang.Object
    implements Lattice
    This class holds the supracontextual lattice and does the work of filling itself during classification. This class represents the supracontextual lattice. The supractontextual lattice is a boolean algebra which models supra- and subcontexts for the AM algorithm. Using boolean algebra allows efficient computation of these as well as traversal of all subcontexts within a supracontext.
    • Method Detail

      • fill

        public void fill​(SubcontextList subList)
        Description copied from interface: Lattice
        Fill the lattice with given subcontexts. This is meant to be done only once for a given Lattice instance.
        Specified by:
        fill in interface Lattice
      • getSupracontexts

        public java.util.Set<Supracontext> getSupracontexts()
        Specified by:
        getSupracontexts in interface Lattice
        Returns:
        The list of supracontexts that were created by filling the supracontextual lattice. From this, you can compute the analogical set.