A task that tracks execution of multiple other tasks.
More...
#include <task.h>
Inherits cherrypi::Task.
Inherited by cherrypi::AutoBuildTask, and cherrypi::SquadTask.
A task that tracks execution of multiple other tasks.
This is similar to ProxyTask but supports tracking of multiple tasks. Note that this is slightly heavier in terms of processing needs than ProxyTask. The status of the underlying tasks is mirrored according to the given policy. These are the default settings:
Status checks according to policies are evaluated in the following order: TaskStatus::Success, TaskStatus::Failure, TaskStatus::Ongoing and TaskStatus::Unknown.
cherrypi::MultiProxyTask::MultiProxyTask |
( |
std::vector< UpcId > |
targetUpcIds, |
|
|
UpcId |
upcId |
|
) |
| |
virtual cherrypi::MultiProxyTask::~MultiProxyTask |
( |
| ) |
|
|
virtualdefault |
void cherrypi::MultiProxyTask::cancel |
( |
State * |
state | ) |
|
|
overridevirtual |
bool cherrypi::MultiProxyTask::matchStatus |
( |
TaskStatus |
status | ) |
|
|
protected |
std::unordered_set< Unit * > const & cherrypi::MultiProxyTask::proxiedUnits |
( |
| ) |
const |
|
overridevirtual |
A set of units occupied performing this task.
If this is a ProxyTask, this will reflect the units of the targeted task.
Reimplemented from cherrypi::Task.
std::vector<std::shared_ptr<Task> > cherrypi::MultiProxyTask::targets |
( |
| ) |
const |
|
inline |
void cherrypi::MultiProxyTask::update |
( |
State * |
state | ) |
|
|
overridevirtual |
std::unordered_set<Unit*> cherrypi::MultiProxyTask::proxiedUnits_ |
|
protected |
std::vector<std::shared_ptr<Task> > cherrypi::MultiProxyTask::targets_ |
|
protected |
std::vector<UpcId> cherrypi::MultiProxyTask::targetUpcIds_ |
|
protected |
The documentation for this class was generated from the following files: