public class BasicAlgebra extends GeneralAlgebra implements SmallAlgebra
SmallAlgebra.AlgebraType
Modifier and Type | Field and Description |
---|---|
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.
|
con, description, monitor, name, operationsMap, similarityType, size, sub, universe
CARDINALITY_COUNTABLE, CARDINALITY_COUNTABLY_INFINITE, CARDINALITY_FINITE, CARDINALITY_INFINITE, CARDINALITY_UNKNOWN
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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, updateSimilarityType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parent, parents
cardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, makeOperationTables, monitoring, operations, setDescription, setMonitor, setName, similarityType, universe, updateSimilarityType
protected java.util.List universeList
protected java.util.Map universeOrder
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)
public java.util.List getUniverseList()
SmallAlgebra
getUniverseList
in interface SmallAlgebra
public void setUniverseList(java.util.List lst)
public java.util.Map getUniverseOrder()
SmallAlgebra
getUniverseOrder
in interface SmallAlgebra
public void setUniverseOrder(java.util.Map ord)
public boolean intUniverse()
public int elementIndex(java.lang.Object obj)
SmallAlgebra
elementIndex
in interface SmallAlgebra
public java.lang.Object getElement(int index)
SmallAlgebra
getElement
in interface SmallAlgebra
public CongruenceLattice con()
SmallAlgebra
con
in interface SmallAlgebra
con
in class GeneralAlgebra
public SubalgebraLattice sub()
SmallAlgebra
sub
in interface SmallAlgebra
sub
in class GeneralAlgebra
public void resetConAndSub()
GeneralAlgebra
resetConAndSub
in interface SmallAlgebra
resetConAndSub
in class GeneralAlgebra
public void convertToDefaultValueOps()
SmallAlgebra
convertToDefaultValueOps
in interface SmallAlgebra
public SmallAlgebra.AlgebraType algebraType()
SmallAlgebra
algebraType
in interface SmallAlgebra
public static void main(java.lang.String[] args)
Copyright 2003 Ralph Freese. All Rights Reserved.