8 #include <stdair/factory/FacBom.hpp>
17 TVLSIM_ServiceContext::TVLSIM_ServiceContext (
const TVLSIM_ServiceContext&)
18 : _ownStdairService (false),
19 _simulationStatus (NULL) {
24 TVLSIM_ServiceContext::TVLSIM_ServiceContext ()
26 _simulationStatus (NULL) {
32 TVLSIM_ServiceContext::TVLSIM_ServiceContext (
const SimulatorID_T& iSimulatorID)
33 : _simulatorID (iSimulatorID),
34 _simulationStatus (NULL) {
35 initSimulationStatus (iSimulatorID);
39 TVLSIM_ServiceContext::~TVLSIM_ServiceContext() {
44 void TVLSIM_ServiceContext::initSimulationStatus (
const SimulatorID_T& iSimulatorID) {
47 const SimulationStatusKey lKey (iSimulatorID);
50 SimulationStatus& lSimulationStatus =
51 stdair::FacBom<SimulationStatus>::instance().create (lKey);
54 _simulationStatus = &lSimulationStatus;
58 const std::string TVLSIM_ServiceContext::shortDisplay()
const {
59 std::ostringstream oStr;
60 oStr <<
"TVLSIM_ServiceContext [" << _simulatorID
61 <<
"] -- Owns StdAir service: " << _ownStdairService
62 <<
". Configuration parameters: "
68 const std::string TVLSIM_ServiceContext::display()
const {
69 std::ostringstream oStr;
70 oStr << shortDisplay();
75 const std::string TVLSIM_ServiceContext::describe()
const {
76 return shortDisplay();
80 void TVLSIM_ServiceContext::reset() {
87 _simcrsService.reset();
90 _trademgenService.reset();
93 _travelccmService.reset();
96 _sevmgrService.reset();
99 _stdairService.reset();