WSF
WsfMTT_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// Updated by Infoscitex, a DCS Company
13//****************************************************************************
14
15#ifndef WSFMTT_INTERFACE_HPP
16#define WSFMTT_INTERFACE_HPP
17
18#include "wsf_mtt_export.h"
19
20#include <map>
21#include <string>
22
23class MTT;
24class MTT_ActiveTrack;
27#include "MTT_Parameters.hpp"
28#include "UtCallback.hpp"
29#include "UtCallbackHolder.hpp"
30class UtInput;
31
33class WsfPlatform;
34class WsfTrack;
36#include "WsfTrackId.hpp"
37class WsfTrackManager;
38class WsfEventOutput;
39
53
55{
56public:
58
59 ~WsfMTT_Interface() override;
60
61 void AddedToSimulation() override;
62
63 static WsfMTT_Interface* Find(const WsfSimulation& aSimulation);
64
65 bool Initialize() override;
66
67 MTT* GetMTT(WsfStringId aPlatformId); // For use at runtime.
68
70
71 void Register(std::shared_ptr<MTT> aMTT_Ptr, WsfPlatform* aPlatformPtr);
72
73private:
74 UtCallbackHolder mCallbacks;
75
76 // Instance maintenance
77 using PlatformToMTT_Map = std::map<WsfStringId, std::shared_ptr<MTT>>;
78 struct Trackers
79 {
80 public:
81 Trackers() = default;
82 ~Trackers() = default;
83 PlatformToMTT_Map mPlatformToMTT_Map;
84 };
85 Trackers mTrackers;
86};
87
88#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Corresponds with Suppressor block 387.
Definition MTT_ActiveTrack.hpp:28
Corresponds with Suppressor block 386.
Definition MTT_CandidateTrack.hpp:21
Corresponds with Suppressor block 385.
Definition MTT_EmbryonicTrack.hpp:24
Definition MTT.hpp:49
A simulation observer to write an event output file.
Definition WsfEventOutput.hpp:33
bool mUserReferencePointDefined
Definition WsfMTT_Interface.hpp:49
WsfMTT_InterfaceData(WsfScenario &aScenario)
Definition WsfMTT_Interface.cpp:104
bool ProcessInput(UtInput &aInput)
Definition WsfMTT_Interface.cpp:193
WsfScenario * mScenarioPtr
Definition WsfMTT_Interface.hpp:48
virtual ~WsfMTT_InterfaceData()=default
WsfMTT_ReferencePoint mReferencePoint
Definition WsfMTT_Interface.hpp:51
bool mReferencePointDefined
Definition WsfMTT_Interface.hpp:50
static WsfMTT_Interface * Find(const WsfSimulation &aSimulation)
Definition WsfMTT_Interface.cpp:224
WsfMTT_ReferencePoint & GetReferencePoint()
Definition WsfMTT_Interface.hpp:69
bool Initialize() override
Definition WsfMTT_Interface.cpp:155
void AddedToSimulation() override
Definition WsfMTT_Interface.cpp:124
WsfMTT_Interface(const WsfMTT_InterfaceData &aData)
Definition WsfMTT_Interface.cpp:112
MTT * GetMTT(WsfStringId aPlatformId)
Definition WsfMTT_Interface.cpp:164
Definition WsfMTT_ReferencePoint.hpp:26
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
WsfSimulationExtension()
Definition WsfSimulationExtension.cpp:23
friend class WsfSimulation
Definition WsfSimulationExtension.hpp:43
Definition WsfTrackManager.hpp:62
An object that represents an 'track' (perception) of something.
Definition WsfTrack.hpp:120
Copyrights Multiple, All Rights Reserved