peersim.transport
Interface RouterInfo
- All Known Implementing Classes:
- E2ETransport
public interface RouterInfo
Generic interface to be implemented by protocols that need to be assigned to
routers. The idea is that each node is assigned to a router, by
invoking setRouter(int)
method. Routers are identified by
integer indexes (starting from 0), based on the assumption that the
router network
is static. The router information is then used by different
implementations to compute latency, congestion, etc.
Method Summary |
int |
getRouter()
|
void |
setRouter(int router)
Associates the node hosting this transport protocol instance with
a router in the router network. |
setRouter
void setRouter(int router)
- Associates the node hosting this transport protocol instance with
a router in the router network.
- Parameters:
router
- the numeric index of the router
getRouter
int getRouter()
- Returns:
- the router associated to this transport protocol.