fr.ove.openmath.jome.ctrl.amto
Class MapsToTerminal

java.lang.Object
  extended byfr.ove.openmath.jome.ctrl.amto.AbstractMathTreeObject
      extended byfr.ove.openmath.jome.ctrl.amto.MapsToTerminal
All Implemented Interfaces:
Parametrable, java.io.Serializable
Direct Known Subclasses:
AFloat, AnInteger, Reserved, Symbols, Variable

public abstract class MapsToTerminal
extends AbstractMathTreeObject

The abstract math tree object of a terminal element of an expression, such as a variable, an integer or a float, a specific constant (e.g. pi) which are generally reserved word in the expression.

Version:
1.0 29/10/1999
Author:
© 1999 DIRAT Laurent
See Also:
Serialized Form

Field Summary
 
Fields inherited from class fr.ove.openmath.jome.ctrl.amto.AbstractMathTreeObject
identifier, param, token
 
Constructor Summary
MapsToTerminal(java.lang.String identifier, int token)
          The constructor.
 
Method Summary
 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.
 
Methods inherited from class fr.ove.openmath.jome.ctrl.amto.AbstractMathTreeObject
add, fireLinearParserEvent, getChild, getChildren, getEventSource, getFather, getNbChildren, getParameter, remove, remove, removeAll, setEventSource, setFather, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapsToTerminal

public MapsToTerminal(java.lang.String identifier,
                      int token)
The constructor.

Parameters:
identifier - the identifier of the instance.
token - the identifier of the instance by the mean of the event sent.
Method Detail

flush

public void flush()
"Flushes" the object as a sequence of events for the building of the model

Specified by:
flush in class AbstractMathTreeObject

flushChild

protected void flushChild(AbstractMathTreeObject child,
                          int index)
"Flushes" the specified child.
According to their father, some children need to be between parenthesis to respect correctness of the expression. So, when needed, the specified child is "flushed" as if it was between parenthesis.

Overrides:
flushChild in class AbstractMathTreeObject
Parameters:
child - the child to "flush"
index - the child index in the list of children of the instance.


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.