7 "@(#) $Header: /cvsroot/nsnam/ns-2/tools/pareto.cc,v 1.9 2005/08/26 05:05:31 tomh Exp $";
21 int command(
int argc,
const char*
const* argv);
47 TclObject*
create(
int,
const char*
const*) {
59 Tcl& tcl = Tcl::instance();
61 if (strcmp(argv[1],
"use-rng") == 0) {
62 rng_ = (RNG*)TclObject::lookup(argv[2]);
64 tcl.resultf(
"no such RNG %s", argv[2]);
70 else if (strcmp(argv[1],
"join-datacenter") == 0) {
80 return Application::command(argc,argv);
85 bind_time(
"burst_time_", &
ontime_);
87 bind_bw(
"rate_", &
rate_);
89 bind(
"packetSize_", &size_);
147 if (nextPkttime_ > 0)
148 timer_.resched(nextPkttime_);
POOTrafficClass class_pareto_clouduser
int command(int argc, const char *const *argv)
static const char rcsid[]
virtual void receivedTsk(int tsksize, CloudTask *pTask, const char *flags=0)
virtual double next_interval(int &)
TclObject * create(int, const char *const *)