-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,java.io.Serializable
public final class CameraInjectVisibleNodeClosestToDistance extends AbstractAction<Any>
Given a list of VisibleNode associated to visionMolecule, it finds the closest to a point located at distance from node in the direction of node's heading, and injects its position in targetMolecule.
If there are no VisibleNodes, targetMolecule will be removed from node.
-
-
Constructor Summary
Constructors Constructor Description CameraInjectVisibleNodeClosestToDistance(Node<Object> node, Physics2DEnvironment<Object> env, Double distance, Molecule visionMolecule, Molecule targetMolecule)
-
Method Summary
Modifier and Type Method Description CameraInjectVisibleNodeClosestToDistancecloneAction(Node<Object> node, Reaction<Object> reaction)Unitexecute()ContextgetContext()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.CameraInjectVisibleNodeClosestToDistance
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
-
-
Method Detail
-
cloneAction
CameraInjectVisibleNodeClosestToDistance cloneAction(Node<Object> node, Reaction<Object> reaction)
-
getContext
Context getContext()
-
-
-
-