Class modeling the characteristics of a demand type. More...
#include <trademgen/basic/DemandCharacteristics.hpp>
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 PreferredDepartureTimeContinuousDistribution_T & | iPreferredDepartureTimeContinuousDistribution, | ||
const stdair::WTP_T & | iMinWTP, | ||
const ValueOfTimeContinuousDistribution_T & | iValueOfTimeContinuousDistribution | ||
) |
Constructor.
Definition at line 44 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 30 of file DemandCharacteristics.cpp.
TRADEMGEN::DemandCharacteristics::~DemandCharacteristics | ( | ) |
Destructor.
Definition at line 65 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 70 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 76 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 81 of file DemandCharacteristics.cpp.
References _arrivalPattern, _channelProbabilityMass, _frequentFlyerProbabilityMass, _minWTP, _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 83 of file DemandCharacteristics.hpp.
Referenced by describe(), TRADEMGEN::DemandStream::generateTimeOfRequestPoissonProcess(), and TRADEMGEN::DemandStream::generateTimeOfRequestStatisticsOrder().
POS probability mass.
Definition at line 88 of file DemandCharacteristics.hpp.
Referenced by checkPOSValue(), describe(), and getPOSValue().
Channel probability mass.
Definition at line 93 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateChannel().
Trip type probability mass.
Definition at line 98 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateTripType().
Stay duration probability mass.
Definition at line 103 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateStayDuration().
Frequent flyer probability mass.
Definition at line 108 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateFrequentFlyer().
PreferredDepartureTimeCumulativeDistribution_T TRADEMGEN::DemandCharacteristics::_preferredDepartureTimeCumulativeDistribution |
Preferred departure time cumulative distribution.
Definition at line 113 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 119 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateWTP().
FRAT5 pattern, used for the computation of WTP.
Definition at line 124 of file DemandCharacteristics.hpp.
Referenced by TRADEMGEN::DemandStream::generateWTP().
ValueOfTimeCumulativeDistribution_T TRADEMGEN::DemandCharacteristics::_valueOfTimeCumulativeDistribution |
Value of time cumulative distribution.
Definition at line 129 of file DemandCharacteristics.hpp.
Referenced by describe(), and TRADEMGEN::DemandStream::generateValueOfTime().