![]() |
VR-Forces Developer's Guide
|
This class holds the state data that represents each simulation object in the system.
Classes | |
| struct | ComponentRemoval |
| struct | StateComponent |
Public Types | |
| enum | FrameStatus { FrameStatus::Normal = 0, FrameStatus::SkippedBeginFrame, FrameStatus::SkipAdvanceFrame } |
| typedef std::set< const DtFrameStateInterface * > | CurrentFrameStates |
| using | PreAddCallback = boost::function< bool(DtStateData *)> |
| typedef boost::signals2::signal< void(DtStateComponent *)> | StateComponentSignal |
| typedef std::vector < DtStateData * > | StateData |
| using | StateDataCreatorFcn = DtStateData *(*)(makVrf::SimStateID, Legion::SimulationDatabase *, DtStateDataManager *) |
| using | RemoteStateDataCreatorFcn = DtStateData *(*)(makVrf::SimStateID, UInt64 legionId, Legion::SimulationDatabase *, DtStateDataManager *) |
| typedef std::unordered_map < UInt64, DtStateData * > | StateDataByUniqueId |
Public Member Functions | |
| DtStateDataManager (Legion::SimulationDatabase *=nullptr, int threadPoolSize=-1, unsigned int clientId=0) | |
| virtual | ~DtStateDataManager () |
| virtual DtStateData * | createStateData (bool isLocal, const DtEntityType &, const DtUUID &uuid=DtUUID(), int publishFlag=0, PreAddCallback callback=0, const DtEntityIdentifier &entId=DtEntityIdentifier::nullId(), bool addToSimObjectManager=true, const DtString &globalId=DtString::nullString()) |
| virtual void | setParameterDatabase (DtVrfParameterDb *) |
| DtVrfParameterDb * | parameterDatabase () const |
| DtVrfCallbackQueue & | jobProcessor () |
| virtual DtStateData * | createStateData (Legion::UInt64 legionHandle, PreAddCallback callback=0) |
| virtual void | removeAndDeleteAll (const std::set< DtUUID > &except=std::set< DtUUID >()) |
| virtual void | removeStateData (DtStateData *) |
| virtual void | removeStateData (const DtUUID &) |
| virtual void | removeStateDataByStateId (makVrf::SimStateID) |
| virtual void | removeStateDataByUniqueId (unsigned long long) |
| virtual void | mapStateDataByUniqueId (unsigned long long, DtStateData *) |
| virtual void | unmapStateDataByUniqueId (unsigned long long) |
| virtual void | beginFrame (double simTime) |
| virtual void | advanceFrame () |
| virtual DtStateData * | advanceFrameFor (unsigned long long uniqueId) |
| virtual void | registerLegionComponents (Legion::SimulationDatabase *) |
| Legion::EventManager * | eventManager () |
| Legion::SimulationDatabase * | database () |
| Legion::SimulationDatabase * | unpublishedDatabase () |
| virtual void | aerodromeDiscovered (DtStateData *) |
| virtual void | entityDiscovered (DtStateData *) |
| virtual void | environmentalDiscovered (DtStateData *) |
| virtual void | unitDiscovered (DtStateData *) |
| virtual void | setBlockOnAdvanceFrameJobs (bool) |
| bool | blockOnAdvanceFrameJobs () const |
| virtual bool | hasOutstandingAdvanceFrameJobs () const |
| virtual void | reserve (unsigned int) |
| template<typename T_Class > | |
| void | handleDataUpdated (const std::vector< typename Legion::SetView< T_Class >::InstanceUpdateData > &instanceList) |
| template<typename T_Class > | |
| unsigned int | addInstanceUpdatedCallback (Legion::SimulationDatabase *database, DtInstanceUpdatedCallback callback, Legion::InstanceHandle instanceHandle, const typename std::vector< Legion::AttributeIndex > &attributeIndexFilter=std::vector< Legion::AttributeIndex >()) |
| template<typename T_Class > | |
| void | removeInstanceUpdatedCallback (Legion::SimulationDatabase *database, Legion::InstanceHandle instanceHandle, unsigned int callbackHandle) |
| bool | isValid () const |
| const StateData & | stateData () const |
| const DtStateData * | stateData (makVrf::SimStateID id) const |
| DtStateData * | stateData (makVrf::SimStateID id) |
| double | absRealTime () const |
| virtual void | prepareForHandoff (unsigned long long, bool becomingLocal) |
| virtual void | handoffComplete (makVrf::SimStateID) |
| virtual bool | awaitingHandoff (makVrf::SimStateID) const |
| virtual DtStateData * | createStateData (makVrf::SimStateID, Legion::SimulationDatabase *) |
| virtual DtStateData * | createStateData (makVrf::SimStateID, UInt64 legionGlobalId) |
| virtual void | clear (bool forReuse=false) |
| Legion::ControlManager * | controlManager () |
| virtual DtUUID | uuidFor (makVrf::SimStateID) const |
| virtual const DtStateData * | stateDataFor (const DtUUID &) const |
| virtual DtStateData * | stateDataFor (const DtUUID &) |
| virtual const DtStateData * | stateDataFor (const DtEntityIdentifier &) const |
| virtual DtStateData * | stateDataFor (const DtEntityIdentifier &) |
| virtual void | setUpdateOnlySpecifiedStateDataMode (bool) |
| bool | updateOnlySpecifiedStateDataMode () const |
| FrameStatus | frameStatus () const |
| virtual const DtStateData * | stateDataFor (makVrf::SimStateID) const |
| virtual DtStateData * | stateDataFor (makVrf::SimStateID) |
| virtual const DtStateData * | stateDataForUniqueId (UInt64) const |
| virtual DtStateData * | stateDataForUniqueId (UInt64) |
| virtual UInt64 | uniqueIdFrom (const DtUUID &) const |
| virtual void | setRunFullyThreaded (bool, int theadCount=4) |
| bool | runFullyThreaded () const |
| virtual void | addStateComponent (DtStateComponent *) |
| virtual void | removeStateComponent (DtStateComponent *, bool deleteOnRemoval=true) |
| virtual void | resizeContainer (unsigned) |
| template<typename T_Component > | |
| void | resizeContainer () |
| template<typename T_Component > | |
| StateComponentSignal & | signalWhenStateComponentAdded () |
| StateComponentSignal & | signalWhenStateComponentAdded (unsigned type) |
| template<typename T_Component > | |
| StateComponentSignal & | signalWhenStateComponentRemoved () |
| StateComponentSignal & | signalWhenStateComponentRemoved (unsigned type) |
| template<typename T_Component > | |
| const CurrentFrameStates & | stateComponents () const |
| virtual void | removeAll () |
| virtual std::set< const DtStateData * > | entitiesTracking (const DtUUID &) const |
| virtual std::set< const DtStateData * > | entitiesJamming (const DtUUID &) const |
| virtual DtTrackJamBeamInfoList | systemsTrackingObject (const DtUUID &) const |
| virtual DtTrackJamBeamInfoList | systemsJammingObject (const DtUUID &) const |
| virtual void | setUnpublishedDatabaseUsage (bool) |
| virtual void | setCoordinateSystem (const Coordinate_System *) |
| const Coordinate_System * | coordinateSystem () const |
| const StateDataByUniqueId & | entityData () const |
| const StateDataByUniqueId & | unitData () const |
| const StateDataByUniqueId & | aerodromeData () const |
| const StateDataByUniqueId & | environmentalData () const |
| virtual void | setPublishingOnLegionNetwork (bool b) |
| bool | publishingOnLegionNetwork () const |
| template<typename T_Class > | |
| Legion::SetView< T_Class > * | view (Legion::SimulationDatabase *db) |
| bool | advancingFrame () const |
Static Public Member Functions | |
| static StateDataCreatorFcn | setStateDataCreatorFcn (StateDataCreatorFcn) |
| static StateDataCreatorFcn | stateDataCreatorFcn () |
| static RemoteStateDataCreatorFcn | setRemoteStateDataCreatorFcn (RemoteStateDataCreatorFcn) |
| static RemoteStateDataCreatorFcn | remoteStateDataCreatorFcn () |
| static DtStateData * | defaultStateDataCreator (makVrf::SimStateID, Legion::SimulationDatabase *, DtStateDataManager *) |
| static DtStateData * | defaultRemoteStateDataCreator (makVrf::SimStateID, UInt64 legionGlobalId, Legion::SimulationDatabase *, DtStateDataManager *) |
| static void | SeedUnpublishedEntityId (short appId, short siteId) |
| static DtEntityIdentifier | NextUnpublishedEntityId () |
| static void | setStateDataManagerCreatorFcn (DtStateDataManagerCreatorFcn fcn) |
| static DtStateDataManager * | createStateDataManager (Legion::SimulationDatabase *=nullptr, int threadPoolSize=-1, unsigned int clientId=0) |
Public Attributes | |
| boost::signals2::signal< void(const Coordinate_System *)> | signal_coordinateSystemChanged |
| boost::signals2::signal< void(const DtStateData *)> | signal_stateDataAboutToBeRemoved |
| boost::signals2::signal< void(makVrf::SimStateID, UInt64)> | signal_stateDataRemoved |
| boost::signals2::signal< void(Legion::SimulationDatabase *)> | signal_addVrfSpecificDataElements |
| boost::signals2::signal< void(const DtStateData *)> | signal_initializeStateDataBeforeAdd |
| boost::signals2::signal< void(DtStateData *)> | signal_stateDataAdded |
| boost::signals2::signal< void()> | signal_beginFrame |
| boost::signals2::signal< void()> | signal_preAdvanceFrame |
| boost::signals2::signal< void()> | signal_advanceFrame |
| boost::signals2::signal< void(DtStateData *, bool)> | signal_prepareForHandoff |
| boost::signals2::signal< void(DtStateData *)> | signal_entityAdded |
| boost::signals2::signal< void(const DtStateData *)> | signal_entityRemoved |
| boost::signals2::signal< void(DtStateData *)> | signal_unitAdded |
| boost::signals2::signal< void(const DtStateData *)> | signal_unitRemoved |
| boost::signals2::signal< void(DtStateData *)> | signal_environmentalAdded |
| boost::signals2::signal< void(const DtStateData *)> | signal_environmentalRemoved |
| boost::signals2::signal< void(DtStateData *)> | signal_aerodromeAdded |
| boost::signals2::signal< void(const DtStateData *)> | signal_aerodromeRemoved |
| boost::signals2::signal< void(unsigned long long, const DtUUID &oldUUID, const DtUUID &newUUID)> | signal_uuidChanged |
| StateComponentSignal | signal_stateComponentAdded |
| StateComponentSignal | signal_stateComponentRemoved |
| boost::signals2::signal< void()> | signal_deleted |
| boost::signals2::signal< void(DtStateData *)> | signal_convertedToLocal |
Protected Types | |
| typedef std::vector < StateComponent > | CurrentFrameStatesList |
| typedef std::unordered_map < DtUUID, std::set < DtStateData * > > | StateDataByUUID |
| typedef std::unordered_map < std::string, std::set < DtStateData * > > | StateDataByEntityIdentifier |
| typedef std::map< DtString, Legion::View * > | Views |
| typedef std::map < Legion::SimulationDatabase *, Views > | DatabaseViews |
| typedef std::vector< std::pair < DtInstanceUpdatedCallback, unsigned int > > | Callbacks |
| typedef std::map < Legion::InstanceHandle, Callbacks > | InstanceUpdatedCallbacks |
| typedef std::map < Legion::AttributeSetId, InstanceUpdatedCallbacks > | InstancesUpdatedCallbacks |
| typedef std::pair< std::set < DtUUID >, std::set< DtUUID > > | SubordinateChangeSet |
| using | Condition = std::condition_variable |
| using | ConditionMutex = std::mutex |
| using | ConditionLock = std::unique_lock< ConditionMutex > |
Protected Member Functions | |
| virtual void | jobsThread () |
| virtual std::set< const DtStateData * > | entitiesTracking (int beamType, const DtUUID &) const |
| virtual DtTrackJamBeamInfoList | systemsTrackingObject (int beamType, const DtUUID &) const |
| virtual void | uuidChanged (makVrf::SimStateID, const DtUUID &oldUUID, const DtUUID &newUUID) |
| virtual void | hostChanged (const DtStateData *, const DtUUID &oldUUID, const DtUUID &newUUID) |
| virtual void | subordinatesChanged (const DtStateData *, const std::vector< DtUUID > &oldSubordinates, const std::vector< DtUUID > &newSubordinates) |
| virtual void | completeAttachments (DtStateData *) |
| virtual void | completeAttachments (const DtUUID &) |
| virtual void | completeAttachments () |
| virtual void | slot_stateComponentAboutToBeDeleted (DtStateComponent *) |
| virtual void | convertedToLocal (DtStateData *) |
| virtual void | resolveHostChanged (const DtUUID &, const DtUUID &oldUUID, const DtUUID &newUUID, std::set< DtEntityStateComponent * > &) |
| virtual bool | _internalRemoveStateData (DtStateData *sd) |
| virtual void | addVrfSpecificDataElements (Legion::SimulationDatabase *) |
| virtual void | resolveHostChanges () |
| virtual void | removeAllStateComponents () |
| virtual void | resolveSubordinateChanges () |
| virtual void | removeStateDataToBeDeleted () |
| void | initializeDefaultPublicData () |
| virtual void | componentDeleted (DtStateComponent *c) |
Static Protected Attributes | |
| static DtStateDataManagerCreatorFcn | theStateDataManagerCreatorFcn |
| typedef std::set<const DtFrameStateInterface*> makVrf::DtStateDataManager::CurrentFrameStates |
| using makVrf::DtStateDataManager::PreAddCallback = boost::function<bool (DtStateData*)> |
| typedef boost::signals2::signal<void (DtStateComponent*)> makVrf::DtStateDataManager::StateComponentSignal |
| typedef std::vector<DtStateData*> makVrf::DtStateDataManager::StateData |
| using makVrf::DtStateDataManager::StateDataCreatorFcn = DtStateData*(*)(makVrf::SimStateID, Legion::SimulationDatabase*, DtStateDataManager*) |
All state data created must have a UUID, so, if one is not provided, it will be supplied.
| using makVrf::DtStateDataManager::RemoteStateDataCreatorFcn = DtStateData*(*)(makVrf::SimStateID, UInt64 legionId, Legion::SimulationDatabase*, DtStateDataManager*) |
If remote state data do not have UUIDs, one will be assigned based on marking text.
| typedef std::unordered_map<UInt64, DtStateData*> makVrf::DtStateDataManager::StateDataByUniqueId |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
First is added, second removed.
|
protected |
|
protected |
|
protected |
|
strong |
| makVrf::DtStateDataManager::DtStateDataManager | ( | Legion::SimulationDatabase * | = nullptr, |
| int | threadPoolSize = -1, |
||
| unsigned int | clientId = 0 |
||
| ) |
If a simulation database is supplied that one will be used, else will create one.
|
virtual |
|
virtual |
If the preAddCallback returns false will not add the state data. When creating local state data, if a parameter database is specified it will look up the entry of the type being created in the parameter database and create any additional public data state components that is part of that parameter entry.
If addToSimObjectManager is false, the, the state data will not be part of the sim object manager as a shared reference. You will need to create and hold onto a shared reference for this state data, or, use the state data as a raw pointer
|
virtual |
Sets the parameter database used to look up entity-type entries when creating local state data.
|
inline |
Returns the parameter database associated with this manager.
|
inline |
Returns the job processor queue used to schedule asynchronous work items.
|
virtual |
Creates a state data from a remote legion buffer.
|
virtual |
Removes and deletes all state data (local and remote) from this manager.
|
virtual |
Removes and schedules deletion of the given state data object.
|
virtual |
Removes and schedules deletion of the state data identified by UUID.
|
virtual |
Removes and schedules deletion of the state data identified by simulation state ID.
Removes and schedules deletion of the state data identified by its unique integer ID.
|
virtual |
Adds an additional mapping to this state data. If an additional mapping by unique id is added, when the state data is removed the adder of this mapping must also remove it.
|
virtual |
Begins a new simulation frame; must be called before advanceFrame().
| simTime | Current simulation time in seconds. |
|
virtual |
Processes all pending state updates for the current frame.
|
virtual |
For an advance frame for the given legion id, if the state data for it exists, and, return it.
|
virtual |
Registers VRF-specific Legion data columns with the provided simulation database.
| Legion::EventManager* makVrf::DtStateDataManager::eventManager | ( | ) |
Returns the Legion event manager associated with the primary database.
|
inline |
Returns the primary Legion simulation database.
|
inline |
Returns the unpublished Legion simulation database if one exists, otherwise the primary database.
|
static |
Routines to use when creating a non published object that still wants an entity id. Use NextUnpublishedEntityId() to generate or Seed to start at a particular site/app id.
|
static |
Routines to use when creating a non published object that still wants an entity id. Use NextUnpublishedEntityId() to generate or Seed to start at a particular site/app id.
|
virtual |
Force rediscovery of particular object
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If false (default is true) will block until all advance frame jobs are complete. If this is set to false (which this should only be done for a completely remote process like the VRF GUI) then the jobs will be queued by will not wait for completion. If there are jobs left over for the next being frame, remote interfaces will not be processed. If ther were jobs and interfaces were not processed, the next advance frame is skipped until the interfaces are processed.
|
inline |
|
virtual |
Returns true if there are jobs waiting in the processing queue.
|
virtual |
Reserves capacity for at least the requested number of entities. This is a high-water mark, not a cumulative total: it grows to accommodate the largest single request seen so far, but calling this repeatedly with the same or a smaller value is a no-op and will not keep growing capacity. This is not thread safe.
|
inline |
Dispatches instance-updated callbacks for all changed instances of the given Legion data type.
|
inline |
Registers a callback to be invoked when the specified Legion instance is updated.
| database | The database containing the instance. |
| callback | The callback function to register. |
| instanceHandle | The Legion instance handle to watch. |
| attributeIndexFilter | Optional list of attribute indices to filter updates. |
|
inline |
Removes a previously registered instance-updated callback.
| database | The database containing the instance. |
| instanceHandle | The Legion instance handle being watched. |
| callbackHandle | The handle returned by addInstanceUpdatedCallback(). |
|
inline |
Returns true if this manager has a valid simulation database.
|
inline |
Returns the list of all state data objects owned by this manager.
|
inline |
Returns the state data for the given simulation state ID, or nullptr if not found.
|
inline |
const const
const const
|
inline |
Returns the absolute wall-clock time in seconds as tracked by the internal clock.
|
virtual |
Authority of this object is about to be handed off. The flag is whether it will be becoming local or remote.
|
virtual |
Notifies the manager that authority handoff for the given state ID is complete.
|
virtual |
Returns true if the given state ID is currently awaiting an authority handoff.
|
static |
Returns current state data creator.
|
static |
|
static |
Sets the factory function for creating remote state data objects; returns the previous function.
|
static |
Returns the current remote state data creator function.
|
static |
Default implementation for creating local state data objects.
|
static |
Default implementation for creating remote state data objects.
|
virtual |
Creates state data for the given simulation state ID using the supplied database.
|
virtual |
Creates state data for the given simulation state ID from a Legion global ID.
|
virtual |
Clears all lists and deletes all state data objects. use wisely. For reuse will mean that this manager is going to be reused with new objects rather than about to be deleted and disposed of.
| Legion::ControlManager* makVrf::DtStateDataManager::controlManager | ( | ) |
Returns the Legion control manager associated with the primary database.
|
virtual |
Returns the UUID for the state data identified by the given simulation state ID.
|
virtual |
Returns the state data associated with the given UUID, or nullptr if not found.
|
virtual |
const const
const const
|
virtual |
Returns the state data associated with the given entity identifier, or nullptr if not found.
|
virtual |
const const
const const
|
virtual |
Puts the DtStateDataManager into a mode where only specified state data are updated in the advance frame. Default is false.
|
inline |
|
inline |
Returns the current frame processing status.
|
virtual |
Returns the state data for the given simulation state ID, or nullptr if not found.
|
virtual |
const const
const const
|
virtual |
Returns the state data for the given unique integer ID, or nullptr if not found.
Referenced by makVrf::DtRemoteObjectManager::StateComponentAdder< T_VRFStateComponent, T_LegionComponent >::handleLegionSetAdded().
|
virtual |
const const
const const
Returns the Legion unique ID corresponding to the given UUID.
Whether or not to run fully threaded (default is true)
|
inline |
|
virtual |
Adds a state component to be tracked by this manager.
|
virtual |
Removes a state component from this manager; optionally deletes it.
|
virtual |
Resizes the internal state component container to accommodate the specified component type index.
|
inline |
Resizes the container for the given component type.
|
inline |
|
inline |
Returns the signal that fires when a state component of the given type index is added.
|
inline |
|
inline |
Returns the signal that fires when a state component of the given type index is removed.
|
inline |
Returns the set of currently registered state components for the given component type.
Referenced by makVrf::DtSimObjectManagerTemplate< DtSimObject >::stateComponents().
|
virtual |
Iterates over all the data and removes it all from the system, calling remove and signalling on each one, which could be a long process, depending on the amount of objects in the system.
|
virtual |
Given the global object designator, find all the entities that are tracking the given object by their emitter systems.
|
virtual |
Given the global object designator, find all the entities that are tracking the given object by their emitter systems.
|
virtual |
Given the global id, return a list of the systems and beams tracking this object.
|
virtual |
Given the global id, return a list of the systems and DtUUID tracking this object.
|
static |
Factory method for creating this class. If no factory method defined the default DtNetworkInterfaceManager is created.
|
static |
Factory method for creating this class. If no factory method defined the default DtNetworkInterfaceManager is created.
|
virtual |
Call this to create a database that will store "unpublished" objects. This is only useful when using a legion based connection.
|
virtual |
If defined, the coordinate system to convert geocentric coordinates to local database coordinates.
|
inline |
Returns the coordinate system used to convert geocentric coordinates to local database coordinates.
|
inline |
Returns the map of entity (platform) state data keyed by Legion unique ID.
|
inline |
Returns the map of unit (aggregate) state data keyed by Legion unique ID.
|
inline |
Returns the map of aerodrome state data keyed by Legion unique ID.
|
inline |
Returns the map of environmental state data keyed by Legion unique ID.
|
virtual |
Sets whether this manager is publishing objects on the Legion network.
|
inline |
Returns true if this manager is currently publishing on the Legion network.
|
inline |
Returns the entity view for the given database.
|
inline |
Returns true if the manager is currently in the middle of advancing a frame.
|
protectedvirtual |
Background thread that drains the job processor queue.
|
protectedvirtual |
Returns entities tracking the given object using the specified beam type.
|
protectedvirtual |
Returns beam/emitter info for systems tracking the given object using the specified beam type.
|
protectedvirtual |
Called when the UUID of a state data object changes.
|
protectedvirtual |
Called when the host (parent object) of a state data object changes.
|
protectedvirtual |
Called when the subordinate set of a state data object changes.
|
protectedvirtual |
Resolves pending host attachments for the given state data.
|
protectedvirtual |
Resolves pending host attachments for the object identified by UUID.
|
protectedvirtual |
Resolves all pending host attachments.
|
protectedvirtual |
Slot called when a state component is about to be deleted; cleans up internal tracking.
|
protectedvirtual |
Called when a remote state data object is converted to local authority.
|
protectedvirtual |
Resolves a single host change, updating entity state components as needed.
|
protectedvirtual |
Remove state data from internal lists but don't delete until last reference is removed. Do not call directly.
|
protectedvirtual |
Adds VRF-specific data columns to the given simulation database.
|
protectedvirtual |
Processes all host relationship changes queued during the current frame.
|
protectedvirtual |
Removes all state component registrations from the manager.
|
protectedvirtual |
Processes all subordinate relationship changes queued during the current frame.
|
protectedvirtual |
Deletes all state data objects that have been queued for removal.
|
protected |
Non-virtual because called from constructor.
|
protectedvirtual |
Called when a tracked state component is deleted; removes it from the pending removal map.
| boost::signals2::signal<void (const Coordinate_System*)> makVrf::DtStateDataManager::signal_coordinateSystemChanged |
Signal emitted when the coordinate system is changed.
|
mutable |
Signals sent for state data actions.
|
mutable |
| boost::signals2::signal<void (Legion::SimulationDatabase*)> makVrf::DtStateDataManager::signal_addVrfSpecificDataElements |
Signal sent when it is ok to add columns to the entity set.
| boost::signals2::signal<void (const DtStateData*)> makVrf::DtStateDataManager::signal_initializeStateDataBeforeAdd |
This signal is called before the data is fully added. Gives connectors a chance to add data into the next frame state before addition.
|
mutable |
Signal emitted when state data is fully added to the manager.
| boost::signals2::signal<void ()> makVrf::DtStateDataManager::signal_beginFrame |
Signal emitted at the start of beginFrame().
| boost::signals2::signal<void ()> makVrf::DtStateDataManager::signal_preAdvanceFrame |
Signal emitted just before advance-frame processing begins.
| boost::signals2::signal<void ()> makVrf::DtStateDataManager::signal_advanceFrame |
Signal emitted when advance-frame processing is complete.
| boost::signals2::signal<void (DtStateData*, bool)> makVrf::DtStateDataManager::signal_prepareForHandoff |
Signal emitted when state data is about to be handed off; second argument is true if becoming local.
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateDataManager::signal_entityAdded |
Convenience signals for when a data is added – something is considered a unit if it has a aggregateStateComponent, an environmental if it has a environmentalStateComponent, else it is considered an entity.
| boost::signals2::signal<void (const DtStateData*)> makVrf::DtStateDataManager::signal_entityRemoved |
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateDataManager::signal_unitAdded |
| boost::signals2::signal<void (const DtStateData*)> makVrf::DtStateDataManager::signal_unitRemoved |
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateDataManager::signal_environmentalAdded |
| boost::signals2::signal<void (const DtStateData*)> makVrf::DtStateDataManager::signal_environmentalRemoved |
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateDataManager::signal_aerodromeAdded |
| boost::signals2::signal<void (const DtStateData*)> makVrf::DtStateDataManager::signal_aerodromeRemoved |
| boost::signals2::signal<void (unsigned long long, const DtUUID& oldUUID, const DtUUID& newUUID)> makVrf::DtStateDataManager::signal_uuidChanged |
Signal emitted when a state data UUID changes; carries unique ID, old UUID, and new UUID.
| StateComponentSignal makVrf::DtStateDataManager::signal_stateComponentAdded |
Signal emitted when any state component is added to the manager.
| StateComponentSignal makVrf::DtStateDataManager::signal_stateComponentRemoved |
Signal emitted when any state component is removed from the manager.
| boost::signals2::signal<void ()> makVrf::DtStateDataManager::signal_deleted |
Signal emitted when this manager is being destroyed.
| boost::signals2::signal<void (DtStateData*)> makVrf::DtStateDataManager::signal_convertedToLocal |
Signal emitted when a state data object is converted from remote to local authority.
|
protected |
The flat list of all state data objects owned by this manager.
|
mutableprotected |
Read/write mutex protecting the primary state data list.
|
protected |
Primary Legion simulation database.
|
protected |
Optional unpublished Legion simulation database for local-only objects.
Set of unique IDs for state data objects currently awaiting an authority handoff.
|
protected |
Counter used to assign the next available simulation state ID.
|
protected |
Pool of recycled simulation state IDs available for reuse.
|
protected |
Whether the manager runs advance-frame jobs on a thread pool.
|
protected |
Real-time clock used to track wall-clock time.
|
protected |
Job queue used to dispatch asynchronous work items.
|
mutableprotected |
Read/write mutex protecting the state component container.
|
protected |
Per-component-type lists of currently registered state component instances.
|
protected |
Map from UUID to the set of state data objects with that UUID.
|
protected |
Map from entity identifier string to the set of matching state data objects.
|
staticprotected |
Global factory function used by createStateDataManager().
|
protected |
Map from Legion unique ID to state data, covering all object types.
|
protected |
The coordinate system used to convert geocentric positions to local database coordinates.
|
protected |
True if this manager created and owns the coordinate system object.
|
protected |
Map of entity (platform) state data keyed by Legion unique ID.
|
protected |
Map of unit (aggregate) state data keyed by Legion unique ID.
|
protected |
Map of aerodrome state data keyed by Legion unique ID.
|
protected |
Map of environmental state data keyed by Legion unique ID.
|
protected |
True if this manager created and owns the primary simulation database.
Number of state data slots that have been pre-reserved.
|
protected |
Mutex protecting the instance-updated callback map.
|
protected |
Mutex protecting the database views map.
|
protected |
Cache of Legion SetViews per database, keyed by attribute set type name.
|
protected |
Registered instance-updated callbacks, indexed by attribute set ID and instance handle.
Counter used to generate unique handles for instance-updated callbacks.
|
protected |
Mutex protecting myHostsChangedThisFrame.
|
protected |
Host changes (old-to-new UUID) that occurred but have not yet been resolved.
Objects waiting to complete host attachment because their host has not yet been discovered.
|
protected |
Mutex protecting mySubordinatesChangedThisFrame.
|
protected |
Subordinate relationship changes pending resolution this frame.
Pending superior assignments that cannot be resolved yet because the superior has not been discovered.
|
protected |
The parameter database used for entity-type lookups during local state data creation.
|
protected |
State data objects that have been removed and are waiting to be deleted.
|
protected |
Whether this manager is publishing objects on a Legion network connection.
|
protected |
State components queued for removal, along with their removal options.
|
protected |
State components that have been deleted externally and need clean-up.
|
protected |
When true, only explicitly specified state data objects are updated during advanceFrame().
|
protected |
Mutex protecting myAdvancedThisFrame.
Set of unique IDs for state data that have already been advanced this frame.
|
protected |
True while the manager is actively processing an advance-frame cycle.
|
protected |
Whether beginFrame() blocks until all queued advance-frame jobs are complete.
|
protected |
Background thread that services the job processor queue.
|
mutableprotected |
Condition variable used to wake the jobs thread when work is available.
|
mutableprotected |
Mutex paired with myStartJobsCondition.
|
protected |
Flag set to true to request shutdown of the jobs thread.
|
protected |
Current frame processing status (normal, skipped begin, or skipped advance).
|
protected |
UUID changes that are pending application in the next advance-frame cycle.