public interface PropensityCalculator
PropensityCalculator
is the way, a Network
tells a Simulator
how
to calculate propensities for the reactions. Each Simulator
calls the
calculatePropensity
method, when the amount of some reactants of a reactions has changed.Modifier and Type | Method and Description |
---|---|
double |
calculatePropensity(int reaction,
AmountManager amount,
Simulator sim)
Calculates the propensity for a reaction given the amounts of the
AmountManager . |
double calculatePropensity(int reaction, AmountManager amount, Simulator sim)
AmountManager
.
If a positive value for volume is given, it is assumed that the constants are deterministic
rate constants and are hence to be transformed to specific reaction rate constants.reaction
- index of the reactionamount
- AmountManagersim
- SimulatorCopyright © 2007–2021. All rights reserved.