AlchemistExecutionContext

class AlchemistExecutionContext<P : Position<P>>(val environmentAccess: Environment<Any, P>, node: Node<Any>, protelisDevice: ProtelisDevice<P>, reaction: Reaction<Any>, val randomGenerator: RandomGenerator, networkManager: AlchemistNetworkManager) : AbstractExecutionContext<AlchemistExecutionContext<P>> , SpatiallyEmbeddedDevice<Double> , LocalizedDevice, TimeAwareDevice<Number> (source)

Parameters

position type

Constructors

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

Functions

Link copied to clipboard
override fun <T : Any, R : Any> buildField(p0: Function<T, R>, p1: T): Field<R>
Link copied to clipboard
override fun <T : Any, R : Any> buildFieldDeferred(p0: Function<T, R>, p1: T, p2: Supplier<T>): Field<R>
Link copied to clipboard
override fun commit()
Link copied to clipboard
fun distanceTo(target: Int): Double
fun distanceTo(target: DeviceUID?): 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 override fun getCoordinates(): Tuple
Link copied to clipboard
open override fun getCurrentTime(): Double
Link copied to clipboard
open override fun getDeltaTime(): Number
Link copied to clipboard
open override fun getDeviceUID(): DeviceUID
Link copied to clipboard
override fun getExecutionEnvironment(): ExecutionEnvironment
Link copied to clipboard
override fun <P : Any> getPersistent(p0: Supplier<P>): P
Link copied to clipboard
fun getStoredState(): MutableMap<CodePath, Any>
Link copied to clipboard
override fun getVariable(p0: Reference): Any
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun nbrDelay(): Field<Number>
Link copied to clipboard
open override fun nbrLag(): Field<Number>
Link copied to clipboard
open override fun nbrRange(): Field<Double>
Link copied to clipboard
open override fun nbrVector(): Field<Tuple>
Link copied to clipboard
override fun newCallStackFrame(vararg p0: Byte)
override fun newCallStackFrame(vararg p0: Int)
Link copied to clipboard
open override fun nextRandomDouble(): Double
Link copied to clipboard
override fun putMultipleVariables(p0: MutableMap<Reference, *>)
Link copied to clipboard
override fun putVariable(p0: Reference, p1: Any)
Link copied to clipboard
override fun restrictDomain(@Nonnull p0: Field<*>): AlchemistExecutionContext<P>
Link copied to clipboard
override fun returnFromCallFrame()
Link copied to clipboard
fun routingDistance(dest: Tuple): Double

Computes the distance along a map. Requires a MapEnvironment.

Link copied to clipboard
override fun <T : Any> runInNewStackFrame(p0: Int, p1: Function<ExecutionContext, T>): T
Link copied to clipboard
override fun setGloballyAvailableReferences(p0: MutableMap<Reference, *>)
Link copied to clipboard
override fun setPersistent(p0: Any)
Link copied to clipboard
override fun setup()