MapEnvironment

An Environment backed by map data, able to compute routes among geographic positions.

Parameters

<T>

Concentration type

Inheritors

Functions

Link copied to clipboard
abstract fun addLayer(p: Molecule, p1: Layer<T, P>)
Link copied to clipboard
abstract fun addNode(p: Node<T>, p1: P): Boolean
Link copied to clipboard
abstract fun addReaction(p: Reaction<T>)
Link copied to clipboard
Link copied to clipboard
abstract fun computeRoute(node: Node<T>, coord: GeoPosition): Route<GeoPosition>
abstract fun computeRoute(node: Node<T>, node2: Node<T>): Route<GeoPosition>
abstract fun computeRoute(from: GeoPosition, to: GeoPosition, options: O): Route<GeoPosition>
abstract fun computeRoute(node: Node<T>, coord: GeoPosition, options: O): Route<GeoPosition>
This method relies on the map data and computes a route towards some absolute coordinate solving a TSP problem.
Link copied to clipboard
open fun contains(node: Node<T>): Boolean
Link copied to clipboard
open fun currentPositionOf(node: Node<T>): P
Link copied to clipboard
abstract fun distanceBetween(p: Node<T>, p1: Node<T>): Double
Link copied to clipboard
open fun distanceTo($this$distanceTo: Node<T>, other: Node<T>): Double
Link copied to clipboard
open fun farthestReachablePosition(node: Node<T>, desired: P): P
Link copied to clipboard
open fun getCurrentPosition($this$currentPosition: Node<T>): P
Link copied to clipboard
abstract fun getDimensions(): Int
Link copied to clipboard
abstract fun getIncarnation(): Incarnation<T, P>
Link copied to clipboard
abstract fun getLayers(): Map<Molecule, Layer<T, P>>
Link copied to clipboard
open fun getNeighborhood($this$neighborhood: Node<T>): Observable<Neighborhood<T>>
Link copied to clipboard
abstract fun getNetworkModel(): NetworkModel<T>
Link copied to clipboard
Link copied to clipboard
abstract fun getNodes(): ObservableList<Node<T>>
Link copied to clipboard
abstract fun getOffset(): Array<Double>
Link copied to clipboard
open fun getPosition($this$position: Node<T>): Observable<P>
Link copied to clipboard
Link copied to clipboard
abstract fun getRoutingService(): S
Returns the routing service of this environment.
Link copied to clipboard
abstract fun getSimulation(): Simulation<T, P>
Link copied to clipboard
abstract fun getSimulationOrNull(): Simulation<T, P>
Link copied to clipboard
abstract fun getSize(): Array<Double>
Link copied to clipboard
Link copied to clipboard
abstract fun isTerminated(): Boolean
Link copied to clipboard
abstract fun layerFor(p: Molecule): Layer<T, P>
Link copied to clipboard
abstract fun makePosition(p: Array<Number>): P
Link copied to clipboard
abstract fun moveNodeTo(p: Node<T>, p1: P)
Link copied to clipboard
open fun moveTo($this$moveTo: Node<T>, position: P)
Link copied to clipboard
Link copied to clipboard
abstract fun nodesAround(p: Node<T>, p1: Double): List<Node<T>>
Link copied to clipboard
open fun nodesInRange($this$nodesInRange: Node<T>, range: Double): List<Node<T>>
Link copied to clipboard
abstract fun nodeWithId(p: Int): Node<T>
Link copied to clipboard
abstract fun observeLayerValue(p: Molecule, p1: Node<T>): Observable<T>
Link copied to clipboard
abstract fun observeNodesAround(p: Node<T>, p1: Double): ObservableSet<Node<T>>
Link copied to clipboard
open fun observeNodesInRange($this$observeNodesInRange: Node<T>, range: Double): ObservableSet<Node<T>>
Link copied to clipboard
abstract fun positionOf(p: Node<T>): Observable<P>
Link copied to clipboard
open fun remove($this$remove: Node<T>)
Link copied to clipboard
abstract fun removeNode(p: Node<T>)
Link copied to clipboard
abstract fun removeReaction(p: Reaction<T>)
Link copied to clipboard
abstract fun setNetworkModel(p: NetworkModel<T>)
Link copied to clipboard
abstract fun setSimulation(p: Simulation<T, P>)
Link copied to clipboard
open fun toPosition($this$toPosition: Array<Double>): P