org.simulator.sbml.astnode
Class SpeciesValue

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

public class SpeciesValue
extends ASTNodeObject

This class computes and stores values of ASTNodes that refer to a species.

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

Field Summary
protected  int compartmentPosition
          The position of the compartment value of the species in the Y vector of the value holder
protected  boolean hasOnlySubstanceUnits
          The hasOnlySubstanceUnits attribute of the species
protected  java.lang.String id
          The id of the species
protected  boolean isSetInitialAmount
          Has the species an initial amount set?
protected  boolean isSetInitialConcentration
          Has the species an initial concentration set?
protected  int position
          The position of the species value in the Y vector of the value holder
protected  org.sbml.jsbml.Species s
          The corresponding species
protected  ValueHolder valueHolder
          The value holder that stores the current simulation results
protected  boolean zeroSpatialDimensions
          Has the compartment of the species no spatial dimensions?
 
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
SpeciesValue(ASTNodeInterpreterWithTime interpreter, org.sbml.jsbml.ASTNode node, org.sbml.jsbml.Species s, ValueHolder valueHolder, int position, int compartmentPosition, boolean zeroSpatialDimensions)
           
 
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

s

protected org.sbml.jsbml.Species s
The corresponding species


id

protected java.lang.String id
The id of the species


valueHolder

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


isSetInitialAmount

protected boolean isSetInitialAmount
Has the species an initial amount set?


hasOnlySubstanceUnits

protected boolean hasOnlySubstanceUnits
The hasOnlySubstanceUnits attribute of the species


isSetInitialConcentration

protected boolean isSetInitialConcentration
Has the species an initial concentration set?


position

protected int position
The position of the species value in the Y vector of the value holder


compartmentPosition

protected int compartmentPosition
The position of the compartment value of the species in the Y vector of the value holder


zeroSpatialDimensions

protected boolean zeroSpatialDimensions
Has the compartment of the species no spatial dimensions?

Constructor Detail

SpeciesValue

public SpeciesValue(ASTNodeInterpreterWithTime interpreter,
                    org.sbml.jsbml.ASTNode node,
                    org.sbml.jsbml.Species s,
                    ValueHolder valueHolder,
                    int position,
                    int compartmentPosition,
                    boolean zeroSpatialDimensions)
Parameters:
interpreter -
node -
s -
valueHolder -
position -
compartmentPosition -
zeroSpatialDimensions -
Method Detail

computeDoubleValue

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

Overrides:
computeDoubleValue in class ASTNodeObject