All Packages Class Hierarchy This Package Previous Next Index
Interface magician.Node.RoutingProtocol
- public interface RoutingProtocol
Interface for all Routing Protocols
-
getnexthop(String)
- should return the name of the neighbor to which
Smartpacket should be delivered
-
PortDown(String)
- called by the Routing Manager
implements actions to take when port goes down
-
PortUp(String)
- called by Routing Manager
implements actions to take when port comes up
PortUp
public abstract void PortUp(String addr)
- called by Routing Manager
implements actions to take when port comes up
- Parameters:
- addr - the name of the neighbor on the port
PortDown
public abstract void PortDown(String addr)
- called by the Routing Manager
implements actions to take when port goes down
- Parameters:
- addr - the name of the port
getnexthop
public abstract String getnexthop(String destination) throws NoRouteToHostException
- should return the name of the neighbor to which
Smartpacket should be delivered
- Parameters:
- destination - the node to which a route is requested
- Returns:
- name of the neighboring node
All Packages Class Hierarchy This Package Previous Next Index