flowsim.core
Class RouterImpl
java.lang.Object
|
+--flowsim.core.RouterImpl
- Direct Known Subclasses:
- DVRouterImpl
- public abstract class RouterImpl
- extends java.lang.Object
- implements Router, Service, NodeMonitor
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
s
protected final Simulator s
node
protected final Node node
port
protected final int port
RouterImpl
public RouterImpl(Simulator s,
Node node,
int port)
route
public abstract void route(Flow flow)
- Specified by:
- route in interface Router
get_node
public final Node get_node()
- Specified by:
- get_node in interface Service
get_port
public final int get_port()
- Specified by:
- get_port in interface Service
iface_changed
public void iface_changed(Node n,
int i)
- Specified by:
- iface_changed in interface NodeMonitor