#include <OSGeneral.h>
Collaboration diagram for CPUSpeed:
Public Member Functions | |
CPUSpeed () | |
Default constructor. | |
~CPUSpeed () | |
Class destructor. | |
bool | IsEqual (CPUSpeed *that) |
A function to check for the equality of two objects. | |
bool | setRandom (double density, bool conformant) |
A function to make a random instance of this class. | |
Public Attributes | |
std::string | unit |
the unit in which CPU speed is measured | |
std::string | description |
additional description about the CPU speed | |
double | value |
the CPU speed (expressed in multiples of unit) |
Definition at line 709 of file OSGeneral.h.
CPUSpeed::CPUSpeed | ( | ) |
CPUSpeed::~CPUSpeed | ( | ) |
bool CPUSpeed::IsEqual | ( | CPUSpeed * | that | ) |
A function to check for the equality of two objects.
Definition at line 1115 of file OSGeneral.cpp.
References description, isEqual(), unit, and value.
bool CPUSpeed::setRandom | ( | double | density, | |
bool | conformant | |||
) |
A function to make a random instance of this class.
density,: | corresponds to the probability that a particular child element is created | |
conformant,: | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children) |
Definition at line 1156 of file OSGeneral.cpp.
References description, OSRand(), unit, and value.
Referenced by JobResult::setRandom(), SystemResult::setRandom(), and SystemOption::setRandom().
std::string CPUSpeed::unit |
the unit in which CPU speed is measured
Definition at line 714 of file OSGeneral.h.
Referenced by OSResult::getAvailableCPUSpeedUnit(), OSOption::getMinCPUSpeedUnit(), OSResult::getUsedCPUSpeedUnit(), IsEqual(), OSResult::setAvailableCPUSpeedUnit(), OSOption::setMinCPUSpeed(), OSOption::setMinCPUSpeedUnit(), setRandom(), OSResult::setUsedCPUSpeedUnit(), and OSrLWriter::writeOSrL().
std::string CPUSpeed::description |
additional description about the CPU speed
Definition at line 717 of file OSGeneral.h.
Referenced by OSResult::getAvailableCPUSpeedDescription(), OSOption::getMinCPUSpeedDescription(), OSResult::getUsedCPUSpeedDescription(), IsEqual(), OSResult::setAvailableCPUSpeedDescription(), OSOption::setMinCPUSpeed(), setRandom(), OSResult::setUsedCPUSpeedDescription(), and OSrLWriter::writeOSrL().
double CPUSpeed::value |
the CPU speed (expressed in multiples of unit)
Definition at line 720 of file OSGeneral.h.
Referenced by OSResult::getAvailableCPUSpeedValue(), OSOption::getMinCPUSpeed(), OSResult::getUsedCPUSpeedValue(), IsEqual(), OSResult::setAvailableCPUSpeedValue(), OSOption::setMinCPUSpeed(), setRandom(), OSResult::setUsedCPUSpeedValue(), and OSrLWriter::writeOSrL().