AlchemistExecutionContext

class AlchemistExecutionContext<P : Position<P>>(val environmentAccess: Environment<Any, P>, node: Node<Any>, protelisDevice: ProtelisDevice<P>, reaction: Reaction<Any>, val randomGenerator: ERROR CLASS: Symbol not found for RandomGenerator, networkManager: AlchemistNetworkManager) : <ERROR CLASS> ERROR CLASS: Symbol not found for AbstractExecutionContext<it/unibo/alchemist/model/protelis/AlchemistExecutionContext<P>>, <ERROR CLASS> ERROR CLASS: Symbol not found for SpatiallyEmbeddedDevice<kotlin/Double>, <ERROR CLASS> ERROR CLASS: Symbol not found for LocalizedDevice, <ERROR CLASS> ERROR CLASS: Symbol not found for TimeAwareDevice<kotlin/Number>

Parameters

position type

Constructors

Link copied to clipboard
constructor(environmentAccess: Environment<Any, P>, node: Node<Any>, protelisDevice: ProtelisDevice<P>, reaction: Reaction<Any>, randomGenerator: ERROR CLASS: Symbol not found for RandomGenerator, networkManager: AlchemistNetworkManager)
constructor(environment: Environment<Any, P>, localNode: Node<Any>, reaction: Reaction<Any>, random: ERROR CLASS: Symbol not found for RandomGenerator, 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: Symbol not found for RandomGenerator

Functions

Link copied to clipboard
fun distanceTo(target: ERROR CLASS: Symbol not found for DeviceUID??): Double
fun distanceTo(target: Int): Double

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

Link copied to clipboard
open override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getCoordinates(): ERROR CLASS: Symbol not found for Tuple
Link copied to clipboard
open override fun getCurrentTime(): Double
Link copied to clipboard
open override fun getDeviceUID(): ERROR CLASS: Symbol not found for DeviceUID
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun instance(): AlchemistExecutionContext<P>
Link copied to clipboard
open override fun nbrDelay(): ERROR CLASS: Symbol not found for Field<kotlin/Number>
Link copied to clipboard
open override fun nbrLag(): ERROR CLASS: Symbol not found for Field<kotlin/Number>
Link copied to clipboard
open override fun nbrRange(): ERROR CLASS: Symbol not found for Field<kotlin/Double>
Link copied to clipboard
open override fun nbrVector(): ERROR CLASS: Symbol not found for Field<ERROR CLASS: Symbol not found for Tuple>
Link copied to clipboard
open override fun nextRandomDouble(): Double
Link copied to clipboard
fun routingDistance(dest: ERROR CLASS: Symbol not found for Tuple): Double

Computes the distance along a map. Requires a MapEnvironment.