|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uacalc.alg.GeneralAlgebra
org.uacalc.alg.BasicAlgebra
public class BasicAlgebra
This class represents SmallAlgebra's. Such algebras have a map from {0, ..., n-1} and the elements of the algebra. The operations are done on the ints and converted back the elements.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.uacalc.alg.SmallAlgebra |
|---|
SmallAlgebra.AlgebraType |
| Field Summary | |
|---|---|
protected java.util.List |
universeList
Ordered list of the universe. |
protected java.util.Map |
universeOrder
A map from the elements to their order in the universe list. |
| Fields inherited from class org.uacalc.alg.GeneralAlgebra |
|---|
con, description, monitor, name, operations, operationsMap, similarityType, size, sub, universe |
| Fields inherited from interface org.uacalc.alg.Algebra |
|---|
CARDINALITY_COUNTABLE, CARDINALITY_COUNTABLY_INFINITE, CARDINALITY_FINITE, CARDINALITY_INFINITE, CARDINALITY_UNKNOWN |
| Constructor Summary | |
|---|---|
BasicAlgebra(java.lang.String name,
int s,
java.util.List<Operation> operations)
If a universe is not given, use Integers. |
|
BasicAlgebra(java.lang.String name,
java.util.List univ,
java.util.List<Operation> operations)
This constructs a SmallAlgebra from a ordered list of elements. |
|
| 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 obj)
This method will return k if elem is the kth element; otherwise -1. |
java.lang.Object |
getElement(int index)
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). |
boolean |
intUniverse()
If this is true, there is no real universe; we just use Integers. |
static void |
main(java.lang.String[] args)
|
void |
resetConAndSub()
This does nothing but is overwritten for BasicAlgebra's. |
void |
setUniverseList(java.util.List lst)
|
void |
setUniverseOrder(java.util.Map ord)
|
SubalgebraLattice |
sub()
The subalgebra lattice. |
| Methods inherited from class org.uacalc.alg.GeneralAlgebra |
|---|
cardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, makeOperationTables, monitoring, operations, parent, parents, setDescription, setMonitor, setName, setOperations, setUniverse, similarityType, universe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.uacalc.alg.SmallAlgebra |
|---|
parent, parents |
| 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 |
| Field Detail |
|---|
protected java.util.List universeList
protected java.util.Map universeOrder
| Constructor Detail |
|---|
public BasicAlgebra(java.lang.String name,
int s,
java.util.List<Operation> operations)
public BasicAlgebra(java.lang.String name,
java.util.List univ,
java.util.List<Operation> operations)
| Method Detail |
|---|
public java.util.List getUniverseList()
SmallAlgebra
getUniverseList in interface SmallAlgebrapublic void setUniverseList(java.util.List lst)
public java.util.Map getUniverseOrder()
SmallAlgebra
getUniverseOrder in interface SmallAlgebrapublic void setUniverseOrder(java.util.Map ord)
public boolean intUniverse()
public int elementIndex(java.lang.Object obj)
SmallAlgebra
elementIndex in interface SmallAlgebrapublic java.lang.Object getElement(int index)
SmallAlgebra
getElement in interface SmallAlgebrapublic CongruenceLattice con()
SmallAlgebra
con in interface SmallAlgebracon in class GeneralAlgebrapublic SubalgebraLattice sub()
SmallAlgebra
sub in interface SmallAlgebrasub in class GeneralAlgebrapublic void resetConAndSub()
GeneralAlgebra
resetConAndSub in interface SmallAlgebraresetConAndSub in class GeneralAlgebrapublic void convertToDefaultValueOps()
SmallAlgebra
convertToDefaultValueOps in interface SmallAlgebrapublic SmallAlgebra.AlgebraType algebraType()
SmallAlgebra
algebraType in interface SmallAlgebrapublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||