Package it.unibo.alchemist.model.actions
Class CameraSee
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class CameraSee extends AbstractAction<Any>
Checks nodes in the environment and writes in outputMolecule the list of it.unibo.alchemist.model.VisibleNode, containing filterByMolecule. distance and angle define the field of view.
-
-
Constructor Summary
Constructors Constructor Description CameraSee(Node<Object> node, Physics2DEnvironment<Object> environment, Double distance, Double angle, Molecule outputMolecule, Molecule filterByMolecule)
CameraSee(Node<Object> node, Physics2DEnvironment<Object> environment, Double distance, Double angle, Molecule outputMolecule)
CameraSee(Node<Object> node, Physics2DEnvironment<Object> environment, Double distance, Double angle)
-
Method Summary
Modifier and Type Method Description final Double
getDistance()
Distance of the field of view. final Double
getAngle()
Angle in degrees of the field of view. CameraSee
cloneAction(Node<Object> node, Reaction<Object> reaction)
Unit
execute()
Context
getContext()
-
-
Constructor Detail
-
CameraSee
CameraSee(Node<Object> node, Physics2DEnvironment<Object> environment, Double distance, Double angle, Molecule outputMolecule, Molecule filterByMolecule)
-
CameraSee
CameraSee(Node<Object> node, Physics2DEnvironment<Object> environment, Double distance, Double angle, Molecule outputMolecule)
-
-
Method Detail
-
getDistance
final Double getDistance()
Distance of the field of view.
-
getContext
Context getContext()
-
-
-
-