org.simulator.sbml.astnode
Class RateRuleValue

java.lang.Object
  extended by org.simulator.sbml.astnode.RuleValue
      extended by org.simulator.sbml.astnode.RateRuleValue

public class RateRuleValue
extends RuleValue

This class can compute and store the value of a rate rule together with the variable of the rule.

Version:
$Rev: 203 $
Author:
Roland Keller

Field Summary
 
Fields inherited from class org.simulator.sbml.astnode.RuleValue
compartmentIndex, hasOnlySubstanceUnits, hasZeroSpatialDimensions, index, isSetInitialAmount, isSetInitialConcentration, isSpecies, nodeObject, value, valueHolder
 
Constructor Summary
RateRuleValue(ASTNodeValue nodeObject, int index)
           
RateRuleValue(ASTNodeValue nodeObject, int index, List<Integer> speciesIndices, SBMLValueHolder valueHolder)
          Constructor for a rule with a compartment as variable
RateRuleValue(ASTNodeValue nodeObject, int index, Species sp, int compartmentIndex, boolean hasZeroSpatialDimensions, SBMLValueHolder valueHolder)
          Constructor for a rule with a species as variable
 
Method Summary
 void processRule(double[] changeRate, double[] Y, double time)
          Processes the rule and saves the new value of the corresponding variable in the changeRate vector.
 
Methods inherited from class org.simulator.sbml.astnode.RuleValue
getIndex, getValue, processAssignmentVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateRuleValue

public RateRuleValue(ASTNodeValue nodeObject,
                     int index)
Parameters:
nodeObject -
index -

RateRuleValue

public RateRuleValue(ASTNodeValue nodeObject,
                     int index,
                     Species sp,
                     int compartmentIndex,
                     boolean hasZeroSpatialDimensions,
                     SBMLValueHolder valueHolder)
Constructor for a rule with a species as variable

Parameters:
nodeObject -
index -
sp -
compartmentIndex -
hasZeroSpatialDimensions -
valueHolder -

RateRuleValue

public RateRuleValue(ASTNodeValue nodeObject,
                     int index,
                     List<Integer> speciesIndices,
                     SBMLValueHolder valueHolder)
Constructor for a rule with a compartment as variable

Parameters:
nodeObject -
index -
speciesIndices -
valueHolder -
Method Detail

processRule

public void processRule(double[] changeRate,
                        double[] Y,
                        double time)
Processes the rule and saves the new value of the corresponding variable in the changeRate vector.

Parameters:
changeRate -
Y -
time -