1 #ifndef __TVLSIM_SVC_TVLSIMSERVICECONTEXT_HPP
2 #define __TVLSIM_SVC_TVLSIMSERVICECONTEXT_HPP
10 #include <stdair/stdair_service_types.hpp>
11 #include <stdair/service/ServiceAbstract.hpp>
13 #include <sevmgr/SEVMGR_Types.hpp>
15 #include <simcrs/SIMCRS_Types.hpp>
17 #include <trademgen/TRADEMGEN_Types.hpp>
19 #include <travelccm/TRAVELCCM_Types.hpp>
52 assert (_simulationStatus != NULL);
53 return *_simulationStatus;
60 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
61 return _stdairService;
67 stdair::STDAIR_Service& getSTDAIR_Service()
const {
68 assert (_stdairService != NULL);
69 return *_stdairService;
75 SEVMGR::SEVMGR_ServicePtr_T getSEVMGR_ServicePtr()
const {
76 return _sevmgrService;
82 SEVMGR::SEVMGR_Service& getSEVMGR_Service()
const {
83 assert (_sevmgrService != NULL);
84 return *_sevmgrService;
89 const bool getOwnStdairServiceFlag()
const {
90 return _ownStdairService;
96 const RDSParameters& getRDSParameters()
const {
97 return _rdsParameters;
103 SIMCRS::SIMCRS_Service& getSIMCRS_Service()
const {
104 return *_simcrsService.get();
110 TRADEMGEN::TRADEMGEN_Service& getTRADEMGEN_Service()
const {
111 return *_trademgenService.get();
117 TRAVELCCM::TRAVELCCM_Service& getTRAVELCCM_Service()
const {
118 return *_travelccmService.get();
126 _simulatorID = iSimulatorID;
133 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
134 const bool iOwnStdairService) {
135 _stdairService = ioSTDAIR_ServicePtr;
136 _ownStdairService = iOwnStdairService;
142 void setSEVMGR_Service (SEVMGR::SEVMGR_ServicePtr_T ioSEVMGR_ServicePtr) {
143 _sevmgrService = ioSEVMGR_ServicePtr;
149 void setRDSParameters (
const RDSParameters& iRDSParameters) {
150 _rdsParameters = iRDSParameters;
156 void setSIMCRS_Service (SIMCRS::SIMCRS_ServicePtr_T ioServicePtr) {
157 _simcrsService = ioServicePtr;
163 void setTRADEMGEN_Service (TRADEMGEN::TRADEMGEN_ServicePtr_T ioServicePtr) {
164 _trademgenService = ioServicePtr;
170 void setTRAVELCCM_Service (TRAVELCCM::TRAVELCCM_ServicePtr_T ioServicePtr) {
171 _travelccmService = ioServicePtr;
180 const std::string shortDisplay()
const;
185 const std::string display()
const;
190 const std::string describe()
const;
198 TVLSIM_ServiceContext ();
208 TVLSIM_ServiceContext (
const TVLSIM_ServiceContext&);
213 ~TVLSIM_ServiceContext();
234 stdair::STDAIR_ServicePtr_T _stdairService;
239 bool _ownStdairService;
244 SEVMGR::SEVMGR_ServicePtr_T _sevmgrService;
249 SIMCRS::SIMCRS_ServicePtr_T _simcrsService;
254 TRADEMGEN::TRADEMGEN_ServicePtr_T _trademgenService;
259 TRAVELCCM::TRAVELCCM_ServicePtr_T _travelccmService;
274 SimulationStatus* _simulationStatus;
279 RDSParameters _rdsParameters;
283 #endif // __TVLSIM_SVC_TVLSIMSERVICECONTEXT_HPP