1 #ifndef __TRADEMGEN_CMD_DEMANDMANAGER_HPP
2 #define __TRADEMGEN_CMD_DEMANDMANAGER_HPP
8 #include <stdair/stdair_basic_types.hpp>
9 #include <stdair/basic/RandomGeneration.hpp>
10 #include <stdair/basic/DemandGenerationMethod.hpp>
11 #include <stdair/bom/BookingRequestTypes.hpp>
12 #include <stdair/command/CmdAbstract.hpp>
14 #include <sevmgr/SEVMGR_Types.hpp>
23 struct ProgressStatusSet;
24 struct TravelSolutionStruct;
30 struct DemandDistribution;
33 namespace DemandParserHelper {
125 static void buildSampleBomStd (SEVMGR::SEVMGR_ServicePtr_T,
126 stdair::RandomGeneration&,
130 static void buildSampleBom (SEVMGR::SEVMGR_ServicePtr_T,
131 stdair::RandomGeneration&,
143 static void createDemandCharacteristics (SEVMGR::SEVMGR_ServicePtr_T,
144 stdair::RandomGeneration&,
155 static stdair::RandomSeed_T generateSeed (stdair::RandomGeneration&);
178 createDemandStream (SEVMGR::SEVMGR_ServicePtr_T,
186 const stdair::ChangeFeesRatio_T&,
187 const stdair::Disutility_T&,
188 const stdair::NonRefundableRatio_T&,
189 const stdair::Disutility_T&,
191 const stdair::WTP_T&,
194 const stdair::RandomSeed_T&,
195 const stdair::RandomSeed_T&,
216 stillHavingRequestsToBeGenerated (SEVMGR::SEVMGR_ServicePtr_T,
217 const stdair::DemandStreamKeyStr_T&,
218 stdair::ProgressStatusSet&,
219 const stdair::DemandGenerationMethod&);
236 static stdair::Count_T generateFirstRequests (SEVMGR::SEVMGR_ServicePtr_T,
237 stdair::RandomGeneration&,
238 const stdair::DemandGenerationMethod&);
268 static stdair::BookingRequestPtr_T
269 generateNextRequest (SEVMGR::SEVMGR_ServicePtr_T, stdair::RandomGeneration&,
270 const stdair::DemandStreamKeyStr_T&,
271 const stdair::DemandGenerationMethod&);
282 static void reset (SEVMGR::SEVMGR_ServicePtr_T, stdair::BaseGenerator_T&);
287 static bool generateCancellation (stdair::RandomGeneration&,
288 const stdair::TravelSolutionStruct&,
289 const stdair::PartySize_T&,
290 const stdair::DateTime_T&,
291 const stdair::Date_T&,
292 stdair::EventStruct& ioEventStruct);
296 #endif // __TRADEMGEN_CMD_DEMANDMANAGER_HPP