AlchemistExecutionContext
Execution context that bridges the Alchemist simulation and the Protelis VM.
This class provides Protelis with the device identity, coordinates, timing and network-related information retrieved from the hosting Alchemist simulation objects.
Parameters
the local node hosting this execution context
the device wrapper exposing node properties to Protelis
the reaction hosting the running Protelis program
the network manager used to share state among neighbouring devices
Type Parameters
the position type used by the environment
Constructors
Properties
The device position, in form of Position.
Experimental access to the simulated environment, for building oracles.
The internal random generator used by the execution context.
Functions
Computes the distance between two nodes, through Environment.getDistanceBetweenNodes.
Computes the distance along a map. Requires a MapEnvironment.