VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrf::DtOrbatStateComponentImplementation Class Reference

Double-buffered state component implementation for ORBAT data. Owns both a current-frame (read) and next-frame (write) copy, and promotes changes to the current frame on each simulation update.

Inheritance diagram for makVrf::DtOrbatStateComponentImplementation:
Inheritance graph
[legend]

Public Member Functions

 DtOrbatStateComponentImplementation (DtStateData *sd)
 
virtual ~DtOrbatStateComponentImplementation () override
 
bool isDoubleBuffered ()
 
virtual const
DtFrameStateInterface * 
currentFrameState () const override
 
virtual DtFrameStateInterface * nextFrameState () override
 
virtual const
DtFrameStateInterface * 
nextFrameState () const override
 
virtual void updateDataStorage () override
 
virtual void updateStateData (DtStateData *sd) override
 
virtual void aboutToBeDeleted () override
 
virtual void convertToLocal () override
 
virtual void convertToRemote () override
 
- Public Member Functions inherited from makVrf::DtDoubleBufferedStateComponent< DtOrbatStateComponent >
 DtDoubleBufferedStateComponent (DtStateData *sd)
 
virtual void setId (UInt64 id) override
 
virtual void setStateData (DtStateData *sd) override
 
virtual bool isDoubleBuffered () const override
 
virtual bool forceAdvance () override
 
virtual void advanceFrame () override
 
- Public Member Functions inherited from makVrf::DtStateComponent
 DtStateComponent (DtStateData *)
 
virtual ~DtStateComponent ()
 
virtual void setCoordinateSystem (const Coordinate_System *)
 
virtual StateComponentType typeWithCreator () const =0
 
virtual StateComponentType componentType () const =0
 
virtual void setPublishingOnLegionNetwork (bool)
 
bool publishingOnLegionNetwork () const
 
virtual void setIsRemoteComponent (bool b)
 
bool isRemoteComponent () const
 
virtual void initializeFromParameters (const DtVrfObjectParameters *)
 
virtual void completeSetup ()
 
virtual UInt64 id () const
 
bool advancedFrame () const
 
virtual void firstFrameAdvance ()
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
const DtStateData * stateData () const
 
bool cleared () const
 
DtStateData * stateData ()
 
const Coordinate_System * coordinateSystem () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
virtual void addAdditionalStateComponents ()
 
virtual void removeAdditionalStateComponents ()
 
virtual const char * stringType () const =0
 

Protected Attributes

DtOrbatStateComponentCurrentFrame myCurrentFrameState
 
DtOrbatStateComponentNextFrame myNextFrameState
 
- Protected Attributes inherited from makVrf::DtStateComponent
UInt64 myId
 
DtStateData * myStateData
 
const Coordinate_System * myCoordinateSystem
 
bool myIsRemoteComponent
 
bool myCleared
 
bool myPublishingOnLegionNetwork
 
bool myAdvancedFrame
 

Additional Inherited Members

- Public Types inherited from makVrf::DtStateComponent
enum  StateComponentTypeEnum {
  Undefined = -1, SimulatedObjectStateComponent = 0, EntityStateComponent = SimulatedObjectStateComponent, EnvironmentalStateComponent = SimulatedObjectStateComponent,
  AggregateStateComponent = SimulatedObjectStateComponent, MetocServiceStateComponent = SimulatedObjectStateComponent, AerodromeStateComponent = SimulatedObjectStateComponent, SpotReportStateComponent = SimulatedObjectStateComponent,
  OrbatStateComponent = SimulatedObjectStateComponent, LocationStateComponent = 1, EntityLocationStateComponent = LocationStateComponent, EnvironmentalLocationStateComponent = LocationStateComponent,
  StaticLocationStateComponent = LocationStateComponent, HumanStateComponent = 2, ArticulatedPartStateComponent = 3, VrfStateComponent = 4,
  StatePropertiesStateComponent = 5, VrfGeometryStateComponent = 6, SubordinateManagerStateComponent = 7, RangeItemsStateComponent = 8,
  CloudLayerStateComponent = 9, TimeAndDateStateComponent = 10, WeatherStateComponent = 11, LaserDesignatorStateComponent = 12,
  EmitterSystemStateComponent = 13, IffStateComponent = 14, ActiveSonarStateComponent = 15, UnderwaterAcousticsStateComponent = 16,
  SensorFieldOfViewStateComponent = 17, RadioTransmitterStateComponent = 18, TaskVisualizationStateComponent = 19, TacticalSmokeStateComponent = 20,
  DynamicTerrainStateComponent = 21, RadioReceiverStateComponent = 22, WindCorridorStateComponent = 23, AirTurbulenceStateComponent = 24,
  NavAidRadioTransmitterStateComponent = 25, AisDataStateComponent = 26, AircraftLightingStateComponent = 27, LandSurfaceStateComponent = 28,
  WaterSurfaceStateComponent = 29, TroposphereStateComponent = 30, SubsurfaceStateComponent = 31, GroundVehicleLightingStateComponent = 32,
  LaserLightStateComponent = 33, SearchLightStateComponent = 34, UserStateComponent = 64
}
 
