flowsim.core
Class NextHopFlow

java.lang.Object
  |
  +--flowsim.core.FlowImpl
        |
        +--flowsim.core.NextHopFlow

public final class NextHopFlow
extends FlowImpl
implements UnicastFlow

UnicastFlow special case which is not routed and which goes only from a source to one of it's neighbours. It doesn't have 'childs'.


Fields inherited from class flowsim.core.FlowImpl
DS_BEST_EFFORT, DS_UNKNOWN
 
Constructor Summary
NextHopFlow(Node from, LinkManager iface, int desired_bw, int flow_id, int ds)
           
 
Method Summary
 UnicastFlow add_child_same_node()
           
 void block()
           
 UnicastFlow get_child()
           
 LinkManager get_iface()
           
 UnicastFlow get_parent()
           
 Node get_to()
           
 void next_node(Node child_node)
           
 void set_parent_bw(int bw)
           
 void start()
           
 void stop()
           
 
Methods inherited from class flowsim.core.FlowImpl
attach_monitor, detach_monitor, forward, get_available_bw, get_bw, get_desired_bw, get_ds, get_flowid, get_from_service, get_from, get_total_bw, is_blocked, is_running, set_bw, set_desired_bw, set_ds, set_flowid, set_from_service, utility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NextHopFlow

public NextHopFlow(Node from,
                   LinkManager iface,
                   int desired_bw,
                   int flow_id,
                   int ds)
Method Detail

next_node

public void next_node(Node child_node)
Specified by:
next_node in interface UnicastFlow

get_to

public Node get_to()
Specified by:
get_to in interface UnicastFlow

get_parent

public UnicastFlow get_parent()
Specified by:
get_parent in interface UnicastFlow

get_child

public UnicastFlow get_child()
Specified by:
get_child in interface UnicastFlow

get_iface

public LinkManager get_iface()
Specified by:
get_iface in interface UnicastFlow

add_child_same_node

public UnicastFlow add_child_same_node()
Specified by:
add_child_same_node in interface UnicastFlow

set_parent_bw

public void set_parent_bw(int bw)
Specified by:
set_parent_bw in interface UnicastFlow

start

public void start()
Overrides:
start in class FlowImpl

stop

public void stop()
Overrides:
stop in class FlowImpl

block

public void block()
Overrides:
block in class FlowImpl