-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Reaction,java.io.Serializable,java.lang.Comparable
public final class SAPEREReaction extends AbstractReaction<List<ILsaMolecule>>
This class realizes a reaction with Lsa concentrations.
-
-
Constructor Summary
Constructors Constructor Description SAPEREReaction(Environment<List<ILsaMolecule>, out Object> environment, ILsaNode node, RandomGenerator randomGenerator, TimeDistribution<List<ILsaMolecule>> timeDistribution)
-
Method Summary
Modifier and Type Method Description Reaction<List<ILsaMolecule>>cloneOnNewNode(Node<List<ILsaMolecule>> node, Time currentTime)voidexecute()doublegetRate()StringgetRateAsString()voidsetActions(List<Action<List<ILsaMolecule>>> actions)voidsetConditions(List<Condition<List<ILsaMolecule>>> conditions)-
Methods inherited from class it.unibo.alchemist.model.implementations.reactions.AbstractReaction
canExecute, compareTo, equals, getActions, getConditions, getInboundDependencies, getInputContext, getNode, getOutboundDependencies, getOutputContext, getTau, getTimeDistribution, hashCode, initializationComplete, toString, update -
Methods inherited from class it.unibo.alchemist.model.interfaces.Reaction
getInboundDependencies, getOutboundDependencies -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SAPEREReaction
SAPEREReaction(Environment<List<ILsaMolecule>, out Object> environment, ILsaNode node, RandomGenerator randomGenerator, TimeDistribution<List<ILsaMolecule>> timeDistribution)
- Parameters:
environment- the current environmentnode- the current noderandomGenerator- the random engine to usetimeDistribution- Time Distribution
-
-
Method Detail
-
cloneOnNewNode
Reaction<List<ILsaMolecule>> cloneOnNewNode(Node<List<ILsaMolecule>> node, Time currentTime)
-
execute
void execute()
-
getRate
double getRate()
-
getRateAsString
String getRateAsString()
-
setActions
void setActions(List<Action<List<ILsaMolecule>>> actions)
-
setConditions
void setConditions(List<Condition<List<ILsaMolecule>>> conditions)
-
-
-
-