-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.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.interfaces.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 DoublegetDistance()Distance of the field of view. final DoublegetAngle()Angle in degrees of the field of view. CameraSeecloneAction(Node<Object> node, Reaction<Object> reaction)Unitexecute()ContextgetContext()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.CameraSee
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
-
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()
-
-
-
-