the OtherConstraintOption class. More...
#include <OSOption.h>
Public Member Functions | |
OtherConstraintOption () | |
Default constructor. | |
~OtherConstraintOption () | |
Class destructor. | |
bool | IsEqual (OtherConstraintOption *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. | |
bool | deepCopyFrom (OtherConstraintOption *that) |
A function to make a deep copy of an instance of this class. | |
bool | setCon (int numberOfCon, OtherConOption **con) |
A function to set an array of <con> elements. | |
bool | addCon (int idx, std::string value, std::string lbValue, std::string ubValue) |
A function to add a <con> element. | |
Public Attributes | |
int | numberOfCon |
number of <con> children | |
int | numberOfEnumerations |
number of <enumeration> child elements | |
std::string | name |
name of the option | |
std::string | value |
value of the option | |
std::string | solver |
name of the solver to which this option applies | |
std::string | category |
name of the category into which this option falls | |
std::string | type |
type of the option value (integer, double, boolean, string) | |
std::string | description |
description of the option | |
OtherConOption ** | con |
array of option values | |
std::string | conType |
type of the values in the con array | |
OtherOptionEnumeration ** | enumeration |
std::string | enumType |
type of the values in the enumeration array |
the OtherConstraintOption class.
Definition at line 3155 of file OSOption.h.
OtherConstraintOption::OtherConstraintOption | ( | ) |
Default constructor.
Definition at line 1095 of file OSOption.cpp.
OtherConstraintOption::~OtherConstraintOption | ( | ) |
Class destructor.
Definition at line 1114 of file OSOption.cpp.
bool OtherConstraintOption::IsEqual | ( | OtherConstraintOption * | that | ) |
A function to check for the equality of two objects.
Definition at line 11956 of file OSOption.cpp.
bool OtherConstraintOption::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 13181 of file OSOption.cpp.
bool OtherConstraintOption::deepCopyFrom | ( | OtherConstraintOption * | that | ) |
A function to make a deep copy of an instance of this class.
that,: | the instance from which information is to be copied |
Definition at line 14255 of file OSOption.cpp.
bool OtherConstraintOption::setCon | ( | int | numberOfCon, | |
OtherConOption ** | con | |||
) |
A function to set an array of <con> elements.
numberOfCon,: | number of <con> elements to be set | |
obj,: | the array of <con> elements that are to be set |
Definition at line 7186 of file OSOption.cpp.
bool OtherConstraintOption::addCon | ( | int | idx, | |
std::string | value, | |||
std::string | lbValue, | |||
std::string | ubValue | |||
) |
A function to add a <con> element.
idx,: | the index of the constraint | |
value,: | the value associated with this constraint | |
lbValue,: | a lower bound associated with this constraint | |
ubValue,: | an upper bound associated with this constraint |
Definition at line 7225 of file OSOption.cpp.
number of <con> children
Definition at line 3160 of file OSOption.h.
number of <enumeration> child elements
Definition at line 3163 of file OSOption.h.
std::string OtherConstraintOption::name |
name of the option
Definition at line 3166 of file OSOption.h.
std::string OtherConstraintOption::value |
value of the option
Definition at line 3169 of file OSOption.h.
std::string OtherConstraintOption::solver |
name of the solver to which this option applies
Definition at line 3172 of file OSOption.h.
std::string OtherConstraintOption::category |
name of the category into which this option falls
Definition at line 3175 of file OSOption.h.
std::string OtherConstraintOption::type |
type of the option value (integer, double, boolean, string)
Definition at line 3178 of file OSOption.h.
std::string OtherConstraintOption::description |
description of the option
Definition at line 3181 of file OSOption.h.
array of option values
Definition at line 3184 of file OSOption.h.
std::string OtherConstraintOption::conType |
type of the values in the con array
Definition at line 3187 of file OSOption.h.
Definition at line 3193 of file OSOption.h.
std::string OtherConstraintOption::enumType |
type of the values in the enumeration array
Definition at line 3196 of file OSOption.h.