-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,java.io.Serializable
public final class AddJunctionInCell extends AbstractNeighborAction<Double>
Represent the action of add a junction between the current node and a neighbor. This action only create the junction reference inside this node, the neighbor totally ignore that a junction has been created. This is a part of the junction creation process. See AddJunctionInNeighbor for the other part of the process
-
-
Constructor Summary
Constructors Constructor Description AddJunctionInCell(Environment<Double, out Object> e, Node<Double> n, Junction j, RandomGenerator rg)
-
Method Summary
Modifier and Type Method Description AddJunctionInCellcloneAction(Node<Double> node, Reaction<Double> reaction)voidexecute()If no target node is given DO NOTHING. voidexecute(Node<Double> targetNode)Create the junction that links the node where this action is executed and the target node. StringtoString()CellNode<out Object>getNode()-
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
-
-
Method Detail
-
cloneAction
AddJunctionInCell 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 node where this action is executed and the target node.
-
-
-
-