Class RemoveJunctionInCell
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class RemoveJunctionInCell extends AbstractNeighborAction<T>
Represent the action of removing a junction between the current node and a neighbor. This action only remove the junction reference inside this node, the neighbor totally ignore that a junction has been removed. This is a part of the junction removal process. See RemoveJunctionInNeighbor for the other part of the process
-
-
Constructor Summary
Constructors Constructor Description RemoveJunctionInCell(Environment<Double, out Object> environment, Node<Double> node, Junction junction, RandomGenerator randomGenerator)
-
Method Summary
Modifier and Type Method Description RemoveJunctionInCell
cloneAction(Node<Double> node, Reaction<Double> reaction)
void
execute()
If no target node is given DO NOTHING. void
execute(Node<Double> targetNode)
Removes the junction that links the node where this action is executed and the 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 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
-
RemoveJunctionInCell
RemoveJunctionInCell(Environment<Double, out Object> environment, Node<Double> node, Junction junction, RandomGenerator randomGenerator)
- Parameters:
environment
- the environmentnode
- the node where the action is performedjunction
- the junctionrandomGenerator
- the random generator
-
-
Method Detail
-
cloneAction
RemoveJunctionInCell cloneAction(Node<Double> node, Reaction<Double> reaction)
-
execute
void execute()
If no target node is given DO NOTHING. The junction can not be removed.
-
execute
void execute(Node<Double> targetNode)
Removes the junction that links the node where this action is executed and the target node.
-
-
-
-