TraDemGen Logo  1.00.2
C++ Simulated Travel Demand Generation Library
TRADEMGEN Namespace Reference

Namespaces

 DemandParserHelper
 

Classes

class  BomDisplay
 Utility class to display TraDemGen objects with a pretty format. More...
 
struct  CategoricalAttributeLite
 Class modeling the distribution of values that can be taken by a categorical attribute. More...
 
struct  ContinuousAttribute
 
struct  ContinuousAttributeLite
 Class modeling the distribution of values that can be taken by a continuous attribute. More...
 
class  DBManager
 
struct  DBParams
 
struct  DefaultMap
 
struct  DemandCharacteristics
 Class modeling the characteristics of a demand type. More...
 
struct  DemandDistribution
 Class modeling the distribution of a demand type. More...
 
class  DemandFileParser
 
class  DemandFilePath
 
class  DemandInputFileNotFoundException
 
class  DemandManager
 Utility class for Demand and DemandStream objects. More...
 
class  DemandParser
 Class wrapping the parser entry point. More...
 
class  DemandStream
 Class modeling a demand stream. More...
 
struct  DemandStreamKey
 
struct  DemandStruct
 
class  DictionaryManager
 Class wrapper of dictionary business methods. More...
 
class  FacTRADEMGENServiceContext
 Factory for creating the TraDemGen service context instance. More...
 
struct  FlagSaver
 
class  IndexOutOfRangeException
 
struct  RandomGenerationContext
 
struct  TRADEMGEN_Abstract
 
class  TRADEMGEN_Service
 class holding the services related to Travel Demand Generation. More...
 
class  TRADEMGEN_ServiceContext
 Class holding the context of the Trademgen services. More...
 
struct  Trademgener
 Wrapper structure around the C++ API, so as to expose a Python API. More...
 
class  TrademgenGenerationException
 

Typedefs

typedef char char_t
 
typedef boost::spirit::classic::file_iterator< char_titerator_t
 
typedef boost::spirit::classic::scanner< iterator_tscanner_t
 
typedef boost::spirit::classic::rule< scanner_trule_t
 
typedef boost::spirit::classic::int_parser< unsigned int, 10, 1, 1 > int1_p_t
 
typedef boost::spirit::classic::uint_parser< unsigned int, 10, 2, 2 > uint2_p_t
 
typedef boost::spirit::classic::uint_parser< unsigned int, 10, 1, 2 > uint1_2_p_t
 
typedef boost::spirit::classic::uint_parser< unsigned int, 10, 1, 3 > uint1_3_p_t
 
typedef boost::spirit::classic::uint_parser< unsigned int, 10, 4, 4 > uint4_p_t
 
typedef boost::spirit::classic::uint_parser< unsigned int, 10, 1, 4 > uint1_4_p_t
 
typedef boost::spirit::classic::chset< char_tchset_t
 
typedef boost::spirit::classic::impl::loop_traits< chset_t, unsigned int, unsigned int >::type repeat_p_t
 
typedef boost::spirit::classic::bounded< uint2_p_t, unsigned int > bounded2_p_t
 
typedef boost::spirit::classic::bounded< uint1_2_p_t, unsigned int > bounded1_2_p_t
 
typedef boost::spirit::classic::bounded< uint1_3_p_t, unsigned int > bounded1_3_p_t
 
typedef boost::spirit::classic::bounded< uint4_p_t, unsigned int > bounded4_p_t
 
typedef boost::spirit::classic::bounded< uint1_4_p_t, unsigned int > bounded1_4_p_t
 
typedef ContinuousAttributeLite< stdair::FloatDuration_T > ContinuousFloatDuration_T
 
typedef ContinuousFloatDuration_T::ContinuousDistribution_T ArrivalPatternCumulativeDistribution_T
 
typedef CategoricalAttributeLite< stdair::AirportCode_T > POSProbabilityMass_T
 
