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
makVrv::DtPhysicalRunwayStatusData Class Reference

DtPhysicalRunwayStatusData is used to maintain the current state of of a reflected runway in a VR-Link connection. Instances of this object are managed by the DtAerodromeStatusMannager, indexed by a unique id generated for the physical runway.

Public Member Functions

 DtPhysicalRunwayStatusData ()
 
virtual ~DtPhysicalRunwayStatusData ()
 
 DtPhysicalRunwayStatusData (const DtPhysicalRunwayStatusData &orig)
 
DtPhysicalRunwayStatusDataoperator= (const DtPhysicalRunwayStatusData &rhs)
 
virtual void setAerodromeId (DtUniqueID aerodromeUniqueId)
 
virtual DtUniqueID aerodromeId () const
 
virtual void setAerodromeName (const std::string &aerodromeName)
 
virtual const std::string & aerodromeName () const
 
virtual void setRunwayGuardLightsIntensity (float intensity)
 
virtual float runwayGuardLightsIntensity () const
 
virtual void setPhysicalRunwayName (const std::string &name)
 
virtual const std::string & physicalRunwayName () const
 
virtual void setRunwayCondition (DtRunwayCondition cond)
 
virtual DtRunwayCondition runwayCondition () const
 
virtual void setRunwayIsDamaged (bool isDamaged)
 
virtual bool runwayIsDamaged () const
 
virtual void setLogicalRunwayName (const std::string &logicalRunwayName, unsigned int logicalRunwayIndex)
 
virtual std::string logicalRunwayName (unsigned int logicalRunwayIndex) const
 
virtual unsigned int logicalRunwayIndex (const std::string &runwayName) const
 
virtual void setRunwayIsActive (const std::string &logicalRunwayName, bool isActive)
 
virtual bool runwayIsActive (const std::string &logicalRunwayName) const
 
virtual void setRunwayIsActive (unsigned int logicalRunwayIndex, bool isActive)
 
virtual bool runwayIsActive (unsigned int logicalRunwayIndex) const
 
virtual void setRunwayHasArrestorsUp (const std::string &logicalRunwayName, bool arrestorsUp)
 
virtual bool runwayHasArrestorsUp (const std::string &logicalRunwayName) const
 
virtual void setRunwayHasArrestorsUp (unsigned int logicalRunwayIndex, bool arrestorsUp)
 
virtual bool runwayHasArrestorsUp (unsigned int logicalRunwayIndex) const
 
virtual void setLightIntensity (const std::string &logicalRunwayName, DtRunwayLightsEnum lightType, float intensity)
 
virtual float lightIntensity (const std::string &logicalRunwayName, DtRunwayLightsEnum lightType) const
 
virtual void setLightIntensity (unsigned int logicalRunwayIndex, DtRunwayLightsEnum lightType, float intensity)
 
virtual float lightIntensity (unsigned int logicalRunwayIndex, DtRunwayLightsEnum lightType) const
 
virtual DtLogicalRunwayStatusData logicalRunwayData (const std::string &name) const
 
virtual DtLogicalRunwayStatusDatafindLogicalRunwayData (const std::string &name)
 
virtual DtLogicalRunwayStatusData logicalRunwayData (unsigned int logicalRunwayIndex) const
 
virtual DtLogicalRunwayStatusDatafindLogicalRunwayData (unsigned int logicalRunwayIndex)
 

Protected Attributes

DtUniqueID myAerodromeId
 
std::string myAerodromeName
 
float myGuardLightsIntensity
 
DtRunwayCondition myRunwayCondition
 
bool myIsDamaged
 
std::string myRunwayName
 
std::array
< DtLogicalRunwayStatusData, 2 > 
myRunways
 

Constructor & Destructor Documentation

makVrv::DtPhysicalRunwayStatusData::DtPhysicalRunwayStatusData ( )

Constructor.

virtual makVrv::DtPhysicalRunwayStatusData::~DtPhysicalRunwayStatusData ( )
virtual

Destructor.

makVrv::DtPhysicalRunwayStatusData::DtPhysicalRunwayStatusData ( const DtPhysicalRunwayStatusData orig)

Copy constructor.

Member Function Documentation

DtPhysicalRunwayStatusData& makVrv::DtPhysicalRunwayStatusData::operator= ( const DtPhysicalRunwayStatusData rhs)

