1.00.0
C++ Simulated Travel Demand Generation Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Pages
BasConst.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// StdAir
5
#include <stdair/basic/BasConst_General.hpp>
6
// TraDemGen
7
#include <
trademgen/basic/BasConst_TRADEMGEN_Service.hpp
>
8
#include <
trademgen/basic/BasConst_DemandGeneration.hpp
>
9
10
namespace
TRADEMGEN {
11
13
// const std::string DEFAULT_TRADEMGEN_SERVICE_NAME = "trademgen";
14
16
const
POSProbabilityMassFunction_T
DEFAULT_POS_PROBALILITY_MASS
=
17
DefaultMap::createPOSProbMass
();
18
20
POSProbabilityMassFunction_T
DefaultMap::createPOSProbMass
() {
21
POSProbabilityMassFunction_T
oMap;
22
// oMap["SIN"] = 0.44; oMap["HKG"] = 0.04; oMap["CGK"] = 0.04;
23
// oMap["SYD"] = 0.04; oMap["BKK"] = 0.04; oMap["LHR"] = 0.03;
24
// oMap["MEL"] = 0.03; oMap["KUL"] = 0.03; oMap["MNL"] = 0.03;
25
// oMap["PVG"] = 0.03; oMap["PER"] = 0.02; oMap["BNE"] = 0.02;
26
// oMap["NRT"] = 0.02; oMap["DPS"] = 0.02; oMap["SGN"] = 0.02;
27
// oMap["PEN"] = 0.02; oMap["FRA"] = 0.02; oMap["PEK"] = 0.02;
28
// oMap["HKT"] = 0.02; oMap["AKT"] = 0.02; oMap["SFO"] = 0.01;
29
// oMap["ICN"] = 0.01; oMap["TPE"] = 0.01; oMap["row"] = 0.02;
30
oMap[
"row"
] = 1.0;
31
return
oMap;
32
}
33
35
const
stdair::FloatDuration_T
DEFAULT_LAST_LOWER_BOUND_ARRIVAL_PATTERN
= -1;
36
38
const
FRAT5Pattern_T
DEFAULT_FRAT5_PATTERN
=
DefaultMap::createFRAT5Pattern
();
39
41
FRAT5Pattern_T
DefaultMap::createFRAT5Pattern
() {
42
FRAT5Pattern_T
oMap;
43
// oMap[1.10] = 0.0; oMap[1.40] = 0.80909; oMap[1.45] = 0.8303;
44
// oMap[1.50] = 0.85152; oMap[1.55] = 0.87273; oMap[1.60] = 0.89394;
45
// oMap[1.70] = 0.90606; oMap[1.80] = 0.91818; oMap[2.00] = 0.9303;
46
// oMap[2.30] = 0.94242; oMap[2.60] = 0.95152; oMap[3.00] = 0.96061;
47
// oMap[3.30] = 0.96970; oMap[3.40] = 0.97879; oMap[3.44] = 0.98485;
48
// oMap[3.47] = 0.99091; oMap[3.50] = 0.99697; oMap[3.500000001] = 1.0;
49
// oMap[1.10] = -365;oMap[1.40] = -63; oMap[1.45] = -56;
50
// oMap[1.50] = -49; oMap[1.55] = -42; oMap[1.60] = -35;
51
// oMap[1.70] = -31; oMap[1.80] = -27; oMap[2.00] = -23;
52
// oMap[2.30] = -19; oMap[2.60] = -16; oMap[3.00] = -13;
53
// oMap[3.30] = -10; oMap[3.40] = -7; oMap[3.44] = -5;
54
// oMap[3.47] = -3; oMap[3.50] = -1; oMap[3.500000001] = 0;
55
// oMap[1.0] = -365; oMap[1.10] = -63; oMap[1.13] = -56;
56
// oMap[1.17] = -49; oMap[1.22] = -42; oMap[1.28] = -35;
57
// oMap[1.32] = -31; oMap[1.37] = -27; oMap[1.43] = -23;
58
// oMap[1.51] = -19; oMap[1.60] = -16; oMap[1.70] = -13;
59
// oMap[1.80] = -10; oMap[1.90] = -7; oMap[1.93] = -5;
60
// oMap[1.96] = -3; oMap[2.00] = -1; oMap[2.00000001] = 0;
61
// oMap[1.0] = -365; oMap[1.05] = -63; oMap[1.07] = -56;
62
// oMap[1.09] = -49; oMap[1.11] = -42; oMap[1.14] = -35;
63
// oMap[1.16] = -31; oMap[1.18] = -27; oMap[1.21] = -23;
64
// oMap[1.24] = -19; oMap[1.27] = -16; oMap[1.30] = -13;
65
// oMap[1.33] = -10; oMap[1.37] = -7; oMap[1.40] = -5;
66
// oMap[1.45] = -3; oMap[1.50] = -1; oMap[1.500000001] = 0;
67
oMap[1.10] = -365;oMap[1.20] = -63;
68
oMap[1.30] = -49; oMap[1.40] = -35; oMap[1.70] = -23;
69
oMap[2.00] = -16; oMap[2.30] = -10; oMap[2.44] = -5;
70
oMap[2.50] = -1; oMap[2.500000001] = 0;
71
return
oMap;
72
}
73
75
const
double
DEFAULT_MAX_ADVANCE_PURCHASE
= 330.0;
76
78
stdair::BaseGenerator_T
DEFAULT_BASE_GENERATOR
(stdair::DEFAULT_RANDOM_SEED);
79
81
const
stdair::UniformDistribution_T
DEFAULT_UNIFORM_REAL_DISTRIBUTION
;
82
84
stdair::UniformGenerator_T
85
DEFAULT_UNIFORM_GENERATOR
(
DEFAULT_BASE_GENERATOR
,
86
DEFAULT_UNIFORM_REAL_DISTRIBUTION
);
87
88
}
Generated on Sun Dec 23 2012 17:58:29 for TraDemGen by
1.8.1.1