|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.ctrl.amto.AbstractMathTreeObject
An abstract tree structure of a mathematical object.
| Field Summary | |
protected java.lang.String |
identifier
The identifier of the mathematical notion represented by the instance. |
protected java.lang.String |
param
The parameter |
protected int |
token
The token which will identify the instance by the mean of the event sent. |
| Constructor Summary | |
AbstractMathTreeObject(java.lang.String identifier,
int token)
The constructor. |
|
| Method Summary | |
AbstractMathTreeObject |
add(java.lang.String identifier,
java.lang.Object parameter)
Adds the object characterised by the specified identifier and parameter. |
void |
fireLinearParserEvent(LinearParserEvent linearParserEvent)
Fires the specified event. |
abstract void |
flush()
"Flushes" the object as a sequence of events for the building of the model. |
protected void |
flushChild(AbstractMathTreeObject child,
int index)
"Flushes" the specified child. |
AbstractMathTreeObject |
getChild(int index)
Returns the child AbstractMathTreeObject at the specified index. |
java.util.Vector |
getChildren()
Returns the AbstractMathTreeObject children of the instance |
LinearParserEventSource |
getEventSource()
Returns the event source. |
AbstractMathTreeObject |
getFather()
Returns the father of the instance in the tree structure |
int |
getNbChildren()
Returns the number of children of the instance |
java.lang.Object |
getParameter()
Returns the parameter set before. |
void |
remove(AbstractMathTreeObject child)
Removes the specified child from the instance. |
void |
remove(int index)
Removes the child at the specified index from the instance. |
void |
removeAll()
Removes all the children of the instance. |
void |
setEventSource(LinearParserEventSource eventSource)
Sets the event source. |
protected void |
setFather(AbstractMathTreeObject father)
Sets the father of the instance. |
void |
setParameter(java.lang.Object param)
Sets the specified parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String identifier
protected java.lang.String param
protected int token
| Constructor Detail |
public AbstractMathTreeObject(java.lang.String identifier,
int token)
identifier - the identifier of the instance.token - the identifier of the instance by the mean of the event sent.| Method Detail |
public void setEventSource(LinearParserEventSource eventSource)
eventSource - the event source.public LinearParserEventSource getEventSource()
public void fireLinearParserEvent(LinearParserEvent linearParserEvent)
linearParserEvent - the event to fire.
public AbstractMathTreeObject add(java.lang.String identifier,
java.lang.Object parameter)
identifier - the identifier of the object to add.parameter - the possible parameter of the object to add.public AbstractMathTreeObject getChild(int index)
AbstractMathTreeObject at the specified index.
index - the specified index.public java.util.Vector getChildren()
AbstractMathTreeObject children of the instance
public int getNbChildren()
public AbstractMathTreeObject getFather()
protected void setFather(AbstractMathTreeObject father)
father - the father to set to the instancepublic void remove(AbstractMathTreeObject child)
child - the specified child to remove.public void remove(int index)
index - the specified index of the child to remove.public void removeAll()
public void setParameter(java.lang.Object param)
setParameter in interface Parametrableparam - the parameter to set.public java.lang.Object getParameter()
getParameter in interface Parametrablepublic abstract void flush()
protected void flushChild(AbstractMathTreeObject child,
int index)
child - the child to "flush"index - the child index in the list of children of the instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||