OtherConstraintResult Class Reference

The OtherConstraintResult Class. More...

#include <OSResult.h>

Collaboration diagram for OtherConstraintResult:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OtherConstraintResult ()
 Default constructor.
 ~OtherConstraintResult ()
 Class destructor.
bool IsEqual (OtherConstraintResult *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.
 OtherConstraintResult ()
 Default constructor.
 ~OtherConstraintResult ()
 Class destructor.

Public Attributes

int numberOfCon
 the number of constraints which have values for this particular type of result
int numberOfEnumerations
 the number of distinct values for this particular type of result
std::string name
 the name of the result the user is defining
std::string value
 this element allows a specific value associated with this particular type of result
std::string description
 a brief description of the type of result
OtherConResult ** con
OtherOptionEnumeration ** enumeration
std::vector< OtherConResult * > con

Detailed Description

The OtherConstraintResult Class.

Author:
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 03/14/2004
Since:
OS 1.0
Remarks:
A class that allows the solver to report an arbitrary result associated with constraints.

Definition at line 1737 of file OSResult.h.


Constructor & Destructor Documentation

OtherConstraintResult::OtherConstraintResult (  ) 

Default constructor.

Definition at line 843 of file OSResult.cpp.

OtherConstraintResult::~OtherConstraintResult (  ) 

Class destructor.

Definition at line 858 of file OSResult.cpp.

References con, enumeration, numberOfCon, and numberOfEnumerations.

OtherConstraintResult::OtherConstraintResult (  ) 

Default constructor.

OtherConstraintResult::~OtherConstraintResult (  ) 

Class destructor.


Member Function Documentation

bool OtherConstraintResult::IsEqual ( OtherConstraintResult that  ) 

A function to check for the equality of two objects.

Definition at line 7558 of file OSResult.cpp.

References con, description, enumeration, name, numberOfCon, numberOfEnumerations, and value.

bool OtherConstraintResult::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 8853 of file OSResult.cpp.

References con, enumeration, n, numberOfCon, numberOfEnumerations, OSRand(), OtherOptionEnumeration::setRandom(), and OtherConResult::setRandom().

Referenced by ConstraintSolution::setRandom().


Member Data Documentation

int OtherConstraintResult::numberOfCon

the number of constraints which have values for this particular type of result

Definition at line 1744 of file OSResult.h.

Referenced by OSResult::getOtherConstraintResultCon(), OSResult::getOtherConstraintResultConIdx(), OSResult::getOtherConstraintResultNumberOfCon(), IsEqual(), OSResult::setOtherConstraintResultNumberOfCon(), setRandom(), and ~OtherConstraintResult().

int OtherConstraintResult::numberOfEnumerations

the number of distinct values for this particular type of result

Definition at line 1749 of file OSResult.h.

Referenced by OSResult::getOtherConstraintResultEnumerationDescription(), OSResult::getOtherConstraintResultEnumerationEl(), OSResult::getOtherConstraintResultEnumerationNumberOfEl(), OSResult::getOtherConstraintResultEnumerationValue(), OSResult::getOtherConstraintResultNumberOfEnumerations(), IsEqual(), OSResult::setOtherConstraintResultNumberOfEnumerations(), OSResult::setOtherOptionEnumeration(), setRandom(), tempPrintArrays(), and ~OtherConstraintResult().

std::string OtherConstraintResult::name

the name of the result the user is defining

Definition at line 1752 of file OSResult.h.

Referenced by OSResult::getOtherConstraintResultName(), IsEqual(), and OSResult::setOtherConstraintResultName().

std::string OtherConstraintResult::value

this element allows a specific value associated with this particular type of result

Definition at line 1757 of file OSResult.h.

Referenced by OSResult::getOtherConstraintResultValue(), IsEqual(), and OSResult::setOtherConstraintResultValue().

std::string OtherConstraintResult::description

a brief description of the type of result

Definition at line 1760 of file OSResult.h.

Referenced by OSResult::getOtherConstraintResultDescription(), IsEqual(), and OSResult::setOtherConstraintResultDescription().

OtherConResult** OtherConstraintResult::con

Definition at line 1767 of file OSResult.h.

Referenced by OSResult::getOtherConstraintResultCon(), OSResult::getOtherConstraintResultConIdx(), IsEqual(), OSResult::setOtherConstraintResultCon(), OSResult::setOtherConstraintResultConIdx(), OSResult::setOtherConstraintResultConName(), OSResult::setOtherConstraintResultNumberOfCon(), setRandom(), and ~OtherConstraintResult().

OtherOptionEnumeration** OtherConstraintResult::enumeration

Definition at line 1773 of file OSResult.h.

Referenced by OSResult::getOtherConstraintResultEnumerationDescription(), OSResult::getOtherConstraintResultEnumerationEl(), OSResult::getOtherConstraintResultEnumerationNumberOfEl(), OSResult::getOtherConstraintResultEnumerationValue(), IsEqual(), OSResult::setOtherConstraintResultNumberOfEnumerations(), OSResult::setOtherOptionEnumeration(), setRandom(), tempPrintArrays(), and ~OtherConstraintResult().

std::vector<OtherConResult*> OtherConstraintResult::con

Definition at line 1067 of file OSResult.h.


The documentation for this class was generated from the following files:
Generated on Thu Sep 22 03:13:57 2011 by  doxygen 1.4.7