AlchemistExecutionContext

class AlchemistExecutionContext<P : Position<P>>(val environmentAccess: Environment<Any, P>, node: Node<Any>, protelisDevice: ProtelisDevice<P>, reaction: Reaction<Any>, val randomGenerator: <Error class: unknown class>, networkManager: AlchemistNetworkManager)

Parameters

position type

Constructors

Link copied to clipboard
constructor(environment: Environment<Any, P>, localNode: Node<Any>, reaction: Reaction<Any>, random: <Error class: unknown class>, networkManager: AlchemistNetworkManager)
constructor(environmentAccess: Environment<Any, P>, node: Node<Any>, protelisDevice: ProtelisDevice<P>, reaction: Reaction<Any>, randomGenerator: <Error class: unknown class>, networkManager: AlchemistNetworkManager)

Types

Link copied to clipboard
object Companion

Internal constants.

Properties

Link copied to clipboard

The device position, in form of Position.

Link copied to clipboard
Link copied to clipboard
val randomGenerator: <Error class: unknown class>

Functions

Link copied to clipboard
fun distanceTo(target: <Error class: unknown class>?): Double
fun distanceTo(target: Int): Double

Computes the distance between two nodes, through Environment.getDistanceBetweenNodes.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun getCoordinates(): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
open fun getDeviceUID(): <Error class: unknown class>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open fun nbrDelay(): <Error class: unknown class><Number>
Link copied to clipboard
open fun nbrLag(): <Error class: unknown class><Number>
Link copied to clipboard
open fun nbrRange(): <Error class: unknown class><Double>
Link copied to clipboard
open fun nbrVector(): <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
fun routingDistance(dest: <Error class: unknown class>): Double

Computes the distance along a map. Requires a MapEnvironment.