Class Orienting2D
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.NodeProperty
,it.unibo.alchemist.model.cognitive.OrientingProperty
,java.io.Serializable
public final class Orienting2D<T extends Object, N extends ConvexPolygon> extends Orienting<T, Euclidean2DPosition, Euclidean2DTransformation, N, Ellipse>
Basic implementation of a node's OrientingProperty in a 2D space.
-
-
Field Summary
Fields Modifier and Type Field Description private final Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge>
environment
private final Node<T>
node
private final Double
knowledgeDegree
private final Map<ConvexShape<Euclidean2DPosition, Euclidean2DTransformation>, Integer>
volatileMemory
private final NavigationGraph<Euclidean2DPosition, Euclidean2DTransformation, Ellipse, DefaultEdge>
cognitiveMap
private final RandomGenerator
randomGenerator
-
Constructor Summary
Constructors Constructor Description Orienting2D(Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge> environment, RandomGenerator randomGenerator, Node<T> node, Double knowledgeDegree, Double minSide, Double maxSide)
Orienting2D(Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge> environment, RandomGenerator randomGenerator, Node<T> node, Double knowledgeDegree, Double minSide)
Orienting2D(Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge> environment, RandomGenerator randomGenerator, Node<T> node, Double knowledgeDegree)
-
Method Summary
Modifier and Type Method Description Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge>
getEnvironment()
The environment in which the node moves. Node<T>
getNode()
Double
getKnowledgeDegree()
The knowledge degree of the agent concerning the environment. Ellipse
createLandmarkIn(N area)
Creates a landmark entirely contained in the given area. Orienting2D<T, N>
cloneOnNewNode(Node<T> node)
-
Methods inherited from class it.unibo.alchemist.model.cognitive.properties.Orienting
getCognitiveMap, getRandomGenerator, getVolatileMemory, toString
-
Methods inherited from class it.unibo.alchemist.model.cognitive.OrientingProperty
registerVisit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Orienting2D
Orienting2D(Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge> environment, RandomGenerator randomGenerator, Node<T> node, Double knowledgeDegree, Double minSide, Double maxSide)
-
Orienting2D
Orienting2D(Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge> environment, RandomGenerator randomGenerator, Node<T> node, Double knowledgeDegree, Double minSide)
-
-
Method Detail
-
getEnvironment
Euclidean2DEnvironmentWithGraph<?, T, N, DefaultEdge> getEnvironment()
The environment in which the node moves.
-
getKnowledgeDegree
Double getKnowledgeDegree()
The knowledge degree of the agent concerning the environment. This is a Double value in 0, 1 describing the percentage of environment the agent is familiar with prior to the start of the simulation (thus it does not take into account the knowledge the pedestrian will gain during it, namely the volatileMemory).
-
createLandmarkIn
Ellipse createLandmarkIn(N area)
Creates a landmark entirely contained in the given area. If such area contains one or more destinations, the returned landmark must contain at least one of them.
-
cloneOnNewNode
Orienting2D<T, N> cloneOnNewNode(Node<T> node)
-
-
-
-