1 #ifndef __TVLSIM_SVC_TVLSIM_SERVICE_HPP
2 #define __TVLSIM_SVC_TVLSIM_SERVICE_HPP
8 #include <stdair/stdair_basic_types.hpp>
9 #include <stdair/stdair_file.hpp>
10 #include <stdair/stdair_date_time_types.hpp>
11 #include <stdair/stdair_maths_types.hpp>
12 #include <stdair/stdair_service_types.hpp>
13 #include <stdair/basic/DemandGenerationMethod.hpp>
14 #include <stdair/bom/TravelSolutionTypes.hpp>
15 #include <stdair/bom/BreakPointStruct.hpp>
17 #include <airrac/AIRRAC_Types.hpp>
19 #include <simfqt/SIMFQT_Types.hpp>
21 #include <trademgen/TRADEMGEN_Types.hpp>
31 struct BookingRequestStruct;
39 class TVLSIM_ServiceContext;
41 class SimulationStatus;
74 TVLSIM_Service (
const stdair::BasLogParams&,
const stdair::BasDBParams&,
75 const stdair::Date_T& iStartDate,
76 const stdair::Date_T& iEndDate,
const stdair::RandomSeed_T&,
77 const stdair::DemandGenerationMethod&,
104 TVLSIM_Service (
const stdair::BasLogParams&,
const stdair::Date_T& iStartDate,
105 const stdair::Date_T& iEndDate,
const stdair::RandomSeed_T&,
106 const stdair::DemandGenerationMethod&,
134 TVLSIM_Service (stdair::STDAIR_ServicePtr_T,
const stdair::Date_T& iStartDate,
135 const stdair::Date_T& iEndDate,
const stdair::RandomSeed_T&,
136 const stdair::DemandGenerationMethod&,
163 void optimise (
const stdair::RMEventStruct&);
197 const stdair::ODFilePath&,
198 const stdair::FRAT5FilePath&,
199 const stdair::FFDisutilityFilePath&,
200 const AIRRAC::YieldFilePath&,
201 const SIMFQT::FareFilePath&,
202 const TRADEMGEN::DemandFilePath&);
285 stdair::BookingRequestStruct
301 bool sell (
const std::string& iSegmentDateKey,
const stdair::ClassCode_T&,
302 const stdair::PartySize_T&);
316 std::string
jsonHandler (
const stdair::JSONString&);
327 std::string jsonBreakPointHandler (
const stdair::JSONString&);
337 std::string jsonRunHandler (
const stdair::JSONString&);
375 std::string
listEvents (
const stdair::EventType::EN_EventType&)
const;
400 std::string
list (
const stdair::AirlineCode_T& iAirlineCode =
"all",
401 const stdair::FlightNumber_T& iFlightNumber = 0)
const;
414 std::string
csvDisplay (
const stdair::AirlineCode_T&,
415 const stdair::FlightNumber_T&,
416 const stdair::Date_T& iDepartureDate)
const;
447 stdair::STDAIR_ServicePtr_T initStdAirService (
const stdair::BasLogParams&,
448 const stdair::BasDBParams&);
459 stdair::STDAIR_ServicePtr_T initStdAirService (
const stdair::BasLogParams&);
467 void initSEVMGRService ();
472 void initSIMCRSService();
477 void initTRADEMGENService ();
482 void initTRAVELCCMService();
492 void addStdAirService (stdair::STDAIR_ServicePtr_T,
493 const bool iOwnStdairService);
499 void initServiceContext ();
518 void initConfig (
const stdair::Date_T& iStartDate,
519 const stdair::Date_T& iEndDate,
520 const stdair::RandomSeed_T&,
521 const stdair::DemandGenerationMethod&,
528 void initDsimService();
538 void prepareNewRun();
543 void clonePersistentBom ();
549 void buildComplementaryLinks (stdair::BomRoot&);
560 #endif // __TVLSIM_SVC_TVLSIM_SERVICE_HPP