using StateComponentType = unsigned int
 
- Static Public Member Functions inherited from makVrf::DtDoubleBufferedStateComponent< DtOrbatStateComponent >
static void registerLegionComponent (Legion::SimulationDatabase *)
 
static void addAdditionalTableColumns (Legion::SimulationDatabase *)
 
- Public Attributes inherited from makVrf::DtStateComponent
boost::signals2::signal< void(DtStateComponent *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(DtStateComponent *)> signal_componentModified
 

Constructor & Destructor Documentation

makVrf::DtOrbatStateComponentImplementation::DtOrbatStateComponentImplementation ( DtStateData *  sd)

Constructs the double-buffered ORBAT state component.

Parameters
sdThe state data object that owns this component.
virtual makVrf::DtOrbatStateComponentImplementation::~DtOrbatStateComponentImplementation ( )
overridevirtual

Destructor.

Member Function Documentation

bool makVrf::DtOrbatStateComponentImplementation::isDoubleBuffered ( )
inline

Returns true; this component uses double buffering.

virtual const DtFrameStateInterface* makVrf::DtOrbatStateComponentImplementation::currentFrameState ( ) const
inlineoverridevirtual

Returns the read-only current frame state interface.

Reimplemented from makVrf::DtStateComponent.

virtual DtFrameStateInterface* makVrf::DtOrbatStateComponentImplementation::nextFrameState ( )
inlineoverridevirtual

Returns the writable next frame state interface.

Reimplemented from makVrf::DtStateComponent.

virtual const DtFrameStateInterface* makVrf::DtOrbatStateComponentImplementation::nextFrameState ( ) const
inlineoverridevirtual

Returns the next frame state interface (read-only).

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtOrbatStateComponentImplementation::updateDataStorage ( )
inlineoverridevirtual

Promotes the next frame state to the current frame if it is writable, then emits an update notification.

Implements makVrf::DtDoubleBufferedStateComponent< DtOrbatStateComponent >.

virtual void makVrf::DtOrbatStateComponentImplementation::updateStateData ( DtStateData *  sd)
inlineoverridevirtual

Updates the state data pointer for both current and next frame states.

Parameters
sdThe new state data owner.

Implements makVrf::DtDoubleBufferedStateComponent< DtOrbatStateComponent >.

virtual void makVrf::DtOrbatStateComponentImplementation::aboutToBeDeleted ( )
inlineoverridevirtual

Notifies both frame states that this component is about to be destroyed.

Reimplemented from makVrf::DtStateComponent.

References makVrf::DtStateComponent::aboutToBeDeleted().

virtual void makVrf::DtOrbatStateComponentImplementation::convertToLocal ( )
overridevirtual

Converts this component to represent a locally-simulated ORBAT entity.

Reimplemented from makVrf::DtStateComponent.

virtual void makVrf::DtOrbatStateComponentImplementation::convertToRemote ( )
overridevirtual

Converts this component to represent a remotely-simulated ORBAT entity.

Reimplemented from makVrf::DtStateComponent.

Member Data Documentation

DtOrbatStateComponentCurrentFrame makVrf::DtOrbatStateComponentImplementation::myCurrentFrameState
protected

The read-only current frame state.

DtOrbatStateComponentNextFrame makVrf::DtOrbatStateComponentImplementation::myNextFrameState
protected

The writable next frame state.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)