All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface magician.Node.RoutingProtocol

public interface RoutingProtocol
Interface for all Routing Protocols


Method Index

 o getnexthop(String)
should return the name of the neighbor to which Smartpacket should be delivered
 o PortDown(String)
called by the Routing Manager implements actions to take when port goes down
 o PortUp(String)
called by Routing Manager implements actions to take when port comes up

Methods

 o 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
 o 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
 o 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
1