Package it.unibo.alchemist.model.actions
Class CameraInjectVisibleNodeClosestToDistance
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.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> environment, Double distance, Molecule visionMolecule, Molecule targetMolecule)
-
Method Summary
Modifier and Type Method Description CameraInjectVisibleNodeClosestToDistance
cloneAction(Node<Object> node, Reaction<Object> reaction)
Unit
execute()
Context
getContext()
-
-
Method Detail
-
cloneAction
CameraInjectVisibleNodeClosestToDistance cloneAction(Node<Object> node, Reaction<Object> reaction)
-
getContext
Context getContext()
-
-
-
-