Class SAPEREReaction
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Actionable
,it.unibo.alchemist.model.Reaction
,java.io.Serializable
,java.lang.Comparable
public final class SAPEREReaction extends AbstractReaction<T>
This class realizes a reaction with Lsa concentrations.
-
-
Field Summary
Fields Modifier and Type Field Description public final TimeDistribution<T>
timeDistribution
public final Node<T>
node
-
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(@Nonnull() Node<List<ILsaMolecule>> node, @Nonnull() Time currentTime)
void
execute()
double
getRate()
String
getRateAsString()
void
setActions(@Nonnull() List<out Action<List<ILsaMolecule>>> actions)
void
setConditions(@Nonnull() List<out Condition<List<ILsaMolecule>>> conditions)
-
Methods inherited from class it.unibo.alchemist.model.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.Actionable
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
@Nonnull() Reaction<List<ILsaMolecule>> cloneOnNewNode(@Nonnull() Node<List<ILsaMolecule>> node, @Nonnull() Time currentTime)
-
execute
void execute()
-
getRate
double getRate()
-
getRateAsString
String getRateAsString()
-
setActions
void setActions(@Nonnull() List<out Action<List<ILsaMolecule>>> actions)
-
setConditions
void setConditions(@Nonnull() List<out Condition<List<ILsaMolecule>>> conditions)
-
-
-
-