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


Field Summary
protected  Node node
           
protected  int port
           
protected  Simulator s
           
 
Constructor Summary
RouterImpl(Simulator s, Node node, int port)
           
 
Method Summary
 Node get_node()
           
 int get_port()
           
 void iface_changed(Node n, int i)
           
abstract  void route(Flow flow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s

protected final Simulator s

node

protected final Node node

port

protected final int port
Constructor Detail

RouterImpl

public RouterImpl(Simulator s,
                  Node node,
                  int port)
Method Detail

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