Assignment operator.

virtual void makVrv::DtPhysicalRunwayStatusData::setAerodromeId ( DtUniqueID  aerodromeUniqueId)
virtual

Set/get the unique ID of the aerodrome that this runway is part of. This id can be used to look up the aerodrome status data object in DtAerodromeStatusManager.

virtual DtUniqueID makVrv::DtPhysicalRunwayStatusData::aerodromeId ( ) const
virtual

Set/get the unique ID of the aerodrome that this runway is part of. This id can be used to look up the aerodrome status data object in DtAerodromeStatusManager.

virtual void makVrv::DtPhysicalRunwayStatusData::setAerodromeName ( const std::string &  aerodromeName)
virtual

Set/get the name of the aerodrome that this runway is part of. The aerodrome id could be used to look this up, but since we don't expect it to change, it saves a map lookup to cache it here.

virtual const std::string& makVrv::DtPhysicalRunwayStatusData::aerodromeName ( ) const
virtual

Set/get the name of the aerodrome that this runway is part of. The aerodrome id could be used to look this up, but since we don't expect it to change, it saves a map lookup to cache it here.

virtual void makVrv::DtPhysicalRunwayStatusData::setRunwayGuardLightsIntensity ( float  intensity)
virtual

Set/get the intensity of the runway guard lights (if any) on this physical runway. Intensity has a value from 0. to 1.

virtual float makVrv::DtPhysicalRunwayStatusData::runwayGuardLightsIntensity ( ) const
virtual

Set/get the intensity of the runway guard lights (if any) on this physical runway. Intensity has a value from 0. to 1.

virtual void makVrv::DtPhysicalRunwayStatusData::setPhysicalRunwayName ( const std::string &  name)
virtual

