lt.monarch.math
Class AbstractFormulaParser

java.lang.Object
  extended by lt.monarch.math.AbstractFormulaParser
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FormulaParser, LogicalParser

public abstract class AbstractFormulaParser
extends java.lang.Object
implements java.io.Serializable

This class contains the nodes needed by formula and logical parsers.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
protected  class AbstractFormulaParser.AbstractNode
          Abstract node interface
 
Field Summary
Modifier and Type Field and Description
protected  DataModel dataModel
          Data model
protected  java.util.Hashtable<java.lang.String,AbstractFormulaParser.AbstractNode> nodeHash
          Hash of pre created nodes, so that it would be possible to call node by name when needed.
 
Constructor Summary
Constructor and Description
AbstractFormulaParser()
           
 
Method Summary
Modifier and Type Method and Description
abstract  void dispose()
          Disposes the resources used by the class
 DataModel getDataModel()
          Gets the dataModel object
 void setDataModel(DataModel dataModel)
          Sets the dataModel object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeHash

protected java.util.Hashtable<java.lang.String,AbstractFormulaParser.AbstractNode> nodeHash
Hash of pre created nodes, so that it would be possible to call node by name when needed.


dataModel

protected DataModel dataModel
Data model

Constructor Detail

AbstractFormulaParser

public AbstractFormulaParser()
Method Detail

dispose

public abstract void dispose()
Disposes the resources used by the class


getDataModel

public DataModel getDataModel()
Gets the dataModel object

Returns:
the dataModel object

setDataModel

public void setDataModel(DataModel dataModel)
Sets the dataModel object

Parameters:
dataModel - the dataModel object