flowsim.core
Class FlowImpl
java.lang.Object
|
+--flowsim.core.FlowImpl
- Direct Known Subclasses:
- NextHopFlow, RoutedFlowImpl
- public class FlowImpl
- extends java.lang.Object
- implements Flow
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DS_UNKNOWN
public static final int DS_UNKNOWN
DS_BEST_EFFORT
public static final int DS_BEST_EFFORT
FlowImpl
public FlowImpl(Node from,
int bw,
int flow,
int ds)
FlowImpl
public FlowImpl(Service from,
int bw,
int flow,
int ds)
attach_monitor
public final void attach_monitor(FlowMonitor monitor)
- Specified by:
- attach_monitor in interface Flow
detach_monitor
public final void detach_monitor(FlowMonitor monitor)
- Specified by:
- detach_monitor in interface Flow
get_from
public final Node get_from()
- Specified by:
- get_from in interface Flow
get_from_service
public final Service get_from_service()
- Specified by:
- get_from_service in interface Flow
set_from_service
public final void set_from_service(Service service)
- Specified by:
- set_from_service in interface Flow
get_bw
public final int get_bw()
- Specified by:
- get_bw in interface Flow
get_total_bw
public int get_total_bw()
get_flowid
public final int get_flowid()
- Specified by:
- get_flowid in interface Flow
set_flowid
public final void set_flowid(int flowid)
- Specified by:
- set_flowid in interface Flow
get_ds
public final int get_ds()
- Specified by:
- get_ds in interface Flow
set_ds
public void set_ds(int ds)
- Specified by:
- set_ds in interface Flow
set_bw
public void set_bw(int abw,
int bw)
- Specified by:
- set_bw in interface Flow
get_desired_bw
public int get_desired_bw()
- Specified by:
- get_desired_bw in interface Flow
set_desired_bw
public void set_desired_bw(int desired_bw)
- Specified by:
- set_desired_bw in interface Flow
get_available_bw
public int get_available_bw()
- Specified by:
- get_available_bw in interface Flow
start
public void start()
- Specified by:
- start in interface Flow
stop
public void stop()
- Specified by:
- stop in interface Flow
block
public void block()
- Specified by:
- block in interface Flow
is_running
public boolean is_running()
- Specified by:
- is_running in interface Flow
is_blocked
public boolean is_blocked()
- Specified by:
- is_blocked in interface Flow
utility
public double utility()
- Specified by:
- utility in interface Flow
forward
public void forward(LinkManager lm)