$treeview $search $mathjax
#include <trademgen/basic/DemandCharacteristics.hpp>
Inheritance diagram for TRADEMGEN::DemandCharacteristics:
Definition at line 21 of file DemandCharacteristics.hpp.
TRADEMGEN::DemandCharacteristics::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 & | ||||
) |
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 & | ) |
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().
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().
POS probability mass.
Definition at line 92 of file DemandCharacteristics.hpp.
Referenced by checkPOSValue(), describe(), and getPOSValue().
Channel probability mass.
Definition at line 97 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateChannel().
Trip type probability mass.
Definition at line 102 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateTripType().
Stay duration probability mass.
Definition at line 107 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateStayDuration().
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().
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().