public class ReductAlgebra extends GeneralAlgebra implements SmallAlgebra
SmallAlgebra.AlgebraType| Modifier and Type | Field and Description |
|---|---|
protected SmallAlgebra |
superAlgebra |
protected java.util.List<Term> |
termList |
con, description, monitor, name, operationsMap, similarityType, size, sub, universeCARDINALITY_COUNTABLE, CARDINALITY_COUNTABLY_INFINITE, CARDINALITY_FINITE, CARDINALITY_INFINITE, CARDINALITY_UNKNOWN| Constructor and Description |
|---|
ReductAlgebra(SmallAlgebra alg,
java.util.List<Term> termList) |
ReductAlgebra(java.lang.String name,
SmallAlgebra alg,
java.util.List<Term> termList)
Form the subalgebra given the super algebra and the subuniverse.
|
| Modifier and Type | Method and Description |
|---|---|
SmallAlgebra.AlgebraType |
algebraType()
The type of algebra this is, like a quotient algebra.
|
CongruenceLattice |
con()
The congurence lattice.
|
static SmallAlgebra |
congruenceAsAlgebra(SmallAlgebra alg,
Partition cong)
This gives the congruence cong as a subalgebra of A^2.
|
static SmallAlgebra |
congruenceAsAlgebra(java.lang.String name,
SmallAlgebra alg,
Partition cong)
This gives the congruence cong as a subalgebra of A^2.
|
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).
|
static void |
main(java.lang.String[] args) |
void |
makeOperationTables()
Make operation tables to speed up the evaluation of operations at
the cost using more space.
|
SubalgebraLattice |
sub()
The subalgebra lattice.
|
SmallAlgebra |
superAlgebra() |
cardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, monitoring, operations, parent, parents, resetConAndSub, setDescription, setMonitor, setName, setOperations, setUniverse, similarityType, universe, updateSimilarityTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparent, parents, resetConAndSubcardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, monitoring, operations, setDescription, setMonitor, setName, similarityType, universe, updateSimilarityTypeprotected final SmallAlgebra superAlgebra
protected final java.util.List<Term> termList
public ReductAlgebra(SmallAlgebra alg, java.util.List<Term> termList)
public ReductAlgebra(java.lang.String name,
SmallAlgebra alg,
java.util.List<Term> termList)
public void makeOperationTables()
AlgebramakeOperationTables in interface AlgebramakeOperationTables in class GeneralAlgebraOperation.makeTablepublic SmallAlgebra superAlgebra()
public CongruenceLattice con()
SmallAlgebracon in interface SmallAlgebracon in class GeneralAlgebrapublic SubalgebraLattice sub()
SmallAlgebrasub in interface SmallAlgebrasub in class GeneralAlgebrapublic int elementIndex(java.lang.Object obj)
SmallAlgebraelementIndex in interface SmallAlgebrapublic java.lang.Object getElement(int index)
SmallAlgebragetElement in interface SmallAlgebrapublic java.util.List getUniverseList()
SmallAlgebragetUniverseList in interface SmallAlgebrapublic java.util.Map getUniverseOrder()
SmallAlgebragetUniverseOrder in interface SmallAlgebrapublic static SmallAlgebra congruenceAsAlgebra(SmallAlgebra alg, Partition cong)
public static SmallAlgebra congruenceAsAlgebra(java.lang.String name, SmallAlgebra alg, Partition cong)
public void convertToDefaultValueOps()
SmallAlgebraconvertToDefaultValueOps in interface SmallAlgebrapublic SmallAlgebra.AlgebraType algebraType()
SmallAlgebraalgebraType in interface SmallAlgebrapublic static void main(java.lang.String[] args)
throws java.io.IOException,
BadAlgebraFileException
java.io.IOExceptionBadAlgebraFileExceptionCopyright 2003 Ralph Freese. All Rights Reserved.