ObjValue Class Reference

The ObjValue Class. More...

#include <OSResult.h>

Collaboration diagram for ObjValue:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Public Attributes

int idx
 idx is the index on an objective function
std::string name
 optional name
double value
 the value of the objective indexed by idx

Detailed Description

The ObjValue Class.

Author:
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 03/14/2004
Since:
OS 1.0
Remarks:
A class that provides the value of an objective function

Definition at line 1266 of file OSResult.h.


Constructor & Destructor Documentation

ObjValue::ObjValue (  ) 

Default constructor.

Definition at line 622 of file OSResult.cpp.

ObjValue::~ObjValue (  ) 

Class destructor.

Definition at line 633 of file OSResult.cpp.

ObjValue::ObjValue (  ) 

Default constructor.

ObjValue::~ObjValue (  ) 

Class destructor.


Member Function Documentation

bool ObjValue::IsEqual ( ObjValue that  ) 

A function to check for the equality of two objects.

Definition at line 7234 of file OSResult.cpp.

References idx, name, and value.

bool ObjValue::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 8694 of file OSResult.cpp.

References OSRand().

Referenced by ObjectiveValues::setRandom().


Member Data Documentation

int ObjValue::idx

idx is the index on an objective function

Definition at line 1271 of file OSResult.h.

Referenced by OSResult::getObjValueIdx(), IsEqual(), OSResult::setObjectiveValues(), OSResult::setObjectiveValuesDense(), OSResult::setObjectiveValuesSparse(), and OSResult::setObjValue().

std::string ObjValue::name

optional name

Definition at line 1274 of file OSResult.h.

Referenced by OSResult::getObjValueName(), IsEqual(), and OSResult::setObjValue().

double ObjValue::value

the value of the objective indexed by idx

Definition at line 1277 of file OSResult.h.

Referenced by OSResult::getObjValue(), IsEqual(), main(), OSResult::setObjectiveValues(), OSResult::setObjectiveValuesDense(), OSResult::setObjectiveValuesSparse(), and OSResult::setObjValue().


The documentation for this class was generated from the following files:
Generated on Thu Nov 10 03:12:43 2011 by  doxygen 1.4.7