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::DtAerodromeStateComponentNextFrame Class Reference

2) Define the next frame class. This will be used for write access. Write-access implementation of DtAerodromeStateComponent for use in the simulation controller thread.

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

Public Member Functions

 DtAerodromeStateComponentNextFrame (DtStateData *)
 
virtual ~DtAerodromeStateComponentNextFrame () override
 
virtual const
DtAerodromeStateData & 
frameState () const override
 
DtAerodromeStateData & frameState ()
 
virtual const bool & isLocal () const override
 
virtual void setIsLocal (const bool &) override
 
virtual const bool & checkForNameReservation () const override
 
virtual void setCheckForNameReservation (const bool &) override
 
virtual const bool & active () const override
 
virtual void setActive (const bool &) override
 
virtual const DtString & globalId () const override
 
virtual void setGlobalId (const DtString &) override
 
virtual const DtUUID & uuid () const override
 
virtual void setUUID (const DtUUID &) override
 
virtual const DtString & airportCode () const override
 
virtual void setAirportCode (const DtString &) override
 
virtual unsigned char value (const DtString &) const override
 
virtual void setValue (const DtString &, unsigned char) override
 
virtual void restoreFromArchive (const DtString &) override
 
virtual unsigned char runwayValue (const DtString &, const DtString &runwayName) const override
 
virtual void setRunwayValue (const DtString &, unsigned char, const DtString &runwayName) override
 
virtual std::vector< DtString > runwaysArchived () const override
 
virtual const DtString & markingText () const override
 
virtual void setMarkingText (const DtString &t) override
 
virtual const unsigned long long orbatId () const override
 
virtual void setOrbatId (const unsigned long long &) override
 
virtual void setUserLongLongData (const unsigned long long &) override
 
virtual const UInt64 userLongLongData () const override
 
virtual const DtString & sidc () const override
 
virtual void setSidc (const DtString &) override
 
virtual const DtForceType forceType () const override
 
virtual void setForceType (const DtForceType &) override
 
virtual const UInt32 appearanceBits () const override
 
virtual void setAppearanceBits (const UInt32 &) override
 
virtual const DtEntityType entityType () const override
 
virtual const DtEntityType objectType () const override
 
virtual void setEntityType (const DtEntityType &t) override
 
virtual const DtEntityIdentifier & entityId () const override
 
virtual void setEntityId (const DtEntityIdentifier &) override
 
virtual const DtSimulationAddress simEngineAddress () const override
 
virtual DtRunwayStateData & addRunway () override
 
virtual void removeRunway (const DtUUID &) override
 
virtual DtRunwayStateData & runway (const DtUUID &) override
 
virtual DtRunwayStateData & runway (const std::string &) override
 
virtual const DtRunwayStateData & runway (const DtUUID &) const override
 
virtual const DtRunwayStateData & runway (const std::string &) const override
 
virtual const
DtRunwayLightStateData & 
runwayState (const std::string &) const override
 
virtual const std::map< DtUUID,
DtRunwayStateData > & 
runways () const override
 
virtual void setRunways (const std::map< DtUUID, DtRunwayStateData > &) override
 
virtual void restoreRunwaysFromArchive (const std::vector< DtString > &) override
 
- Public Member Functions inherited from makVrf::DtAerodromeStateComponent
 DtAerodromeStateComponent (DtStateData *storage)
 
- Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent
 DtSimulatedObjectStateComponent (DtStateData *)
 
virtual bool mainComponentOnLegion () const
 
- Public Member Functions inherited from makVrf::DtFrameStateInterface
 DtFrameStateInterface (DtStateData *)
 
virtual ~DtFrameStateInterface ()
 
void setIsWritable (bool b)
 
bool isWritable () const
 
UInt64 stateId () const
 
UInt64 legionGlobalId () const
 
void setLegionGlobalId (UInt64 d)
 
virtual bool isModified () const
 
virtual void clearModified ()
 
virtual void markModified ()
 
virtual
DtStateComponent::StateComponentType 
type () const
 
