public class ConstantAmountManager extends Object implements AmountManager
| Constructor and Description |
|---|
ConstantAmountManager(long constantAmount) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAmount(int species)
Gets the current amount of a species.
|
void |
performReaction(int reaction,
int times)
Reflects a (multiple) firing of a reaction by adjusting the populations of the reactants and
the products.
|
void |
resetAmount()
Resets the amount of each species to the initial amount retrieved by the networks
AnnotationManager. |
void |
rollback()
Restore the amount array from the recently saved one.
|
void |
save()
Makes a copy of the amount array.
|
void |
setAmount(int species,
long amount)
Sets the current amount of a species.
|
public long getAmount(int species)
AmountManagergetAmount in interface AmountManagerspecies - index of the speciespublic void performReaction(int reaction,
int times)
AmountManager RuntimeException is thrown.performReaction in interface AmountManagerreaction - the index of the reaction firedtimes - the number of firingspublic void resetAmount()
AmountManagerAnnotationManager. This is called whenever a Simulator is started.resetAmount in interface AmountManagerpublic void rollback()
AmountManagerrollback in interface AmountManagerpublic void save()
AmountManagersave in interface AmountManagerpublic void setAmount(int species,
long amount)
AmountManagersetAmount in interface AmountManagerspecies - index of the speciesCopyright © 2007–2021. All rights reserved.