flowsim.core
Class LinkImpl

java.lang.Object
  |
  +--flowsim.core.LinkImpl
Direct Known Subclasses:
FixedDelayLink

public abstract class LinkImpl
extends java.lang.Object
implements Link


Constructor Summary
LinkImpl(Simulator s, Node from, Node to, int bw)
           
 
Method Summary
 boolean add_flow(int fbw)
           
 void attach_monitor(LinkMonitor lmo)
           
 int get_bw()
           
abstract  int get_delay()
           
 Node get_from()
           
 int get_max_delay()
           
 int get_min_delay()
           
 LinkMonitor get_monitor()
           
 int get_rbw()
           
 Node get_to()
           
 void remove_flow(int fbw)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkImpl

public LinkImpl(Simulator s,
                Node from,
                Node to,
                int bw)
Method Detail

attach_monitor

public final void attach_monitor(LinkMonitor lmo)
Specified by:
attach_monitor in interface Link

get_monitor

public final LinkMonitor get_monitor()
Specified by:
get_monitor in interface Link

get_from

public final Node get_from()
Specified by:
get_from in interface Link

get_to

public final Node get_to()
Specified by:
get_to in interface Link

get_bw

public final int get_bw()
Specified by:
get_bw in interface Link

get_rbw

public final int get_rbw()
Specified by:
get_rbw in interface Link

get_delay

public abstract int get_delay()
Specified by:
get_delay in interface Link

get_min_delay

public int get_min_delay()
Specified by:
get_min_delay in interface Link

get_max_delay

public int get_max_delay()
Specified by:
get_max_delay in interface Link

add_flow

public boolean add_flow(int fbw)
Specified by:
add_flow in interface Link

remove_flow

public void remove_flow(int fbw)
Specified by:
remove_flow in interface Link

toString

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