Modifier and Type | Field and Description |
---|---|
static int |
MAX_DRAWABLE_SIZE |
static ProgressReport |
monitor |
CARDINALITY_COUNTABLE, CARDINALITY_COUNTABLY_INFINITE, CARDINALITY_FINITE, CARDINALITY_INFINITE, CARDINALITY_UNKNOWN
Constructor and Description |
---|
SubalgebraLattice(SmallAlgebra alg) |
Modifier and Type | Method and Description |
---|---|
java.util.List<BasicSet> |
atoms() |
int |
cardinality() |
java.util.List<BasicSet> |
coatoms() |
CongruenceLattice |
con() |
java.util.List<Operation> |
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<BasicSet> |
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 <T> java.util.List<T> |
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() |
SubalgebraLattice |
sub() |
java.util.Set<BasicSet> |
universe()
We use java.util.Set to hold the universe of the algebra.
|
boolean |
universeFound()
Has the universe been calculated.
|
void |
updateSimilarityType()
Not allowed.
|
BasicSet |
zero() |
public static ProgressReport monitor
public static final int MAX_DRAWABLE_SIZE
public SubalgebraLattice(SmallAlgebra alg)
public void setMonitor(ProgressReport m)
setMonitor
in interface Algebra
public ProgressReport getMonitor()
getMonitor
in interface Algebra
public final boolean monitoring()
monitoring
in interface Algebra
public boolean isTotal()
Algebra
public java.util.List<Operation> constantOperations()
Algebra
constantOperations
in interface Algebra
public SmallAlgebra getAlgebra()
public java.lang.String getDescription()
getDescription
in interface Algebra
public void setDescription(java.lang.String desc)
setDescription
in interface Algebra
public CongruenceLattice con()
public SubalgebraLattice sub()
public int cardinality()
cardinality
in interface Algebra
public int inputSize()
Algebra
public 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<BasicSet> universe()
Algebra
public boolean isSimilarTo(Algebra alg)
isSimilarTo
in interface Algebra
public SimilarityType similarityType()
similarityType
in interface Algebra
public void updateSimilarityType()
updateSimilarityType
in interface Algebra
public java.util.Iterator<BasicSet> iterator()
Algebra
public java.util.Set filter(BasicSet elt)
public java.util.List<BasicSet> oneGeneratedSubalgebras()
public java.util.List joinIrreducibles()
joinIrreducibles
in interface Lattice
public boolean joinIrreducible(BasicSet subalg)
public java.util.List meetIrreducibles()
Lattice
meetIrreducibles
in interface Lattice
public java.lang.Object join(java.lang.Object a, java.lang.Object b)
public java.lang.Object meet(java.lang.Object a, java.lang.Object b)
public boolean leq(java.lang.Object a, java.lang.Object b)
Order
public java.util.List operations()
operations
in interface Algebra
public Operation getOperation(OperationSymbol sym)
Algebra
getOperation
in interface Algebra
public java.util.Map<OperationSymbol,Operation> getOperationsMap()
getOperationsMap
in interface Algebra
public 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 thispublic 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 Algebra
Operation.makeTable
public boolean isIdempotent()
Algebra
isIdempotent
in interface Algebra
public static void main(java.lang.String[] args)
Copyright 2003 Ralph Freese. All Rights Reserved.