Package-level declarations
Types
Link copied to clipboard
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>
Execution context that bridges the Alchemist simulation and the Protelis VM.
Link copied to clipboard
class AlchemistNetworkManager @JvmOverloads constructor(val event: Reaction<Any>, val device: ProtelisDevice<*> = event.node.asProperty(), val program: RunProtelisProgram<*>, val retentionTime: Double = Double.NaN, val distanceLossDistribution: RealDistribution? = null) : NetworkManager, Serializable
Emulates a NetworkManager. This particular network manager does not send messages instantly. Instead, it records the last message to send, and only when simulateMessageArrival is called the transfer is actually performed.