-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,java.io.Serializable
public final class ChangeBiomolConcentrationInNeighbor extends AbstractNeighborAction<Double>
-
-
Constructor Summary
Constructors Constructor Description ChangeBiomolConcentrationInNeighbor(Environment<Double, out Object> environment, Node<Double> node, Biomolecule biomolecule, RandomGenerator randGen, Double deltaConcentration)
-
Method Summary
Modifier and Type Method Description ChangeBiomolConcentrationInNeighborcloneAction(Node<Double> node, Reaction<Double> reaction)voidexecute()Execute the action on a random neighbor if the node has a neighborhood. voidexecute(Node<Double> targetNode)Execute the action on the given target node. StringtoString()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractNeighborAction
getContext -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractAction
getOutboundDependencies -
Methods inherited from class it.unibo.alchemist.model.interfaces.Action
cloneAction, execute, getContext -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChangeBiomolConcentrationInNeighbor
ChangeBiomolConcentrationInNeighbor(Environment<Double, out Object> environment, Node<Double> node, Biomolecule biomolecule, RandomGenerator randGen, Double deltaConcentration)
- Parameters:
environment- the environmentnode- the nodebiomolecule- the moleculerandGen- the random generatordeltaConcentration- concentration change
-
-
Method Detail
-
cloneAction
ChangeBiomolConcentrationInNeighbor cloneAction(Node<Double> node, Reaction<Double> reaction)
-
execute
void execute()
Execute the action on a random neighbor if the node has a neighborhood. Otherwise do nothing.
-
execute
void execute(Node<Double> targetNode)
Execute the action on the given target node. NOTE, it is NOT guaranteed that this method checks if the target node is in the actual neighborhood of the node.
- Parameters:
targetNode- the node where the action will be execute
-
-
-
-