#include <OSOption.h>
Collaboration diagram for SolverOptions:
Public Member Functions | |
SolverOptions () | |
Default constructor. | |
~SolverOptions () | |
Class destructor. | |
bool | IsEqual (SolverOptions *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 | setSolverOptions (int numberOfOptions, SolverOption **solverOption) |
A function to set an array of solver options. | |
bool | addSolverOption (std::string name, std::string value, std::string solver, std::string category, std::string type, std::string description) |
A function to add a solver option. | |
Public Attributes | |
int | numberOfSolverOptions |
the number of solver options | |
SolverOption ** | solverOption |
the list of solver options |
Definition at line 2965 of file OSOption.h.
SolverOptions::SolverOptions | ( | ) |
SolverOptions::~SolverOptions | ( | ) |
Class destructor.
Definition at line 1209 of file OSOption.cpp.
References numberOfSolverOptions, and solverOption.
bool SolverOptions::IsEqual | ( | SolverOptions * | that | ) |
A function to check for the equality of two objects.
Definition at line 10958 of file OSOption.cpp.
References numberOfSolverOptions, and solverOption.
bool SolverOptions::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 12117 of file OSOption.cpp.
References n, numberOfSolverOptions, OSRand(), SolverOption::setRandom(), and solverOption.
Referenced by OptimizationOption::setRandom().
bool SolverOptions::setSolverOptions | ( | int | numberOfOptions, | |
SolverOption ** | solverOption | |||
) |
A function to set an array of solver options.
numberOfOptions,: | number of solver options to be set | |
solverOption,: | the array of solver options that are to be set |
Definition at line 6652 of file OSOption.cpp.
References SolverOption::category, SolverOption::description, ErrorClass::errormsg, SolverOption::item, SolverOption::name, SolverOption::numberOfItems, numberOfSolverOptions, SolverOption::solver, solverOption, SolverOption::type, and SolverOption::value.
Referenced by OSOption::setSolverOptions().
bool SolverOptions::addSolverOption | ( | std::string | name, | |
std::string | value, | |||
std::string | solver, | |||
std::string | category, | |||
std::string | type, | |||
std::string | description | |||
) |
A function to add a solver option.
name,: | the name of the solver option (required) | |
value,: | a value associated with the option (optional) | |
solver,: | the solver to which the option applies (optional) | |
category,: | the category (and subcategories) of the option (optional) | |
type,: | the type of the option (optional) | |
description,: | a description associated with the option (optional) |
Definition at line 6707 of file OSOption.cpp.
References SolverOption::category, SolverOption::description, ErrorClass::errormsg, SolverOption::name, SolverOption::numberOfItems, numberOfSolverOptions, SolverOption::solver, solverOption, SolverOption::type, and SolverOption::value.
Referenced by OSOption::setAnotherSolverOption().
the number of solver options
Definition at line 2970 of file OSOption.h.
Referenced by addSolverOption(), OSOption::getNumberOfSolverOptions(), IsEqual(), OSOption::setNumberOfSolverOptions(), setRandom(), OSOption::setSolverOptionContent(), OSOption::setSolverOptions(), setSolverOptions(), and ~SolverOptions().
the list of solver options
Definition at line 2973 of file OSOption.h.
Referenced by addSolverOption(), OSOption::getAllSolverOptions(), IsEqual(), OSOption::setNumberOfSolverOptions(), setRandom(), OSOption::setSolverOptionContent(), setSolverOptions(), SolverOptions(), and ~SolverOptions().