Set / get the physical runway name being used by VR-Link (this will be the two logical names separated by a "/".

virtual const std::string& makVrv::DtPhysicalRunwayStatusData::physicalRunwayName ( ) const
virtual

Set / get the physical runway name being used by VR-Link (this will be the two logical names separated by a "/".

virtual void makVrv::DtPhysicalRunwayStatusData::setRunwayCondition ( DtRunwayCondition  cond)
virtual

Set / get wheter the physical runway is wet.

virtual DtRunwayCondition makVrv::DtPhysicalRunwayStatusData::runwayCondition ( ) const
virtual

Set / get wheter the physical runway is wet.

virtual void makVrv::DtPhysicalRunwayStatusData::setRunwayIsDamaged ( bool  isDamaged)
virtual

Set / get wheter the physical runway is wet.

virtual bool makVrv::DtPhysicalRunwayStatusData::runwayIsDamaged ( ) const
virtual

Set / get wheter the physical runway is wet.

virtual void makVrv::DtPhysicalRunwayStatusData::setLogicalRunwayName ( const std::string &  logicalRunwayName,
unsigned int  logicalRunwayIndex 
)
virtual

These methods are used by the DtAerodromeStatusManager to manage logical runway- specific data.

Set the name of a logical runway. The logical runway index is always 0 or 1 - a warning is raised if any other value is used.

virtual std::string makVrv::DtPhysicalRunwayStatusData::logicalRunwayName ( unsigned int  logicalRunwayIndex) const
virtual

These methods are used by the DtAerodromeStatusManager to manage logical runway- specific data.

Set the name of a logical runway. The logical runway index is always 0 or 1 - a warning is raised if any other value is used.

virtual unsigned int makVrv::DtPhysicalRunwayStatusData::logicalRunwayIndex ( const std::string &  runwayName) const
virtual

Get the index of a logical runway from it's name. If the name is not found, a warning is issued and it returns UINT_MAX.

virtual void makVrv::DtPhysicalRunwayStatusData::setRunwayIsActive ( const std::string &  logicalRunwayName,
bool  isActive 
)
virtual

Set / get wheter the logical runway is active.

virtual bool makVrv::DtPhysicalRunwayStatusData::runwayIsActive ( const std::string &  logicalRunwayName) const
virtual

These methods are used by the DtAerodromeStatusManager to manage logical runway- specific data.

Set the name of a logical runway. The logical runway index is always 0 or 1 - a warning is raised if any other value is used.

virtual void makVrv::DtPhysicalRunwayStatusData::setRunwayIsActive ( unsigned int  logicalRunwayIndex,
bool  isActive 
)
virtual

These methods are used by the DtAerodromeStatusManager to manage logical runway- specific data.

Set the name of a logical runway. The logical runway index is always 0 or 1 - a warning is raised if any other value is used.

virtual bool makVrv::DtPhysicalRunwayStatusData::runwayIsActive ( unsigned int  logicalRunwayIndex) const
virtual

These methods are used by the DtAerodromeStatusManager to manage logical runway- specific data.

Set the name of a logical runway. The logical runway index is always 0 or 1 - a warning is raised if any other value is used.

virtual void makVrv::DtPhysicalRunwayStatusData::setRunwayHasArrestorsUp ( const std::string &  logicalRunwayName,
bool  arrestorsUp 
)
virtual

Set / get wheter the logical runway has arrestor gear deployed.

virtual bool makVrv::DtPhysicalRunwayStatusData::runwayHasArrestorsUp ( const std::string &  logicalRunwayName) const
virtual

Set / get wheter the logical runway has arrestor gear deployed.

virtual void makVrv::DtPhysicalRunwayStatusData::setRunwayHasArrestorsUp ( unsigned int  logicalRunwayIndex,
bool  arrestorsUp 
)
virtual

Set / get wheter the logical runway has arrestor gear deployed.

virtual bool makVrv::DtPhysicalRunwayStatusData::runwayHasArrestorsUp ( unsigned int  logicalRunwayIndex) const
virtual

Set / get wheter the logical runway has arrestor gear deployed.

virtual void makVrv::DtPhysicalRunwayStatusData::setLightIntensity ( const std::string &  logicalRunwayName,
DtRunwayLightsEnum  lightType,
float  intensity 
)
virtual

Set/get the intensity of lights of the specified type using the logical runway name and the light type.

virtual float makVrv::DtPhysicalRunwayStatusData::lightIntensity ( const std::string &  logicalRunwayName,
DtRunwayLightsEnum  lightType 
) const
virtual

Set/get the intensity of lights of the specified type using the logical runway name and the light type.

virtual void makVrv::DtPhysicalRunwayStatusData::setLightIntensity ( unsigned int  logicalRunwayIndex,
DtRunwayLightsEnum  lightType,
float  intensity 
)
virtual

Set/get the intensity of lights of the specified type using the logical runway index (0 or 1) and the light type.

virtual float makVrv::DtPhysicalRunwayStatusData::lightIntensity ( unsigned int  logicalRunwayIndex,
DtRunwayLightsEnum  lightType 
) const
virtual

Set/get the intensity of lights of the specified type using the logical runway name and the light type.

virtual DtLogicalRunwayStatusData makVrv::DtPhysicalRunwayStatusData::logicalRunwayData ( const std::string &  name) const
virtual

Get a const copy of the logical runway status using the runway name. An empty instance is returned if the runway name is not found.

virtual DtLogicalRunwayStatusData* makVrv::DtPhysicalRunwayStatusData::findLogicalRunwayData ( const std::string &  name)
virtual

Get a pointer to the logical runway data using the runway name. Returns nullptr if the runway is not found.

virtual DtLogicalRunwayStatusData makVrv::DtPhysicalRunwayStatusData::logicalRunwayData ( unsigned int  logicalRunwayIndex) const
virtual

Get a const copy of the logical runway status using the logical runway index (either 0 or 1). An empty instance is returned if the runway name is not found.

virtual DtLogicalRunwayStatusData* makVrv::DtPhysicalRunwayStatusData::findLogicalRunwayData ( unsigned int  logicalRunwayIndex)
virtual

Get a pointer to the logical runway data using the logical runway index. Returns nullptr if the runway is not found.

Member Data Documentation

DtUniqueID makVrv::DtPhysicalRunwayStatusData::myAerodromeId
protected
std::string makVrv::DtPhysicalRunwayStatusData::myAerodromeName
protected
float makVrv::DtPhysicalRunwayStatusData::myGuardLightsIntensity
protected
DtRunwayCondition makVrv::DtPhysicalRunwayStatusData::myRunwayCondition
protected
bool makVrv::DtPhysicalRunwayStatusData::myIsDamaged
protected
std::string makVrv::DtPhysicalRunwayStatusData::myRunwayName
protected
std::array<DtLogicalRunwayStatusData, 2> makVrv::DtPhysicalRunwayStatusData::myRunways
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)