-
- 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)
void
execute()
double
getRate()
String
getRateAsString()
void
setActions(List<Action<List<ILsaMolecule>>> actions)
void
setConditions(List<Condition<List<ILsaMolecule>>> conditions)
-
Methods inherited from class it.unibo.alchemist.model.implementations.reactions.AbstractReaction
addInboundDependency, addOutboundDependency, canExecute, compareTo, computeDependencies, equals, execute, getActions, getConditions, getInboundDependencies, getInputContext, getNode, getOutboundDependencies, getOutputContext, getRateAsString, getReactionName, getTau, getTimeDistribution, hashCode, initializationComplete, makeClone, optionallyImmodifiableView, setActions, setConditions, setInputContext, setOutputContext, toString, update, updateInternalStatus
-
Methods inherited from class it.unibo.alchemist.model.interfaces.Reaction
cloneOnNewNode, getInboundDependencies, getOutboundDependencies, getRate
-
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)
-
-
-
-