|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectj_waste.network.RoutingTable
This class contains the routing table used in J-WASTE. Each entry consists of a GUID and a Connection, where the GUID identifies the route and the Connection is the next hop.
| Constructor Summary | |
RoutingTable()
|
|
| Method Summary | |
void |
addRoute(GUID guid,
Connection connection)
Adds a new route to the routing table. |
void |
deleteRoute(GUID guid)
Deletes the specified route from the routing table. |
Connection |
findRoute(GUID guid)
Checks whether a route associated with the specified GUID exists in the routing table. |
int |
size()
Returns the size of the routing table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RoutingTable()
| Method Detail |
public void addRoute(GUID guid,
Connection connection)
guid - The 16-byte GUID to be associated with this route.connection - The connection that is the next hop on this route.public void deleteRoute(GUID guid)
guid - The GUID of the route to be deleted.public Connection findRoute(GUID guid)
guid - The guid to search for in the routing table.
public int size()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||