org.simulator.sbml.astnode
Class RateRuleObject
java.lang.Object
org.simulator.sbml.astnode.RuleObject
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
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
-