#include <OSGeneral.h>
Inheritance diagram for TimeSpan:


Public Member Functions | |
| TimeSpan () | |
| Default constructor. | |
| ~TimeSpan () | |
| Class destructor. | |
| bool | IsEqual (TimeSpan *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 time is measured | |
| double | value |
| the number of units | |
Definition at line 801 of file OSGeneral.h.
| TimeSpan::TimeSpan | ( | ) |
| TimeSpan::~TimeSpan | ( | ) |
| bool TimeSpan::IsEqual | ( | TimeSpan * | that | ) |
| bool TimeSpan::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) |
Reimplemented in TimeMeasurement.
Definition at line 1245 of file OSGeneral.cpp.
References OSRand(), unit, and value.
Referenced by JobOption::setRandom().
| std::string TimeSpan::unit |
the unit in which time is measured
Definition at line 805 of file OSGeneral.h.
Referenced by OSResult::addTimingInformation(), OSOption::getMaxTimeUnit(), IsEqual(), OSOption::setMaxTime(), OSOption::setMaxTimeUnit(), setRandom(), OSResult::setTimingInformation(), and OSrLWriter::writeOSrL().
| double TimeSpan::value |
the number of units
Definition at line 808 of file OSGeneral.h.
Referenced by OSResult::addTimingInformation(), OSOption::getMaxTime(), OSResult::getTimeValue(), IsEqual(), OSOption::setMaxTime(), setRandom(), OSResult::setTimingInformation(), and OSrLWriter::writeOSrL().
1.4.7