VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Protected Attributes
DtEmitterSystemStateEncoder Class Reference

Instances of DtEmitterSystemStateEncoder are used to take state information from a DtEmitterSystemRepository and place it into an electromagnetic emissions PDU. More...

+ Inheritance diagram for DtEmitterSystemStateEncoder:
+ Collaboration diagram for DtEmitterSystemStateEncoder:

List of all members.

Public Member Functions

 DtEmitterSystemStateEncoder ()
 Default constructor.
virtual ~DtEmitterSystemStateEncoder ()
 Destructor.
 DtEmitterSystemStateEncoder (const DtEmitterSystemStateEncoder &orig)
 Copy constructor.
DtEmitterSystemStateEncoderoperator= (const DtEmitterSystemStateEncoder &orig)
 Assignment operator.
virtual
DtElectromagneticEmissionPdu
stateMsg (const DtEmitterSystemRepository &stateRep, const DtEmitterSystemRepository &asSeenByRemote)
 Constructs a PDU from the state repository.
virtual void setAzimuthThreshold (double threshold)
 Set the azimuth threshold.
virtual double azimuthThreshold () const
 Returns the azimuth threshold (in radians).
virtual void setElevationThreshold (double threshold)
 Set the elevation threshold.
virtual double elevationThreshold () const
 Returns the elevation threshold (in radians).

Protected Member Functions

virtual bool sendNeeded (const DtEmitterSystemRepository &stateRep, const DtEmitterSystemRepository &asSeenByRemote)
 Determine if a state message needs to be sent.
virtual void fillOut (const DtEmitterSystemRepository &stateRep, const DtEmitterSystemRepository &asSeenByRemote, DtElectromagneticEmissionPdu *pdu)
 Fill out a state message which reflects a state repository.

Protected Attributes

DtElectromagneticEmissionPdu myAsPdu
double myAzimuthThreshold
double myElevationThreshold

Detailed Description

Instances of DtEmitterSystemStateEncoder are used to take state information from a DtEmitterSystemRepository and place it into an electromagnetic emissions PDU.


Constructor & Destructor Documentation

Default constructor.

Destructor.

Copy constructor.


Member Function Documentation

virtual double DtEmitterSystemStateEncoder::azimuthThreshold ( ) const [virtual]

Returns the azimuth threshold (in radians).

virtual double DtEmitterSystemStateEncoder::elevationThreshold ( ) const [virtual]

Returns the elevation threshold (in radians).

virtual void DtEmitterSystemStateEncoder::fillOut ( const DtEmitterSystemRepository stateRep,
const DtEmitterSystemRepository asSeenByRemote,
DtElectromagneticEmissionPdu pdu 
) [protected, virtual]

Fill out a state message which reflects a state repository.

DtEmitterSystemStateEncoder& DtEmitterSystemStateEncoder::operator= ( const DtEmitterSystemStateEncoder orig)

Assignment operator.

virtual bool DtEmitterSystemStateEncoder::sendNeeded ( const DtEmitterSystemRepository stateRep,
const DtEmitterSystemRepository asSeenByRemote 
) [protected, virtual]

Determine if a state message needs to be sent.

virtual void DtEmitterSystemStateEncoder::setAzimuthThreshold ( double  threshold) [virtual]

Set the azimuth threshold.

Defaulted to 1 degree. threshold Threshold in radians.

virtual void DtEmitterSystemStateEncoder::setElevationThreshold ( double  threshold) [virtual]

Set the elevation threshold.

Defaulted to 1 degree. threshold Threshold in radians.

Constructs a PDU from the state repository.

stateMsg determines whether an Electromagnetic Emission PDU needs to be sent and constructs one of it does.

Returns:
PDU if send is needed, and NULL if not

Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)