VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtLinearObjectTransaction Class Reference

class DtLinearObjectTransaction More...

+ Inheritance diagram for DtLinearObjectTransaction:
+ Collaboration diagram for DtLinearObjectTransaction:

Public Member Functions

 DtLinearObjectTransaction ()
 
virtual ~DtLinearObjectTransaction ()
 
 DtLinearObjectTransaction (const DtLinearObjectTransaction &orig)
 
DtLinearObjectTransactionoperator= (const DtLinearObjectTransaction &orig)
 
virtual void printData () const
 Print the interaction's data to DtInfo. More...
 
virtual void printDataToStream (std::ostream &stream) const
 Print the interaction's data to the specified stream. More...
 
virtual bool setNumOfBreachLinearSegments (int newNumber)
 Set/Get the number of BreachableLinearObject Segment Records. More...
 
virtual int numOfBreachLinearSegments () const
 
virtual bool setBreachLinearSegment (int index, const DtBreachableSegmentRecord &record)
 
virtual bool breachLinearSegment (int index, DtBreachableSegmentRecord &record) const
 
virtual bool setNumOfBreachObjectSegments (int newNumber)
 Set/Get the number of BreachObject Segment Records. More...
 
virtual int numOfBreachObjectSegments () const
 
virtual bool setBreachObjectSegment (int index, const DtLinearSegmentRecord &record)
 
virtual bool breachObjectSegment (int index, DtLinearSegmentRecord &record) const
 
virtual bool setNumOfExhaustSmokeSegments (int newNumber)
 Set/Get the number of ExhaustSmokeObject Segment Records. More...
 
virtual int numOfExhaustSmokeSegments () const
 
virtual bool setExhaustSmokeSegment (int index, const DtExhaustSmokeRecord &record)
 
virtual bool exhaustSmokeSegment (int index, DtExhaustSmokeRecord &record) const
 
virtual bool setNumOfMinefldLaneMarkSegments (int newNumber)
 Set/Get the number of MinefieldLaneMarker Segment Records. More...
 
virtual int numOfMinefldLaneMarkSegments () const
 
virtual bool setMinefldLaneMarkSegment (int index, const DtMinefieldLaneMarkerRecord &record)
 
virtual bool minefldLaneMarkSegment (int index, DtMinefieldLaneMarkerRecord &record) const
 
virtual const char * name () const
 Name of the interaction. (Not necessarily the ClassName from the FOM.) More...
 
- Public Member Functions inherited from DtEnvironmentObjectTransaction
 DtEnvironmentObjectTransaction ()
 default constructor More...
 
virtual ~DtEnvironmentObjectTransaction ()
 destructor More...
 
 DtEnvironmentObjectTransaction (const DtEnvironmentObjectTransaction &orig)
 copy constructor More...
 
DtEnvironmentObjectTransactionoperator= (const DtEnvironmentObjectTransaction &orig)
 assignment operator More...
 
virtual void setObjectId (const DtEntityIdentifier &identifier)
 Set/Get Environment Object ID. More...
 
virtual const DtEntityIdentifierobjectId () const
 
virtual void setReferencedObjectId (const DtGlobalObjectDesignator &rtiObject)
 Set/Get Referenced Object ID. More...
 
virtual const
DtGlobalObjectDesignator
referencedObjectId () const
 
virtual void setForceId (const DtForceType value)
 Set/Get Force ID. More...
 
virtual DtForceType forceId () const
 
virtual void setObjectType (const DtSyntheticEnvironmentObjectType &type)
 Set/Get Object Type. More...
 
virtual const
DtSyntheticEnvironmentObjectType
objectType () const
 
virtual void setRequestingId (const DtSimulationAddress &id)
 Set/Get Requesting ID. More...
 
virtual const DtSimulationAddressrequestingId () const
 
virtual void setReceivingId (const DtSimulationAddress &id)
 Set/Get Receiving ID. More...
 
virtual const DtSimulationAddressreceivingId () const
 
- Public Member Functions inherited from DtInteractionWithEncDec
 DtInteractionWithEncDec ()
 default constructor More...
 
virtual ~DtInteractionWithEncDec ()
 destructor More...
 
 DtInteractionWithEncDec (const DtInteractionWithEncDec &orig)
 copy constructor More...
 
DtInteractionWithEncDecoperator= (const DtInteractionWithEncDec &orig)
 assignment operator More...
 
virtual void setExConn (DtExerciseConn *exConn, DtInterClassDesc *classDesc=NULL)
 Sets the interaction's ExerciseConn and class descriptor. More...
 
virtual const
RTI::ParameterHandleValueMap & 
phvm () const
 Get the parameter handle value pair set for the interaction. More...
 
virtual void setFromPhvm (const RTI::ParameterHandleValueMap &pvList)
 Set contents from a parameter handle value pair set. More...
 
virtual void useThese (DtInteractionEncoder *enc, DtInteractionDecoder *dec, DtInteractionRep *data)
 Specify an encoder, decoder, and interaction data repository to use in encoding and decoding. More...
 
virtual DtInteractionEncoderencoder () const
 Return the encoder we are using. More...
 
virtual DtInteractionDecoderdecoder () const
 Return the decoder we are using. More...
 
virtual void setParameterByHandle (const RTI::ParameterHandle &attrHdl, const char *attrValue, unsigned size)
 Set the Parameter with the given handle. More...
 
virtual const char * getParameterByHandle (const RTI::ParameterHandle &attrHdl, unsigned &size) const
 Get a pointer to Parameter value for the Parameter with the given handle. More...
 
virtual void setParameterByName (const DtString &name, const char *attrValue, unsigned size)
 Set the Parameter with the given name. More...
 
virtual const char * getParameterByName (const DtString &name, unsigned &size) const
 Get a pointer to Parameter value for the Parameter with the given name. More...
 
- Public Member Functions inherited from DtInteraction
 DtInteraction ()
 default constructor More...
 
virtual ~DtInteraction ()
 destructor More...
 
 DtInteraction (const DtInteraction &orig)
 copy constructor More...
 
DtInteractionoperator= (const DtInteraction &orig)
 assignment operator More...
 
virtual RTI::InteractionClassHandle interactionClassHandle () const
 Get the interaction class handle. Returns 0 if no classDesc. More...
 
virtual char * interactionClassName () const
 Get the interaction class name. Returns NULL if no classDesc. More...
 
virtual int numParameters () const
 Get the number of parameters. Returns 0 if no classDesc. More...
 
virtual bool neededByFederation () const
 Returns true if the interaction class is needed by the federation false otherwise. More...
 
virtual void print () const
 Print the interaction's host rep data, including header. More...
 
virtual void printToStream (std::ostream &stream) const
 Print the interaction to a stream. More...
 
virtual void printHeader () const
 Print the header info. More...
 
virtual void printHeaderToStream (std::ostream &stream) const
 Print the header info to a stream. More...
 
virtual void printDataToString (DtString &buff) const
 Print the interaction's data to the string provided. More...
 
virtual void printParams (bool withHex) const
 Print the header followed by the interaction's parameters. More...
 
virtual void printParamsToStream (std::ostream &stream, bool withHex) const
 Print the header followed by the interaction's parameters to a stream. More...
 
virtual DtExerciseConnexerciseConn () const
 Get the current exercise connection. More...
 
virtual DtInterClassDescclassDesc () const
 Get the current class descriptor we're using for this interaction. More...
 
virtual bool customTagSet () const
 Get whether a custom tag has been set on the interaction or not. More...
 
virtual void setCustomTag (const RTI::VariableLengthData &a_tag)
 Set the user-defined tag. More...
 
virtual void setTag (const RTI::VariableLengthData &tag)
 Set the user-defined tag. More...
 
virtual const
RTI::VariableLengthData & 
tag () const
 Get the user-defined tag. More...
 
virtual const
RTI::RegionHandleSet * 
conveyedRegion () const
 Get & Set the conveyed region of the reflected state message. More...
 
virtual void setConveyedRegion (const RTI::RegionHandleSet *sentRegionHandleSet)
 
virtual void setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative)
 Set the time of validity of the message, and whether this represents relative or absolute time. More...
 
virtual DtTime timeStamp () const
 Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp. More...
 
virtual DtTimeStampType timeStampType () const
 Return the type of the time stamp. More...
 
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. More...
 
virtual void setFedTime (const RTI::LogicalTime &ft)
 This is used for TSO interactions. More...
 
virtual const RTI::LogicalTime * fedTime () const
 When the interaction is received, if the federate sending the interaction had TSO set then the fedTime will be set. More...
 
virtual void setMessageRetractionHandle (const RTI::MessageRetractionHandle &handle)
 Get/Set the MessageRetractionHandle. More...
 
virtual
RTI::MessageRetractionHandle 
messageRetractionHandle () const
 Get the message retraction handle. For more info see setMessageRetractionHandle. More...
 

Static Public Member Functions

static DtInteractioncreate ()
 Create a DtLinearObjectTransaction. More...
 
