|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A link object simulates the physical behaviour of a real-link. It does have a total bandwidth, which can be used by flows which circulate on it. The unused bandwidth is called 'residual bandwidth'. A link is in flowsim like a bucket which can be filled up-to it's capacity. The delay (for the added packet, maximal and minimal) can be also asked from the link object.
The packet queuing implementation could be simulated in flowsim by modelling the delay with a function of the residual bandwidth.
FixedDelayLink
Method Summary | |
boolean |
add_flow(int fbw)
Add a flow on the link. |
void |
attach_monitor(LinkMonitor lmo)
Attach a LinkMonitor on the link. |
int |
get_bw()
Get the total bandwidth of the link. |
int |
get_delay()
Get the (probable) delay which would have a flow sent now. |
Node |
get_from()
Get the source node. |
int |
get_max_delay()
Get the maximal delay that a flow can take on this link. |
int |
get_min_delay()
Get the minimal delay that a flow can take on this link. |
LinkMonitor |
get_monitor()
Get attached monitor. |
int |
get_rbw()
Get the residual bandwidth of the link. |
Node |
get_to()
Get the destination node. |
void |
remove_flow(int fbw)
Remove a flow from the link. |
Method Detail |
public Node get_from()
public Node get_to()
public int get_bw()
public int get_rbw()
public int get_delay()
public int get_min_delay()
public int get_max_delay()
public boolean add_flow(int fbw)
public void remove_flow(int fbw)
public void attach_monitor(LinkMonitor lmo)
public LinkMonitor get_monitor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |