WSF
engage::Task Class Reference

#include <Task.hpp>

Public Member Functions

 Task ()
 Task (const RunConfig &aRunConfig, int aTaskIndex, int aTargetIndex, int aSiteIndex, int aRepetition)
const RunConfigGetRunConfig () const
int GetTaskIndex () const
int GetTargetIndex () const
int GetSiteIndex () const
int GetRepetition () const
void Execute (int aThreadId, WsfScenario &aScenario, const InputConfig &aInputConfig)
int GetThreadId () const
TaskOutputGetTaskOutput () const

Detailed Description

A task represents the smallest indivisible unit of work that may be performed independently of another task.

ENGAGE maintains the same overall execution architecture as ESAMS. The execution loop is nested as follows: Runs Targets (flight path or target grid) Sites (most often only 1, but may be many) Shots/Salvos Monte-Carlo Repetitions

The first three are truly independent. That is, the processing for a particular Run/Target/Site is independent of another, and therefore are defined to be what we call a 'task'.

The last two in general are not independent, and are run as part of the task. For instance, shots after the first must have knowledge of the flight path up until the shot. This path may include reactions to previous shots. In addition, not all Monte-Carlo repetions may be executed (for example, if the FINDPK option is specified).

It may be theoretically possible to push the definition of a task down if the number of shots taken per site is 'one' and the equivalent of the ESAMS 'REPALL' is specified (run ALL Monte-Carlo repetitions).

Constructor & Destructor Documentation

◆ Task() [1/2]

engage::Task::Task ( )
inline

◆ Task() [2/2]

engage::Task::Task ( const RunConfig & aRunConfig,
int aTaskIndex,
int aTargetIndex,
int aSiteIndex,
int aRepetition )
inline

Member Function Documentation

◆ Execute()

◆ GetRepetition()

◆ GetRunConfig()

◆ GetSiteIndex()

◆ GetTargetIndex()

◆ GetTaskIndex()

int engage::Task::GetTaskIndex ( ) const
inline

Referenced by Execute().

◆ GetTaskOutput()

TaskOutput & engage::Task::GetTaskOutput ( ) const
inline

◆ GetThreadId()

int engage::Task::GetThreadId ( ) const
inline

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved