flowsim.dv
Class DVRouterImpl

java.lang.Object
  |
  +--flowsim.core.RouterImpl
        |
        +--flowsim.dv.DVRouterImpl
Direct Known Subclasses:
CBDVRouter

public class DVRouterImpl
extends RouterImpl
implements DVRouter


Field Summary
static int INFINITY
           
 
Fields inherited from class flowsim.core.RouterImpl
node, port, s
 
Constructor Summary
DVRouterImpl(Simulator s, Node n, int r)
           
 
Method Summary
protected  int cost_threshold()
           
 void debug_table()
           
static ServiceFactory factory(Simulator s)
           
 void iface_changed(Node n, int i)
           
protected  int link_cost(int iface)
           
 void receive_update(Node from, DVTable t)
           
 void route(Flow flow)
           
protected  void run()
           
 java.lang.String toString()
           
 
Methods inherited from class flowsim.core.RouterImpl
get_node, get_port
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFINITY

public static final int INFINITY
Constructor Detail

DVRouterImpl

public DVRouterImpl(Simulator s,
                    Node n,
                    int r)
Method Detail

factory

public static ServiceFactory factory(Simulator s)

receive_update

public void receive_update(Node from,
                           DVTable t)
Specified by:
receive_update in interface DVRouter

cost_threshold

protected int cost_threshold()

link_cost

protected int link_cost(int iface)

run

protected void run()

iface_changed

public final void iface_changed(Node n,
                                int i)
Overrides:
iface_changed in class RouterImpl

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

debug_table

public void debug_table()
Specified by:
debug_table in interface DVRouter

route

public void route(Flow flow)
Overrides:
route in class RouterImpl