org.simulator.sbml.astnode
Class StoichiometryValue
java.lang.Object
org.simulator.sbml.astnode.StoichiometryValue
public class StoichiometryValue
- extends Object
Computes for a SpeciesReference with a stoichiometry occuring in some
Reaction the stoichiometry and the change of the corresponding
Species that is caused by the Reaction.
- Version:
- $Rev: 203 $
- Author:
- Roland Keller
|
Constructor Summary |
StoichiometryValue(SpeciesReference sr,
int speciesIndex,
int speciesRefIndex,
int compartmentIndex,
Map<String,Double> stoichiometricCoefHash,
SBMLValueHolder valueHolder,
double[] Y,
ASTNodeValue stoichiometryMathValue,
int reactionIndex,
Set<String> inConcentrationSet,
boolean isReactant)
|
|
Method Summary |
void |
computeChange(double currentTime,
double[] changeRate,
double[] v)
Computes the change resulting for the corresponding Species in this
reaction at the current time and stores it at the correct position in the
changeRate array. |
void |
refresh()
Refreshes the stoichiometry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
valueHolder
protected SBMLValueHolder valueHolder
- The value holder that stores the current simulation results.
StoichiometryValue
public StoichiometryValue(SpeciesReference sr,
int speciesIndex,
int speciesRefIndex,
int compartmentIndex,
Map<String,Double> stoichiometricCoefHash,
SBMLValueHolder valueHolder,
double[] Y,
ASTNodeValue stoichiometryMathValue,
int reactionIndex,
Set<String> inConcentrationSet,
boolean isReactant)
- Parameters:
sr - speciesIndex - speciesRefIndex - compartmentIndex - stoichiometricCoefHash - valueHolder - Y - null - reactionIndex - inConcentrationSet - isReactant -
computeChange
public void computeChange(double currentTime,
double[] changeRate,
double[] v)
- Computes the change resulting for the corresponding
Species in this
reaction at the current time and stores it at the correct position in the
changeRate array.
- Parameters:
currentTime - changeRate - v -
refresh
public void refresh()
- Refreshes the stoichiometry.