|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.network.ConstantAmountManager
public class ConstantAmountManager
Constructor Summary | |
---|---|
ConstantAmountManager(long constantAmount)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantAmountManager(long constantAmount)
Method Detail |
---|
public long getAmount(int species)
AmountManager
getAmount
in interface AmountManager
species
- index of the species
public void performReaction(int reaction, int times)
AmountManager
RuntimeException
is thrown.
performReaction
in interface AmountManager
reaction
- the index of the reaction firedtimes
- the number of firingspublic void resetAmount()
AmountManager
AnnotationManager
. This is called whenever a Simulator
is started.
resetAmount
in interface AmountManager
public void rollback()
AmountManager
rollback
in interface AmountManager
public void save()
AmountManager
save
in interface AmountManager
public void setAmount(int species, long amount)
AmountManager
setAmount
in interface AmountManager
species
- index of the species
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |