- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Processes Class Reference

the Processes class. More...

`#include <OSOption.h>`

List of all members.

## 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

## Detailed Description

the Processes class.

Author:
  Robert Fourer, Gus Gassmann, Jun Ma, Kipp Martin

Version:
  1.0, 21/07/2008

Since:
  OS 1.1

Remarks:
  A data structure class that corresponds to an xml element in the OSoL schema.

Definition at line 899 of file OSOption.h.

## Constructor & Destructor Documentation

Processes::Processes | ( |  | ) |

Default constructor.

Definition at line 353 of file OSOption.cpp.

References process.

Processes::~Processes | ( |  | ) |

Class destructor.

Definition at line 362 of file OSOption.cpp.

References process.

## Member Function Documentation

bool Processes::IsEqual | ( | Processes * | that | ) |

A function to check for the equality of two objects.

Definition at line 8854 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.

Parameters:

  | 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 10603 of file OSOption.cpp.

References 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.

Parameters:

  | numberOfProcesses,: | number of <process> elements to be set
  | path,: | the array of <process> elements that are to be set

Definition at line 4416 of file OSOption.cpp.

Referenced by OSOption::setProcessesToKill().

bool Processes::addProcess | ( | std::string | process | ) |

A function to add a <process> element.

Parameters:

  | process,: | the ID of the process to be added

Definition at line 4446 of file OSOption.cpp.

References numberOfProcesses.

Referenced by OSOption::setAnotherProcessToKill().

## Member Data Documentation

int Processes::numberOfProcesses

the number of <process> children

Definition at line 903 of file OSOption.h.

Referenced by addProcess(), OSOption::getNumberOfProcessesToKill(), IsEqual(), and setRandom().

std::string* Processes::process

the list of processes

Definition at line 906 of file OSOption.h.

Referenced by OSOption::getProcessesToKill(), IsEqual(), Processes(), OSOption::setProcessesToKill(), setRandom(), and ~Processes().

The documentation for this class was generated from the following files:

- /home/coin/SVN-release/OS-2.3.5/OS/src/OSCommonInterfaces/OSOption.h
- /home/coin/SVN-release/OS-2.3.5/OS/src/OSCommonInterfaces/OSOption.cpp