OtherVariableOption Class Reference

the OtherVariableOption class. More...

#include <OSOption.h>

Collaboration diagram for OtherVariableOption:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OtherVariableOption ()
 Default constructor.
 ~OtherVariableOption ()
 Class destructor.
bool IsEqual (OtherVariableOption *that)
 A function to check for the equality of two objects.
bool setVar (int numberOfVar, OtherVarOption **var)
 A function to set an array of elements.
bool addVar (int idx, std::string value, std::string lbValue, std::string ubValue)
 A function to add a element.

Public Attributes

int numberOfVar
 number of child elements
std::string name
 name of the option
std::string value
 value of the option
std::string solver
 name of the solver to which this option applies
std::string category
 name of the category into which this option falls
std::string type
 type of the option value (integer, double, boolean, string)
std::string description
 description of the option
OtherVarOption ** var
 array of option values

Detailed Description

the OtherVariableOption 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 1348 of file OSOption.h.


Constructor & Destructor Documentation

OtherVariableOption::OtherVariableOption (  ) 

Default constructor.

Definition at line 668 of file OSOption.cpp.

References var.

OtherVariableOption::~OtherVariableOption (  ) 

Class destructor.

Definition at line 683 of file OSOption.cpp.

References numberOfVar, and var.


Member Function Documentation

bool OtherVariableOption::IsEqual ( OtherVariableOption that  ) 

A function to check for the equality of two objects.

Definition at line 7986 of file OSOption.cpp.

References category, description, name, numberOfVar, solver, type, value, and var.

bool OtherVariableOption::setVar ( int  numberOfVar,
OtherVarOption **  var 
)

A function to set an array of elements.

Parameters:
numberOfVar,: number of elements to be set
var,: the array of elements that are to be set

Definition at line 4470 of file OSOption.cpp.

References ErrorClass::errormsg, and var.

bool OtherVariableOption::addVar ( int  idx,
std::string  value,
std::string  lbValue,
std::string  ubValue 
)

A function to add a element.

Parameters:
idx,: the index of the variable
value,: the value associated with this variable
lbValue,: a lower bound associated with this variable
ubValue,: an upper bound associated with this variable

Definition at line 4505 of file OSOption.cpp.

References ErrorClass::errormsg, OtherVarOption::idx, OtherVarOption::lbValue, numberOfVar, OtherVarOption::ubValue, OtherVarOption::value, and var.


Member Data Documentation

int OtherVariableOption::numberOfVar

number of child elements

Definition at line 1352 of file OSOption.h.

Referenced by VariableOption::addOther(), addVar(), IsEqual(), VariableOption::setOther(), and ~OtherVariableOption().

std::string OtherVariableOption::name

name of the option

Definition at line 1355 of file OSOption.h.

Referenced by VariableOption::addOther(), IsEqual(), and VariableOption::setOther().

std::string OtherVariableOption::value

value of the option

Definition at line 1358 of file OSOption.h.

Referenced by VariableOption::addOther(), IsEqual(), and VariableOption::setOther().

std::string OtherVariableOption::solver

name of the solver to which this option applies

Definition at line 1361 of file OSOption.h.

Referenced by VariableOption::addOther(), IsEqual(), and VariableOption::setOther().

std::string OtherVariableOption::category

name of the category into which this option falls

Definition at line 1364 of file OSOption.h.

Referenced by VariableOption::addOther(), IsEqual(), and VariableOption::setOther().

std::string OtherVariableOption::type

type of the option value (integer, double, boolean, string)

Definition at line 1367 of file OSOption.h.

Referenced by VariableOption::addOther(), IsEqual(), and VariableOption::setOther().

std::string OtherVariableOption::description

description of the option

Definition at line 1370 of file OSOption.h.

Referenced by VariableOption::addOther(), IsEqual(), and VariableOption::setOther().

OtherVarOption** OtherVariableOption::var

array of option values

Definition at line 1373 of file OSOption.h.

Referenced by VariableOption::addOther(), addVar(), IsEqual(), OtherVariableOption(), VariableOption::setOther(), setVar(), and ~OtherVariableOption().


The documentation for this class was generated from the following files:
Generated on Mon Aug 3 03:08:01 2009 by  doxygen 1.4.7