OS  2.9.3
Public Member Functions | Public Attributes | List of all members
VarValue Class Reference

VarValue Class. More...

#include <OSResult.h>

+ Collaboration diagram for VarValue:

Public Member Functions

 VarValue ()
 Default constructor. More...
 
 ~VarValue ()
 Class destructor. More...
 
bool IsEqual (VarValue *that)
 A function to check for the equality of two objects. More...
 
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class. More...
 

Public Attributes

int idx
 idx is the index on variable in the solution More...
 
std::string name
 optional name More...
 
double value
 

Detailed Description

VarValue Class.

Author
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version
1.0, 03/14/2004
Since
OS 1.0
Remarks
A class that is used to provide the value and index associated with the variables in the solution.

Definition at line 845 of file OSResult.h.

Constructor & Destructor Documentation

VarValue::VarValue ( )

Default constructor.

VarValue::~VarValue ( )

Class destructor.

Member Function Documentation

bool VarValue::IsEqual ( VarValue that)

A function to check for the equality of two objects.

bool VarValue::setRandom ( double  density,
bool  conformant 
)

A function to make a random instance of this class.

Parameters
densitycorresponds to the probability that a particular child element is created
conformantif true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children)

Member Data Documentation

int VarValue::idx

idx is the index on variable in the solution

Definition at line 850 of file OSResult.h.

std::string VarValue::name

optional name

Definition at line 853 of file OSResult.h.

double VarValue::value

Definition at line 858 of file OSResult.h.


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