typedef POSProbabilityMass_T::ProbabilityMassFunction_T POSProbabilityMassFunction_T
 
typedef CategoricalAttributeLite< stdair::ChannelLabel_T > ChannelProbabilityMass_T
 
typedef ChannelProbabilityMass_T::ProbabilityMassFunction_T ChannelProbabilityMassFunction_T
 
typedef CategoricalAttributeLite< stdair::TripType_T > TripTypeProbabilityMass_T
 
typedef TripTypeProbabilityMass_T::ProbabilityMassFunction_T TripTypeProbabilityMassFunction_T
 
typedef CategoricalAttributeLite< stdair::DayDuration_T > StayDurationProbabilityMass_T
 
typedef StayDurationProbabilityMass_T::ProbabilityMassFunction_T StayDurationProbabilityMassFunction_T
 
typedef CategoricalAttributeLite< stdair::FrequentFlyer_T > FrequentFlyerProbabilityMass_T
 
typedef FrequentFlyerProbabilityMass_T::ProbabilityMassFunction_T FrequentFlyerProbabilityMassFunction_T
 
typedef ContinuousAttributeLite< stdair::IntDuration_T > PreferredDepartureTimeCumulativeDistribution_T
 
typedef PreferredDepartureTimeCumulativeDistribution_T::ContinuousDistribution_T PreferredDepartureTimeContinuousDistribution_T
 
typedef ContinuousAttributeLite< stdair::PriceValue_T > ValueOfTimeCumulativeDistribution_T
 
typedef ValueOfTimeCumulativeDistribution_T::ContinuousDistribution_T ValueOfTimeContinuousDistribution_T
 
typedef ContinuousAttributeLite< stdair::RealNumber_T > CumulativeDistribution_T
 
typedef CumulativeDistribution_T::ContinuousDistribution_T FRAT5Pattern_T
 
typedef stdair::Probability_T DictionaryKey_T
 
typedef std::list< DemandStream * > DemandStreamList_T
 
typedef std::map< const stdair::MapKey_T, DemandStream * > DemandStreamMap_T
 
typedef std::list< std::string > DBParamsNameList_T
 
typedef boost::shared_ptr< TRADEMGEN_ServiceTRADEMGEN_ServicePtr_T
 

Functions

stdair::BaseGenerator_T DEFAULT_BASE_GENERATOR (stdair::DEFAULT_RANDOM_SEED)
 
stdair::UniformGenerator_T DEFAULT_UNIFORM_GENERATOR (DEFAULT_BASE_GENERATOR, DEFAULT_UNIFORM_REAL_DISTRIBUTION)
 
void stat_display (std::ostream &oStream, const stat_acc_type &iStatAcc)
 

Variables

const POSProbabilityMassFunction_T DEFAULT_POS_PROBALILITY_MASS
 
const stdair::FloatDuration_T DEFAULT_LAST_LOWER_BOUND_ARRIVAL_PATTERN = -1
 
const FRAT5Pattern_T DEFAULT_FRAT5_PATTERN = DefaultMap::createFRAT5Pattern()
 
const double DEFAULT_MAX_ADVANCE_PURCHASE = 330.0
 
const stdair::UniformDistribution_T DEFAULT_UNIFORM_REAL_DISTRIBUTION
 
stdair::BaseGenerator_T DEFAULT_BASE_GENERATOR
 
stdair::UniformGenerator_T DEFAULT_UNIFORM_GENERATOR
 

Typedef Documentation

typedef char TRADEMGEN::char_t

Definition at line 31 of file BasParserTypes.hpp.

typedef boost::spirit::classic::file_iterator<char_t> TRADEMGEN::iterator_t

Definition at line 35 of file BasParserTypes.hpp.

typedef boost::spirit::classic::scanner<iterator_t> TRADEMGEN::scanner_t

Definition at line 36 of file BasParserTypes.hpp.

typedef boost::spirit::classic::rule<scanner_t> TRADEMGEN::rule_t

Definition at line 37 of file BasParserTypes.hpp.

typedef boost::spirit::classic::int_parser<unsigned int, 10, 1, 1> TRADEMGEN::int1_p_t

1-digit-integer parser

Definition at line 45 of file BasParserTypes.hpp.

typedef boost::spirit::classic::uint_parser<unsigned int, 10, 2, 2> TRADEMGEN::uint2_p_t

2-digit-integer parser

Definition at line 48 of file BasParserTypes.hpp.

typedef boost::spirit::classic::uint_parser<unsigned int, 10, 1, 2> TRADEMGEN::uint1_2_p_t

Up-to-2-digit-integer parser

Definition at line 51 of file BasParserTypes.hpp.

typedef boost::spirit::classic::uint_parser<unsigned int, 10, 1, 3> TRADEMGEN::uint1_3_p_t

Up-to-3-digit-integer parser

Definition at line 54 of file BasParserTypes.hpp.

typedef boost::spirit::classic::uint_parser<unsigned int, 10, 4, 4> TRADEMGEN::uint4_p_t

4-digit-integer parser

Definition at line 57 of file BasParserTypes.hpp.

typedef boost::spirit::classic::uint_parser<unsigned int, 10, 1, 4> TRADEMGEN::uint1_4_p_t

Up-to-4-digit-integer parser

Definition at line 60 of file BasParserTypes.hpp.

typedef boost::spirit::classic::chset<char_t> TRADEMGEN::chset_t

character set

Definition at line 63 of file BasParserTypes.hpp.

typedef boost::spirit::classic::impl::loop_traits<chset_t, unsigned int, unsigned int>::type TRADEMGEN::repeat_p_t

(Repeating) sequence of a given number of characters: repeat_p(min, max)

Definition at line 69 of file BasParserTypes.hpp.

typedef boost::spirit::classic::bounded<uint2_p_t, unsigned int> TRADEMGEN::bounded2_p_t

Bounded-number-of-integers parser

Definition at line 72 of file BasParserTypes.hpp.

typedef boost::spirit::classic::bounded<uint1_2_p_t, unsigned int> TRADEMGEN::bounded1_2_p_t

Definition at line 73 of file BasParserTypes.hpp.

typedef boost::spirit::classic::bounded<uint1_3_p_t, unsigned int> TRADEMGEN::bounded1_3_p_t

Definition at line 74 of file BasParserTypes.hpp.

typedef boost::spirit::classic::bounded<uint4_p_t, unsigned int> TRADEMGEN::bounded4_p_t

Definition at line 75 of file BasParserTypes.hpp.

typedef boost::spirit::classic::bounded<uint1_4_p_t, unsigned int> TRADEMGEN::bounded1_4_p_t

Definition at line 76 of file BasParserTypes.hpp.

Type definition for the continuous distribition of the duration (as a float number).

Definition at line 19 of file DemandCharacteristicsTypes.hpp.

Type definition for the arrival pattern cumulative distribution.

Definition at line 22 of file DemandCharacteristicsTypes.hpp.

Define the point-of-sale probablity mass.

Definition at line 25 of file DemandCharacteristicsTypes.hpp.

Define the probability mass function type of point-of-sale.

Definition at line 28 of file DemandCharacteristicsTypes.hpp.

Define the booking channel probablity mass.

Definition at line 31 of file DemandCharacteristicsTypes.hpp.

Define the probability mass function type of booking channel.

Definition at line 34 of file DemandCharacteristicsTypes.hpp.

Define the trip type probablity mass.

Definition at line 37 of file DemandCharacteristicsTypes.hpp.

Define the probability mass function type of trip type.

Definition at line 40 of file DemandCharacteristicsTypes.hpp.

Define the stay duration probablity mass.

Definition at line 43 of file DemandCharacteristicsTypes.hpp.

Define the probability mass function type of stay duration.

Definition at line 46 of file DemandCharacteristicsTypes.hpp.

