TraDemGen Logo  1.00.0
C++ Simulated Travel Demand Generation Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
TRADEMGEN::DemandParserHelper::DemandParser Struct Reference

#include <trademgen/command/DemandParserHelper.hpp>

+ Inheritance diagram for TRADEMGEN::DemandParserHelper::DemandParser:

List of all members.

Classes

struct  definition

Public Member Functions

 DemandParser (SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration &, const POSProbabilityMass_T &, DemandStruct &)

Public Attributes

SEVMGR::SEVMGR_ServicePtr_T _sevmgrServicePtr
stdair::RandomGeneration & _uniformGenerator
const POSProbabilityMass_T_posProbabilityMass
DemandStruct_demand

Detailed Description

PrefDepDate; Origin; Destination; PassengerType; Mean; StdDev; PosDist; ChannelDist; TripTypeDist; StayDurationDist; FrequentFlyerDist; PrefDepTimeDist; min WTP; (PrefArrivalDate; PrefArrivalTime;) TimeValueDist; ValueOfTimeDist; ArrivalPatternDist; 2010-02-08; SIN; BKK; L; 10.0; 1.0; SIN:0.7, BKK:0.2, row:0.1; DF:0.1, DN:0.3, IF:0.4, IN:0.2; RO:0.6, RI:0.2, OW:0.2; 0:0.1, 1:0.1, 2:0.15, 3:0.15, 4:0.15, 5:0.35; P:0.01, G:0.05, S:0.15, M:0.3, N:0.49; 06:0, 07:0.1, 09:0.3, 17:0.4, 19:0.8, 20:0.95, 22:1; 100:0, 500:0.8, 2000:1; 15:0, 60:1; 330:0, 40:0.2, 20:0.6, 1:1;

Fixed: Prefered departure date (yyyy-mm-dd) Origin (3-char airport code) Destination (3-char airport code) PassengerType (1-char, e.g., 'L' for Leisure, 'B' for Business) Observable: Mean StdDev Distribution with Probability Masses: POS Channel (D=direct, I=indirect, N=oNline, F=oFfline) Trip type(RO=outbound of round-trip,RI=inbound of round-trip,OW=one way) Stay duration (number of days) Frequent flyer (P=Platinum, G=Gold, S=Silver, M=Member, N=None) Change fees restriction. 'True' for accepting the restriction (for hard-restriction custumer choice model) Change fees disutility (for disutility custumer choice model) Non refundable restriction. 'True' for accepting the restriction (for hard-restriction custumer choice model) Non refundable disutility (for disutility custumer choice model) Continuous cumulative distribution: Preferred departure time (hh:mm:ss) Preferred arrival date (equal to prefered departure date) Preferred arrival time (equal to prefered departure time) Value of time Arrival pattern (DTD as a positive value) The main fields are separated by ';' Probability mass distributions are defined by comma-separated 'value:probability' pairs Continuous cumulative distribution are defined by comma-separated 'value:probability' pairs, sorted in increasing order of values. The meaning of probability is P(random variable <= value) = probability.

Grammar: Demand ::= PrefDepDate ';' Origin ';' Destination ';' PassengerType ';' DemandParams ';' PosDist ';' ChannelDist ';' TripDist ';' StayDist ';' FfDist ';' PrefDepTimeDist ';' minWTP ';' TimeValueDist ';' DtdDist EndOfDemand PrefDepDate ::= date PassengerType ::= 'L' | 'B' | 'F' DemandParams ::= DemandMean ';' DemandStdDev PosDist ::= PosPair (',' PosPair)* PosPair ::= PosCode ':' PosShare PosCode ::= AirportCode | "row" PosShare ::= real ChannelDist ::= ChannelPair (',' ChannelPair)* ChannelPair ::= Channel_Code ':' ChannelShare ChannelCode ::= "DF" | "DN" | "IF" | "IN" ChannelShare ::= real TripDist ::= TripPair (',' TripPair)* TripPair ::= TripCode ':' TripShare TripCode ::= "RO" | "RI" | "OW" TripShare ::= real StayDist ::= StayPair (',' StayPair)* StayPair ::= [0;3]-digit-integer ':' stay_share StayShare ::= real FFDist ::= FF_Pair (',' FF_Pair)* FFPair ::= FFCode ':' FFShare FFCode ::= 'P' | 'G' | 'S' | 'M' | 'N' FFShare ::= real ChangeFeeProb ::= real NonRefundableProb ::= real PrefDepTimeDist ::= PrefDepTimePair (',' PrefDepTimePair)* PrefDepTimePair ::= time ':' PrefDepTimeShare PrefDepTimeShare ::= real minWTP ::= real TimeValueDist ::= TimeValuePair (',' TimeValuePair)* TimeValuePair ::= [0;2]-digit-integer ':' TimeValueShare TimeValueShare ::= real DTDDist ::= DTDPair (',' DTDPair)* DTDPair ::= real ':' DTDShare DTDShare ::= real EndOfDemand ::= ';' Grammar for the demand parser.

Definition at line 384 of file DemandParserHelper.hpp.


Constructor & Destructor Documentation

TRADEMGEN::DemandParserHelper::DemandParser::DemandParser ( SEVMGR::SEVMGR_ServicePtr_T  ioSEVMGR_ServicePtr,
stdair::RandomGeneration &  ioSharedGenerator,
const POSProbabilityMass_T iPOSProbMass,
DemandStruct ioDemand 
)

Definition at line 568 of file DemandParserHelper.cpp.


Member Data Documentation

SEVMGR::SEVMGR_ServicePtr_T TRADEMGEN::DemandParserHelper::DemandParser::_sevmgrServicePtr

Definition at line 415 of file DemandParserHelper.hpp.

stdair::RandomGeneration& TRADEMGEN::DemandParserHelper::DemandParser::_uniformGenerator

Definition at line 416 of file DemandParserHelper.hpp.

const POSProbabilityMass_T& TRADEMGEN::DemandParserHelper::DemandParser::_posProbabilityMass

Definition at line 417 of file DemandParserHelper.hpp.

DemandStruct& TRADEMGEN::DemandParserHelper::DemandParser::_demand

Definition at line 418 of file DemandParserHelper.hpp.


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