SAPEREWalker

Follows a GPS trace on the streets, slowing down by the interaction factor near the nodes tagged with tag within range. The reaction is used to compute the movement length, the node walks at an average speed.

Constructors

Link copied to clipboard
constructor(environment: MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService>, reaction: NodeReaction<List<ILsaMolecule>>, tag: ILsaMolecule, speed: Double, interaction: Double, range: Double)
constructor(environment: MapEnvironment<List<ILsaMolecule>, GraphHopperOptions, GraphHopperRoutingService>, reaction: NodeReaction<List<ILsaMolecule>>, speed: Double, interaction: Double, range: Double)

Builds a walker interacting with the nodes tagged with DEFAULT_INTERACTING_TAG.

Types

Link copied to clipboard
object Companion

Constants.

Properties

Link copied to clipboard

The node hosting this action, as an ILsaNode.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
override fun cloneAction(newReaction: Reaction<List<ILsaMolecule>>): Action<List<ILsaMolecule>>
Link copied to clipboard
open override fun execute()
Link copied to clipboard
Link copied to clipboard
open override fun setExecutionContext(matches: MutableMap<HashString, ITreeNode<*>>?, nodes: MutableList<ILsaNode>?)

Sets the context in which this action will execute.

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