org.simulator.sbml.astnode
Class CompartmentOrParameterValue

java.lang.Object
  extended by org.simulator.sbml.astnode.ASTNodeObject
      extended by org.simulator.sbml.astnode.CompartmentOrParameterValue

public class CompartmentOrParameterValue
extends ASTNodeObject

This class computes and stores values of ASTNodes that refer to a compartment or a parameter.

Since:
1.0
Version:
$Rev: 22 $
Author:
Roland Keller

Field Summary
protected  java.lang.String id
          The id of the compartment or parameter.
protected  int position
          The position of the current compartment/parameter value in the Y vector of the value holder
protected  org.sbml.jsbml.Symbol sb
          The compartment or parameter the corresponding ASTNode is referring to
protected  ValueHolder valueHolder
          The value holder that stores the current simulation results.
 
Fields inherited from class org.simulator.sbml.astnode.ASTNodeObject
alreadyProcessed, booleanValue, children, denominator, doubleValue, exponent, interpreter, isConstant, isDouble, isInfinite, leftChild, logger, mantissa, name, node, nodeType, numChildren, numerator, real, rightChild, time, units
 
Constructor Summary
CompartmentOrParameterValue(ASTNodeInterpreterWithTime interpreter, org.sbml.jsbml.ASTNode node, org.sbml.jsbml.Symbol sb, ValueHolder valueHolder, int position)
           
 
Method Summary
protected  void computeDoubleValue()
          Computes the double value of the node.
 
Methods inherited from class org.simulator.sbml.astnode.ASTNodeObject
compileBoolean, compileDouble, computeBooleanValue, getConstant, getName, getTime, getValue, isName, reset, setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sb

protected org.sbml.jsbml.Symbol sb
The compartment or parameter the corresponding ASTNode is referring to


id

protected java.lang.String id
The id of the compartment or parameter.


valueHolder

protected ValueHolder valueHolder
The value holder that stores the current simulation results.


position

protected int position
The position of the current compartment/parameter value in the Y vector of the value holder

Constructor Detail

CompartmentOrParameterValue

public CompartmentOrParameterValue(ASTNodeInterpreterWithTime interpreter,
                                   org.sbml.jsbml.ASTNode node,
                                   org.sbml.jsbml.Symbol sb,
                                   ValueHolder valueHolder,
                                   int position)
Parameters:
interpreter -
node -
sb -
valueHolder -
position -
Method Detail

computeDoubleValue

protected void computeDoubleValue()
Description copied from class: ASTNodeObject
Computes the double value of the node.

Overrides:
computeDoubleValue in class ASTNodeObject