AlchemistNetworkManager
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
Content copied to clipboard
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.
Constructors
Link copied to clipboard
fun AlchemistNetworkManager( event: Reaction<Any>, device: ProtelisDevice<*> = event.node.asProperty(), program: RunProtelisProgram<*>, retentionTime: Double = Double.NaN, distanceLossDistribution: RealDistribution? = null)
Content copied to clipboard
Types
Functions
Link copied to clipboard
open override fun getNeighborState(): ImmutableMap<DeviceUID, Map<CodePath, Any>>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Simulates the arrival of the message to other nodes.
Properties
Link copied to clipboard
The ProtelisDevice required to run Protelis.