6 #include <stdair/STDAIR_Service.hpp>
8 #include <airrac/AIRRAC_Types.hpp>
10 #include <simfqt/SIMFQT_Types.hpp>
12 #include <trademgen/TRADEMGEN_Types.hpp>
16 #include <tvlsim/config/tvlsim-paths.hpp>
23 const stdair::Date_T& iStartDate,
24 const stdair::Date_T& iEndDate,
25 const stdair::RandomSeed_T& iRandomSeed,
26 const stdair::DemandGenerationMethod& iDemandGenerationMethod,
32 const std::string& lStartDateStr =
33 boost::gregorian::to_simple_string(iStartDate);
34 ioSTDAIR_Service.importConfigValue (lStartDateStr,
"date.start");
35 const std::string& lEndDateStr =
36 boost::gregorian::to_simple_string(iEndDate);
37 ioSTDAIR_Service.importConfigValue (lEndDateStr,
"date.end");
38 const std::string& lRandomSeedStr =
39 boost::lexical_cast<std::string> (iRandomSeed);
40 ioSTDAIR_Service.importConfigValue (lRandomSeedStr,
"random.seed");
41 const std::string& lDemandGenerationMethodStr =
42 iDemandGenerationMethod.getMethodAsString();
43 ioSTDAIR_Service.importConfigValue (lDemandGenerationMethodStr,
44 "demand generation.method");
45 const std::string& lNbOfRunsStr =
46 boost::lexical_cast<std::string> (iNbOfRuns);
47 ioSTDAIR_Service.importConfigValue (lNbOfRunsStr,
52 std::string lETCDirPath (
"/etc/");
54 const stdair::ConfigINIFile lETCDirConfigFile (lETCDirPath);
55 ioSTDAIR_Service.importINIConfig (lETCDirConfigFile);
59 const char *lHomeDIR = getenv(
"HOME");
60 std::string lHomeDIRPath (lHomeDIR);
63 const stdair::ConfigINIFile lConfigFile (lHomeDIRPath);
64 ioSTDAIR_Service.importINIConfig (lConfigFile);
74 const stdair::ScheduleFilePath& iScheduleInputFilename,
75 const stdair::ODFilePath& iODInputFilename,
76 const stdair::FRAT5FilePath& iFRAT5InputFilename,
77 const stdair::FFDisutilityFilePath& iFFDisutilityInputFilename,
78 const AIRRAC::YieldFilePath& iYieldInputFilepath,
79 const SIMFQT::FareFilePath& iFareInputFilepath,
80 const TRADEMGEN::DemandFilePath& iDemandFilepath) {
83 ioSTDAIR_Service.importConfigValue (iScheduleInputFilename.name(),
85 ioSTDAIR_Service.importConfigValue (iODInputFilename.name(),
87 ioSTDAIR_Service.importConfigValue (iFRAT5InputFilename.name(),
89 ioSTDAIR_Service.importConfigValue (iFFDisutilityInputFilename.name(),
90 "input.ffdisutility");
91 ioSTDAIR_Service.importConfigValue (iYieldInputFilepath.name(),
93 ioSTDAIR_Service.importConfigValue (iFareInputFilepath.name(),
95 ioSTDAIR_Service.importConfigValue (iDemandFilepath.name(),