Package com.singularsys.jep.standard
Class StandardOperatorTable
java.lang.Object
com.singularsys.jep.OperatorTable
com.singularsys.jep.standard.StandardOperatorTable
- All Implemented Interfaces:
JepComponent
,OperatorTableI
,Serializable
The old standard operator table used by Jep.
Now replaced by
StandardOperatorTable2
- Author:
- Richard Morris
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.OperatorTable
baseNumOps, numOps, OP_ADD, OP_AND, OP_ASSIGN, OP_CROSS, OP_DIVIDE, OP_DOT, OP_ELEMENT, OP_EQ, OP_GE, OP_GT, OP_LE, OP_LIST, OP_LT, OP_MOD, OP_MULTIPLY, OP_NE, OP_NEGATE, OP_NOP, OP_NOT, OP_OR, OP_POWER, OP_RANGE, OP_RECIP, OP_SUBTRACT, OP_UPLUS, ops
-
Constructor Summary
ModifierConstructorDescriptionCreate the standard set of operators.protected
StandardOperatorTable
(Operator[] ops) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initialize the component.Create a new version of this OperatorTable.Methods inherited from class com.singularsys.jep.OperatorTable
addOperator, addOperator, addOperator, addOperator, appendOperator, appendOperator, getAdd, getAnd, getAssign, getCross, getDivide, getDot, getEle, getEQ, getGE, getGT, getLE, getLightWeightInstance, getList, getLT, getMod, getMultiply, getNE, getNop, getNot, getNumOps, getOperator, getOperators, getOperatorsByName, getOperatorsBySymbol, getOr, getPower, getRange, getSubtract, getUDivide, getUMinus, getUPlus, insertOperator, insertOperator, removeOperator, replaceOperator, setBinaryInverseOp, setDistributiveOver, setInverseOp, setNumOps, setPrecedenceTable, setRootOp, setStandardOperatorRelations, threadSafeMapCopy, toString
-
Constructor Details
-
StandardOperatorTable
public StandardOperatorTable()Create the standard set of operators. -
StandardOperatorTable
-
-
Method Details
-
init
Description copied from interface:JepComponent
Initialize the component. This method is called whenever a component is added to Jep. Hence, it allows components to keep track of the other components they may rely on.- Specified by:
init
in interfaceJepComponent
- Overrides:
init
in classOperatorTable
- Parameters:
jep
- the current Jep instance
-
shallowCopy
Description copied from interface:OperatorTableI
Create a new version of this OperatorTable. Existing Operators are copied into new table. However, Operators whose pfmc's implement JepComponent are duplicated, this means the table could be used in multiple threads without problem.- Specified by:
shallowCopy
in interfaceOperatorTableI
- Overrides:
shallowCopy
in classOperatorTable
- Returns:
- a new OperatorTable
-