![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.core.Function
imp.core.Operator
public class Operator
Defines and implements a function with algebraic properties. Algebraic expressions, including numerical expressions, are taken into account using generic algebraic properties, in order to derive some canonical representation.
Method Summary | |
---|---|
Operator |
setAssociative(boolean associative)
Sets the fact this operator is associative. |
Operator |
setCommutative(boolean commutative)
Sets the fact this operator is commutative. |
Operator |
setIdentity(String identity)
Sets the identity or ``neutral'' operand for this operator and return this. |
Operator |
setPower(String identity)
Sets the fact this operator is a power operator. |
Operator |
setPowerOperator(String power)
Sets the power operand for this operator and return this. |
Operator |
setZero(String zero)
Sets the zero operand for this operator and return this. |
Methods inherited from class imp.core.Function |
---|
eval, popContext, pushContext, setArity, setFixedPoint, setName, setQuoted, setRemember, setTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Operator setAssociative(boolean associative)
associative
- True if this operator is associative, default is false.public Operator setCommutative(boolean commutative)
commutative
- True if this operator is commutative, default is false.public Operator setIdentity(String identity)
identity
- The identity operand of this operator or the null value to set that there is no identity operator, default is null.public Operator setPower(String identity)
identity
- The identity operand u of this operator or the null value to set that it is not a power operator, default is null.public Operator setPowerOperator(String power)
power
- The power operand of this operator or the null value to set that there is no power operator, default is null.public Operator setZero(String zero)
zero
- The zero operand of this operator or the null value to set that there is no zero operator, default is null.