Banner Image

Module Tasking.DetectionManager

Tasking - This module contains the DETECTION_MANAGER class and derived classes.


The #DETECTION_MANAGER class defines the core functions to report detected objects to groups. Reportings can be done in several manners, and it is up to the derived classes if DETECTION_MANAGER to model the reporting behaviour.

1.1) DETECTION_MANAGER constructor:

* DETECTION_MANAGER.New(): Create a new DETECTION_MANAGER instance.

1.2) DETECTION_MANAGER reporting:

Derived DETECTION_MANAGER classes will reports detected units using the method DETECTION_MANAGER.ReportDetected(). This method implements polymorphic behaviour.

The time interval in seconds of the reporting can be changed using the methods DETECTION_MANAGER.SetRefreshTimeInterval(). To control how long a reporting message is displayed, use DETECTION_MANAGER.SetReportDisplayTime(). Derived classes need to implement the method DETECTION_MANAGER.GetReportDisplayTime() to use the correct display time for displayed messages during a report.

Reporting can be started and stopped using the methods DETECTION_MANAGER.StartReporting() and DETECTION_MANAGER.StopReporting() respectively. If an ad-hoc report is requested, use the method DETECTION_MANAGER.ReportNow().

The default reporting interval is every 60 seconds. The reporting messages are displayed 15 seconds.


2) #DETECTION_REPORTING class, extends #DETECTION_MANAGER

The #DETECTION_REPORTING class implements detected units reporting. Reporting can be controlled using the reporting methods available in the Tasking.DetectionManager#DETECTION_MANAGER class.

2.1) DETECTION_REPORTING constructor:

The DETECTION_REPORTING.New() method creates a new DETECTION_REPORTING instance.

Developer Note

Note while this class still works, it is no longer supported as the original author stopped active development of MOOSE Therefore, this class is considered to be deprecated


Contributions: Mechanist, Prof_Hilactic, FlightControl - Concept & Testing

Author: FlightControl - Framework Design & Programming

Global(s)

Global DETECTION_MANAGER

DETECTION_MANAGER class.

#DETECTION_MANAGER DETECTION_MANAGER

DETECTION_MANAGER class.

Global DETECTION_REPORTING

Type(s)

Fields and Methods inherited from DETECTION_MANAGER Description

DETECTION_MANAGER.CC

DETECTION_MANAGER.Detection

DETECTION_MANAGER:GetCommandCenter()

Get the command center to communicate actions to the players.

DETECTION_MANAGER:GetReportDisplayTime()

Get the reporting message display time.

DETECTION_MANAGER:MessageToPlayers(Squadron, Message, SoundFile, SoundDuration, SoundPath, DefenderGroup)

Send an information message to the players reporting to the command center.

DETECTION_MANAGER:New(SetGroup, Detection)

FAC constructor.

DETECTION_MANAGER:OnAfterAborted(From, Event, To, Task)

Aborted Handler OnAfter for DETECTION_MANAGER

DETECTION_MANAGER:OnAfterCancelled(From, Event, To, Task)

Cancelled Handler OnAfter for DETECTION_MANAGER

DETECTION_MANAGER:OnAfterFailed(From, Event, To, Task)

Failed Handler OnAfter for DETECTION_MANAGER

DETECTION_MANAGER:OnAfterStart(From, Event, To)

Start Handler OnAfter for DETECTION_MANAGER

DETECTION_MANAGER:OnAfterStop(From, Event, To)

Stop Handler OnAfter for DETECTION_MANAGER

DETECTION_MANAGER:OnAfterSuccess(From, Event, To, Task)

Success Handler OnAfter for DETECTION_MANAGER

DETECTION_MANAGER:OnBeforeStart(From, Event, To)

Start Handler OnBefore for DETECTION_MANAGER

DETECTION_MANAGER:OnBeforeStop(From, Event, To)

Stop Handler OnBefore for DETECTION_MANAGER

DETECTION_MANAGER:ProcessDetected(Detection)

Reports the detected items to the Core.Set#SET_GROUP.

DETECTION_MANAGER:SetCommandCenter(CommandCenter)

Set a command center to communicate actions to the players reporting to the command center.

DETECTION_MANAGER.SetGroup

DETECTION_MANAGER:SetRefreshTimeInterval(RefreshTimeInterval)

Set the reporting time interval.

DETECTION_MANAGER:SetReportDisplayTime(ReportDisplayTime)

Set the reporting message display time.

DETECTION_MANAGER:SetTacticalMenu(DispatcherMainMenuText, DispatcherMenuText)

Set a command center to communicate actions to the players reporting to the command center.

DETECTION_MANAGER:Start()

