|
WSF
|
Requests a task manager processor to create or modify a task. More...
#include <WsfXIO_PacketRegistry.hpp>


Public Types | |
| enum | { cTASK_ASSIGN , cTASK_CANCEL , cTASK_COMPLETE , cTASK_PROGRESS , cCHANGE_OPERATING_LEVEL , cTASK_COMMAND_1 , cTASK_COMMAND_2 , cTASK_COMMAND_3 , cTASK_COMMAND_4 } |
| Valid command types. More... | |
| typedef WsfXIO_Packet | BaseType |
| typedef int32_t | CommandType |
| Public Types inherited from WsfXIO_Packet | |
| enum | PacketFlags { cSYNCHRONIZED = 1 } |
| typedef bool | BaseType |
Public Member Functions | |
| WsfXIO_TaskCommandPkt (int aPacketId=cPACKET_ID) | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| template<typename T> | |
| void | DoSerialize (T &aBuff) |
| void | ReceiveCleanup () override |
| Public Member Functions inherited from WsfXIO_Packet | |
| WsfXIO_Packet (int aPacketId) | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| Serializes the packet header. Must be called first from derived class Serialize(). | |
| float | GetTimeStamp () const |
| void | SetTimeStamp (float aTimeStamp) |
| void | SetFlags (uint32_t aFlags) |
| void | AddFlags (uint32_t aFlags) |
| uint32_t | GetFlags () const |
Public Attributes | |
| CommandType | mCommandType |
| { Note: '[]' denotes optional | |
| unsigned int | mAssignerPlatformIndex |
| Platform Index of the assigner platform. Required. | |
| WsfStringId | mAssignerProcessorName |
| Name of the assigner's task manager processor. Required. | |
| WsfTrackId | mTrackId |
| The subject track ID. *Required. | |
| WsfStringId | mTargetNameId |
| The name of the target platform for this track. Used if mTrackId is not given. | |
| WsfStringId | mTaskType |
| Type of task. For cTASK_ASSIGN cTASK_COMPLETE cTASK_PROGRESS cCHANGE_OPERATING_LEVEL [cTASK_CANCEL]. | |
| unsigned int | mAssigneePlatformIndex |
| WsfStringId | mAssigneeProcessorName |
| Name of the processor on the assigned platform. For cTASK_ASSIGN. | |
| WsfTaskResource * | mResourcePtr |
| Name of the resource to route the task to. For cTASK_ASSIGN. | |
| WsfStringId | mCommName |
| Name of the comm device to use. For [cTASK_ASSIGN]. | |
| WsfStringId | mStatus |
| Status message. For [cTASK_COMPLETE] [cTASK_PROGRESS]. | |
| int32_t | mOperatingLevel |
| For only cCHANGE_OPERATING_LEVEL. | |
| Public Attributes inherited from WsfXIO_Packet | |
| GenUniqueId | mApplicationId |
Static Public Attributes | |
| static const int | cPACKET_ID = 35 |
| Static Public Attributes inherited from WsfXIO_Packet | |
| static const int | cPACKET_ID = -1 |
Additional Inherited Members | |
| Protected Attributes inherited from WsfXIO_Packet | |
| uint32_t | mFlags |
| float | mTimeStamp |
Requests a task manager processor to create or modify a task.
| typedef int32_t WsfXIO_TaskCommandPkt::CommandType |
| anonymous enum |
Valid command types.
| Enumerator | |
|---|---|
| cTASK_ASSIGN | Assign a task. |
| cTASK_CANCEL | Cancel an assigned task. |
| cTASK_COMPLETE | Report a received task as complete. |
| cTASK_PROGRESS | Report progress on a received task. |
| cCHANGE_OPERATING_LEVEL | Change operating level. |
| cTASK_COMMAND_1 | |
| cTASK_COMMAND_2 | |
| cTASK_COMMAND_3 | |
| cTASK_COMMAND_4 | |
|
inline |
References cPACKET_ID, and mResourcePtr.
|
inline |
References mAssigneePlatformIndex, mAssigneeProcessorName, mAssignerPlatformIndex, mAssignerProcessorName, mCommandType, mCommName, mOperatingLevel, mResourcePtr, mStatus, mTargetNameId, mTaskType, and mTrackId.
Referenced by Serialize().
|
inlineoverride |
References mResourcePtr.
|
inline |
References DoSerialize(), and WsfXIO_Packet::Serialize().
|
static |
Referenced by WsfXIO_TaskCommandPkt().
| unsigned int WsfXIO_TaskCommandPkt::mAssigneePlatformIndex |
Index of the assigned platform. For cTASK_ASSIGN, cCHANGE_OPERATING_LEVEL. A value of 0 assumes the assignee is the assigner
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| WsfStringId WsfXIO_TaskCommandPkt::mAssigneeProcessorName |
Name of the processor on the assigned platform. For cTASK_ASSIGN.
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| unsigned int WsfXIO_TaskCommandPkt::mAssignerPlatformIndex |
Platform Index of the assigner platform. Required.
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| WsfStringId WsfXIO_TaskCommandPkt::mAssignerProcessorName |
Name of the assigner's task manager processor. Required.
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| CommandType WsfXIO_TaskCommandPkt::mCommandType |
{ Note: '[]' denotes optional
Type of task update. Required.
Referenced by DoSerialize(), WsfXIO_TaskService::HandleCommand(), and WsfXIO_WeaponComponent::HandleTaskCommand().
| WsfStringId WsfXIO_TaskCommandPkt::mCommName |
Name of the comm device to use. For [cTASK_ASSIGN].
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| int32_t WsfXIO_TaskCommandPkt::mOperatingLevel |
For only cCHANGE_OPERATING_LEVEL.
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| WsfTaskResource* WsfXIO_TaskCommandPkt::mResourcePtr |
Name of the resource to route the task to. For cTASK_ASSIGN.
Referenced by DoSerialize(), WsfXIO_TaskService::HandleCommand(), ReceiveCleanup(), and WsfXIO_TaskCommandPkt().
| WsfStringId WsfXIO_TaskCommandPkt::mStatus |
Status message. For [cTASK_COMPLETE] [cTASK_PROGRESS].
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| WsfStringId WsfXIO_TaskCommandPkt::mTargetNameId |
The name of the target platform for this track. Used if mTrackId is not given.
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| WsfStringId WsfXIO_TaskCommandPkt::mTaskType |
Type of task. For cTASK_ASSIGN cTASK_COMPLETE cTASK_PROGRESS cCHANGE_OPERATING_LEVEL [cTASK_CANCEL].
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().
| WsfTrackId WsfXIO_TaskCommandPkt::mTrackId |
The subject track ID. *Required.
Referenced by DoSerialize(), and WsfXIO_TaskService::HandleCommand().