|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetwork
Central hub for all network related information. The network knows about the root node (you) all nodes connected to the root node and all known nodes. A network listener can be attached to the network to be notified about changes in the network topology.
Clients must not implement.
EvolutionPlayerCore.getNetwork()
Nested Class Summary | |
---|---|
static class |
INetwork.NetworkListener
A listener for changes in the network |
Method Summary | |
---|---|
void |
addNetworkListener(INetwork.NetworkListener listener)
Add the given listener to the list of network listeners. |
IRemoteNetworkNode[] |
getConnectedNodes()
Get all nodes to which the root is connected to. |
IRemoteNetworkNode[] |
getKnownNodes()
Get all nodes known to the network. |
IRemoteNetworkNode |
getNode(java.util.UUID uuid)
Find the node with the given id, if known. |
IClient |
getRoot()
The root node of the network. |
void |
removeNetworkListener(INetwork.NetworkListener listener)
Remove the given listener from the list of network listeners. |
Method Detail |
---|
IClient getRoot()
IRemoteNetworkNode getNode(java.util.UUID uuid)
uuid
- the id of the node the retrieve
IRemoteNetworkNode[] getConnectedNodes()
IRemoteNetworkNode[] getKnownNodes()
void addNetworkListener(INetwork.NetworkListener listener)
listener
- the listener to addvoid removeNetworkListener(INetwork.NetworkListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |