#include <OSResult.h>
Collaboration diagram for OtherSolutionResult:
Public Member Functions | |
OtherSolutionResult () | |
Default constructor. | |
~OtherSolutionResult () | |
Class destructor. | |
bool | IsEqual (OtherSolutionResult *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 | name |
the name of the result the user is defining | |
std::string | category |
this element allows a specific category to be associated with this particular type of result | |
std::string | description |
a brief description of the type of result | |
int | numberOfItems |
the number of items contained in this otherSolutionResult | |
std::string * | item |
an array of items (string-valued) |
Definition at line 1880 of file OSResult.h.
OtherSolutionResult::OtherSolutionResult | ( | ) |
OtherSolutionResult::~OtherSolutionResult | ( | ) |
bool OtherSolutionResult::IsEqual | ( | OtherSolutionResult * | that | ) |
A function to check for the equality of two objects.
Definition at line 7732 of file OSResult.cpp.
References category, DEBUG_ISEQUAL_ROUTINES, description, item, name, and numberOfItems.
bool OtherSolutionResult::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" atrbutes and <XXX> children) |
Definition at line 8945 of file OSResult.cpp.
References category, item, n, numberOfItems, and OSRand().
Referenced by OtherSolutionResults::setRandom().
std::string OtherSolutionResult::name |
the name of the result the user is defining
Definition at line 1885 of file OSResult.h.
Referenced by OSResult::getOtherSolutionResultName(), IsEqual(), and OSResult::setOtherSolutionResultName().
std::string OtherSolutionResult::category |
this element allows a specific category to be associated with this particular type of result
Definition at line 1890 of file OSResult.h.
Referenced by OSResult::getOtherSolutionResultCategory(), IsEqual(), OSResult::setOtherSolutionResultCategory(), and setRandom().
std::string OtherSolutionResult::description |
a brief description of the type of result
Definition at line 1893 of file OSResult.h.
Referenced by OSResult::getOtherSolutionResultDescription(), IsEqual(), and OSResult::setOtherSolutionResultDescription().
the number of items contained in this otherSolutionResult
Definition at line 1897 of file OSResult.h.
Referenced by OSResult::getOtherSolutionResultItem(), OSResult::getOtherSolutionResultNumberOfItems(), IsEqual(), OSResult::setOtherSolutionResultNumberOfItems(), and setRandom().
std::string* OtherSolutionResult::item |
an array of items (string-valued)
Definition at line 1901 of file OSResult.h.
Referenced by OSResult::getOtherSolutionResultItem(), IsEqual(), OSResult::setOtherSolutionResultItem(), OSResult::setOtherSolutionResultNumberOfItems(), setRandom(), and ~OtherSolutionResult().