OS  2.10.1
Public Member Functions | Public Attributes | List of all members
Variable Class Reference

The in-memory representation of the variable element. More...

#include <OSInstance.h>

+ Collaboration diagram for Variable:

Public Member Functions

 Variable ()
 The Variable class constructor. More...
 
 ~Variable ()
 The Variable class destructor. More...
 
bool IsEqual (Variable *that)
 A function to check for the equality of two objects. More...
 

Public Attributes

double lb
 lb corresponds to the optional attribute that holds the variable lower bound. More...
 
double ub
 ub corresponds to the optional attribute that holds the variable upper bound. More...
 
char type
 type corresponds to the attribute that holds the variable type: C (Continuous), B (binary), I (general integer), or S (string). More...
 
std::string name
 name corresponds to the optional attribute that holds the variable name, the default value is empty More...
 

Detailed Description

The in-memory representation of the variable element.

Definition at line 44 of file OSInstance.h.

Constructor & Destructor Documentation

§ Variable()

Variable::Variable ( )

The Variable class constructor.

§ ~Variable()

Variable::~Variable ( )

The Variable class destructor.

Member Function Documentation

§ IsEqual()

bool Variable::IsEqual ( Variable that)

A function to check for the equality of two objects.

Member Data Documentation

§ lb

double Variable::lb

lb corresponds to the optional attribute that holds the variable lower bound.

The default value is 0

Definition at line 56 of file OSInstance.h.

§ ub

double Variable::ub

ub corresponds to the optional attribute that holds the variable upper bound.

The default value is OSINFINITY

Definition at line 61 of file OSInstance.h.

§ type

char Variable::type

type corresponds to the attribute that holds the variable type: C (Continuous), B (binary), I (general integer), or S (string).

The default is C

Definition at line 66 of file OSInstance.h.

§ name

std::string Variable::name

name corresponds to the optional attribute that holds the variable name, the default value is empty

Definition at line 71 of file OSInstance.h.


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