flowsim.slatr
Class SLATUserVoice
java.lang.Object
|
+--flowsim.slatr.UserImpl
|
+--flowsim.slatr.SLATUser
|
+--flowsim.slatr.SLATUserVoice
- public class SLATUserVoice
- extends SLATUser
- implements FlowMonitor
Constructor Summary |
SLATUserVoice(Simulator s,
Topology t,
Node node,
int port,
long budget,
long budget_incr,
int server_port,
int calls_per_second,
int mean_duration,
java.util.Random r,
NodeChooser to_chooser,
int flow_id,
float wtp_per_volume)
|
Methods inherited from class flowsim.slatr.SLATUser |
bid_received,
buy_best_bid,
buy,
get_profile,
print_stats,
receive_bid,
receive_confirm,
receive_reject,
remove_bid,
remove_sla,
send_ask,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
t
protected final Topology t
r
protected final java.util.Random r
arrival
protected final Distribution arrival
duration
protected final Distribution duration
to_chooser
protected final NodeChooser to_chooser
calls_per_second
protected final int calls_per_second
flow_id
protected final int flow_id
wtp_per_volume
protected final float wtp_per_volume
SLATUserVoice
public SLATUserVoice(Simulator s,
Topology t,
Node node,
int port,
long budget,
long budget_incr,
int server_port,
int calls_per_second,
int mean_duration,
java.util.Random r,
NodeChooser to_chooser,
int flow_id,
float wtp_per_volume)
- Parameters:
node
- node where the user residesport
- port where the user residesbudget_incr
- budget increase pro secondserver_port
- port of (unique) SLASeller for this usercalls_per_second
- number of calls per second which should be generated (randomly)mean_duration
- average duration of calls in microsecondsr
- Random object used to make random call distribution
utility_wtp
public int utility_wtp(SLA sla)
- willingness to pay for maximal utility
- Overrides:
- utility_wtp in class SLATUser
flow_started
public void flow_started(Flow f)
- Specified by:
- flow_started in interface FlowMonitor
flow_stopped
public void flow_stopped(Flow f)
- Specified by:
- flow_stopped in interface FlowMonitor
flow_blocked
public void flow_blocked(Flow f)
- Specified by:
- flow_blocked in interface FlowMonitor
flow_changed_bw
public void flow_changed_bw(Flow f,
int was_bw)
- Specified by:
- flow_changed_bw in interface FlowMonitor
flow_changed_desired_bw
public void flow_changed_desired_bw(Flow f,
int was_bw)
- Specified by:
- flow_changed_desired_bw in interface FlowMonitor
flow_changed_available_bw
public void flow_changed_available_bw(Flow f,
int was_bw)
- Specified by:
- flow_changed_available_bw in interface FlowMonitor
confirm_received
public void confirm_received(SLA sla)
- Overrides:
- confirm_received in class SLATUser
ask
protected void ask(SLA ideal)
- Overrides:
- ask in class SLATUser
bid_utility
public float bid_utility(SLA ideal,
SLA bid)
- definition:
bid_utility(ideal,ideal)=1, bid_utility(ideal,nothing)=0
- Overrides:
- bid_utility in class SLATUser