9 #include <vlpi/simulationAddress.h>
14 #include <boost/signals2.hpp>
18 #include <unordered_map>
40 virtual void requestSpotReports(
const DtSimulationAddress&);
43 virtual bool isSpotReport(
const DtUUID&)
const;
46 virtual bool removeSpotReport(
const DtUUID&);
49 virtual void setSuspended(
bool);
56 virtual std::set<DtUUID> observedBy(
const DtUUID&)
const;
59 virtual std::set<DtUUID> observing(
const DtUUID&)
const;
71 return mySpotReportHandlersBySC;
74 virtual void unmanageAndDeleteAllPerspectives();
75 virtual void removeAllSpotReports();
85 template <
typename Perspective_Name>
92 Perspective_Name* perspective =
dynamic_cast<Perspective_Name*
>(
97 perspective->refresh();
100 managePerspective(perspective);
114 const std::vector<int>& certaintyLevels()
const;
115 virtual void setCertaintyLevels(
const std::vector<int>&);
116 virtual void setCertaintyLevel(
int level,
int time);
120 virtual int certaintyLevelForTime(
double d)
const;
122 virtual void setSpotReportGatherTime(
int);
125 return mySpotReportGatherTime;
137 virtual void requestSpotReports();
139 virtual void objectEntryRemoved(
const DtUUID&);
140 virtual void spotterRemoved(
const DtUUID&);
141 virtual void contactRemoved(
const DtUUID&);
153 virtual void updateFlushTime();
166 virtual std::set<DtSimulationAddress> backendsLoaded()
const = 0;
167 virtual unsigned long generateRequestId() = 0;
168 virtual double simTime()
const = 0;
171 virtual bool anyBackendsPlaying()
const = 0;
172 virtual int numberOfBackends()
const = 0;
173 virtual double dateAndTimeOfDay()
const = 0;
177 unsigned long myResendId = 0;
180 using Observed = std::unordered_map<DtUUID, std::set<DtUUID>>;
191 int mySpotReportGatherTime = 3;
UUID is a unique ID wrapper class.
Definition: uuid.h:59
std::vector< int > myCertaintyLevels
Definition: spotReportManager.h:192
virtual int spotReportGatherTime() const
Definition: spotReportManager.h:123
The DtSpotReportManager class is used manage and keep track of spot reports. by spotter and who they ...
Definition: spotReportManager.h:34
Definition: vrfSingletonRoot.h:17
#define DT_DLL_vrfcontrol
This file is used to determine how to build.
Definition: vrfcontrolDefines.h:28
SpotReportHandlersBySC mySpotReportHandlersBySC
Definition: spotReportManager.h:178
boost::signals2::signal< void(const DtUUID &)> signal_contactDeleted
Definition: spotReportManager.h:158
bool suspended() const
Definition: spotReportManager.h:50
bool mySuspended
Definition: spotReportManager.h:184
const SpotReportHandlersBySC & spotReportHandlersByHandler() const
Definition: spotReportManager.h:69
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
Contains the DtUUID class declaration.
boost::signals2::signal< void(const DtSpotReport *)> signal_reportUpdated
Definition: spotReportManager.h:161
T_Class * instance() const
Returns an instance, if exists, else nullptr.
Definition: vrfSingletonRoot.h:29
DtVrfSingleton is a class that all singletons that can be registered with the DtVrfSingletonRoot are ...
Definition: vrfSingleton.h:15
std::map< DtUUID, SpotReportHandlersByC > SpotReportHandlersBySC
Definition: spotReportManager.h:67
std::map< DtUUID, std::unique_ptr< DtSpotReport >> SpotReportHandlersByC
Spot report handlers are organized by spotter and contact.
Definition: spotReportManager.h:66
std::unordered_map< DtUUID, std::set< DtUUID >> Observed
Definition: spotReportManager.h:180
int myPauseFlushUpdate
Definition: spotReportManager.h:186
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
double myNextFlushDataTime
Definition: spotReportManager.h:185
std::map< unsigned long, std::set< DtSimulationAddress >> SpotReportRequests
Definition: spotReportManager.h:176
Definition: spotReportPerspectiveInterface.h:19
boost::signals2::signal< void()> signal_allSpotReportsRemoved
Definition: spotReportManager.h:156
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
Perspectives myPerspectives
Definition: spotReportManager.h:189
Perspective_Name * createAndManagePerspective(bool andRefresh=true)
Creates a new perspective from a creator registered with this class and manages it in the tick() meth...
Definition: spotReportManager.h:86
std::set< DtSpotReportPerspectiveInterface * > Perspectives
Definition: spotReportManager.h:188
boost::signals2::signal< void(const DtUUID &)> signal_spotterDeleted
Definition: spotReportManager.h:159
boost::signals2::signal< void(const DtSpotReport *)> signal_reportAboutToBeDeleted
Definition: spotReportManager.h:160
boost::signals2::signal< void(DtSpotReport *)> signal_spotReportCreated
Definition: spotReportManager.h:157
Definition: simInterfaceContent.h:45
Observed myObservedBy
Definition: spotReportManager.h:181
Observed myObserving
Definition: spotReportManager.h:182
Definition: spotReportPerspectiveInterface.h:93
DtSpotReport; subclass of DtSimReport.
Definition: spotReport.h:35
Definition: spotReportDataHandler.h:30