|
|||||||||||
| 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.Constant
fr.ove.openmath.jome.model.VariableOrNumber
Elements in the formula such as variables (letters) and numbers.
VariableOrNumber represents a node in the formula tree.
Terminal node, so leaves.
| Constructor Summary | |
VariableOrNumber()
The default constructor. |
|
VariableOrNumber(java.lang.String resourceIdentifier,
java.lang.String value,
boolean isNumber,
boolean isInteger)
The Constructor. |
|
| Method Summary | |
java.lang.String |
createLinear(java.lang.String linear)
The Creation of the corresponding linear expression of the formula. |
FormulaTreeStructure |
insert(FormulaTreeStructure current)
Inserts the operator instance in the formula tree, from the current insertion position. |
boolean |
isInteger()
Returns true if it is an integer. |
boolean |
isNumber()
Returns true if it is a number. |
boolean |
isRequestVariable()
Returns true if it is a request variable. |
void |
setIsInteger(boolean isInteger)
Sets the constant, which is a number, as an integer or as a float. |
void |
setIsNumber(boolean isNumber)
Sets the constant as a number. |
void |
setIsRequestVariable(boolean isRequestVariable)
Sets the constant as a request variable. |
| Methods inherited from class fr.ove.openmath.jome.model.Constant |
evaluate, getValue, isIconifiable, isOperator, 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 VariableOrNumber()
public VariableOrNumber(java.lang.String resourceIdentifier,
java.lang.String value,
boolean isNumber,
boolean isInteger)
value - the value of the constant.isNumber - to set if the constant is a number or not.isInteger - to set, if the constant is a numbern if it is an integer or a float.| Method Detail |
public void setIsNumber(boolean isNumber)
isNumber - true if it is a number.false
otherwise.public boolean isNumber()
true if it is a number.false otherwise.
public void setIsInteger(boolean isInteger)
isInteger - true if it is an integer.false
if it is a float.public boolean isInteger()
true if it is an integer.false
if it is a float.
public void setIsRequestVariable(boolean isRequestVariable)
public boolean isRequestVariable()
true if it is a request variable.false otherwise.
public FormulaTreeStructure insert(FormulaTreeStructure current)
insert in class Constantpublic java.lang.String createLinear(java.lang.String linear)
createLinear in class Constant
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||