org.systemsbiology.chem
Class SymbolEvaluatorChem

java.lang.Object
  extended byorg.systemsbiology.math.SymbolEvaluator
      extended byorg.systemsbiology.chem.SymbolEvaluatorChem
All Implemented Interfaces:
Cloneable

public final class SymbolEvaluatorChem
extends SymbolEvaluator

Symbol Evaluator class used for chemical simulations.

Author:
Stephen Ramsey

Field Summary
 
Fields inherited from class org.systemsbiology.math.SymbolEvaluator
NULL_ARRAY_INDEX
 
Constructor Summary
SymbolEvaluatorChem(boolean pUseExpressionValueCaching, SymbolEvaluationPostProcessor pSymbolEvaluationPostProcessor, ReservedSymbolMapper pReservedSymbolMapper, HashMap pSymbolsMap)
           
 
Method Summary
 Expression getExpressionValue(Symbol pSymbol)
          Returns null if the symbol corresponds to a numeric value; or returns the Expression if the symbol corresponds to an Expression; or throws an exception if the symbol is not defined.
 ReservedSymbolMapper getReservedSymbolMapper()
           
 Symbol getSymbol(String pSymbolName)
           
 double getTime()
           
 double getUnindexedValue(Symbol pSymbol)
           
 boolean hasValue(Symbol pSymbol)
          Returns true if the object has a Value defined, or false otherwise.
 void setLocalSymbolsMap(HashMap pLocalSymbolsMap)
           
 void setTime(double pTime)
           
 
Methods inherited from class org.systemsbiology.math.SymbolEvaluator
getIndexedValue, getSymbolEvaluationPostProcessor, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SymbolEvaluatorChem

public SymbolEvaluatorChem(boolean pUseExpressionValueCaching,
                           SymbolEvaluationPostProcessor pSymbolEvaluationPostProcessor,
                           ReservedSymbolMapper pReservedSymbolMapper,
                           HashMap pSymbolsMap)
Method Detail

getReservedSymbolMapper

public ReservedSymbolMapper getReservedSymbolMapper()

setLocalSymbolsMap

public void setLocalSymbolsMap(HashMap pLocalSymbolsMap)

setTime

public void setTime(double pTime)

getTime

public double getTime()

getExpressionValue

public Expression getExpressionValue(Symbol pSymbol)
                              throws DataNotFoundException
Description copied from class: SymbolEvaluator
Returns null if the symbol corresponds to a numeric value; or returns the Expression if the symbol corresponds to an Expression; or throws an exception if the symbol is not defined.

Specified by:
getExpressionValue in class SymbolEvaluator
Throws:
DataNotFoundException

getUnindexedValue

public double getUnindexedValue(Symbol pSymbol)
                         throws DataNotFoundException,
                                IllegalStateException
Specified by:
getUnindexedValue in class SymbolEvaluator
Throws:
DataNotFoundException
IllegalStateException

hasValue

public boolean hasValue(Symbol pSymbol)
Description copied from class: SymbolEvaluator
Returns true if the object has a Value defined, or false otherwise.

Specified by:
hasValue in class SymbolEvaluator
Returns:
true if the object has a Value defined, or false otherwise.

getSymbol

public Symbol getSymbol(String pSymbolName)