-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,java.io.Serializable
public final class FollowAtDistance<T extends Object> extends AbstractAction<T>
-
-
Constructor Summary
Constructors Constructor Description FollowAtDistance(Node<T> node, Reaction<T> reaction, Environment<T, Euclidean2DPosition> env, Molecule target, Double distance, Double speed)
-
Method Summary
Modifier and Type Method Description FollowAtDistance<T>cloneAction(Node<T> node, Reaction<T> reaction)Unitexecute()ContextgetContext()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.FollowAtDistance
declareDependencyTo, getConcentration, getNode, getOutboundDependencies, nodeContains, removeConcentration, setConcentration, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FollowAtDistance
FollowAtDistance(Node<T> node, Reaction<T> reaction, Environment<T, Euclidean2DPosition> env, Molecule target, Double distance, Double speed)
- Parameters:
node- the followerreaction- the reaction hosting this actionenv- the environment containing the nodestarget- molecule from which to read the destination to follow in the form of coordinates or a tupledistance- the distance to keep from the destinationspeed- the maximum speed
-
-
Method Detail
-
cloneAction
FollowAtDistance<T> cloneAction(Node<T> node, Reaction<T> reaction)
-
getContext
Context getContext()
-
-
-
-