WSF
WsfSOSM_Interface.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFSOSM_INTERFACE_HPP
13#define WSFSOSM_INTERFACE_HPP
14
15#include "wsf_sosm_export.h"
16
17#include <map>
18#include <string>
19
20#include "UtCallbackHolder.hpp"
22
23class SOSM_Manager;
24class UtInput;
25class WsfPlatform;
26class WsfSensorMode;
27
32
33class WSF_SOSM_EXPORT WsfSOSM_Interface : public WsfScenarioExtension
34{
35public:
37 ~WsfSOSM_Interface() override;
38
39 void AddedToScenario() override;
40 bool Complete() override;
41 bool ProcessInput(UtInput& aInput) override;
42
43 std::string GetSensorType(WsfSensorMode* aSensorModePtr) const;
44 std::string GetTargetType(WsfPlatform* aTargetPtr) const;
45
46 SOSM_Manager& GetManager() const { return *mManagerPtr; }
47
48protected:
49 void FileReferenced(const std::string& aFileName);
50
52 typedef std::map<std::string, std::string> TypeMap;
55 UtCallbackHolder mCallbacks;
56};
57
58#endif
A singleton class that manages SOSM data.
Definition SOSM_Manager.hpp:32
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
SOSM_Manager * mManagerPtr
Definition WsfSOSM_Interface.hpp:51
TypeMap mTargetTypeMap
Definition WsfSOSM_Interface.hpp:54
std::string GetTargetType(WsfPlatform *aTargetPtr) const
Return the SOSM target type to be used to model the specified target.
Definition WsfSOSM_Interface.cpp:216
std::string GetSensorType(WsfSensorMode *aSensorModePtr) const
Return the SOSM sensor type to be used to model the specified sensor (mode).
Definition WsfSOSM_Interface.cpp:171
WsfSOSM_Interface()
Definition WsfSOSM_Interface.cpp:45
SOSM_Manager & GetManager() const
Definition WsfSOSM_Interface.hpp:46
UtCallbackHolder mCallbacks
Definition WsfSOSM_Interface.hpp:55
TypeMap mSensorTypeMap
Definition WsfSOSM_Interface.hpp:53
std::map< std::string, std::string > TypeMap
Definition WsfSOSM_Interface.hpp:52
WsfScenarioExtension()
Definition WsfScenarioExtension.cpp:21
virtual bool ProcessInput(UtInput &aInput)
Definition WsfScenarioExtension.cpp:62
virtual bool Complete()
Definition WsfScenarioExtension.cpp:89
virtual void AddedToScenario()
Definition WsfScenarioExtension.cpp:50
Definition WsfSensorMode.hpp:36
Copyrights Multiple, All Rights Reserved