![]() |
VR-Forces Developer's Guide
|
The DtSpotReportManager class is used manage and keep track of spot reports. by spotter and who they have spotted.

Public Types | |
| using | SpotReportHandlersByC = std::map< DtUUID, std::unique_ptr< DtSpotReport >> |
| using | SpotReportHandlersBySC = std::map< DtUUID, SpotReportHandlersByC > |
Public Attributes | |
| boost::signals2::signal< void()> | signal_allSpotReportsRemoved |
| boost::signals2::signal< void(DtSpotReport *)> | signal_spotReportCreated |
| boost::signals2::signal< void(const DtUUID &)> | signal_contactDeleted |
| boost::signals2::signal< void(const DtUUID &)> | signal_spotterDeleted |
| boost::signals2::signal< void(const DtSpotReport *)> | signal_reportAboutToBeDeleted |
| boost::signals2::signal< void(const DtSpotReport *)> | signal_reportUpdated |
Protected Types | |
| using | SpotReportRequests = std::map< unsigned long, std::set< DtSimulationAddress >> |
| using | Observed = std::unordered_map< DtUUID, std::set< DtUUID >> |
| using | Perspectives = std::set< DtSpotReportPerspectiveInterface * > |
Protected Types inherited from DtVrfSingletonRoot | |
| using | Instances = std::map< std::string, DtVrfSingleton * > |
Protected Member Functions | |
| virtual void | processReceiveSpotReport (const DtVrfObjectMessage *msg) |
| virtual void | processReceiveSpotReports (const DtVrfObjectMessage *msg) |
| virtual DtSpotReport * | addOrUpdateSpotReport (DtSpotReport *, bool *createdNew=nullptr) |
| virtual void | requestSpotReports () |
| virtual void | objectEntryRemoved (const DtUUID &) |
| virtual void | spotterRemoved (const DtUUID &) |
| virtual void | contactRemoved (const DtUUID &) |
| virtual void | tick () |
| virtual DtSpotReport * | createSpotReport (const DtSpotReport *rep) |
| virtual void | handlerAboutToBeDeleted (DtSpotReport *) |
| virtual void | spotReportCreated (DtSpotReport *) |
| virtual void | spotReportUpdated (DtSpotReport *) |
| virtual void | updateFlushTime () |
Protected Attributes | |
| unsigned long | myResendId = 0 |
| SpotReportHandlersBySC | mySpotReportHandlersBySC |
| Observed | myObservedBy |
| Observed | myObserving |
| bool | mySuspended |
| double | myNextFlushDataTime |
| int | myPauseFlushUpdate |
| Perspectives | myPerspectives |
| int | mySpotReportGatherTime = 3 |
| std::vector< int > | myCertaintyLevels |
Protected Attributes inherited from DtVrfSingletonRoot | |
| Instances | myInstances |
| using DtSpotReportManager::SpotReportHandlersByC = std::map<DtUUID, std::unique_ptr<DtSpotReport>> |
Spot report handlers are organized by spotter and contact.
| using DtSpotReportManager::SpotReportHandlersBySC = std::map<DtUUID, SpotReportHandlersByC> |
|
protected |
|
protected |
|
protected |
| DtSpotReportManager::DtSpotReportManager | ( | ) |
|
virtual |
|
virtual |
Returns true if one of the perspectives has this spot report handler UUID.
Returns true if the spot report UUID is in a perspective and was removed.
|
virtual |
Suspends ticking.
|
inline |
The spotters that are observing the contact. In the case of a spot report UUID it will be what it is observed by.
The contacts that this spotter is observing. If this is a contact will return who this contact is observed by.
|
virtual |
Looks through all the managed perspectives to find the given handler with the spot report ID.
|
inline |
|
virtual |
|
virtual |
|
virtual |
Removes all spot report and resets flush data time.
|
inline |
Creates a new perspective from a creator registered with this class and manages it in the tick() method.
Use andRefresh as false if you are going to set up conditions in the perspective after its creation to prevent unneccesary overhead of handling reports not needed. Once the conditions are set call refresh() on the perspective to evaluate current reports.
References DtVrfSingletonRoot::instance().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| const std::vector<int>& DtSpotReportManager::certaintyLevels | ( | ) | const |
|
virtual |
Reimplemented in makVrf::DtVrfSpotReportManager.
Reimplemented in makVrf::DtVrfSpotReportManager.
Given the time (in seconds) return the certainty level of the spot report. Return of -1 means that no level was found.
|
virtual |
Reimplemented in makVrf::DtVrfSpotReportManager.
|
inlinevirtual |
Reimplemented in makVrf::DtVrfSpotReportManager.
|
virtual |
Reimplemented in makVrf::DtVrfSpotReportManager.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Requests spot reports from all currently loaded back-ends.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in makVrf::DtVrfSpotReportManager.
|
protectedvirtual |
Adds a new spot report into the system. If key exists will not and false returned.
|
protectedvirtual |
Clears all spot reports and deletes all handlers.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
pure virtual |
Overrides needed to implement specifics for network transport.
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
|
pure virtual |
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
|
pure virtual |
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
|
pure virtual |
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
|
pure virtual |
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
|
pure virtual |
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
|
pure virtual |
Implemented in makVrf::DtVrfSpotReportManager, and DtRemoteControlSpotReportManager.
| boost::signals2::signal<void()> DtSpotReportManager::signal_allSpotReportsRemoved |
| boost::signals2::signal<void(DtSpotReport*)> DtSpotReportManager::signal_spotReportCreated |
| boost::signals2::signal<void(const DtUUID&)> DtSpotReportManager::signal_contactDeleted |
| boost::signals2::signal<void(const DtUUID&)> DtSpotReportManager::signal_spotterDeleted |
| boost::signals2::signal<void(const DtSpotReport*)> DtSpotReportManager::signal_reportAboutToBeDeleted |
| boost::signals2::signal<void(const DtSpotReport*)> DtSpotReportManager::signal_reportUpdated |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |