VR-Link API Documentation for HLA 1.3
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtStopFreezeInteraction Class Reference

class DtStopFreezeInteraction: More...

+ Inheritance diagram for DtStopFreezeInteraction:
+ Collaboration diagram for DtStopFreezeInteraction:

Public Member Functions

 DtStopFreezeInteraction ()
 default constructor
virtual ~DtStopFreezeInteraction ()
 destructor
 DtStopFreezeInteraction (const DtStopFreezeInteraction &orig)
 copy constructor
DtStopFreezeInteractionoperator= (const DtStopFreezeInteraction &orig)
 assignment operator
virtual void printData () const
 Print the interaction's data to DtInfo.
virtual void printDataToStream (std::ostream &stream) const
 Print the interaction's data to the specified stream.
virtual void setSenderId (const DtEntityIdentifier &id)
 Set/Get sender ID.
virtual const DtEntityIdentifiersenderId () const
virtual void setReceiverId (const DtEntityIdentifier &id)
 Set/Get receiver ID.
virtual const DtEntityIdentifierreceiverId () const
virtual void setRealWorldTime (const DtTime time)
 Set/Get real world time.
virtual DtTime realWorldTime () const
virtual void setRequestId (int id)
 Set/Get request ID.
virtual int requestId () const
virtual DtStopReason reason () const
 Set/Get stopReason.
virtual void setReason (DtStopReason reason)
virtual bool reflectWhenFrozen () const
 SetGet reflectWhenFrozen flag.
virtual void setReflectWhenFrozen (bool flag)
virtual bool runClockWhenFrozen () const
 SetGet runClockWhenFrozen flag.
virtual void setRunClockWhenFrozen (bool flag)
virtual bool updateWhenFrozen () const
 SetGet updateWhenFrozen flag.
virtual void setUpdateWhenFrozen (bool flag)
virtual const char * name () const
 Name of the interaction. (Not necessarily the ClassName from the FOM.)
- Public Member Functions inherited from DtInteractionWithEncDec
 DtInteractionWithEncDec ()
 default constructor
virtual ~DtInteractionWithEncDec ()
 destructor
 DtInteractionWithEncDec (const DtInteractionWithEncDec &orig)
 copy constructor
DtInteractionWithEncDecoperator= (const DtInteractionWithEncDec &orig)
 assignment operator
virtual void setExConn (DtExerciseConn *exConn, DtInterClassDesc *classDesc=NULL)
 Sets the interaction's ExerciseConn and class descriptor.
virtual const
RTI::ParameterHandleValuePairSet & 
phvps () const
 Get the parameter handle value pair set for the interaction.
virtual void setFromPhvps (const RTI::ParameterHandleValuePairSet &pvList)
 Set contents from a parameter handle value pair set.
virtual void useThese (DtInteractionEncoder *enc, DtInteractionDecoder *dec, DtInteractionRep *data)
 Specify an encoder, decoder, and interaction data repository to use in encoding and decoding.
virtual DtInteractionEncoderencoder () const
 Return the encoder we are using.
virtual DtInteractionDecoderdecoder () const
 Return the decoder we are using.
- Public Member Functions inherited from DtInteraction
 DtInteraction ()
 default constructor
virtual ~DtInteraction ()
 destructor
 DtInteraction (const DtInteraction &orig)
 copy constructor
DtInteractionoperator= (const DtInteraction &orig)
 assignment operator
virtual RTI::InteractionClassHandle interactionClassHandle () const
 Get the interaction class handle. Returns 0 if no classDesc.
virtual char * interactionClassName () const
 Get the interaction class name. Returns NULL if no classDesc.
virtual int numParameters () const
 Get the number of parameters. Returns 0 if no classDesc.
virtual bool neededByFederation () const
 Returns true if the interaction class is needed by the federation false otherwise.
virtual void print () const
 Print the interaction's host rep data, including header.
virtual void printToStream (std::ostream &stream) const
 Print the interaction to a stream.
