Definition at line 20 of file expclouduser.cc.
ExpCloudUser::ExpCloudUser |
( |
| ) |
|
Definition at line 84 of file expclouduser.cc.
88 bind_time(
"burst_time_", &
ontime_);
89 bind_time(
"idle_time_",
Offtime_.avgp());
90 bind_bw(
"rate_", &
rate_);
91 bind(
"packetSize_", &size_);
ExponentialRandomVariable random_tskmips_
double mean_response_time_
ExponentialRandomVariable burstlen_
ExponentialRandomVariable Offtime_
void ExpCloudUser::addDataCenterPointer |
( |
DataCenter * |
joindc_ | ) |
|
int ExpCloudUser::command |
( |
int |
argc, |
|
|
const char *const * |
argv |
|
) |
| |
Definition at line 57 of file expclouduser.cc.
61 if (strcmp(argv[1],
"use-rng") == 0) {
67 else if (strcmp(argv[1],
"set-rate") == 0) {
68 int new_rate = atoi(argv[2]);
78 return Application::command(argc,argv);
int process_command(int argc, const char *const *argv)
ExponentialRandomVariable burstlen_
ExponentialRandomVariable Offtime_
void ExpCloudUser::init |
( |
| ) |
|
|
protected |
double ExpCloudUser::next_interval |
( |
int & |
size | ) |
|
|
virtual |
Definition at line 118 of file expclouduser.cc.
ExponentialRandomVariable burstlen_
ExponentialRandomVariable Offtime_
void ExpCloudUser::timeout |
( |
| ) |
|
|
virtual |
Definition at line 141 of file expclouduser.cc.
146 if (nextPkttime_ !=
interval_ || nextPkttime_ == -1){
157 if (nextPkttime_ > 0)
158 timer_.resched(nextPkttime_);
virtual double next_interval(int &)
virtual void receivedTsk(int tsksize, CloudTask *pTask, const char *flags=0)
ExponentialRandomVariable ExpCloudUser::burstlen_ |
|
protected |
double ExpCloudUser::interval_ |
|
protected |
packet inter-arrival time during burst (sec)
Definition at line 35 of file expclouduser.cc.
double ExpCloudUser::offtime_ |
|
protected |
ExponentialRandomVariable ExpCloudUser::Offtime_ |
|
protected |
double ExpCloudUser::ontime_ |
|
protected |
double ExpCloudUser::rate_ |
|
protected |
unsigned int ExpCloudUser::rem_ |
|
protected |
number of packets left in current burst
Definition at line 36 of file expclouduser.cc.
The documentation for this class was generated from the following file: