Class ChemicalReaction
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Actionable
,it.unibo.alchemist.model.Reaction
,java.io.Serializable
,java.lang.Comparable
public class ChemicalReaction<T> extends AbstractReaction<T>
-
-
Field Summary
Fields Modifier and Type Field Description public final TimeDistribution<T>
timeDistribution
public final Node<T>
node
-
Constructor Summary
Constructors Constructor Description ChemicalReaction(Node<T> n, TimeDistribution<T> pd)
-
Method Summary
Modifier and Type Method Description ChemicalReaction<T>
cloneOnNewNode(@Nonnull() Node<T> node, @Nonnull() Time currentTime)
final void
initializationComplete(@Nonnull() Time atTime, @Nonnull() Environment<T, out Object> environment)
final double
getRate()
-
Methods inherited from class it.unibo.alchemist.model.reactions.AbstractReaction
canExecute, compareTo, equals, execute, getActions, getConditions, getInboundDependencies, getInputContext, getNode, getOutboundDependencies, getOutputContext, getTau, getTimeDistribution, hashCode, setActions, setConditions, toString, update
-
Methods inherited from class it.unibo.alchemist.model.Reaction
getInputContext, getNode, getOutputContext
-
Methods inherited from class it.unibo.alchemist.model.Actionable
canExecute, execute, getActions, getConditions, getInboundDependencies, getOutboundDependencies, getTau, getTimeDistribution, initializationComplete, setActions, setConditions, update
-
Methods inherited from class java.lang.Comparable
compareTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChemicalReaction
ChemicalReaction(Node<T> n, TimeDistribution<T> pd)
- Parameters:
n
- nodepd
- time distribution
-
-
Method Detail
-
cloneOnNewNode
@Nonnull() ChemicalReaction<T> cloneOnNewNode(@Nonnull() Node<T> node, @Nonnull() Time currentTime)
-
initializationComplete
final void initializationComplete(@Nonnull() Time atTime, @Nonnull() Environment<T, out Object> environment)
-
getRate
final double getRate()
-
-
-
-