#include <OSGeneral.h>
Collaboration diagram for CPUNumber:

Public Member Functions | |
| CPUNumber () | |
| Default constructor. | |
| ~CPUNumber () | |
| Class destructor. | |
| bool | IsEqual (CPUNumber *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 | description |
| additional description about the CPU | |
| int | value |
| the number of CPUs | |
Definition at line 756 of file OSGeneral.h.
| CPUNumber::CPUNumber | ( | ) |
| CPUNumber::~CPUNumber | ( | ) |
| bool CPUNumber::IsEqual | ( | CPUNumber * | that | ) |
A function to check for the equality of two objects.
Definition at line 1151 of file OSGeneral.cpp.
References description, and value.
| bool CPUNumber::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 1187 of file OSGeneral.cpp.
References description, OSRand(), and value.
Referenced by SystemOption::setRandom().
| std::string CPUNumber::description |
additional description about the CPU
Definition at line 760 of file OSGeneral.h.
Referenced by OSOption::getMinCPUNumberDescription(), IsEqual(), OSResult::setAvailableCPUNumberDescription(), OSOption::setMinCPUNumber(), setRandom(), OSResult::setUsedCPUNumberDescription(), and OSrLWriter::writeOSrL().
| int CPUNumber::value |
the number of CPUs
Definition at line 763 of file OSGeneral.h.
Referenced by OSOption::getMinCPUNumber(), IsEqual(), OSResult::setAvailableCPUNumberValue(), OSOption::setMinCPUNumber(), setRandom(), OSResult::setUsedCPUNumberValue(), and OSrLWriter::writeOSrL().
1.4.7