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, universeCARDINALITY_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, updateSimilarityTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparent, parentscardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, makeOperationTables, monitoring, operations, setDescription, setMonitor, setName, similarityType, universe, updateSimilarityTypeprotected 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()
SmallAlgebragetUniverseList in interface SmallAlgebrapublic void setUniverseList(java.util.List lst)
public java.util.Map getUniverseOrder()
SmallAlgebragetUniverseOrder in interface SmallAlgebrapublic void setUniverseOrder(java.util.Map ord)
public boolean intUniverse()
public int elementIndex(java.lang.Object obj)
SmallAlgebraelementIndex in interface SmallAlgebrapublic java.lang.Object getElement(int index)
SmallAlgebragetElement in interface SmallAlgebrapublic CongruenceLattice con()
SmallAlgebracon in interface SmallAlgebracon in class GeneralAlgebrapublic SubalgebraLattice sub()
SmallAlgebrasub in interface SmallAlgebrasub in class GeneralAlgebrapublic void resetConAndSub()
GeneralAlgebraresetConAndSub in interface SmallAlgebraresetConAndSub in class GeneralAlgebrapublic void convertToDefaultValueOps()
SmallAlgebraconvertToDefaultValueOps in interface SmallAlgebrapublic SmallAlgebra.AlgebraType algebraType()
SmallAlgebraalgebraType in interface SmallAlgebrapublic static void main(java.lang.String[] args)
Copyright 2003 Ralph Freese. All Rights Reserved.