Class DistributedLattice

  • All Implemented Interfaces:
    Lattice

    public class DistributedLattice
    extends java.lang.Object
    implements Lattice
    This lass manages several smaller, heterogeneous lattices. The supracontexts of smaller lattices are combined to create the final Supracontexts.
    • Constructor Detail

      • DistributedLattice

        public DistributedLattice()
    • Method Detail

      • getSupracontexts

        public java.util.Set<Supracontext> getSupracontexts()
        Specified by:
        getSupracontexts in interface Lattice
        Returns:
        the list of homogeneous supracontexts created with this lattice
      • fill

        public void fill​(SubcontextList subList)
                  throws java.lang.InterruptedException,
                         java.util.concurrent.ExecutionException
        Fill the lattice with given subcontexts. This is meant to be done only once for a given Lattice instance. The number of sub-lattices is determined via subList.getLabeler().numPartitions().
        Specified by:
        fill in interface Lattice
        Parameters:
        subList - list of Subcontexts to add to the lattice
        Throws:
        java.util.concurrent.ExecutionException - If execution is rejected for some reason
        java.lang.InterruptedException - If any thread is interrupted for any reason (user presses ctrl-C, etc.)