|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A flow simulates a stream of data packets in the network. Flow objects have a source node (from), bandwidth (bw), flow-id (flowid) and differentiated-services-id (ds). They can be started, stopped, blocked and forwarded to an interface.
Node
Method Summary | |
void |
attach_monitor(FlowMonitor monitor)
Add a FlowMonitor to this flow. |
void |
block()
Block the flow. |
void |
detach_monitor(FlowMonitor monitor)
Remove a FlowMonitor from this flow. |
int |
get_available_bw()
Get maximal bandwidth which will be given to this flow, if it "desired" maximal bandwidth. |
int |
get_bw()
Get bandwidth used/required by this flow. |
int |
get_desired_bw()
Get wanted bandwidth of this flow. |
int |
get_ds()
Get differentiated-services 'byte' of this flow. |
int |
get_flowid()
Set flow-id of this flow. |
Service |
get_from_service()
Get source service. |
Node |
get_from()
Get source node. |
boolean |
is_blocked()
Was this flow blocked? |
boolean |
is_running()
Is this flow still active (i.e. |
void |
set_bw(int available_bw,
int bw)
Set available and used bandwidth by this flow. |
void |
set_desired_bw(int bw)
Set wanted bandwidth of this flow. |
void |
set_ds(int ds)
Set differentiated-services 'byte' of this flow. |
void |
set_flowid(int flowid)
Get flow-id of this flow. |
void |
set_from_service(Service from)
Set source service. |
void |
start()
Start the flow of data. |
void |
stop()
Stop the flow. |
double |
utility()
Utility of this flow. |
Method Detail |
public Node get_from()
public Service get_from_service()
public void set_from_service(Service from)
public int get_bw()
public int get_desired_bw()
public int get_available_bw()
public void set_bw(int available_bw, int bw)
bw
- bandwidth in bits/second.public void set_desired_bw(int bw)
bw
- bandwidth in bits/second.LinkManager
public int get_flowid()
public void set_flowid(int flowid)
public int get_ds()
public void set_ds(int ds)
public void start()
public void stop()
public void block()
public boolean is_running()
public boolean is_blocked()
public double utility()
public void attach_monitor(FlowMonitor monitor)
public void detach_monitor(FlowMonitor monitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |