public class TermOperationImp extends AbstractOperation implements TermOperation
algSize, symbol, valueTable
Constructor and Description |
---|
TermOperationImp(java.lang.String name,
Term term,
java.util.List<Variable> variables,
SmallAlgebra alg) |
TermOperationImp(Term term,
java.util.List<Variable> variables,
SmallAlgebra alg) |
Modifier and Type | Method and Description |
---|---|
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.
|
arity, compareTo, getSetSize, intValueAt, isAssociative, isCommutative, isIdempotent, isMaltsev, isTableBased, isTotal, isTotallySymmetric, makeTable, symbol, valueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arity, getSetSize, intValueAt, isAssociative, isCommutative, isIdempotent, isMaltsev, isTableBased, isTotal, isTotallySymmetric, makeTable, symbol, valueAt
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)
public java.lang.Object valueAt(java.util.List args)
Operation
valueAt
in interface Operation
valueAt
in class AbstractOperation
public int intValueAt(int[] args)
Operation
intValueAt
in interface Operation
intValueAt
in class AbstractOperation
public int[] getTable()
Operation
getTable
in interface Operation
getTable
in class AbstractOperation
public int[] getTable(boolean makeTable)
Operation
getTable
in interface Operation
getTable
in class AbstractOperation
makeTable
- forces the table to be made if necessarypublic Term getTerm()
getTerm
in interface TermOperation
public java.util.List getOrderedVariables()
getOrderedVariables
in interface TermOperation
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2003 Ralph Freese. All Rights Reserved.