SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A task manager is responsible for creating new tasks. More...
#include <Manager.h>
Public Types | |
using | TaskInstances = smtk::task::Instances |
Managed instances of Task objects (and a registry of Task classes). | |
using | AdaptorInstances = smtk::task::adaptor::Instances |
Managed instances of Adaptor objects (and a registry of Adaptor classes). | |
Public Member Functions | |
smtkTypeMacroBase (smtk::task::Manager) | |
smtkCreateMacro (smtk::task::Manager) | |
Manager (smtk::resource::Resource *parent) | |
Manager (const Manager &)=delete | |
void | operator= (const Manager &)=delete |
TaskInstances & | taskInstances () |
Return the set of managed task instances. More... | |
const TaskInstances & | taskInstances () const |
Active & | active () |
Return a tracker for the active task. | |
const Active & | active () const |
AdaptorInstances & | adaptorInstances () |
Return the set of managed adaptor instances. More... | |
const AdaptorInstances & | adaptorInstances () const |
smtk::common::Managers::Ptr | managers () const |
Return the managers instance that contains this manager, if it exists. | |
void | setManagers (const smtk::common::Managers::Ptr &managers) |
nlohmann::json | getStyle (const smtk::string::Token &styleClass) const |
Given a style key, return a style config. | |
nlohmann::json | getStyles () const |
void | setStyles (const nlohmann::json &styles) |
smtk::resource::Resource * | resource () const |
If this manager is owned by a resource (typically a project), return it. | |
Gallery & | gallery () |
Return a gallery of Task Worklets. | |
const Gallery & | gallery () const |
TaskManagerTaskObservers & | taskObservers () |
Return the set of observers of task events (so you can insert/remove an observer). | |
TaskManagerAdaptorObservers & | adaptorObservers () |
Return the set of observers of adaptor events (so you can insert/remove an observer). | |
TaskManagerWorkflowObservers & | workflowObservers () |
Return the set of observers of workflow events (so you can insert/remove an observer). | |
Static Public Member Functions | |
static constexpr smtk::operation::Observers::Priority | operationObserverPriority () |
Use an elevated priority for the task-manager's observation of operations. More... | |
A task manager is responsible for creating new tasks.
Eventually, the task manager will also hold an inventory of created tasks and be a clearinghouse for task state transitions.
|
inline |
Return the set of managed adaptor instances.
This class also acts as a registrar for Adaptor subclasses.
|
inlinestaticconstexpr |
Use an elevated priority for the task-manager's observation of operations.
This is done so that task-related events are emitted before other ordinary-priority operation observations (especially hint-processing).
|
inline |
Return the set of managed task instances.
This class also acts as a registrar for Task subclasses.