Define the frequent flyer probablity mass.

Definition at line 49 of file DemandCharacteristicsTypes.hpp.

Define the probability mass function type of frequent flyer.

Definition at line 52 of file DemandCharacteristicsTypes.hpp.

Define the preferred departure time cumulative distribution.

Definition at line 55 of file DemandCharacteristicsTypes.hpp.

Define the value of time cumulative distribution.

Definition at line 61 of file DemandCharacteristicsTypes.hpp.

Define the FRAT5 pattern type.

Definition at line 67 of file DemandCharacteristicsTypes.hpp.

typedef stdair::Probability_T TRADEMGEN::DictionaryKey_T

Dictionary key.

Definition at line 16 of file DictionaryManager.hpp.

Define the airline feature list.

Definition at line 16 of file DemandStreamTypes.hpp.

typedef std::map<const stdair::MapKey_T, DemandStream*> TRADEMGEN::DemandStreamMap_T

Define the airline feature map.

Definition at line 22 of file DemandStreamTypes.hpp.

typedef std::list<std::string> TRADEMGEN::DBParamsNameList_T

List of names for a given (geographical) dbparams.

Definition at line 17 of file DBParams.hpp.

(Smart) Pointer on the TraDemGen service handler.

Definition at line 17 of file TRADEMGEN_Types.hpp.

Function Documentation

stdair::BaseGenerator_T TRADEMGEN::DEFAULT_BASE_GENERATOR ( stdair::DEFAULT_RANDOM_SEED  )

Default base generator.

stdair::UniformGenerator_T TRADEMGEN::DEFAULT_UNIFORM_GENERATOR ( DEFAULT_BASE_GENERATOR  ,
DEFAULT_UNIFORM_REAL_DISTRIBUTION   
)

Default uniform variate generator.

void TRADEMGEN::stat_display ( std::ostream &  oStream,
const stat_acc_type iStatAcc 
)

Display the statistics held by the dedicated accumulator.

Definition at line 47 of file pytrademgen.cpp.

Referenced by TRADEMGEN::Trademgener::trademgen().

Variable Documentation

const POSProbabilityMassFunction_T TRADEMGEN::DEFAULT_POS_PROBALILITY_MASS
Initial value:
=
DefaultMap::createPOSProbMass()

Default name for the TRADEMGEN_Service. Default PoS probability mass.

Default PoS probability mass.

Definition at line 16 of file BasConst.cpp.

const stdair::FloatDuration_T TRADEMGEN::DEFAULT_LAST_LOWER_BOUND_ARRIVAL_PATTERN = -1

Default last lower bound of daily rate interval in arrival pattern.

Definition at line 35 of file BasConst.cpp.

Referenced by TRADEMGEN::DemandStream::generateTimeOfRequestPoissonProcess().

const FRAT5Pattern_T TRADEMGEN::DEFAULT_FRAT5_PATTERN = DefaultMap::createFRAT5Pattern()

Default FRAT5 pattern.

Definition at line 38 of file BasConst.cpp.

const double TRADEMGEN::DEFAULT_MAX_ADVANCE_PURCHASE = 330.0

Default MAX Advance Purchase.

Definition at line 75 of file BasConst.cpp.

const stdair::UniformDistribution_T TRADEMGEN::DEFAULT_UNIFORM_REAL_DISTRIBUTION

Default random uniform real distribution.

Definition at line 81 of file BasConst.cpp.

stdair::BaseGenerator_T TRADEMGEN::DEFAULT_BASE_GENERATOR

Default base generator. Just here to initialise objects (e.g., stdair::RandomGeneration) with default generator. They are then replaced by a generator, for which the state can better be tracked/stored.

stdair::UniformGenerator_T TRADEMGEN::DEFAULT_UNIFORM_GENERATOR

Default uniform generator. Just here to initialise objects (e.g., stdair::RandomGeneration) with default generator. They are then replaced by a generator, for which the state can better be tracked/stored.