public interface Algebra
| Modifier and Type | Field and Description | 
|---|---|
static int | 
CARDINALITY_COUNTABLE
This is used to indicate the carinality of the algebra is either 
 finite or countably infinite. 
 | 
static int | 
CARDINALITY_COUNTABLY_INFINITE
This is used to indicate the carinality of the algebra is 
 countably infinite. 
 | 
static int | 
CARDINALITY_FINITE
This is used to indicate the carinality of the algebra is finite 
 but otherwise unknown. 
 | 
static int | 
CARDINALITY_INFINITE
This is used to indicate the carinality of the algebra is infinite 
 but otherwise unknown. 
 | 
static int | 
CARDINALITY_UNKNOWN
This is used to indicate the carinality of the algebra is unknown. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
cardinality()  | 
java.util.List<Operation> | 
constantOperations()
This gives a list of the operations of arity 0, which is
 a little different from the constants. 
 | 
java.lang.String | 
getDescription()  | 
ProgressReport | 
getMonitor()  | 
java.lang.String | 
getName()  | 
Operation | 
getOperation(OperationSymbol sym)
Get the operation correspond to a symbol or null if 
 the symbol is not part of the similarityType. 
 | 
java.util.Map<OperationSymbol,Operation> | 
getOperationsMap()  | 
int | 
inputSize()
The sum of the cardinality of the algebra raised
 to the arity of the operations. 
 | 
boolean | 
isIdempotent()
Test if all of the operations are idempotent. 
 | 
boolean | 
isSimilarTo(Algebra alg)  | 
boolean | 
isTotal()
This will fail only if there are some OperationWithDefaultValue's
 which are not total. 
 | 
boolean | 
isUnary()  | 
java.util.Iterator | 
iterator()
returns the iterator of the universe. 
 | 
void | 
makeOperationTables()
Make operation tables to speed up the evaluation of operations at
 the cost using more space. 
 | 
boolean | 
monitoring()  | 
java.util.List<Operation> | 
operations()  | 
void | 
setDescription(java.lang.String desc)  | 
void | 
setMonitor(ProgressReport monitor)  | 
void | 
setName(java.lang.String v)  | 
SimilarityType | 
similarityType()  | 
java.util.Set | 
universe()
We use java.util.Set to hold the universe of the algebra. 
 | 
void | 
updateSimilarityType()
Use the operations list to update the SimilarityType. 
 | 
static final int CARDINALITY_UNKNOWN
static final int CARDINALITY_FINITE
static final int CARDINALITY_INFINITE
static final int CARDINALITY_COUNTABLE
static final int CARDINALITY_COUNTABLY_INFINITE
java.util.Set universe()
int cardinality()
int inputSize()
boolean isUnary()
java.util.Iterator iterator()
java.util.List<Operation> operations()
Operation getOperation(OperationSymbol sym)
java.util.Map<OperationSymbol,Operation> getOperationsMap()
java.lang.String getName()
void setName(java.lang.String v)
java.lang.String getDescription()
void setDescription(java.lang.String desc)
SimilarityType similarityType()
void updateSimilarityType()
boolean isSimilarTo(Algebra alg)
void makeOperationTables()
Operation.makeTablejava.util.List<Operation> constantOperations()
boolean isIdempotent()
boolean isTotal()
boolean monitoring()
ProgressReport getMonitor()
void setMonitor(ProgressReport monitor)
Copyright 2003 Ralph Freese. All Rights Reserved.