Class AddJunctionInNeighbor
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class AddJunctionInNeighbor<P extends Position<out P>> extends AbstractNeighborAction<T>
Represent the action of add a junction between a neighbor and the current node. This action only create the junction reference inside the neighbor, the current node totally ignore that a junction has been created. This is a part of the junction creation process. See AddJunctionInCell for the other part of the process
-
-
Constructor Summary
Constructors Constructor Description AddJunctionInNeighbor(Environment<Double, P> environment, Node<Double> node, Junction junction, RandomGenerator randomGenerator)
-
Method Summary
Modifier and Type Method Description AddJunctionInNeighbor<P>
cloneAction(Node<Double> node, Reaction<Double> reaction)
void
execute()
If no target node is given DO NOTHING. void
execute(Node<Double> targetNode)
Create the junction that links the target node and the node when this action is executed. 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 it.unibo.alchemist.model.Action
cloneAction, execute, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AddJunctionInNeighbor
AddJunctionInNeighbor(Environment<Double, P> environment, Node<Double> node, Junction junction, RandomGenerator randomGenerator)
- Parameters:
environment
- the environmentnode
- the current node which contains this action.junction
- the junctionrandomGenerator
- the random generator
-
-
Method Detail
-
cloneAction
AddJunctionInNeighbor<P> cloneAction(Node<Double> node, Reaction<Double> reaction)
-
execute
void execute()
If no target node is given DO NOTHING. The junction can not be created.
-
execute
void execute(Node<Double> targetNode)
Create the junction that links the target node and the node when this action is executed.
-
-
-
-