|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperatorManager
Method Summary | |
---|---|
void |
addOperatorImpl(OperatorImpl operatorImpl)
Add an operator implementation to the manager. |
MathematicalElement |
computeValue(java.lang.String operatorName,
MathematicalElement element)
Eval an unary operator on given value. |
MathematicalElement |
computeValue(java.lang.String operatorName,
MathematicalElement leftElement,
MathematicalElement rightElement)
Eval a binary operator on given values. |
java.lang.String |
getName()
get operator manager name |
OperatorImpl |
getOperatorImpl(java.lang.String name)
Get an operator impl. |
java.util.List |
getOperatorImplList()
Get the list of operator impl. |
void |
removeOperatorImpl(OperatorImpl operatorImpl)
Remove an operator implementation to the manager. |
Method Detail |
---|
void addOperatorImpl(OperatorImpl operatorImpl)
operatorImpl
- operator to add.void removeOperatorImpl(OperatorImpl operatorImpl)
operatorImpl
- operator to remove.OperatorImpl getOperatorImpl(java.lang.String name)
name
- operator impl to get.
null
otherwise.java.util.List getOperatorImplList()
MathematicalElement computeValue(java.lang.String operatorName, MathematicalElement element) throws EvalException
operatorName
- operator to applyelement
- value on wich apply the operator
EvalException
- if an error occurd (operator not define for the given element ...)MathematicalElement computeValue(java.lang.String operatorName, MathematicalElement leftElement, MathematicalElement rightElement) throws EvalException
operatorName
- operator to applyleftElement
- left value of operatorrightElement
- right value of operator
EvalException
- EvalException if an error occurd (operator not define for the given element ...)java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |