|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uacalc.alg.sublat.SubalgebraLattice
public class SubalgebraLattice
A class to represent the subalgebra lattice of a basic algebra; this is, an algebra with universe the integers from 0 to n-1.
| Field Summary | |
|---|---|
static int |
MAX_DRAWABLE_SIZE
|
static ProgressReport |
monitor
|
| Fields inherited from interface org.uacalc.alg.Algebra |
|---|
CARDINALITY_COUNTABLE, CARDINALITY_COUNTABLY_INFINITE, CARDINALITY_FINITE, CARDINALITY_INFINITE, CARDINALITY_UNKNOWN |
| Constructor Summary | |
|---|---|
SubalgebraLattice(SmallAlgebra alg)
|
|
| Method Summary | ||
|---|---|---|
java.util.List<BasicSet> |
atoms()
|
|
int |
cardinality()
|
|
java.util.List<BasicSet> |
coatoms()
|
|
java.util.List |
constantOperations()
This gives a list of the operations of arity 0, which is a little different from the constants. |
|
static java.util.Map<java.lang.Integer,java.lang.Integer> |
extendToHomomorphism(int[] gens,
int[] gensB,
SmallAlgebra A,
SmallAlgebra B)
Try to extend the map gens[i] to gensB[i] to a homomorphism. |
|
static java.util.Map<java.lang.Integer,java.lang.Integer> |
extendToHomomorphism(java.util.Map<java.lang.Integer,java.lang.Integer> homo,
SmallAlgebra A,
SmallAlgebra B)
Try to extend the map to a homomorphism. |
|
java.util.Set |
filter(BasicSet elt)
The set of all subalgebras containing the subalgebra elt. |
|
BasicSet |
findMinimalSizedGeneratingSet()
|
|
SmallAlgebra |
getAlgebra()
|
|
BasicLattice |
getBasicLattice()
|
|
BasicLattice |
getBasicLattice(boolean makeIfNull)
Get the BasicLattice used primarily for drawing. |
|
java.lang.String |
getDescription()
|
|
org.latdraw.diagram.Diagram |
getDiagram()
|
|
int |
getMakeUniverseK()
|
|
ProgressReport |
getMonitor()
|
|
java.lang.String |
getName()
|
|
Operation |
getOperation(OperationSymbol sym)
Get the operation correspond to a symbol or null if the symbol is not part of the similarityType. |
|
java.util.Map<OperationSymbol,Operation> |
getOperationsMap()
|
|
int |
getSizeComputed()
|
|
int |
inputSize()
The sum of the cardinality of the algebra raised to the arity of the operations. |
|
boolean |
isDrawable()
|
|
boolean |
isIdempotent()
Test if all of the operations are idempotent. |
|
boolean |
isSimilarTo(Algebra alg)
|
|
boolean |
isSmallerThan(int size)
|
|
boolean |
isTotal()
This will fail only if there are some OperationWithDefaultValue's which are not total. |
|
boolean |
isUnary()
|
|
java.util.Iterator |
iterator()
returns the iterator of the universe. |
|
java.lang.Object |
join(java.util.List args)
|
|
java.lang.Object |
join(java.lang.Object a,
java.lang.Object b)
|
|
java.util.Set |
joinClosure(java.util.Collection gens)
|
|
java.util.Set |
joinClosure(java.util.Collection gens,
int maxSize)
This gives the set of joins of all nonempty subsets of gens, so it is necessary to add a least element if you want to include it. |
|
boolean |
joinIrreducible(BasicSet subalg)
|
|
java.util.List |
joinIrreducibles()
A list of the join irreducibles; constructed if necessary. |
|
boolean |
leq(java.lang.Object a,
java.lang.Object b)
The order relation. |
|
static void |
main(java.lang.String[] args)
|
|
void |
makeJoinIrreducibles()
|
|
void |
makeOperationTables()
Make operation tables to speed up the evaluation of operations at the cost using more space. |
|
BasicSet |
makeSg(java.util.List<java.lang.Integer> gens)
Make the subuniverse generated by gens. |
|
BasicSet |
makeSg(java.util.List<java.lang.Integer> gens,
int closedMark)
|
|
BasicSet |
makeSg(java.util.List<java.lang.Integer> gens,
int closedMark,
int maxSize)
Make the subuniverse generated by gens. |
|
void |
makeUniverse()
Test if one subuniverse is contained in another. |
|
void |
makeUniverse(int maxSize)
Construct the universe. |
|
java.lang.Object |
meet(java.util.List args)
|
|
java.lang.Object |
meet(java.lang.Object a,
java.lang.Object b)
|
|
java.util.List |
meetIrreducibles()
An optional operation returning the list of meet irreducible elements. |
|
boolean |
monitoring()
|
|
static
|
noDuplicates(java.util.List<T> lst)
This gives a List without duplicates assuming lst is sorted. |
|
BasicSet |
one()
|
|
java.util.List<BasicSet> |
oneGeneratedSubalgebras()
These are really one generate subuniverses. |
|
java.util.List |
operations()
|
|
void |
setDescription(java.lang.String desc)
|
|
void |
setMonitor(ProgressReport m)
|
|
void |
setName(java.lang.String v)
|
|
Subalgebra |
Sg(BasicSet s)
|
|
BasicSet |
sg(int[] gens)
|
|
Subalgebra |
Sg(int[] gens)
|
|
java.util.Set |
sg(java.util.Set set)
|
|
SimilarityType |
similarityType()
|
|
void |
stopMakeUniverse()
|
|
java.util.Set |
universe()
We use java.util.Set to hold the universe of the algebra. |
|
boolean |
universeFound()
Has the universe been calculated. |
|
BasicSet |
zero()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ProgressReport monitor
public static final int MAX_DRAWABLE_SIZE
| Constructor Detail |
|---|
public SubalgebraLattice(SmallAlgebra alg)
| Method Detail |
|---|
public void setMonitor(ProgressReport m)
setMonitor in interface Algebrapublic ProgressReport getMonitor()
getMonitor in interface Algebrapublic final boolean monitoring()
monitoring in interface Algebrapublic boolean isTotal()
Algebra
isTotal in interface Algebrapublic java.util.List constantOperations()
Algebra
constantOperations in interface Algebrapublic SmallAlgebra getAlgebra()
public boolean isUnary()
isUnary in interface Algebrapublic java.lang.String getDescription()
getDescription in interface Algebrapublic void setDescription(java.lang.String desc)
setDescription in interface Algebrapublic int cardinality()
cardinality in interface Algebrapublic int inputSize()
Algebra
inputSize in interface Algebrapublic boolean isSmallerThan(int size)
public boolean isDrawable()
public BasicLattice getBasicLattice()
public BasicLattice getBasicLattice(boolean makeIfNull)
public org.latdraw.diagram.Diagram getDiagram()
public java.util.Set universe()
Algebra
universe in interface Algebrapublic boolean isSimilarTo(Algebra alg)
isSimilarTo in interface Algebrapublic SimilarityType similarityType()
similarityType in interface Algebrapublic java.util.Iterator iterator()
Algebra
iterator in interface Algebrapublic java.lang.String getName()
getName in interface Algebrapublic void setName(java.lang.String v)
setName in interface Algebrapublic java.util.Set filter(BasicSet elt)
public java.util.List<BasicSet> oneGeneratedSubalgebras()
public java.util.List joinIrreducibles()
joinIrreducibles in interface Latticepublic boolean joinIrreducible(BasicSet subalg)
public java.util.List meetIrreducibles()
Lattice
meetIrreducibles in interface Latticepublic java.util.List<BasicSet> atoms()
atoms in interface Latticepublic java.util.List<BasicSet> coatoms()
coatoms in interface Lattice
public java.lang.Object join(java.lang.Object a,
java.lang.Object b)
join in interface Latticepublic java.lang.Object join(java.util.List args)
join in interface Lattice
public java.lang.Object meet(java.lang.Object a,
java.lang.Object b)
meet in interface Latticepublic java.lang.Object meet(java.util.List args)
meet in interface Lattice
public boolean leq(java.lang.Object a,
java.lang.Object b)
Order
leq in interface Orderpublic java.util.List operations()
operations in interface Algebrapublic Operation getOperation(OperationSymbol sym)
Algebra
getOperation in interface Algebrapublic java.util.Map<OperationSymbol,Operation> getOperationsMap()
getOperationsMap in interface Algebrapublic boolean universeFound()
public void stopMakeUniverse()
public int getMakeUniverseK()
public int getSizeComputed()
public java.util.Set sg(java.util.Set set)
public static <T> java.util.List<T> noDuplicates(java.util.List<T> lst)
lst - a sorted list (so duplicates occur in blocks).public Subalgebra Sg(BasicSet s)
public Subalgebra Sg(int[] gens)
public BasicSet sg(int[] gens)
public BasicSet makeSg(java.util.List<java.lang.Integer> gens)
gens - a list of Integers without duplicates
which contains all the constants of the algebra.
public BasicSet makeSg(java.util.List<java.lang.Integer> gens,
int closedMark)
public BasicSet makeSg(java.util.List<java.lang.Integer> gens,
int closedMark,
int maxSize)
gens - a list of Integers without duplicates
which contains all the constants of the algebra.closedMark - the closure of all elements up to this are
already in gens.maxSize - return the whole algebra if we exceed this
public static java.util.Map<java.lang.Integer,java.lang.Integer> extendToHomomorphism(int[] gens,
int[] gensB,
SmallAlgebra A,
SmallAlgebra B)
gens - gensB - B -
public static java.util.Map<java.lang.Integer,java.lang.Integer> extendToHomomorphism(java.util.Map<java.lang.Integer,java.lang.Integer> homo,
SmallAlgebra A,
SmallAlgebra B)
homo - B -
public void makeUniverse()
public void makeUniverse(int maxSize)
public java.util.Set joinClosure(java.util.Collection gens)
public java.util.Set joinClosure(java.util.Collection gens,
int maxSize)
public void makeJoinIrreducibles()
public BasicSet findMinimalSizedGeneratingSet()
public final BasicSet zero()
public final BasicSet one()
public void makeOperationTables()
Algebra
makeOperationTables in interface AlgebraOperation.makeTablepublic boolean isIdempotent()
Algebra
isIdempotent in interface Algebrapublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||