static void addCallback (DtExerciseConn *conn, DtLinearObjectTransactionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Add (register)/Remove (deregister) function to be called when interaction occurs. More...
 
static void removeCallback (DtExerciseConn *conn, DtLinearObjectTransactionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 
- Static Public Member Functions inherited from DtEnvironmentObjectTransaction
static DtInteractioncreate ()
 Create a DtEnvironmentObjectTransaction. More...
 
static void addCallback (DtExerciseConn *conn, DtEnvironmentObjectTransactionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Add (register)/Remove (deregister) function to be called when interaction occurs. More...
 
static void removeCallback (DtExerciseConn *conn, DtEnvironmentObjectTransactionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 
- Static Public Member Functions inherited from DtInteraction
static void setTagIsAsciiTime (bool val)
 Set/Get flag that tells us whether we're using the RPR FOM convention that the UserDefinedTag in updates and interactions represents a DIS-style timestamp. More...
 
static bool tagIsAsciiTime ()
 
static void addCallback (DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Register/Deregister callback function cb with conn, on all interaction class name (char*) contained in classes. More...
 
static void removeCallback (DtExerciseConn *conn, const std::vector< DtString > *classes, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 
static void addCallback (DtExerciseConn *conn, const char *className, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 Can be used instead of above for a single class. More...
 
static void removeCallback (DtExerciseConn *conn, const char *className, DtReceiveInteractionCb cb, void *usr, DtDDMRegionSP region=DtDDMRegionSP())
 

Protected Attributes

int myNumOfBreachLinearSegments
 
DtBreachableSegmentRecordmyBreachLinearSegments
 
int myNumOfBreachObjectSegments
 
DtLinearSegmentRecordmyBreachObjectSegments
 
int myNumOfExhaustSmokeSegments
 
DtExhaustSmokeRecordmyExhaustSmokeSegments
 
int myNumOfMinefldLaneMarkSegments
 
DtMinefieldLaneMarkerRecordmyMinefldLaneMarkSegments
 
- Protected Attributes inherited from DtEnvironmentObjectTransaction
DtEntityIdentifier myObjectId
 
DtGlobalObjectDesignator myReferencedObjectId
 
DtForceType myForceId
 
DtSyntheticEnvironmentObjectType myObjectType
 
DtSimulationAddress myRequestingId
 
DtSimulationAddress myReceivingId
 
- Protected Attributes inherited from DtInteractionWithEncDec
DtInteractionDecodermyDecoder
 
DtInteractionEncodermyEncoder
 
DtInteractionRep * myData
 
std::map< RTI::ParameterHandle,
DtGenericParameterInfo * > 
myParametersByHandle
 parameters by handle. More...
 
- Protected Attributes inherited from DtInteraction
DtInterClassDescmyClassDesc
 
DtExerciseConnmyExConn
 
DtTime myTime
 
DtTimeStampType myTimeType
 
RTI::LogicalTime * myFedTime
 
RTI::ParameterHandleValueMap myPvList
 
RTI::MessageRetractionHandle myRetractionHandle
 
RTI::VariableLengthData myTag
 
const RTI::RegionHandleSet * 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. More...
 
virtual DtInteractionEncodercreateEncoder (DtExerciseConn *exConn) const
 Called by encoderToUse to obtain a new'ed encoder. More...
 
virtual DtInteractionDecoderdecoderToUse (DtExerciseConn *exConn) const
 Returns a decoder to use for decoding the interaction. More...
 
virtual DtInteractionEncoderencoderToUse (DtExerciseConn *exConn) const
 Returns an encoder to use for encoding the interaction. More...
 
- Protected Member Functions inherited from DtInteraction
virtual const char * interactionClassToUse (DtExerciseConn *exConn) const
 Returns the FOM interaction class name to use. More...
 
virtual
RTI::ParameterHandleValueMap & 
privPvList () const
 Returns a pointer to a private pvList that can be used as a return value by phvps. More...
 
DtInteractionself () const
 Get rid of const-ness on the "this" pointer in order to access non-const functions from const member functions (such as simple accessors). More...
 
- Static Protected Attributes inherited from DtInteraction
static bool theTagIsAsciiTime
 

Detailed Description

class DtLinearObjectTransaction

Instances of DtLinearObjectTransaction are used to implement Linear Object Transaction interactions in the RPR FOM

The type of Linear Object Transaction sent depends on the object type Object type: Exhaust Smoke – Domain = 0 (other), Kind = 5 (tactical smoke) Category = 1 Minefield Lane Marker – Domain = 1 (land), Kind = 6 (obstacle), Category = 1 Breach Object – Domain = 1 (land), Kind = 7 (obstacle breach), Category = 1 Breachable Linear Object – Couldn't figure out Object type... currently not implemented in the mapper Any object types not specified will be sent as OtherLinearObjectTransacitons

Constructor & Destructor Documentation

DtLinearObjectTransaction::DtLinearObjectTransaction ( )
virtual DtLinearObjectTransaction::~DtLinearObjectTransaction ( )
virtual
DtLinearObjectTransaction::DtLinearObjectTransaction ( const DtLinearObjectTransaction orig)

Member Function Documentation

static void DtLinearObjectTransaction::addCallback ( DtExerciseConn conn,
DtLinearObjectTransactionCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
static

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

virtual bool DtLinearObjectTransaction::breachLinearSegment ( int  index,
DtBreachableSegmentRecord record 
) const
virtual
virtual bool DtLinearObjectTransaction::breachObjectSegment ( int  index,
DtLinearSegmentRecord record 
) const
virtual
static DtInteraction* DtLinearObjectTransaction::create ( )
static

Create a DtLinearObjectTransaction.

Caller is responsible for deletion.

virtual bool DtLinearObjectTransaction::exhaustSmokeSegment ( int  index,
DtExhaustSmokeRecord record 
) const
virtual
virtual bool DtLinearObjectTransaction::minefldLaneMarkSegment ( int  index,
DtMinefieldLaneMarkerRecord record 
) const
virtual
virtual const char* DtLinearObjectTransaction::name ( ) const
virtual

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

Reimplemented from DtEnvironmentObjectTransaction.

virtual int DtLinearObjectTransaction::numOfBreachLinearSegments ( ) const
virtual
virtual int DtLinearObjectTransaction::numOfBreachObjectSegments ( ) const
virtual
virtual int DtLinearObjectTransaction::numOfExhaustSmokeSegments ( ) const
virtual
virtual int DtLinearObjectTransaction::numOfMinefldLaneMarkSegments ( ) const
virtual
DtLinearObjectTransaction& DtLinearObjectTransaction::operator= ( const DtLinearObjectTransaction orig)
virtual void DtLinearObjectTransaction::printData ( ) const
virtual

Print the interaction's data to DtInfo.

Reimplemented from DtEnvironmentObjectTransaction.

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

Print the interaction's data to the specified stream.

Reimplemented from DtEnvironmentObjectTransaction.

static void DtLinearObjectTransaction::removeCallback ( DtExerciseConn conn,
DtLinearObjectTransactionCb  cb,
void *  usr,
DtDDMRegionSP  region = DtDDMRegionSP() 
)
static
virtual bool DtLinearObjectTransaction::setBreachLinearSegment ( int  index,
const DtBreachableSegmentRecord record 
)
virtual
virtual bool DtLinearObjectTransaction::setBreachObjectSegment ( int  index,
const DtLinearSegmentRecord record 
)
virtual
virtual bool DtLinearObjectTransaction::setExhaustSmokeSegment ( int  index,
const DtExhaustSmokeRecord record 
)
virtual
virtual bool DtLinearObjectTransaction::setMinefldLaneMarkSegment ( int  index,
const DtMinefieldLaneMarkerRecord record 
)
virtual
virtual bool DtLinearObjectTransaction::setNumOfBreachLinearSegments ( int  newNumber)
virtual

Set/Get the number of BreachableLinearObject Segment Records.

Set returns false if the requested number is too large. Changing this number will erase all previous data.

virtual bool DtLinearObjectTransaction::setNumOfBreachObjectSegments ( int  newNumber)
virtual

Set/Get the number of BreachObject Segment Records.

Set returns false if the request number is too large. Changing this number will erase all previous data.

virtual bool DtLinearObjectTransaction::setNumOfExhaustSmokeSegments ( int  newNumber)
virtual

Set/Get the number of ExhaustSmokeObject Segment Records.

Set returns false if the requested number is too large. Changing this number will erase all previous data.

virtual bool DtLinearObjectTransaction::setNumOfMinefldLaneMarkSegments ( int  newNumber)
virtual

Set/Get the number of MinefieldLaneMarker Segment Records.

Set returns false if the request number is too large. Changing this number will erase all previous data.

Member Data Documentation

DtBreachableSegmentRecord* DtLinearObjectTransaction::myBreachLinearSegments
protected
DtLinearSegmentRecord* DtLinearObjectTransaction::myBreachObjectSegments
protected
DtExhaustSmokeRecord* DtLinearObjectTransaction::myExhaustSmokeSegments
protected
DtMinefieldLaneMarkerRecord* DtLinearObjectTransaction::myMinefldLaneMarkSegments
protected
int DtLinearObjectTransaction::myNumOfBreachLinearSegments
protected
int DtLinearObjectTransaction::myNumOfBreachObjectSegments
protected
int DtLinearObjectTransaction::myNumOfExhaustSmokeSegments
protected
int DtLinearObjectTransaction::myNumOfMinefldLaneMarkSegments
protected

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

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)