virtual void printHeader () const
 Print the header info.
virtual void printHeaderToStream (std::ostream &stream) const
 Print the header info to a stream.
virtual void printDataToString (DtString &buff) const
 Print the interaction's data to the string provided.
virtual void printParams (bool withHex) const
 Print the header followed by the interaction's parameters.
virtual void printParamsToStream (std::ostream &stream, bool withHex) const
 Print the header followed by the interaction's parameters to a stream.
virtual DtExerciseConnexerciseConn () const
 Get the current exercise connection.
virtual DtInterClassDescclassDesc () const
 Get the current class descriptor we're using for this interaction.
virtual bool customTagSet () const
 Get whether a custom tag has been set on the interaction or not.
virtual void setCustomTag (const DtString &a_tag)
 Set the user-defined tag.
virtual void setTag (const DtString &tag)
 Set the user-defined tag.
virtual const DtStringtag () const
 Get the user-defined tag.
virtual const RTI::Region * conveyedRegion () const
 Get & Set the conveyed region of the reflected state message.
virtual void setConveyedRegion (const RTI::Region *region)
virtual void setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative)
 Set the time of validity of the message, and whether this represents relative or absolute time.
virtual DtTime timeStamp () const
 Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp.
virtual DtTimeStampType timeStampType () const
 Return the type of the time stamp.
virtual DtTime guessTimeValid (DtTime referenceTime) const
 Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour.
virtual void setFedTime (const RTI::FedTime &ft)
 This is used for TSO interactions.
virtual const RTI::FedTime * fedTime () const
 When the interaction is received, if the federate sending the interaction had TSO set then the fedTime will be set.
virtual void setEventRetractionHandle (const RTI::EventRetractionHandle &handle)
 Get/Set the EventRetractionHandle.
virtual RTI::EventRetractionHandle eventRetractionHandle () const
 Get the event retraction handle. For more info see setEventRetractionHandle.

Static Public Member Functions

static DtInteractioncreate ()
 Create a DtStopFreezeInteraction.
