Class Orienting
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.NodeProperty
,it.unibo.alchemist.model.cognitive.OrientingProperty
,java.io.Serializable
public abstract class Orienting<T extends Object, P extends Position<P>, Vector<P>, A extends Transformation<P>, N extends ConvexShape<P, A>, L extends ConvexShape<P, A>> extends AbstractNodeProperty<T> implements OrientingProperty<T, P, A, L, N, DefaultEdge>
Base implementation of a node's OrientingProperty.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Orienting.Companion
Utility methods for Graphs.
-
Field Summary
Fields Modifier and Type Field Description private final Map<ConvexShape<P, A>, Integer>
volatileMemory
private final NavigationGraph<P, A, L, DefaultEdge>
cognitiveMap
private final RandomGenerator
randomGenerator
private final EnvironmentWithGraph<?, T, P, A, N, DefaultEdge>
environment
private final Node<T>
node
private final Double
knowledgeDegree
public final static Orienting.Companion
Companion
-
Constructor Summary
Constructors Constructor Description Orienting(RandomGenerator randomGenerator, EnvironmentWithGraph<?, T, P, A, N, DefaultEdge> environment, Node<T> node, Double knowledgeDegree, Double minArea)
Orienting(RandomGenerator randomGenerator, EnvironmentWithGraph<?, T, P, A, N, DefaultEdge> environment, Node<T> node, Double knowledgeDegree)
-
Method Summary
Modifier and Type Method Description Map<ConvexShape<P, A>, Integer>
getVolatileMemory()
The volatile memory of the agent: it models the ability to remember areas of the environment already visited since the start of the simulation. NavigationGraph<P, A, L, DefaultEdge>
getCognitiveMap()
The cognitive map of the agent. final RandomGenerator
getRandomGenerator()
The simulation RandomGenerator. EnvironmentWithGraph<?, T, P, A, N, DefaultEdge>
getEnvironment()
The environment in which the node moves. Node<T>
getNode()
Double
getKnowledgeDegree()
The knowledge degree of the agent concerning the environment. abstract L
createLandmarkIn(N area)
Creates a landmark entirely contained in the given area. String
toString()
-
Methods inherited from class it.unibo.alchemist.model.NodeProperty
cloneOnNewNode
-
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
-
-
Method Detail
-
getVolatileMemory
Map<ConvexShape<P, A>, Integer> getVolatileMemory()
The volatile memory of the agent: it models the ability to remember areas of the environment already visited since the start of the simulation. Each area is paired with the number of visits. Areas are assumed to be represented as ConvexShapes, as in NavigationGraphs.
-
getCognitiveMap
NavigationGraph<P, A, L, DefaultEdge> getCognitiveMap()
The cognitive map of the agent. It's a graph composed of landmarks (elements of the environment easy to remember due to their uniqueness) and spatial relations between them. It's modeled as a NavigationGraph.
-
getRandomGenerator
final RandomGenerator getRandomGenerator()
The simulation RandomGenerator.
-
getEnvironment
EnvironmentWithGraph<?, T, P, A, 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
abstract L 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.
-
-
-
-