Orienting2D

class Orienting2D<T, N : ConvexPolygon> @JvmOverloads constructor(val environment: Euclidean2DEnvironmentWithGraph<*, T, N, DefaultEdge>, randomGenerator: RandomGenerator, val node: Node<T>, val knowledgeDegree: Double, minSide: Double = 30.0, maxSide: Double = 60.0) : Orienting<T, Euclidean2DPosition, Euclidean2DTransformation, N, Ellipse> (source)

Basic implementation of a node's OrientingProperty in a 2D space.

Constructors

Link copied to clipboard
constructor(environment: Euclidean2DEnvironmentWithGraph<*, T, N, DefaultEdge>, randomGenerator: RandomGenerator, node: Node<T>, knowledgeDegree: Double, minSide: Double = 30.0, maxSide: Double = 60.0)

Properties

Link copied to clipboard

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.

Link copied to clipboard
open override val environment: Euclidean2DEnvironmentWithGraph<*, T, N, DefaultEdge>

The environment in which the node moves.

Link copied to clipboard
open override val knowledgeDegree: Double

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).

Link copied to clipboard
open override val node: Node<T>
Link copied to clipboard
val randomGenerator: RandomGenerator

The simulation RandomGenerator.

Link copied to clipboard

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.

Functions

Link copied to clipboard
open override fun cloneOnNewNode(node: Node<T>): Orienting2D<T, N>
Link copied to clipboard
open override fun createLandmarkIn(area: N): Ellipse

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.

Link copied to clipboard

Registers a visit to the provided area in the agent's volatileMemory.

Link copied to clipboard
open override fun toString(): String