public interface Neighborhood
Modifier and Type | Method and Description |
---|---|
int |
getLocation()
Get the location of the local node
|
java.util.Collection<java.lang.Integer> |
getLocations()
Get all locations, period.
|
java.util.Collection<java.lang.Integer> |
getLocations(int networkID)
Get all locations associated with a given network type
|
boolean |
isConnectedTo(int destLoc)
Checks if given location is connected to local node, period.
|
boolean |
isConnectedTo(int destLoc,
int networkID)
Checks if given location is connected to local node via the given network type.
|
java.lang.String |
lookupIPAddress(int loc)
Lookup for given location's address
|
java.util.Map<java.lang.Integer,java.lang.String> |
lookupIPAddresses(int loc)
Lookup for all possible network-identifier/address pairs of a given location
|
int getLocation()
java.util.Collection<java.lang.Integer> getLocations(int networkID)
networkID
- the unique identifier of the networkjava.util.Collection<java.lang.Integer> getLocations()
boolean isConnectedTo(int destLoc, int networkID)
destLoc
- destination locationnetworkID
- unique identifier of the networkboolean isConnectedTo(int destLoc)
destLoc
- destination locationjava.lang.String lookupIPAddress(int loc)
loc
- location to lookupjava.util.Map<java.lang.Integer,java.lang.String> lookupIPAddresses(int loc)
loc
- location to lookup