#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 806 of file OSGeneral.h.
TimeSpan::TimeSpan | ( | ) |
TimeSpan::~TimeSpan | ( | ) |
bool TimeSpan::IsEqual | ( | TimeSpan * | that | ) |
A function to check for the equality of two objects.
Definition at line 1251 of file OSGeneral.cpp.
References isEqual(), unit, and value.
Referenced by TimeMeasurement::IsEqual().
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 1291 of file OSGeneral.cpp.
References OSRand(), unit, and value.
Referenced by TimeMeasurement::setRandom(), and JobOption::setRandom().
std::string TimeSpan::unit |
the unit in which time is measured
Definition at line 811 of file OSGeneral.h.
Referenced by OSResult::addTimingInformation(), OSOption::getMaxTimeUnit(), OSResult::getTimingInfoUnit(), IsEqual(), OSOption::setMaxTime(), OSOption::setMaxTimeUnit(), setRandom(), OSResult::setTimingInformation(), and OSrLWriter::writeOSrL().
double TimeSpan::value |
the number of units
Definition at line 814 of file OSGeneral.h.
Referenced by OSResult::addTimingInformation(), OSOption::getMaxTime(), OSResult::getTimeValue(), OSResult::getTimingInfoValue(), IsEqual(), OSOption::setMaxTime(), setRandom(), OSResult::setTimingInformation(), and OSrLWriter::writeOSrL().