Public Member Functions | Protected Member Functions | Private Attributes
VrpVariable Class Reference

Variable class for VRP. More...

#include <VrpVariable.h>

Inheritance diagram for VrpVariable:
BlisVariable

List of all members.

Public Member Functions

 VrpVariable ()
 Default constructor.
 VrpVariable (int v1, int v2, int cost, int ub)
 Useful constructor.
virtual ~VrpVariable ()
 Destructor.
virtual void printDesc ()
virtual AlpsReturnStatus encode (AlpsEncoded *encoded)
 Pack to a encode object.
virtual AlpsKnowledge * decode (AlpsEncoded &encoded) const
 Decode a variable from an encoded object.
int getIndex ()
 Get data.
int getv0 ()
 Get data.
int getv1 ()
 Get data.

Protected Member Functions

AlpsReturnStatus encodeVrp (AlpsEncoded *encoded)
 Pack Vrp part into an encoded object.
AlpsReturnStatus decodeVrp (AlpsEncoded &encoded)
 Unpack Vrp part from a encode object.

Private Attributes

int ends_ [2]
int uind_

Detailed Description

Variable class for VRP.

Definition at line 25 of file VrpVariable.h.


Constructor & Destructor Documentation

VrpVariable::VrpVariable ( ) [inline]

Default constructor.

Definition at line 64 of file VrpVariable.h.

VrpVariable::VrpVariable ( int  v1,
int  v2,
int  cost,
int  ub 
) [inline]

Useful constructor.

Definition at line 70 of file VrpVariable.h.

virtual VrpVariable::~VrpVariable ( ) [inline, virtual]

Destructor.

Definition at line 87 of file VrpVariable.h.


Member Function Documentation

AlpsReturnStatus VrpVariable::encodeVrp ( AlpsEncoded *  encoded) [inline, protected]

Pack Vrp part into an encoded object.

Definition at line 36 of file VrpVariable.h.

AlpsReturnStatus VrpVariable::decodeVrp ( AlpsEncoded &  encoded) [inline, protected]

Unpack Vrp part from a encode object.

Definition at line 49 of file VrpVariable.h.

int VrpVariable::getIndex ( ) [inline]

Get data.

Definition at line 93 of file VrpVariable.h.

int VrpVariable::getv0 ( ) [inline]

Get data.

Definition at line 94 of file VrpVariable.h.

int VrpVariable::getv1 ( ) [inline]

Get data.

Definition at line 95 of file VrpVariable.h.

virtual void VrpVariable::printDesc ( ) [inline, virtual]

Definition at line 98 of file VrpVariable.h.

virtual AlpsReturnStatus VrpVariable::encode ( AlpsEncoded *  encoded) [inline, virtual]

Pack to a encode object.

Reimplemented from BlisVariable.

Definition at line 103 of file VrpVariable.h.

virtual AlpsKnowledge* VrpVariable::decode ( AlpsEncoded &  encoded) const [inline, virtual]

Decode a variable from an encoded object.

Reimplemented from BlisVariable.

Definition at line 114 of file VrpVariable.h.


Member Data Documentation

int VrpVariable::ends_[2] [private]

Definition at line 30 of file VrpVariable.h.

int VrpVariable::uind_ [private]

Definition at line 31 of file VrpVariable.h.


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