static void addCallback (DtExerciseConn *conn, DtStopFreezeInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Add (register)/Remove (deregister) function to be called when interaction occurs.
static void removeCallback (DtExerciseConn *conn, DtStopFreezeInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())

Protected Attributes

DtEntityIdentifier myOrigEnt
DtEntityIdentifier myReceiveEnt
int myRequestId
DtTime myRealTime
DtStopReason myReason
bool myReflect
bool myUpdate
bool myRunClock
- Protected Attributes inherited from DtInteractionWithEncDec
DtInteractionDecodermyDecoder
DtInteractionEncodermyEncoder
DtInteractionRep * myData
- Protected Attributes inherited from DtInteraction
DtInterClassDescmyClassDesc
DtExerciseConnmyExConn
DtTime myTime
DtTimeStampType myTimeType
DtString myTag
RTI::ParameterHandleValuePairSet * myPvList
int myPvListMaxSize
RTI::FedTime * myFedTime
RTI::EventRetractionHandle myRetractionHandle
const RTI::Region * myConveyedRegion
bool myCustomTagSet

Additional Inherited Members

- Protected Member Functions inherited from DtInteractionWithEncDec
virtual DtInteractionDecodercreateDecoder (DtExerciseConn *exConn) const
 Called by decoderToUse to obtain a new'ed decoder.
virtual DtInteractionEncodercreateEncoder (DtExerciseConn *exConn) const
 Called by encoderToUse to obtain a new'ed encoder.
virtual DtInteractionDecoderdecoderToUse (DtExerciseConn *exConn) const
 Returns a decoder to use for decoding the interaction.
virtual DtInteractionEncoderencoderToUse (DtExerciseConn *exConn) const
 Returns an encoder to use for encoding the interaction.
- Static Protected Attributes inherited from DtInteraction
static bool theTagIsAsciiTime

Detailed Description

class DtStopFreezeInteraction:

Instances of DtStopFreezeInteraction are used to represent StopFreeze Interactions in the RPR ROM.

Constructor & Destructor Documentation

DtStopFreezeInteraction::DtStopFreezeInteraction ( )

default constructor

virtual DtStopFreezeInteraction::~DtStopFreezeInteraction ( )
virtual

destructor

DtStopFreezeInteraction::DtStopFreezeInteraction ( const DtStopFreezeInteraction orig)

copy constructor

Member Function Documentation

static void DtStopFreezeInteraction::addCallback ( DtExerciseConn conn,
DtStopFreezeInteractionCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
static

Add (register)/Remove (deregister) function to be called when interaction occurs.

static DtInteraction* DtStopFreezeInteraction::create ( )
static

Create a DtStopFreezeInteraction.

Caller is responsible for deletion.

virtual const char* DtStopFreezeInteraction::name ( ) const
virtual

Name of the interaction. (Not necessarily the ClassName from the FOM.)

Implements DtInteraction.

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

assignment operator

virtual void DtStopFreezeInteraction::printData ( ) const
virtual

Print the interaction's data to DtInfo.

Reimplemented from DtInteraction.

virtual void DtStopFreezeInteraction::printDataToStream ( std::ostream &  stream) const
virtual

Print the interaction's data to the specified stream.

Reimplemented from DtInteraction.

virtual DtTime DtStopFreezeInteraction::realWorldTime ( ) const
virtual
virtual DtStopReason DtStopFreezeInteraction::reason ( ) const
virtual

Set/Get stopReason.

virtual const DtEntityIdentifier& DtStopFreezeInteraction::receiverId ( ) const
virtual
virtual bool DtStopFreezeInteraction::reflectWhenFrozen ( ) const
virtual

SetGet reflectWhenFrozen flag.

static void DtStopFreezeInteraction::removeCallback ( DtExerciseConn conn,
DtStopFreezeInteractionCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
static
virtual int DtStopFreezeInteraction::requestId ( ) const
virtual
virtual bool DtStopFreezeInteraction::runClockWhenFrozen ( ) const
virtual

SetGet runClockWhenFrozen flag.

virtual const DtEntityIdentifier& DtStopFreezeInteraction::senderId ( ) const
virtual
virtual void DtStopFreezeInteraction::setRealWorldTime ( const DtTime  time)
virtual

Set/Get real world time.

virtual void DtStopFreezeInteraction::setReason ( DtStopReason  reason)
virtual
virtual void DtStopFreezeInteraction::setReceiverId ( const DtEntityIdentifier id)
virtual

Set/Get receiver ID.

virtual void DtStopFreezeInteraction::setReflectWhenFrozen ( bool  flag)
virtual
virtual void DtStopFreezeInteraction::setRequestId ( int  id)
virtual

Set/Get request ID.

virtual void DtStopFreezeInteraction::setRunClockWhenFrozen ( bool  flag)
virtual
virtual void DtStopFreezeInteraction::setSenderId ( const DtEntityIdentifier id)
virtual

Set/Get sender ID.

virtual void DtStopFreezeInteraction::setUpdateWhenFrozen ( bool  flag)
virtual
virtual bool DtStopFreezeInteraction::updateWhenFrozen ( ) const
virtual

SetGet updateWhenFrozen flag.

Member Data Documentation

DtEntityIdentifier DtStopFreezeInteraction::myOrigEnt
protected
DtTime DtStopFreezeInteraction::myRealTime
protected
DtStopReason DtStopFreezeInteraction::myReason
protected
DtEntityIdentifier DtStopFreezeInteraction::myReceiveEnt
protected
bool DtStopFreezeInteraction::myReflect
protected
int DtStopFreezeInteraction::myRequestId
protected
bool DtStopFreezeInteraction::myRunClock
protected
bool DtStopFreezeInteraction::myUpdate
protected

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

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)