ObjectiveOption Class Reference

the ObjectiveOption class. More...

#include <OSOption.h>

Collaboration diagram for ObjectiveOption:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ObjectiveOption ()
 Default constructor.
 ~ObjectiveOption ()
 Class destructor.
bool IsEqual (ObjectiveOption *that)
 A function to check for the equality of two objects.
bool setOther (int numberOfOptions, OtherObjectiveOption **other)
 A function to set an array of <other> elements.
bool addOther (OtherObjectiveOption *other)
 A function to add an <other> element.

Public Attributes

int numberOfOtherObjectiveOptions
 number of <other> child elements
InitObjectiveValuesinitialObjectiveValues
 initial values for the objectives
InitObjectiveBoundsinitialObjectiveBounds
 initial vounds for the objectives
OtherObjectiveOption ** other
 other information about the objectives

Detailed Description

the ObjectiveOption 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 1822 of file OSOption.h.


Constructor & Destructor Documentation

ObjectiveOption::ObjectiveOption (  ) 

Default constructor.

Definition at line 881 of file OSOption.cpp.

References initialObjectiveBounds, initialObjectiveValues, and other.

ObjectiveOption::~ObjectiveOption (  ) 

Class destructor.

Definition at line 892 of file OSOption.cpp.

References initialObjectiveBounds, initialObjectiveValues, numberOfOtherObjectiveOptions, and other.


Member Function Documentation

bool ObjectiveOption::IsEqual ( ObjectiveOption that  ) 

A function to check for the equality of two objects.

Definition at line 8046 of file OSOption.cpp.

References initialObjectiveBounds, initialObjectiveValues, numberOfOtherObjectiveOptions, and other.

bool ObjectiveOption::setOther ( int  numberOfOptions,
OtherObjectiveOption **  other 
)

A function to set an array of <other> elements.

Parameters:
numberOfOptions,: number of <other> elements to be set
other,: the array of <other> elements that are to be set

Definition at line 4852 of file OSOption.cpp.

References OtherObjectiveOption::category, OtherObjectiveOption::description, ErrorClass::errormsg, OtherObjectiveOption::name, OtherObjectiveOption::numberOfObj, numberOfOtherObjectiveOptions, OtherObjectiveOption::obj, other, OtherObjectiveOption::solver, OtherObjectiveOption::type, and OtherObjectiveOption::value.

Referenced by OSOption::setOtherObjectiveOptions().

bool ObjectiveOption::addOther ( OtherObjectiveOption other  ) 

A function to add an <other> element.

Parameters:
other,: the content of the <other> element to be added

Definition at line 4902 of file OSOption.cpp.

References OtherObjectiveOption::category, OtherObjectiveOption::description, OtherObjectiveOption::name, OtherObjectiveOption::numberOfObj, numberOfOtherObjectiveOptions, OtherObjectiveOption::obj, other, OtherObjectiveOption::solver, OtherObjectiveOption::type, and OtherObjectiveOption::value.

Referenced by OSOption::setAnOtherObjectiveOption().


Member Data Documentation

int ObjectiveOption::numberOfOtherObjectiveOptions

number of <other> child elements

Definition at line 1826 of file OSOption.h.

Referenced by addOther(), OSOption::getNumberOfOtherObjectiveOptions(), IsEqual(), setOther(), OSOption::setOtherObjectiveOptions(), and ~ObjectiveOption().

InitObjectiveValues* ObjectiveOption::initialObjectiveValues

initial values for the objectives

Definition at line 1829 of file OSOption.h.

Referenced by OSOption::getInitObjValuesSparse(), OSOption::getNumberOfInitObjValues(), IsEqual(), ObjectiveOption(), OSOption::setAnotherInitObjValue(), OSOption::setInitObjValuesDense(), OSOption::setInitObjValuesSparse(), and ~ObjectiveOption().

InitObjectiveBounds* ObjectiveOption::initialObjectiveBounds

initial vounds for the objectives

Definition at line 1832 of file OSOption.h.

Referenced by OSOption::getInitObjBoundsSparse(), OSOption::getNumberOfInitObjBounds(), IsEqual(), ObjectiveOption(), OSOption::setAnotherInitObjBound(), OSOption::setInitObjBoundsDense(), OSOption::setInitObjBoundsSparse(), and ~ObjectiveOption().

OtherObjectiveOption** ObjectiveOption::other

other information about the objectives

Definition at line 1835 of file OSOption.h.

Referenced by addOther(), OSOption::getAllOtherObjectiveOptions(), IsEqual(), ObjectiveOption(), setOther(), and ~ObjectiveOption().


The documentation for this class was generated from the following files:
Generated on Thu Aug 5 03:11:20 2010 by  doxygen 1.4.7