1 #ifndef __TRADEMGEN_SVC_TRADEMGENSERVICECONTEXT_HPP
2 #define __TRADEMGEN_SVC_TRADEMGENSERVICECONTEXT_HPP
10 #include <stdair/stdair_basic_types.hpp>
11 #include <stdair/stdair_service_types.hpp>
12 #include <stdair/basic/RandomGeneration.hpp>
13 #include <stdair/bom/BookingRequestTypes.hpp>
14 #include <stdair/service/ServiceAbstract.hpp>
21 struct DemandCharacteristics;
22 struct DemandDistribution;
44 stdair::STDAIR_ServicePtr_T getSTDAIR_ServicePtr()
const {
45 return _stdairService;
51 stdair::STDAIR_Service& getSTDAIR_Service()
const {
52 assert (_stdairService != NULL);
53 return *_stdairService;
59 const bool getOwnStdairServiceFlag()
const {
60 return _ownStdairService;
66 stdair::RandomGeneration& getUniformGenerator() {
67 return _uniformGenerator;
74 return _posProbabilityMass;
83 void setSTDAIR_Service (stdair::STDAIR_ServicePtr_T ioSTDAIR_ServicePtr,
84 const bool iOwnStdairService) {
85 _stdairService = ioSTDAIR_ServicePtr;
86 _ownStdairService = iOwnStdairService;
95 const std::string shortDisplay()
const;
100 const std::string display()
const;
105 const std::string describe()
const;
113 TRADEMGEN_ServiceContext (
const stdair::RandomSeed_T&);
117 TRADEMGEN_ServiceContext();
121 TRADEMGEN_ServiceContext (
const TRADEMGEN_ServiceContext&);
126 ~TRADEMGEN_ServiceContext();
139 stdair::STDAIR_ServicePtr_T _stdairService;
144 bool _ownStdairService;
155 stdair::RandomGeneration _uniformGenerator;
164 #endif // __TRADEMGEN_SVC_TRADEMGENSERVICECONTEXT_HPP