virtual
DtStateComponent::StateComponentType 
componentType () const =0
 
virtual const char * stringType () const =0
 
void setId (UInt64 id)
 
virtual UInt64 id () const
 
virtual void updateStateData (DtStateData *sd)
 
virtual Legion::ReadStateInstance readStateInstance () const
 
virtual Legion::WriteStateInstance writeStateInstance ()
 
void emitComponentUpdated ()
 
void setMarkedForRemoval (bool b)
 
bool markedForRemoval () const
 
bool cleared () const
 
bool advancedFrame () const
 
virtual void frameAdvanced ()
 
virtual void convertToRemote ()
 
virtual void convertToLocal ()
 
virtual void aboutToBeDeleted ()
 

Protected Attributes

DtAerodromeStateData myData
 
- Protected Attributes inherited from makVrf::DtFrameStateInterface
bool myIsModified
 
UInt64 myId
 
UInt64 myStateId
 
UInt64 myLegionId
 
bool myIsWritable
 
bool myCleared
 
bool myAdvancedFrame
 
bool myMarkedForRemoval = false
 
DtStateData * myStateData
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent
static
DtStateComponent::StateComponentType 
ComponentType ()
 
static const char * StringType ()
 
- Public Attributes inherited from makVrf::DtSimulatedObjectStateComponent
boost::signals2::signal< void(const
DtUUID &, const DtUUID
&, makVrf::SimStateID)> 
signal_uuidChanged
 
boost::signals2::signal< void(const
DtString &, const DtString
&, makVrf::SimStateID)> 
signal_markingTextChanged
 
boost::signals2::signal< void(int
oldForce, int newForce,
makVrf::SimStateID)> 
signal_forceChanged
 
boost::signals2::signal< void(const
DtSimulationAddress
&oldAddress, const
DtSimulationAddress
&newAddress,
makVrf::SimStateID)> 
signal_simEngineAddressChanged
 
- Public Attributes inherited from makVrf::DtFrameStateInterface
boost::signals2::signal< void(DtFrameStateInterface *)> signal_stateComponentAboutToBeDeleted
 
boost::signals2::signal< void(const
DtFrameStateInterface *)> 
signal_componentModified
 
- Protected Member Functions inherited from makVrf::DtFrameStateInterface
virtual void makeWritable ()
 
virtual void makeReadOnly ()
 

Constructor & Destructor Documentation

makVrf::DtAerodromeStateComponentNextFrame::DtAerodromeStateComponentNextFrame ( DtStateData *  )

Constructs the next-frame aerodrome state component with the given state data storage.

Parameters
sdPointer to the state data storage associated with this component.
virtual makVrf::DtAerodromeStateComponentNextFrame::~DtAerodromeStateComponentNextFrame ( )
overridevirtual

Member Function Documentation

virtual const DtAerodromeStateData& makVrf::DtAerodromeStateComponentNextFrame::frameState ( ) const
inlineoverridevirtual

Next frame access write access. Ensure this is only used in a single thread (i.e.a controller thread)

DtAerodromeStateData& makVrf::DtAerodromeStateComponentNextFrame::frameState ( )
inline

Returns a mutable reference to the aerodrome state data for the next frame.

Returns
Mutable reference to the DtAerodromeStateData.
virtual const bool& makVrf::DtAerodromeStateComponentNextFrame::isLocal ( ) const
overridevirtual

Returns whether this aerodrome is locally owned.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setIsLocal ( const bool &  )
overridevirtual

Sets whether this aerodrome is locally owned.

Parameters
isLocalTrue if this aerodrome is local; false for remote.
virtual const bool& makVrf::DtAerodromeStateComponentNextFrame::checkForNameReservation ( ) const
overridevirtual

Returns whether a name reservation check is required for this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setCheckForNameReservation ( const bool &  )
overridevirtual

Sets whether a name reservation check is required for this aerodrome.

Parameters
checkTrue to require name reservation check.
virtual const bool& makVrf::DtAerodromeStateComponentNextFrame::active ( ) const
overridevirtual

Returns whether this aerodrome is active.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setActive ( const bool &  )
overridevirtual

Sets whether this aerodrome is active.

Parameters
activeTrue to mark the aerodrome as active.
virtual const DtString& makVrf::DtAerodromeStateComponentNextFrame::globalId ( ) const
overridevirtual

Returns the global identifier string for this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setGlobalId ( const DtString &  )
overridevirtual

Sets the global identifier string for this aerodrome.

Parameters
idThe global identifier to set.
virtual const DtUUID& makVrf::DtAerodromeStateComponentNextFrame::uuid ( ) const
overridevirtual

Returns the UUID of this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setUUID ( const DtUUID &  )
overridevirtual

Sets the UUID of this aerodrome.

Parameters
idThe UUID to assign.
virtual const DtString& makVrf::DtAerodromeStateComponentNextFrame::airportCode ( ) const
overridevirtual

Returns the ICAO airport code for this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setAirportCode ( const DtString &  )
overridevirtual

Sets the ICAO airport code for this aerodrome.

Parameters
codeThe airport code to set.
virtual unsigned char makVrf::DtAerodromeStateComponentNextFrame::value ( const DtString &  ) const
overridevirtual

Returns the named appearance value for this aerodrome.

Parameters
valueNameName of the appearance attribute.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setValue ( const DtString &  ,
unsigned  char 
)
overridevirtual

Sets the named appearance value for this aerodrome.

Parameters
valueNameName of the appearance attribute.
valueThe appearance value to set.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual void makVrf::DtAerodromeStateComponentNextFrame::restoreFromArchive ( const DtString &  )
overridevirtual

Restores this aerodrome's state from the given archived state string.

Parameters
archivedStateSerialized state string to restore from.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual unsigned char makVrf::DtAerodromeStateComponentNextFrame::runwayValue ( const DtString &  ,
const DtString &  runwayName 
) const
overridevirtual

Returns the named appearance value for the specified runway.

Parameters
valueNameName of the appearance attribute.
runwayNameName of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setRunwayValue ( const DtString &  ,
unsigned  char,
const DtString &  runwayName 
)
overridevirtual

Sets the named appearance value for the specified runway.

Parameters
valueNameName of the appearance attribute.
valueThe appearance value to set.
runwayNameName of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual std::vector<DtString> makVrf::DtAerodromeStateComponentNextFrame::runwaysArchived ( ) const
overridevirtual

Returns a list of archived runway state strings.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const DtString& makVrf::DtAerodromeStateComponentNextFrame::markingText ( ) const
inlineoverridevirtual

Returns the airport code as the marking text for this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setMarkingText ( const DtString &  t)
inlineoverridevirtual

Sets the airport code via the marking text interface.

Parameters
tThe marking text (airport code) to set.
virtual const unsigned long long makVrf::DtAerodromeStateComponentNextFrame::orbatId ( ) const
inlineoverridevirtual

Aerodromes cannot be in orbat.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setOrbatId ( const unsigned long long &  )
inlineoverridevirtual
virtual void makVrf::DtAerodromeStateComponentNextFrame::setUserLongLongData ( const unsigned long long &  )
overridevirtual

Sets the user-defined 64-bit data value for this aerodrome.

Parameters
dataThe 64-bit user data value to set.
virtual const UInt64 makVrf::DtAerodromeStateComponentNextFrame::userLongLongData ( ) const
overridevirtual

Returns the user-defined 64-bit data value for this aerodrome.

virtual const DtString& makVrf::DtAerodromeStateComponentNextFrame::sidc ( ) const
overridevirtual

Unused for aerodromes.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setSidc ( const DtString &  )
overridevirtual
virtual const DtForceType makVrf::DtAerodromeStateComponentNextFrame::forceType ( ) const
overridevirtual

Returns the force type (affiliation) of this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setForceType ( const DtForceType &  )
overridevirtual

Sets the force type (affiliation) of this aerodrome.

