flowsim.core
Interface RoutedFlow

All Known Implementing Classes:
RoutedFlowImpl

public abstract interface RoutedFlow
extends Flow

Interface implemented by flows which can be routed by Routers. The router_port property is used to get the right router on the nodes (via node.get_service(router_port))

See Also:
Router, Node.get_service(int)

Method Summary
 void forward(LinkManager lm)
          Forward this flow on a interface.
 int get_router_port()
          Get router port of the routers which should process this flow.
 void set_router_port(int port)
          Set router port of the routers which should process this flow.
 
Methods inherited from interface flowsim.core.Flow
attach_monitor, block, detach_monitor, get_available_bw, get_bw, get_desired_bw, get_ds, get_flowid, get_from_service, get_from, is_blocked, is_running, set_bw, set_desired_bw, set_ds, set_flowid, set_from_service, start, stop, utility
 

Method Detail

get_router_port

public int get_router_port()
Get router port of the routers which should process this flow.

set_router_port

public void set_router_port(int port)
Set router port of the routers which should process this flow.

forward

public void forward(LinkManager lm)
Forward this flow on a interface. This function is normally called by a Router when it has decided on which interface this flow should go next.
Parameters:
lm - the interface (in form of a LinkManager) on which the flow should be forwarded.
See Also:
Router