AlchemistExecutionContext
constructor(environmentAccess: Environment<Any, P>, node: Node<Any>, protelisDevice: ProtelisDevice<P>, reaction: Reaction<Any>, randomGenerator: RandomGenerator, networkManager: AlchemistNetworkManager)(source)
Parameters
node
the local node hosting this execution context
protelisDevice
the device wrapper exposing node properties to Protelis
reaction
the reaction hosting the running Protelis program
networkManager
the network manager used to share state among neighbouring devices
Type Parameters
P
the position type used by the environment
constructor(environment: Environment<Any, P>, localNode: Node<Any>, reaction: Reaction<Any>, random: RandomGenerator, networkManager: AlchemistNetworkManager)(source)
Parameters
environment
the simulation Environment
localNode
the local Node
reaction
the Reaction hosting the program
random
the RandomGenerator for this simulation
networkManager
the AlchemistNetworkManager to be used