Start Trigger for DETECTION_MANAGER

DETECTION_MANAGER:Stop()

Stop Trigger for DETECTION_MANAGER

DETECTION_MANAGER._RefreshTimeInterval

DETECTION_MANAGER._ReportDisplayTime

DETECTION_MANAGER:__Start(Delay)

Start Asynchronous Trigger for DETECTION_MANAGER

DETECTION_MANAGER:__Stop(Delay)

Stop Asynchronous Trigger for DETECTION_MANAGER

DETECTION_MANAGER:onafterReport(From, Event, To)

DETECTION_MANAGER:onafterStart(From, Event, To)

Fields and Methods inherited from DETECTION_REPORTING Description

DETECTION_REPORTING.ClassName

DETECTION_REPORTING.Detection

The DETECTION_BASE object that is used to report the detected objects.

DETECTION_REPORTING:GetDetectedItemsText(DetectedSet)

Creates a string of the detected items in a Functional.Detection object.

DETECTION_REPORTING:New(SetGroup, Detection)

DETECTION_REPORTING constructor.

DETECTION_REPORTING:ProcessDetected(Group, Detection)

Reports the detected items to the Core.Set#SET_GROUP.

DETECTION_REPORTING.SetGroup

The groups to which the FAC will report to.

Field(s)

Function(s)

Get the command center to communicate actions to the players.

Defined in:

DETECTION_MANAGER

Return value:

Get the reporting message display time.

Defined in:

DETECTION_MANAGER

Return value:

#number:

ReportDisplayTime The display time in seconds when a report needs to be done.

Send an information message to the players reporting to the command center.

Defined in:

DETECTION_MANAGER

Parameters:

#table Squadron

The squadron table.

#string Message

The message to be sent.

#string SoundFile

The name of the sound file .wav or .ogg.

#number SoundDuration

The duration of the sound.

#string SoundPath

The path pointing to the folder in the mission file.

Wrapper.Group#GROUP DefenderGroup

The defender group sending the message.

Return value:

FAC constructor.

Defined in:

DETECTION_MANAGER

Parameters:

Return value:

Aborted Handler OnAfter for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Cancelled Handler OnAfter for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Failed Handler OnAfter for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Start Handler OnAfter for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Stop Handler OnAfter for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Success Handler OnAfter for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Start Handler OnBefore for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Return value:

#boolean:

Stop Handler OnBefore for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameters:

#string From

#string Event

#string To

Return value:

#boolean:

Reports the detected items to the Core.Set#SET_GROUP.

Defined in:

DETECTION_MANAGER

Parameter:

Return value:

Set a command center to communicate actions to the players reporting to the command center.

Defined in:

DETECTION_MANAGER

Parameter:

The command center.

Return value:

Set the reporting time interval.

Defined in:

DETECTION_MANAGER

Parameter:

#number RefreshTimeInterval

The interval in seconds when a report needs to be done.

Return value:

Set the reporting message display time.

Defined in:

DETECTION_MANAGER

Parameter:

#number ReportDisplayTime

The display time in seconds when a report needs to be done.

Return value:

Set a command center to communicate actions to the players reporting to the command center.

Defined in:

DETECTION_MANAGER

Parameters:

DispatcherMainMenuText

DispatcherMenuText

Return value:

Start Trigger for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Stop Trigger for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Start Asynchronous Trigger for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameter:

#number Delay

Stop Asynchronous Trigger for DETECTION_MANAGER

Defined in:

DETECTION_MANAGER

Parameter:

#number Delay

Defined in:

DETECTION_MANAGER

Parameters:

From

Event

To

Defined in:

DETECTION_MANAGER

Parameters:

From

Event

To

DETECTION_REPORTING class.

Field(s)

Functional.Detection#DETECTION_BASE DETECTION_REPORTING.Detection

The DETECTION_BASE object that is used to report the detected objects.

Core.Set#SET_GROUP DETECTION_REPORTING.SetGroup

The groups to which the FAC will report to.

Function(s)

Creates a string of the detected items in a Functional.Detection object.

Defined in:

DETECTION_REPORTING

Parameter:

Core.Set#SET_UNIT DetectedSet

The detected Set created by the Functional.Detection#DETECTION_BASE object.

Return value:

DETECTION_REPORTING constructor.

Defined in:

DETECTION_REPORTING

Parameters:

Return value:

Reports the detected items to the Core.Set#SET_GROUP.

Defined in:

DETECTION_REPORTING

Parameters:

The Wrapper.Group object to where the report needs to go.

The detection created by the Functional.Detection#DETECTION_BASE object.

Return value:

#boolean:

Return true if you want the reporting to continue... false will cancel the reporting loop.