|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Algebra
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
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
| Method Detail |
|---|
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()
boolean isSimilarTo(Algebra alg)
void makeOperationTables()
Operation.makeTablejava.util.List<Operation> constantOperations()
boolean isIdempotent()
boolean isTotal()
boolean monitoring()
ProgressReport getMonitor()
void setMonitor(ProgressReport monitor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||