|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.model.Node
fr.ove.openmath.jome.model.FormulaTreeStructure
fr.ove.openmath.jome.model.Operator
fr.ove.openmath.jome.model.Function2
The operator "*", which is the binary multiplication.
(In fact, for implementation needs, we consider it as an n-ary operator)
Multiplication represents a node in the formula tree.
Its children are the operands of the operation.
| Constructor Summary | |
Function2()
The Constructor. |
|
| Method Summary | |
FormulaTreeStructure |
addElement()
Adds a new element (template) to the end of the list. |
java.lang.String |
createLinear(java.lang.String linear)
The Creation of the corresponding linear expression of the formula. |
java.lang.String |
evaluate()
Evaluates the instance. |
FormulaTreeStructure |
insert(FormulaTreeStructure current)
Inserts the instance in the formula tree structure. |
boolean |
isOperator()
To check is the instance is an operator. |
| Methods inherited from class fr.ove.openmath.jome.model.Operator |
getTheOperator, getValue, setTheOperator, setValue |
| Methods inherited from class fr.ove.openmath.jome.model.Node |
addChild, addChild, clone, computeDepth, computeNbStrahler, duplicate, getChild, getChildren, getDepth, getFather, getNbChildren, getNbStrahler, getRank, hasChild, moveChildren, removeAll, removeChild, removeChild, setFather, setNbStrahler |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Function2()
| Method Detail |
public FormulaTreeStructure insert(FormulaTreeStructure current)
insert in class FormulaTreeStructurecurrent - the position in the formula tree where the operator is to be insert.
public boolean isOperator()
Operator
isOperator in class Operatortrue if it is an operator. false otherwise.public java.lang.String evaluate()
FormulaTreeStructure
evaluate in class FormulaTreeStructurepublic java.lang.String createLinear(java.lang.String linear)
FormulaTreeStructure
createLinear in class FormulaTreeStructurepublic FormulaTreeStructure addElement()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||