class AlchemistNetworkManager : 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(double) is called the transfer is actually done.
<init> |
AlchemistNetworkManager(environment: Environment<Any!, *>!, local: ProtelisNode<Position<*>!>!, executionTime: Reaction<Any!>!, program: RunProtelisProgram<*>!)AlchemistNetworkManager(environment: Environment<Any!, *>!, local: ProtelisNode<Position<*>!>!, executionTime: Reaction<Any!>!, program: RunProtelisProgram<*>!, retentionTime: Double) |
getNeighborState |
fun getNeighborState(): MutableMap<DeviceUID!, MutableMap<CodePath!, Any!>!>! |
getRetentionTime |
fun getRetentionTime(): Double |
shareState |
fun shareState(: MutableMap<CodePath!, Any!>!): Unit |
simulateMessageArrival |
Simulates the arrival of the message to other nodes. fun simulateMessageArrival(currentTime: Double): Unit |