|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SmallAlgebra
A small algebra is one whose universe can be effectively indexed by {0,..., n-1} for some positive int n. cardinality() should return n.
| Nested Class Summary | |
|---|---|
static class |
SmallAlgebra.AlgebraType
|
| Field Summary |
|---|
| Fields inherited from interface org.uacalc.alg.Algebra |
|---|
CARDINALITY_COUNTABLE, CARDINALITY_COUNTABLY_INFINITE, CARDINALITY_FINITE, CARDINALITY_INFINITE, CARDINALITY_UNKNOWN |
| Method Summary | |
|---|---|
SmallAlgebra.AlgebraType |
algebraType()
The type of algebra this is, like a quotient algebra. |
CongruenceLattice |
con()
The congurence lattice. |
void |
convertToDefaultValueOps()
This is used in the UI. |
int |
elementIndex(java.lang.Object elem)
This method will return k if elem is the kth element; otherwise -1. |
java.lang.Object |
getElement(int k)
returns the kth element. |
java.util.List |
getUniverseList()
The universe as a List such getElement(k) will equal the kth element of the List. |
java.util.Map |
getUniverseOrder()
A map that can be used for elementIndex(a). |
SmallAlgebra |
parent()
For a BasicAlgebra this is null; for a QuotientAlgebra this is the preimage; for a Subalgebra it is the super algebra. |
java.util.List<SmallAlgebra> |
parents()
For a ProductAlgebra this will be the factors. |
void |
resetConAndSub()
|
SubalgebraLattice |
sub()
The subalgebra lattice. |
| Methods inherited from interface org.uacalc.alg.Algebra |
|---|
cardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, makeOperationTables, monitoring, operations, setDescription, setMonitor, setName, similarityType, universe |
| Method Detail |
|---|
SmallAlgebra.AlgebraType algebraType()
java.lang.Object getElement(int k)
int elementIndex(java.lang.Object elem)
java.util.List getUniverseList()
java.util.Map getUniverseOrder()
CongruenceLattice con()
SubalgebraLattice sub()
void resetConAndSub()
SmallAlgebra parent()
java.util.List<SmallAlgebra> parents()
parentvoid convertToDefaultValueOps()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||