|
|||||||||
| 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.Subalgebra
public class Subalgebra
This class represents a subalgebra of a SmallAlgebra.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.uacalc.alg.SmallAlgebra |
|---|
SmallAlgebra.AlgebraType |
| Field Summary | |
|---|---|
protected SmallAlgebra |
superAlgebra
|
protected int[] |
univArray
|
| 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 | |
|---|---|
Subalgebra(SmallAlgebra alg,
int[] univ)
|
|
Subalgebra(SmallAlgebra alg,
IntArray univ)
|
|
Subalgebra(java.lang.String name,
SmallAlgebra alg,
int[] univ)
Form the subalgebra given the super algebra and the subuniverse. |
|
Subalgebra(java.lang.String name,
SmallAlgebra alg,
IntArray univ)
|
|
| Method Summary | |
|---|---|
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. |
int[] |
getSubuniverseArray()
Get the subuniverse of the super algebra for this algebra. |
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). |
int |
index(int k)
Find the index in this subalgebra of the element with index k in the super algebra. |
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. |
protected java.util.Set |
makeUniverse()
|
BasicPartition |
restrictPartition(Partition par)
Restrict a partition (or congruence) on the parent algebra to this subalgebra. |
SubalgebraLattice |
sub()
The subalgebra lattice. |
SmallAlgebra |
superAlgebra()
|
java.util.Set |
universe()
We use java.util.Set to hold the universe of the algebra. |
| Methods inherited from class org.uacalc.alg.GeneralAlgebra |
|---|
cardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, monitoring, operations, parent, parents, resetConAndSub, setDescription, setMonitor, setName, setOperations, setUniverse, similarityType |
| 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, resetConAndSub |
| Methods inherited from interface org.uacalc.alg.Algebra |
|---|
cardinality, constantOperations, getDescription, getMonitor, getName, getOperation, getOperationsMap, inputSize, isIdempotent, isSimilarTo, isTotal, isUnary, iterator, monitoring, operations, setDescription, setMonitor, setName, similarityType |
| Field Detail |
|---|
protected final SmallAlgebra superAlgebra
protected final int[] univArray
| Constructor Detail |
|---|
public Subalgebra(SmallAlgebra alg,
int[] univ)
public Subalgebra(SmallAlgebra alg,
IntArray univ)
public Subalgebra(java.lang.String name,
SmallAlgebra alg,
IntArray univ)
public Subalgebra(java.lang.String name,
SmallAlgebra alg,
int[] univ)
| Method Detail |
|---|
public int index(int k)
public BasicPartition restrictPartition(Partition par)
public void makeOperationTables()
Algebra
makeOperationTables in interface AlgebramakeOperationTables in class GeneralAlgebraOperation.makeTablepublic SmallAlgebra superAlgebra()
public int[] getSubuniverseArray()
public CongruenceLattice con()
SmallAlgebra
con in interface SmallAlgebracon in class GeneralAlgebrapublic SubalgebraLattice sub()
SmallAlgebra
sub in interface SmallAlgebrasub in class GeneralAlgebrapublic int elementIndex(java.lang.Object obj)
SmallAlgebra
elementIndex in interface SmallAlgebrapublic java.lang.Object getElement(int index)
SmallAlgebra
getElement in interface SmallAlgebrapublic java.util.List getUniverseList()
SmallAlgebra
getUniverseList in interface SmallAlgebrapublic java.util.Map getUniverseOrder()
SmallAlgebra
getUniverseOrder in interface SmallAlgebrapublic java.util.Set universe()
Algebra
universe in interface Algebrauniverse in class GeneralAlgebraprotected java.util.Set makeUniverse()
public static SmallAlgebra congruenceAsAlgebra(SmallAlgebra alg,
Partition cong)
public static SmallAlgebra congruenceAsAlgebra(java.lang.String name,
SmallAlgebra alg,
Partition cong)
public void convertToDefaultValueOps()
SmallAlgebra
convertToDefaultValueOps in interface SmallAlgebrapublic SmallAlgebra.AlgebraType algebraType()
SmallAlgebra
algebraType in interface SmallAlgebra
public static void main(java.lang.String[] args)
throws java.io.IOException,
BadAlgebraFileException
java.io.IOException
BadAlgebraFileException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||