public interface NetworkManager
Modifier and Type | Method and Description |
---|---|
java.util.Map<DeviceUID,java.util.Map<CodePath,java.lang.Object>> |
getNeighborState()
Called by
ProtelisVM during execution to collect the most recent
information available from neighbors. |
void |
shareState(java.util.Map<CodePath,java.lang.Object> toSend)
Called by
ProtelisVM during execution to send its current shared
state to neighbors. |
java.util.Map<DeviceUID,java.util.Map<CodePath,java.lang.Object>> getNeighborState()
ProtelisVM
during execution to collect the most recent
information available from neighbors. The call is serial within the
execution, so this should probably poll state maintained by a separate
thread, rather than gathering state during this call.ProtelisVM
will not
change it either.void shareState(java.util.Map<CodePath,java.lang.Object> toSend)
ProtelisVM
during execution to send its current shared
state to neighbors. The call is serial within the execution, so this
should probably queue up a message to be sent, rather than actually
carrying out a lengthy operations during this call.toSend
- Shared state to be transmitted to neighbors.