org.simulator.sbml.astnode
Class RateRuleObject

java.lang.Object
  extended by org.simulator.sbml.astnode.RuleObject
      extended by org.simulator.sbml.astnode.RateRuleObject

public class RateRuleObject
extends RuleObject

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

Version:
$Rev: 149 $
Author:
Roland Keller

Field Summary
 
Fields inherited from class org.simulator.sbml.astnode.RuleObject
compartmentIndex, hasOnlySubstanceUnits, hasZeroSpatialDimensions, index, isSetInitialAmount, isSetInitialConcentration, isSpecies, nodeObject, value, valueHolder
 
Constructor Summary
RateRuleObject(ASTNodeObject nodeObject, int index)
           
RateRuleObject(ASTNodeObject nodeObject, int index, java.util.List<java.lang.Integer> speciesIndices, ValueHolder valueHolder)
          Constructor for a rule with a compartment as variable
RateRuleObject(ASTNodeObject nodeObject, int index, org.sbml.jsbml.Species sp, int compartmentIndex, boolean hasZeroSpatialDimensions, ValueHolder 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.RuleObject
getIndex, getValue, processAssignmentVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateRuleObject

public RateRuleObject(ASTNodeObject nodeObject,
                      int index)
Parameters:
nodeObject -
index -

RateRuleObject

public RateRuleObject(ASTNodeObject nodeObject,
                      int index,
                      org.sbml.jsbml.Species sp,
                      int compartmentIndex,
                      boolean hasZeroSpatialDimensions,
                      ValueHolder valueHolder)
Constructor for a rule with a species as variable

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

RateRuleObject

public RateRuleObject(ASTNodeObject nodeObject,
                      int index,
                      java.util.List<java.lang.Integer> speciesIndices,
                      ValueHolder 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 -