Class modeling the characteristics of a demand type. More...
#include <trademgen/basic/DemandCharacteristics.hpp>
Public Member Functions | |
const stdair::AirportCode_T & | getPOSValue (const stdair::Probability_T &iCumulativeProbability) const |
bool | checkPOSValue (const stdair::AirportCode_T &iPOS) const |
const std::string | describe () const |
DemandCharacteristics (const ArrivalPatternCumulativeDistribution_T &, const POSProbabilityMassFunction_T &, const ChannelProbabilityMassFunction_T &, const TripTypeProbabilityMassFunction_T &, const StayDurationProbabilityMassFunction_T &, const FrequentFlyerProbabilityMassFunction_T &, const stdair::ChangeFeesRatio_T &, const stdair::Disutility_T &, const stdair::NonRefundableRatio_T &, const stdair::Disutility_T &, const PreferredDepartureTimeContinuousDistribution_T &, const stdair::WTP_T &, const ValueOfTimeContinuousDistribution_T &) | |
DemandCharacteristics () | |
DemandCharacteristics (const DemandCharacteristics &) | |
~DemandCharacteristics () |
Public Attributes | |
ContinuousFloatDuration_T | _arrivalPattern |
POSProbabilityMass_T | _posProbabilityMass |
ChannelProbabilityMass_T | _channelProbabilityMass |
TripTypeProbabilityMass_T | _tripTypeProbabilityMass |
StayDurationProbabilityMass_T | _stayDurationProbabilityMass |
FrequentFlyerProbabilityMass_T | _frequentFlyerProbabilityMass |
stdair::ChangeFeesRatio_T | _changeFeeProb |
stdair::Disutility_T | _changeFeeDisutility |
stdair::NonRefundableRatio_T | _nonRefundableProb |
stdair::Disutility_T | _nonRefundableDisutility |
PreferredDepartureTimeCumulativeDistribution_T | _preferredDepartureTimeCumulativeDistribution |
stdair::WTP_T | _minWTP |
CumulativeDistribution_T | _frat5Pattern |
ValueOfTimeCumulativeDistribution_T | _valueOfTimeCumulativeDistribution |
Class modeling the characteristics of a demand type.
Definition at line 21 of file DemandCharacteristics.hpp.
TRADEMGEN::DemandCharacteristics::DemandCharacteristics | ( | const ArrivalPatternCumulativeDistribution_T & | iArrivalPattern, |
const POSProbabilityMassFunction_T & | iPOSProbMass, | ||
const ChannelProbabilityMassFunction_T & | iChannelProbMass, | ||
const TripTypeProbabilityMassFunction_T & | iTripTypeProbMass, | ||
const StayDurationProbabilityMassFunction_T & | iStayDurationProbMass, | ||
const FrequentFlyerProbabilityMassFunction_T & | iFrequentFlyerProbMass, | ||
const stdair::ChangeFeesRatio_T & | iChangeFeeProb, | ||
const stdair::Disutility_T & | iChangeFeeDisutility, | ||
const stdair::NonRefundableRatio_T & | iNonRefundableProb, | ||
const stdair::Disutility_T & | iNonRefundableDisutility, | ||
const PreferredDepartureTimeContinuousDistribution_T & | iPreferredDepartureTimeContinuousDistribution, | ||
const stdair::WTP_T & | iMinWTP, | ||
const ValueOfTimeContinuousDistribution_T & | iValueOfTimeContinuousDistribution | ||
) |
Constructor.
Definition at line 50 of file DemandCharacteristics.cpp.
TRADEMGEN::DemandCharacteristics::DemandCharacteristics | ( | ) |
Default constructor.
Definition at line 16 of file DemandCharacteristics.cpp.
TRADEMGEN::DemandCharacteristics::DemandCharacteristics | ( | const DemandCharacteristics & | iDC | ) |
Copy constructor.
Definition at line 32 of file DemandCharacteristics.cpp.
TRADEMGEN::DemandCharacteristics::~DemandCharacteristics | ( | ) |
Destructor.
Definition at line 79 of file DemandCharacteristics.cpp.
const stdair::AirportCode_T & TRADEMGEN::DemandCharacteristics::getPOSValue | ( | const stdair::Probability_T & | iCumulativeProbability | ) | const |
Get the POS corresponding to the cumulative probability
Definition at line 84 of file DemandCharacteristics.cpp.
References _posProbabilityMass, and TRADEMGEN::CategoricalAttributeLite< T >::getValue().
Referenced by TRADEMGEN::DemandStream::generatePOS().
bool TRADEMGEN::DemandCharacteristics::checkPOSValue | ( | const stdair::AirportCode_T & | iPOS | ) | const |
Check that the POS is within the distribution.
Definition at line 90 of file DemandCharacteristics.cpp.
References _posProbabilityMass, and TRADEMGEN::CategoricalAttributeLite< T >::checkValue().
const std::string TRADEMGEN::DemandCharacteristics::describe | ( | ) | const |
Give a description of the structure (for display purposes).
Definition at line 95 of file DemandCharacteristics.cpp.
References _arrivalPattern, _changeFeeDisutility, _changeFeeProb, _channelProbabilityMass, _frequentFlyerProbabilityMass, _minWTP, _nonRefundableDisutility, _nonRefundableProb, _posProbabilityMass, _preferredDepartureTimeCumulativeDistribution, _stayDurationProbabilityMass, _tripTypeProbabilityMass, _valueOfTimeCumulativeDistribution, TRADEMGEN::ContinuousAttributeLite< T >::displayCumulativeDistribution(), and TRADEMGEN::CategoricalAttributeLite< T >::displayProbabilityMass().
Referenced by TRADEMGEN::DemandStream::display().
ContinuousFloatDuration_T TRADEMGEN::DemandCharacteristics::_arrivalPattern |
Arrival pattern (cumulative distribution of timing of arrival of requests (negative number of days between departure date and request date).
Definition at line 87 of file DemandCharacteristics.hpp.
Referenced by describe(), TRADEMGEN::DemandStream::generateTimeOfRequestPoissonProcess(), and TRADEMGEN::DemandStream::generateTimeOfRequestStatisticsOrder().
POSProbabilityMass_T TRADEMGEN::DemandCharacteristics::_posProbabilityMass |
POS probability mass.
Definition at line 92 of file DemandCharacteristics.hpp.
Referenced by checkPOSValue(), describe(), and getPOSValue().
ChannelProbabilityMass_T TRADEMGEN::DemandCharacteristics::_channelProbabilityMass |
Channel probability mass.
Definition at line 97 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateChannel().
TripTypeProbabilityMass_T TRADEMGEN::DemandCharacteristics::_tripTypeProbabilityMass |
Trip type probability mass.
Definition at line 102 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateTripType().
StayDurationProbabilityMass_T TRADEMGEN::DemandCharacteristics::_stayDurationProbabilityMass |
Stay duration probability mass.
Definition at line 107 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateStayDuration().
FrequentFlyerProbabilityMass_T TRADEMGEN::DemandCharacteristics::_frequentFlyerProbabilityMass |
Frequent flyer probability mass.
Definition at line 112 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateFrequentFlyer().
stdair::ChangeFeesRatio_T TRADEMGEN::DemandCharacteristics::_changeFeeProb |
Change fee restriction acceptation probability.
Definition at line 117 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateChangeFees().
stdair::Disutility_T TRADEMGEN::DemandCharacteristics::_changeFeeDisutility |
Change fee disutility.
Definition at line 122 of file DemandCharacteristics.hpp.
Referenced by describe(), TRADEMGEN::DemandStream::generateNextRequest(), and TRADEMGEN::DemandStream::getChangeFeeDisutility().
stdair::NonRefundableRatio_T TRADEMGEN::DemandCharacteristics::_nonRefundableProb |
Non refundable restriction acceptation probability.
Definition at line 127 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateNonRefundable().
stdair::Disutility_T TRADEMGEN::DemandCharacteristics::_nonRefundableDisutility |
Non refundable disutility.
Definition at line 132 of file DemandCharacteristics.hpp.
Referenced by describe(), TRADEMGEN::DemandStream::generateNextRequest(), and TRADEMGEN::DemandStream::getNonRefundableDisutility().
PreferredDepartureTimeCumulativeDistribution_T TRADEMGEN::DemandCharacteristics::_preferredDepartureTimeCumulativeDistribution |
Preferred departure time cumulative distribution.
Definition at line 137 of file DemandCharacteristics.hpp.
Referenced by describe().
stdair::WTP_T TRADEMGEN::DemandCharacteristics::_minWTP |
Min Willingness-to-pay, used for the computation of the WTP of each request.
Definition at line 143 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateWTP().
CumulativeDistribution_T TRADEMGEN::DemandCharacteristics::_frat5Pattern |
FRAT5 pattern, used for the computation of WTP.
Definition at line 148 of file DemandCharacteristics.hpp.
Referenced by TRADEMGEN::DemandStream::generateWTP().
ValueOfTimeCumulativeDistribution_T TRADEMGEN::DemandCharacteristics::_valueOfTimeCumulativeDistribution |
Value of time cumulative distribution.
Definition at line 153 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateValueOfTime().