|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uacalc.alg.op.AbstractOperation
org.uacalc.alg.op.TermOperationImp
public class TermOperationImp
This interface specifies a term operation, that is, the interpretation of a term in an algebra.
| Field Summary |
|---|
| Fields inherited from class org.uacalc.alg.op.AbstractOperation |
|---|
algSize, symbol, valueTable |
| Constructor Summary | |
|---|---|
TermOperationImp(java.lang.String name,
Term term,
java.util.List<Variable> variables,
SmallAlgebra alg)
|
|
TermOperationImp(Term term,
java.util.List<Variable> variables,
SmallAlgebra alg)
|
|
| Method Summary | |
|---|---|
java.util.List |
getOrderedVariables()
This gives a list of the variables in order without repeats. |
int[] |
getTable()
Get the table for this operation or null if it does not exist. |
int[] |
getTable(boolean makeTable)
Get the table for this operation. |
Term |
getTerm()
This gives the term. |
int |
intValueAt(int[] args)
This (optional) operation is the int version. |
java.lang.String |
toString()
|
java.lang.Object |
valueAt(java.util.List args)
This operation is the element version. |
| Methods inherited from class org.uacalc.alg.op.AbstractOperation |
|---|
arity, getSetSize, intValueAt, isAssociative, isCommutative, isIdempotent, isTableBased, isTotal, isTotallySymmetric, makeTable, symbol, valueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.uacalc.alg.op.Operation |
|---|
arity, getSetSize, intValueAt, isAssociative, isCommutative, isIdempotent, isTableBased, isTotal, isTotallySymmetric, makeTable, symbol, valueAt |
| Constructor Detail |
|---|
public TermOperationImp(Term term,
java.util.List<Variable> variables,
SmallAlgebra alg)
public TermOperationImp(java.lang.String name,
Term term,
java.util.List<Variable> variables,
SmallAlgebra alg)
| Method Detail |
|---|
public java.lang.Object valueAt(java.util.List args)
Operation
valueAt in interface OperationvalueAt in class AbstractOperationpublic int intValueAt(int[] args)
Operation
intValueAt in interface OperationintValueAt in class AbstractOperationpublic int[] getTable()
Operation
getTable in interface OperationgetTable in class AbstractOperationpublic int[] getTable(boolean makeTable)
Operation
getTable in interface OperationgetTable in class AbstractOperationmakeTable - forces the table to be made if necessary
public Term getTerm()
getTerm in interface TermOperationpublic java.util.List getOrderedVariables()
getOrderedVariables in interface TermOperationpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||