Class Perceptive2D
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.NodeProperty
,it.unibo.alchemist.model.cognitive.PerceptiveProperty
,java.io.Serializable
public final class Perceptive2D<T extends Object> implements PerceptiveProperty<T>
Base implementation of a pedestrian's capability to influence each other in a 2D space.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Double
defaultFieldOfViewAperture
public final static Double
defaultFieldOfViewDepth
private final Physics2DEnvironment<T>
environment
private final Node<T>
node
private final InfluenceSphere2D<T>
fieldOfView
private final Map<String, InfluenceSphere<T>>
senses
-
Constructor Summary
Constructors Constructor Description Perceptive2D(Physics2DEnvironment<T> environment, Node<T> node, InfluenceSphere2D<T> fieldOfView)
Perceptive2D(Physics2DEnvironment<T> environment, Node<T> node)
-
Method Summary
Modifier and Type Method Description final Physics2DEnvironment<T>
getEnvironment()
The environment where node is moving. Node<T>
getNode()
InfluenceSphere2D<T>
getFieldOfView()
The field of view of the pedestrian. Perceptive2D<T>
cloneOnNewNode(Node<T> node)
-
-
Constructor Detail
-
Perceptive2D
Perceptive2D(Physics2DEnvironment<T> environment, Node<T> node, InfluenceSphere2D<T> fieldOfView)
-
Perceptive2D
Perceptive2D(Physics2DEnvironment<T> environment, Node<T> node)
-
-
Method Detail
-
getEnvironment
final Physics2DEnvironment<T> getEnvironment()
The environment where node is moving.
-
getFieldOfView
InfluenceSphere2D<T> getFieldOfView()
The field of view of the pedestrian.
-
cloneOnNewNode
Perceptive2D<T> cloneOnNewNode(Node<T> node)
-
-
-
-