#include <OSOption.h>
Public Member Functions | |
Processes () | |
Default constructor. | |
~Processes () | |
Class destructor. | |
bool | IsEqual (Processes *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 | setProcess (int numberOfProcesses, std::string *process) |
A function to set an array of <process> elements. | |
bool | addProcess (std::string process) |
A function to add a <process> element. | |
Public Attributes | |
int | numberOfProcesses |
the number of <process> children | |
std::string * | process |
the list of processes |
Definition at line 915 of file OSOption.h.
Processes::Processes | ( | ) |
Processes::~Processes | ( | ) |
bool Processes::IsEqual | ( | Processes * | that | ) |
A function to check for the equality of two objects.
Definition at line 9606 of file OSOption.cpp.
References numberOfProcesses, and process.
bool Processes::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 11449 of file OSOption.cpp.
References n, numberOfProcesses, OSRand(), and process.
Referenced by JobOption::setRandom().
bool Processes::setProcess | ( | int | numberOfProcesses, | |
std::string * | process | |||
) |
A function to set an array of <process> elements.
numberOfProcesses,: | number of <process> elements to be set | |
path,: | the array of <process> elements that are to be set |
Definition at line 4834 of file OSOption.cpp.
Referenced by OSOption::setProcessesToKill().
bool Processes::addProcess | ( | std::string | process | ) |
A function to add a <process> element.
process,: | the ID of the process to be added |
Definition at line 4867 of file OSOption.cpp.
References numberOfProcesses.
Referenced by OSOption::setAnotherProcessToKill().
the number of <process> children
Definition at line 920 of file OSOption.h.
Referenced by addProcess(), OSOption::getNumberOfProcessesToKill(), IsEqual(), and setRandom().
std::string* Processes::process |
the list of processes
Definition at line 923 of file OSOption.h.
Referenced by OSOption::getProcessesToKill(), IsEqual(), Processes(), OSOption::setProcessesToKill(), setRandom(), and ~Processes().