WsfQuantumTaskerProcessor¶
-
WsfQuantumTaskerProcessor inherits WsfProcessorVariable Access:
obj->VarName
WsfQuantumTaskerProcessor |
|
---|---|
Control By assigner |
|
Status By assignee |
|
Query By assigner |
|
Query By assignee |
|
Debug |
Task Control Methods¶
- bool CancelTask(WsfTrackId aTrackId)¶
Called by the assigner to cancel any tasks this procoessor has assigned that match the given track ID. If the given track ID is null, then all tasks assigned by this processor are canceled.
Task Status Methods¶
- void SetTaskProgress(WsfTask aTask, string aSubStatus)¶
Called by the assignee to update the task assigner with a status message about progress. The user provides sub-status as an input parameter; the status will be the default “IN_PROGRESS”.
- void SetTaskComplete(WsfTask aTask, string aSubStatus)¶
Called by the assignee to update the task assigner with a task complete message. The status of the task complete message will be the default “COMPLETE”. The default value for sub-status is “SUCCESSFUL”. User can provide a sub-status; usual values: “SUCCESSFUL” or “UNSUCCESSFUL”
Task Query Methods for Sent Task Assignments¶
- WsfTaskList AssignedTaskList()¶
Returns a list of all tasks this processor has assigned.
- WsfTaskList AssignedTaskListOfType(string aType)¶
Returns a list of tasks this processor has assigned for the given task type.
Note
Task type is no longer equivalent with resource type.
- WsfTaskList AssignedTaskListForTarget(WsfTrackId aTargetTrackId)¶
Returns a list of tasks this processor has assigned for the given target.
- WsfTaskList AssignedTaskListForResourceName(string aResourceName)¶
- WsfTaskList AssignedTaskListForResourceType(string aResourceType)¶
Returns a list of tasks this processor has for the given resource with the specific name or type. Type can be “weapon”, “sensor”, “jammer”, or any other string (equivalent to passing in “none”).
Task Query Methods for Received Task Assignments¶
- WsfTaskList ReceivedTaskList()¶
Returns a list of all tasks that have been received.
- WsfTaskList ReceivedTaskListOfType(string aType)¶
Returns a list of tasks that have been received for the given task type.
Note
Task type is no longer equivalent with resource type.
- WsfTaskList ReceivedTaskListOfTypeForTarget(string aType, WsfTrackId aTargetTrackId)¶
Returns a list of tasks that have been received for the given task type and given target.
- WsfTaskList ReceivedTaskListForTarget(WsfTrackId aTargetTrackId)¶
Returns a list of tasks that have been received for the given target.
- WsfTaskList ReceivedTaskListForResourceName(string aResourceName)¶
- WsfTaskList ReceivedTaskListForResourceType(string aResourceType)¶
Returns a list of tasks that have been received for the given resource with the specific name or type. Type can be “weapon”, “sensor”, “jammer”, or any other string (equivalent to passing in “none”).
Debug Methods¶
- Array<WsfQuantumTask> TasksConsidered()¶
- Array<WsfAssetPerception> AssetsConsidered()¶
Data returned by these methods are copies of information currently resident in the quantum matrix. This information is updated during the generation step of the quantum tasker processor.
- Array<Array<double>> ValuesConsidered()¶
Data returned by this method is a copy of information currently resident in the quantum matrix. This information is updated during the evaluation step of the quantum tasker processor.
- Array<WsfAssetPerception> AssetAssigneesFor(WsfQuantumTask aTask)¶
Returns copies of the asset perceptions allocated for the given task. This information is updated during the allocation step of the quantum tasker processor.