Content-Based Networking Simulation Library Documentation (v. 1.2.1) |
Main workload generator class. The workload events that are generated by this class can be customized by adding WorkloadNodeProcessFactory
instances as required.
More...
#include <WorkloadGenerator.h>
Public Member Functions | |
WorkloadGenerator (std::ostream &out=std::cout) | |
Constructor allows the output stream to be set. | |
virtual | ~WorkloadGenerator () |
Destructor deletes any node or link process factories that have been added. | |
void | add (WorkloadNodeProcessFactory *wnpf) |
Add a node process factory to the internal list. | |
void | attr_max (int attr_max) |
Sets the SSBG attr_max parameter. | |
int | attr_max () const |
Returns the SSBG attr_max parameter. | |
void | attr_min (int attr_min) |
Sets the SSBG attr_min parameter. | |
int | attr_min () const |
Returns the SSBG attr_min parameter. | |
void | constr_max (int constr_max) |
Sets the SSBG constr_max parameter. | |
int | constr_max () const |
Returns the SSBG constr_max parameter. | |
void | constr_min (int constr_min) |
Sets the SSBG constr_min parameter. | |
int | constr_min () const |
Returns the SSBG constr_min parameter. | |
void | dist_dir (const std::string &dist_dir) |
Sets value to use for the SSBG dist directory. | |
const std::string & | dist_dir () const |
Returns the value used for the SSBG dist directory. | |
void | filt_max (int filt_max) |
Sets the SSBG filt_max parameter. | |
int | filt_max () const |
Returns the SSBG filt_max parameter. | |
void | filt_min (int filt_min) |
Sets the SSBG filt_min parameter. | |
int | filt_min () const |
Returns the SSBG filt_min parameter. | |
int | main (const std::string &prog, const std::vector< std::string > &args) throw ( std::exception ) |
Main entry point for the workload generator. | |
void | p_cmd (const std::string &p_cmd) |
Sets the p command. | |
const std::string & | p_cmd () const |
Returns the p command. | |
void | reuse_types (bool reuse_types) |
Sets the SSBG reuse_types parameter. | |
bool | reuse_types () const |
Returns the SSBG reuse_types parameter. | |
void | s_cmd (const std::string &s_cmd) |
Sets the s command. | |
const std::string & | s_cmd () const |
Returns the s command. | |
void | seed (long seed) |
Sets the random seed to be used. | |
long | seed () const |
Returns the random seed. | |
void | sim_length_min (int sim_length_min) |
Sets the sim_length_min parameter. | |
int | sim_length_min () const |
Returns the sim_length_min parameter. | |
void | topo_file (const std::string &topo_file) |
Sets the topology file name to use. | |
const std::string & | topo_file () const |
Returns the topology file name. | |
void | ttu_sec (double ttu_sec) |
Sets the topology time unit, default is 0.001 (what BRITE topologies are generated with). | |
double | ttu_sec () const |
Returns topology time unit. | |
void | wtu_sec (double wtu_sec) |
Sets the workload time unit, default is 1.0. | |
double | wtu_sec () const |
Returns workload time unit. |
Main workload generator class. The workload events that are generated by this class can be customized by adding WorkloadNodeProcessFactory
instances as required.
void cbnsim::WorkloadGenerator::add | ( | WorkloadNodeProcessFactory * | wnpf | ) |
Add a node process factory to the internal list.
The WorkloadGenerator is responsible for managing the memory associated with the WorkloadNodeProcessFactory.
void cbnsim::WorkloadGenerator::attr_max | ( | int | attr_max | ) | [inline] |
Sets the SSBG attr_max
parameter.
Default is 10.
void cbnsim::WorkloadGenerator::attr_min | ( | int | attr_min | ) | [inline] |
Sets the SSBG attr_min
parameter.
Default is 1.
void cbnsim::WorkloadGenerator::constr_max | ( | int | constr_max | ) | [inline] |
Sets the SSBG constr_max
parameter.
Default is 5.
void cbnsim::WorkloadGenerator::constr_min | ( | int | constr_min | ) | [inline] |
Sets the SSBG constr_min
parameter.
Default is 1.
void cbnsim::WorkloadGenerator::dist_dir | ( | const std::string & | dist_dir | ) | [inline] |
Sets value to use for the SSBG dist directory.
Defaults to $prefix/package-version/share/dist
.
void cbnsim::WorkloadGenerator::filt_max | ( | int | filt_max | ) | [inline] |
Sets the SSBG filt_max
parameter.
Defaults to 20.
void cbnsim::WorkloadGenerator::filt_min | ( | int | filt_min | ) | [inline] |
Sets the SSBG filt_min
parameter.
Defaults to 0.
void cbnsim::WorkloadGenerator::p_cmd | ( | const std::string & | p_cmd | ) | [inline] |
Sets the p command.
Valid values are 'ALL', '<int>' or '<real>'. Default is '0'.
void cbnsim::WorkloadGenerator::reuse_types | ( | bool | reuse_types | ) | [inline] |
Sets the SSBG reuse_types
parameter.
Default is 'false'.
void cbnsim::WorkloadGenerator::s_cmd | ( | const std::string & | s_cmd | ) | [inline] |
Sets the s command.
Valid values are 'ALL', '<int>' or '<real>'. Defaults to '0'.
void cbnsim::WorkloadGenerator::seed | ( | long | seed | ) | [inline] |
Sets the random seed to be used.
Default is the current time in milliseconds.
void cbnsim::WorkloadGenerator::sim_length_min | ( | int | sim_length_min | ) | [inline] |
Sets the sim_length_min
parameter.
Default to 0.
void cbnsim::WorkloadGenerator::topo_file | ( | const std::string & | topo_file | ) | [inline] |
Sets the topology file name to use.
Default is empty.
Copyright © 2001-2004 University of Colorado.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". This documentation is authored and maintained by Matthew J. Rutherford |