Class ChangeBiomolConcentrationInNeighbor
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class ChangeBiomolConcentrationInNeighbor extends AbstractNeighborAction<Double>
Changes the concentration of a Biomolecule (molecule) in a randomly-selected compatible neighbor cell by deltaConcentration.
-
-
Field Summary
Fields Modifier and Type Field Description private final Biomolecule
molecule
private final Double
deltaConcentration
-
Constructor Summary
Constructors Constructor Description ChangeBiomolConcentrationInNeighbor(RandomGenerator randomGenerator, Environment<Double, ?> environment, Node<Double> node, Biomolecule molecule, Double deltaConcentration)
-
Method Summary
Modifier and Type Method Description final Biomolecule
getMolecule()
final Double
getDeltaConcentration()
ChangeBiomolConcentrationInNeighbor
cloneAction(Node<Double> node, Reaction<Double> reaction)
Unit
execute()
Execute the action on a random neighbor if the node has a neighborhood. Unit
execute(Node<Double> targetNode)
Execute the action on the given target node. String
toString()
-
Methods inherited from class it.unibo.alchemist.model.biochemistry.actions.AbstractNeighborAction
getContext
-
Methods inherited from class it.unibo.alchemist.model.actions.AbstractAction
getOutboundDependencies
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChangeBiomolConcentrationInNeighbor
ChangeBiomolConcentrationInNeighbor(RandomGenerator randomGenerator, Environment<Double, ?> environment, Node<Double> node, Biomolecule molecule, Double deltaConcentration)
-
-
Method Detail
-
getMolecule
final Biomolecule getMolecule()
-
getDeltaConcentration
final Double getDeltaConcentration()
-
cloneAction
ChangeBiomolConcentrationInNeighbor cloneAction(Node<Double> node, Reaction<Double> reaction)
-
execute
Unit execute()
Execute the action on a random neighbor if the node has a neighborhood. Otherwise do nothing.
-
execute
Unit 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.
-
-
-
-