AlchemistExecutionContext

Parameters

<P>

position type

Constructors

Link copied to clipboard
constructor(environment: Environment<Any, P>, localNode: Node<Any>, reaction: Reaction<Any>, random: RandomGenerator, networkManager: AlchemistNetworkManager)
constructor(environment: Environment<Any, P>, localNode: Node<Any>, protelisDevice: ProtelisDevice<P>, reaction: Reaction<Any>, random: RandomGenerator, networkManager: AlchemistNetworkManager)

Properties

Link copied to clipboard
Put this Molecule inside nodes that should compute distances using routes approximating them.
Link copied to clipboard
val randomGenerator: RandomGenerator
Link copied to clipboard
Put this Molecule inside nodes that should compute distances using routes.

Functions

Link copied to clipboard
open fun distanceTo(target: DeviceUID): Double
open fun distanceTo(target: Int): Double
Computes the distance between two nodes, through getDistanceBetweenNodes.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun getCoordinates(): Tuple
Link copied to clipboard
Link copied to clipboard
open fun getDevicePosition(): P
Link copied to clipboard
open fun getDeviceUID(): DeviceUID
Link copied to clipboard
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun nbrDelay(): Field<Number>
Link copied to clipboard
open fun nbrLag(): Field<Number>
Link copied to clipboard
open fun nbrRange(): Field<Double>
Link copied to clipboard
open fun nbrVector(): Field<Tuple>
Link copied to clipboard
Link copied to clipboard
open fun routingDistance(dest: Tuple): Double
open fun routingDistance(dest: Node<Any>): Double
open fun routingDistance(dest: Number): Double
Computes the distance along a map.