VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
12.2 - Task Messages

Instances of DtTaskMessage (taskMsg.h) are derived from DtVrfObjectMessage (radioMsg.h) and are used to convey information about a task.

Simulation objects receive tasks on their radio in the form of DtTaskMessages. These messages may be sent to a simulation object as a result of:

DtTaskMessage is one of three types of DtVrfObjectMessage. The DtTaskMessage class overrides the member function radioMessageType() to return the string type DtTaskMessageType. The radio message types are defined in radioMsgTypes.h.

In all cases, the task (a DtSimTask object) is packaged inside of a DtTaskMessage and sent to the appropriate simulation object by radio. (For details, please see vrfOverview.) The DtTaskMessage class maintains its own copy of the DtSimTask it is carrying. You set the task in the message by calling its setTask() member function, giving it a pointer to a DtSimTask. The DtTaskMessage class makes its own copy of the message, so the memory pointed to by the DtSimTask that you passed into the DtTaskMessage class should be deleted in the calling application code.

[<< Tasks and Set Data Requests] [Home] [Top of Page] [Adding a New Task for a Simulation Object >>]


Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)