flowsim.slatr
Class SLATRouterLazy

java.lang.Object
  |
  +--flowsim.slatr.SLATRouter
        |
        +--flowsim.slatr.SLATRouterImpl
              |
              +--flowsim.slatr.SLATRouterLazy

public class SLATRouterLazy
extends SLATRouterImpl


Fields inherited from class flowsim.slatr.SLATRouter
buyer_profile, ds_numbers, GIVENSLA_EXPIRATION_MARGIN, ifaces, links_rbw, next_peer_nr, node, peer_iface, peer_number, peer_service, peers, port, routed_flows, s, sla_map
 
Constructor Summary
SLATRouterLazy(Simulator s, Node node, int port, int local_peers, long budget, long fixed_costs, java.util.Random random)
           
 
Method Summary
protected  void ask_if_needed(SLABuyer buyer, Node dest, int bw, int max_delay, long exp)
           
protected  SLA best_bid(Node dest, int min_bw, int max_bw, int max_dl, long max_cost, long exp)
          find bid with best price/volume
protected  void bid_received(SLA bid)
           
protected  void buy_best(Node dest, int bw, int max_delay, long exp)
           
 void receive_ask(SLATP_Ask msg)
           
 java.lang.String toString()
           
 
Methods inherited from class flowsim.slatr.SLATRouterImpl
accept_bid, add_neighbour_bid, add_neighbour_bids, buy_slas, confirm_received, confirm_sent, get_bw_taken_sla_same_class, get_bw_taken_sla, get_rbwbw_taken_sla_same_class, get_rbwbw_taken_sla, has_link_space, iface_changed, make_bids, price_volume, price, reject_received, reject_sent, run, send_best_bid, send_confirm_for_accept, start
 
Methods inherited from class flowsim.slatr.SLATRouter
add_buyer, add_to_budget, debug_table, debug_table, expire_taken, flow_blocked, flow_changed_available_bw, flow_changed_bw, flow_changed_desired_bw, flow_started, flow_stopped, get_node, get_peer, get_peer, get_port, get_profile, receive_accept, receive_bid, receive_confirm, receive_reject, release_link_for_sla, remove_from_budget, remove_given_bid, remove_given_sla, remove_taken_bid, remove_taken_sla, reserve_link_for_sla, route, send_accept, send_ask, send_bid, send_confirm, send_reject, taken_bw_changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SLATRouterLazy

public SLATRouterLazy(Simulator s,
                      Node node,
                      int port,
                      int local_peers,
                      long budget,
                      long fixed_costs,
                      java.util.Random random)
Method Detail

bid_received

protected void bid_received(SLA bid)
Overrides:
bid_received in class SLATRouterImpl

receive_ask

public void receive_ask(SLATP_Ask msg)
Overrides:
receive_ask in class SLATRouterImpl

ask_if_needed

protected void ask_if_needed(SLABuyer buyer,
                             Node dest,
                             int bw,
                             int max_delay,
                             long exp)

buy_best

protected void buy_best(Node dest,
                        int bw,
                        int max_delay,
                        long exp)

best_bid

protected SLA best_bid(Node dest,
                       int min_bw,
                       int max_bw,
                       int max_dl,
                       long max_cost,
                       long exp)
find bid with best price/volume

toString

public java.lang.String toString()
Overrides:
toString in class SLATRouterImpl