Module Task_A2G_Dispatcher
Tasking - The TASKA2GDISPATCHER creates and manages player TASK_A2G tasks based on detected targets.
1) #TASKA2GDISPATCHER class, extends #DETECTION_MANAGER
The #TASKA2GDISPATCHER class implements the dynamic dispatching of tasks upon groups of detected units determined a Set of FAC (groups). The FAC will detect units, will group them, and will dispatch Tasks to groups. Depending on the type of target detected, different tasks will be dispatched. Find a summary below describing for which situation a task type is created:
- CAS Task: Is created when there are enemy ground units within range of the FAC, while there are friendly units in the FAC perimeter.
- BAI Task: Is created when there are enemy ground units within range of the FAC, while there are NO other friendly units within the FAC perimeter.
- SEAD Task: Is created when there are enemy ground units wihtin range of the FAC, with air search radars.
Other task types will follow...
3.1) TASKA2GDISPATCHER constructor:
The TASKA2GDISPATCHER.New() method creates a new TASKA2GDISPATCHER instance.
API CHANGE HISTORY
The underlying change log documents the API changes. Please read this carefully. The following notation is used:
- Added parts are expressed in bold type face.
- Removed parts are expressed in italic type face.
Hereby the change log:
2017-03-09: Initial class and API.
AUTHORS and CONTRIBUTIONS
Contributions:
Authors:
- FlightControl: Concept, Design & Programming.
Global(s)
| TASK_A2G_DISPATCHER |
Type TASK_A2G_DISPATCHER
| TASK_A2G_DISPATCHER.ClassName | |
| TASK_A2G_DISPATCHER.Detection |
The DETECTION_BASE object that is used to report the detected objects. |
| TASK_A2G_DISPATCHER:EvaluateBAI(DetectedItem, FriendlyCoalition) |
Creates a BAI task when there are targets for it. |
| TASK_A2G_DISPATCHER:EvaluateCAS(DetectedItem) |
Creates a CAS task when there are targets for it. |
| TASK_A2G_DISPATCHER:EvaluateRemoveTask(Mission, Task, DetectedItem) |
Evaluates the removal of the Task from the Mission. |
| TASK_A2G_DISPATCHER:EvaluateSEAD(DetectedItem) |
Creates a SEAD task when there are targets for it. |
| TASK_A2G_DISPATCHER.Mission | |
| TASK_A2G_DISPATCHER:New(The, SetGroup, Detection, Mission) |
TASKA2GDISPATCHER constructor. |
| TASK_A2G_DISPATCHER:ProcessDetected(Detection) |
Assigns tasks in relation to the detected items to the Set#SET_GROUP. |
| TASK_A2G_DISPATCHER.SetGroup |
The groups to which the FAC will report to. |
Global(s)
Type Task_A2G_Dispatcher
Type TASK_A2G_DISPATCHER
TASKA2GDISPATCHER class.
Field(s)
- #string TASK_A2G_DISPATCHER.ClassName
- Functional.Detection#DETECTION_BASE TASK_A2G_DISPATCHER.Detection
-
The DETECTION_BASE object that is used to report the detected objects.
- TASK_A2G_DISPATCHER:EvaluateBAI(DetectedItem, FriendlyCoalition)
-
Creates a BAI task when there are targets for it.
Parameters
-
Functional.Detection#DETECTION_AREAS.DetectedItem DetectedItem: -
FriendlyCoalition:
Return value
-
- TASK_A2G_DISPATCHER:EvaluateCAS(DetectedItem)
-
Creates a CAS task when there are targets for it.
Parameter
-
Functional.Detection#DETECTION_AREAS.DetectedItem DetectedItem:
Return value
-
- TASK_A2G_DISPATCHER:EvaluateRemoveTask(Mission, Task, DetectedItem)
-
Evaluates the removal of the Task from the Mission.
Can only occur when the DetectedItem is Changed AND the state of the Task is "Planned".
Parameters
-
Tasking.Mission#MISSION Mission: -
Tasking.Task#TASK Task: -
Functional.Detection#DETECTION_AREAS.DetectedItem DetectedItem:
Return value
-
- TASK_A2G_DISPATCHER:EvaluateSEAD(DetectedItem)
-
Creates a SEAD task when there are targets for it.
Parameter
-
Functional.Detection#DETECTION_AREAS.DetectedItem DetectedItem:
Return values
-
Set#SET_UNIT: TargetSetUnit: The target set of units.
-
#nil: If there are no targets to be set.
-
- TASK_A2G_DISPATCHER:New(The, SetGroup, Detection, Mission)
-
TASKA2GDISPATCHER constructor.
Parameters
-
Tasking.Mission#MISSION The: mission for which the task dispatching is done. -
Set#SET_GROUP SetGroup: The set of groups that can join the tasks within the mission. -
Functional.Detection#DETECTION_BASE Detection: The detection results that are used to dynamically assign new tasks to human players. -
Mission:
Return value
#TASKA2GDISPATCHER: self
-
- TASK_A2G_DISPATCHER:ProcessDetected(Detection)
-
Assigns tasks in relation to the detected items to the Set#SET_GROUP.
Parameter
-
Functional.Detection#DETECTION_BASE Detection: The detection created by the Detection#DETECTION_BASE derived object.
Return value
#boolean: Return true if you want the task assigning to continue... false will cancel the loop.
-
- Set#SET_GROUP TASK_A2G_DISPATCHER.SetGroup
-
The groups to which the FAC will report to.