Parameters
forceTypeThe force type to assign.
virtual const UInt32 makVrf::DtAerodromeStateComponentNextFrame::appearanceBits ( ) const
overridevirtual

Returns the packed DIS appearance bits for this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setAppearanceBits ( const UInt32 &  )
overridevirtual

Sets the packed DIS appearance bits for this aerodrome.

Parameters
bitsThe appearance bits to set.
virtual const DtEntityType makVrf::DtAerodromeStateComponentNextFrame::entityType ( ) const
inlineoverridevirtual

Returns the entity type (wraps objectType()).

virtual const DtEntityType makVrf::DtAerodromeStateComponentNextFrame::objectType ( ) const
overridevirtual

Returns the DIS object type of this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setEntityType ( const DtEntityType &  t)
overridevirtual

Sets the DIS entity/object type of this aerodrome.

Parameters
tThe entity type to assign.
virtual const DtEntityIdentifier& makVrf::DtAerodromeStateComponentNextFrame::entityId ( ) const
overridevirtual

Returns the DIS entity identifier for this aerodrome.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setEntityId ( const DtEntityIdentifier &  )
overridevirtual

Sets the DIS entity identifier for this aerodrome.

Parameters
idThe entity identifier to assign.
virtual const DtSimulationAddress makVrf::DtAerodromeStateComponentNextFrame::simEngineAddress ( ) const
overridevirtual

Returns the simulation engine address derived from the entity identifier.

virtual DtRunwayStateData& makVrf::DtAerodromeStateComponentNextFrame::addRunway ( )
overridevirtual

Adds a new runway to this aerodrome and returns a reference to the new runway state data.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual void makVrf::DtAerodromeStateComponentNextFrame::removeRunway ( const DtUUID &  )
overridevirtual

Removes the runway identified by the given UUID.

Parameters
idUUID of the runway to remove.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual DtRunwayStateData& makVrf::DtAerodromeStateComponentNextFrame::runway ( const DtUUID &  )
overridevirtual

Returns a mutable reference to the runway identified by the given UUID.

Parameters
idUUID of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual DtRunwayStateData& makVrf::DtAerodromeStateComponentNextFrame::runway ( const std::string &  )
overridevirtual

Returns a mutable reference to the runway identified by the given name.

Parameters
nameName of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const DtRunwayStateData& makVrf::DtAerodromeStateComponentNextFrame::runway ( const DtUUID &  ) const
overridevirtual

Returns a const reference to the runway identified by the given UUID.

Parameters
idUUID of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const DtRunwayStateData& makVrf::DtAerodromeStateComponentNextFrame::runway ( const std::string &  ) const
overridevirtual

Returns a const reference to the runway identified by the given name.

Parameters
nameName of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const DtRunwayLightStateData& makVrf::DtAerodromeStateComponentNextFrame::runwayState ( const std::string &  ) const
overridevirtual

Returns the runway light state data for the runway end identified by the given name.

Parameters
runwayEndNameName of the runway end.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const std::map<DtUUID, DtRunwayStateData>& makVrf::DtAerodromeStateComponentNextFrame::runways ( ) const
overridevirtual

Returns a const map of all runways keyed by UUID.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual void makVrf::DtAerodromeStateComponentNextFrame::setRunways ( const std::map< DtUUID, DtRunwayStateData > &  )
overridevirtual

Replaces all runways with the provided map.

Parameters
runwaysMap of UUID to DtRunwayStateData to set.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual void makVrf::DtAerodromeStateComponentNextFrame::restoreRunwaysFromArchive ( const std::vector< DtString > &  )
overridevirtual

Restores all runways from the provided list of archived state strings.

Parameters
archivedRunwaysVector of serialized runway state strings to restore.

Reimplemented from makVrf::DtAerodromeStateComponent.

Member Data Documentation

DtAerodromeStateData makVrf::DtAerodromeStateComponentNextFrame::myData
mutableprotected

Mutable aerodrome state data buffer for the next frame.


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)