RMOL Logo  1.00.1
C++ library of Revenue Management and Optimisation classes and functions
RMOL::PolicyHelper Class Reference

#include <rmol/bom/PolicyHelper.hpp>

Static Public Member Functions

static void diffBetweenTwoPolicies (stdair::NestingNode &, const stdair::Policy &, const stdair::Policy &)
 
static void computeLastNode (stdair::NestingNode &, const stdair::Policy &, const stdair::SegmentCabin &)
 
static bool isNested (const stdair::Policy &, const stdair::Policy &)
 

Detailed Description

Class holding helper methods.

Definition at line 28 of file PolicyHelper.hpp.

Member Function Documentation

void RMOL::PolicyHelper::diffBetweenTwoPolicies ( stdair::NestingNode &  ioNode,
const stdair::Policy &  iFirstPolicy,
const stdair::Policy &  iSecondPolicy 
)
static

Find the booking class list representing the difference between two Policies (first minus second)

Definition at line 24 of file PolicyHelper.cpp.

References computeLastNode().

Referenced by RMOL::MarginalRevenueTransformation::prepareDemandInput().

void RMOL::PolicyHelper::computeLastNode ( stdair::NestingNode &  ioNode,
const stdair::Policy &  iPolicy,
const stdair::SegmentCabin &  iSegmentCabin 
)
static

Compute the list of the booking class which is not in the node.

Definition at line 164 of file PolicyHelper.cpp.

Referenced by diffBetweenTwoPolicies(), and RMOL::MarginalRevenueTransformation::prepareDemandInput().

bool RMOL::PolicyHelper::isNested ( const stdair::Policy &  iFirstPolicy,
const stdair::Policy &  iSecondPolicy 
)
static

Check if the first policy is nested under the second policy.

Definition at line 220 of file PolicyHelper.cpp.

Referenced by RMOL::MarginalRevenueTransformation::prepareDemandInput().


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