|
|||||||||||
| 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.Formula
The formula.
The root of the formula tree structure.
| Field Summary | |
FormulaTreeStructure |
current
The current insertion position in the formula (tree structure). |
| Constructor Summary | |
Formula()
The Constructor. |
|
| Method Summary | |
void |
clear()
clears the formula. |
void |
consumeLinearParserEvent(LinearParserEvent linearParserEvent)
Treats the event received. |
java.lang.String |
createLinear(java.lang.String linear)
The Creation of the corresponding linear expression of the formula. |
void |
doProcess()
Processes the instance |
java.lang.String |
evaluate()
Evaluates the instance. |
boolean |
getDoProcessing()
Returns true if the instance needs a processing.
|
java.lang.String |
getLinear()
Returns the linear expression of the formula. |
java.lang.String |
getMathML()
Returns the MathML representation of the formula. |
java.lang.String |
getOpenMath()
Returns the OpenMath representation of the formula. |
java.lang.String |
getPMML()
|
Processor |
getProcessor()
Returns the processor of the instance. |
FormulaTreeStructure |
insert(FormulaTreeStructure current)
Inserts the operator instance in the formula tree, from the current insertion position. |
boolean |
isOperator()
To check is the instance is an operator. |
static void |
main(java.lang.String[] args)
|
void |
setDoProcessing(boolean doProcessing)
Sets if we had to process the instance before rendering. |
void |
setProcessor(Processor processor)
Sets the processor of the instance. |
| 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 |
| Field Detail |
public FormulaTreeStructure current
| Constructor Detail |
public Formula()
| Method Detail |
public boolean isOperator()
isOperator in class FormulaTreeStructuretrue if it is an operator. false otherwise.public FormulaTreeStructure insert(FormulaTreeStructure current)
insert in class FormulaTreeStructurecurrent - the current insertion position.
public java.lang.String createLinear(java.lang.String linear)
createLinear in class FormulaTreeStructurepublic void clear()
public java.lang.String getLinear()
public java.lang.String getOpenMath()
public java.lang.String getMathML()
public java.lang.String getPMML()
public java.lang.String evaluate()
evaluate in class FormulaTreeStructurepublic void consumeLinearParserEvent(LinearParserEvent linearParserEvent)
consumeLinearParserEvent in interface LinearParserListenerlinearParserEvent - the event received.public void setDoProcessing(boolean doProcessing)
doProcessing - true if the instance needs a processing.
false otherwise.public boolean getDoProcessing()
true if the instance needs a processing.
false otherwise.
public void setProcessor(Processor processor)
processor - the processor.public Processor getProcessor()
public void doProcess()
public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||