SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
User-interface tasks. More...
Namespaces | |
adaptor | |
Adaptors that configure downstream tasks. | |
json | |
JSON serialization and deserialization of tasks. | |
Classes | |
class | Active |
This object provides applications a way to change and observe the active task. More... | |
class | Adaptor |
This object provides applications a way to configure a task using information adapted from its dependencies. More... | |
class | FillOutAttributes |
FillOutAttributes is a task that is incomplete until specified attributes are valid. More... | |
class | Gallery |
Gallery represents a map of tasks worklets. More... | |
class | GatherResources |
GatherResources is a task that requires resources from a resource manager. More... | |
class | Group |
Group is a task that owns children and draws its state from them. More... | |
class | Instances |
Track smtk::task::Task objects with smtk::common::Instances. More... | |
class | Manager |
A task manager is responsible for creating new tasks. More... | |
class | Registrar |
class | SubmitOperation |
SubmitOperation helps users prepare and optionally run an operation. More... | |
class | Task |
Task is a base class for all SMTK tasks. More... | |
class | Worklet |
Worklet represents a set of tasks created to reuse a set of workflow logic in multiple workflows. More... | |
Typedefs | |
typedef smtk::shared_ptr< smtk::task::Adaptor > | AdaptorPtr |
typedef smtk::shared_ptr< const smtk::task::Adaptor > | ConstAdaptorPtr |
typedef smtk::weak_ptr< smtk::task::Adaptor > | WeakAdaptorPtr |
typedef smtk::weak_ptr< const smtk::task::Adaptor > | ConstWeakAdaptorPtr |
typedef smtk::shared_ptr< smtk::task::Manager > | ManagerPtr |
typedef smtk::weak_ptr< smtk::task::Manager > | WeakManagerPtr |
typedef smtk::shared_ptr< smtk::task::Task > | TaskPtr |
typedef smtk::shared_ptr< const smtk::task::Task > | ConstTaskPtr |
typedef smtk::weak_ptr< smtk::task::Task > | WeakTaskPtr |
typedef smtk::weak_ptr< const smtk::task::Task > | ConstWeakTaskPtr |
using | TaskInstancesBase = smtk::common::Instances< smtk::task::Task, void, std::tuple< smtk::task::Task::Configuration &, smtk::task::Manager &, std::shared_ptr< smtk::common::Managers > >, std::tuple< smtk::task::Task::Configuration &, smtk::task::Task::PassedDependencies, smtk::task::Manager &, std::shared_ptr< smtk::common::Managers > >> |
using | TaskManagerTaskObserver = std::function< void(smtk::common::InstanceEvent, const std::shared_ptr< Task > &)> |
Indicate that a task is being managed or unmanaged. More... | |
using | TaskManagerTaskObservers = smtk::common::Observers< TaskManagerTaskObserver > |
using | TaskManagerAdaptorObserver = std::function< void(smtk::common::InstanceEvent, const std::shared_ptr< Adaptor > &)> |
Indicate that an adaptor is being managed or unmanaged. More... | |
using | TaskManagerAdaptorObservers = smtk::common::Observers< TaskManagerAdaptorObserver > |
using | TaskManagerWorkflowObserver = std::function< void(const std::set< Task * > &, WorkflowEvent, Task *)> |
Indicate that a workflow is undergoing creation, destruction, or a topology change. More... | |
using | TaskManagerWorkflowObservers = smtk::common::Observers< TaskManagerWorkflowObserver > |
using | TaskList = std::tuple< Task, FillOutAttributes, GatherResources, Group, SubmitOperation > |
using | TaskJSON = std::tuple< json::jsonTask, json::jsonFillOutAttributes, json::jsonGatherResources, json::jsonGroup, json::jsonSubmitOperation > |
using | AdaptorList = std::tuple< adaptor::ConfigureOperation, adaptor::ResourceAndRole > |
using | AdaptorJSON = std::tuple< json::jsonConfigureOperation, json::jsonResourceAndRole > |
using | OperationList = std::tuple< AddDependency, EmplaceWorklet, RemoveDependency, RenameTask > |
Enumerations | |
enum | WorkflowEvent { WorkflowEvent::Created, WorkflowEvent::TaskAdded, WorkflowEvent::TaskRemoved, WorkflowEvent::Destroyed, WorkflowEvent::Resuming } |
An enum for events in the lifecycle of a workflow (tree of tasks). More... | |
enum | State { State::Irrelevant, State::Unavailable, State::Incomplete, State::Completable, State::Completed } |
The set of states that a task may take on. More... | |
Functions | |
std::string | stateName (const State &s) |
A type-conversion operation to cast enumerants to strings. | |
State | stateEnum (const std::string &s, bool *valid=nullptr) |
A type-conversion operation to cast strings to enumerants. | |
std::ostream & | operator<< (std::ostream &os, const State &s) |
States may be appended to streams. | |
void | workflowsOfTask (Task *task, std::set< smtk::task::Task * > &workflows, std::set< smtk::task::Task * > &visited) |
Free functions that populate a set of workflow "head" tasks for an input task (this is the set of tasks that task ultimately depends on but are not themselves dependent on any task). More... | |
std::set< smtk::task::Task * > | workflowsOfTask (Task &task) |
SMTKCORE_EXPORT std::set< smtk::task::Task * > | workflowsOfTask (const Task &task) |
void | to_json (nlohmann::json &j, const smtk::task::Adaptor::Ptr &adaptor) |
void | from_json (const nlohmann::json &j, smtk::task::Adaptor::Ptr &adaptor) |
void | from_json (const nlohmann::json &j, FillOutAttributes::AttributeSet &attributeSet) |
void | to_json (nlohmann::json &j, const FillOutAttributes::AttributeSet &attributeSet) |
void | from_json (const nlohmann::json &j, FillOutAttributes::ResourceAttributes &resourceAttributes) |
void | to_json (nlohmann::json &j, const FillOutAttributes::ResourceAttributes &resourceAttributes) |
void | from_json (const nlohmann::json &j, GatherResources::ResourceSet &resourceSet) |
void | to_json (nlohmann::json &j, const GatherResources::ResourceSet &resourceSet) |
void | from_json (const nlohmann::json &j, SubmitOperation::ParameterSpec ¶meterSpec) |
void | to_json (nlohmann::json &j, const SubmitOperation::ParameterSpec ¶meterSpec) |
void | to_json (nlohmann::json &jj, const smtk::task::Task::Ptr &task) |
void | from_json (const nlohmann::json &jj, smtk::task::Task::Ptr &task) |
void | to_json (nlohmann::json &jj, const smtk::task::Worklet::Ptr &worklet) |
void | from_json (const nlohmann::json &jj, smtk::task::Worklet::Ptr &worklet) |
User-interface tasks.
typedef smtk::shared_ptr<smtk::task::Adaptor> smtk::task::AdaptorPtr |
typedef smtk::shared_ptr<smtk::task::Manager> smtk::task::ManagerPtr |
using smtk::task::TaskManagerAdaptorObserver = typedef std::function<void(smtk::common::InstanceEvent, const std::shared_ptr<Adaptor>&)> |
Indicate that an adaptor is being managed or unmanaged.
Emitted during operation observation by the task manager.
using smtk::task::TaskManagerTaskObserver = typedef std::function<void(smtk::common::InstanceEvent, const std::shared_ptr<Task>&)> |
Indicate that a task is being managed or unmanaged.
Emitted during operation observation by the task manager.
using smtk::task::TaskManagerWorkflowObserver = typedef std::function<void(const std::set<Task*>&, WorkflowEvent, Task*)> |
Indicate that a workflow is undergoing creation, destruction, or a topology change.
Emitted during operation observation by the task manager.
typedef smtk::shared_ptr<smtk::task::Task> smtk::task::TaskPtr |
|
strong |
The set of states that a task may take on.
|
strong |
An enum for events in the lifecycle of a workflow (tree of tasks).
void SMTKCORE_EXPORT smtk::task::from_json | ( | const nlohmann::json & | j, |
Manager & | taskManager | ||
) |
Serialize/deserialize a task manager.
Note that the caller must push a smtk::task::json::Helper onto the stack before calling these methods and the helper must have its smtk::common::Managers set in order for these methods to work.
void SMTKCORE_EXPORT smtk::task::to_json | ( | nlohmann::json & | jj, |
const Manager & | manager | ||
) |
Serialize/deserialize a task manager.
Note that the caller must push a smtk::task::json::Helper onto the stack before calling these methods and the helper must have its smtk::common::Managers set in order for these methods to work.
SMTKCORE_EXPORT void smtk::task::workflowsOfTask | ( | Task * | task, |
std::set< smtk::task::Task * > & | workflows, | ||
std::set< smtk::task::Task * > & | visited | ||
) |
Free functions that populate a set of workflow "head" tasks for an input task (this is the set of tasks that task ultimately depends on but are not themselves dependent on any task).
The variant that accepts visited can be used to efficiently accumulate workflows across several tasks (by pruning visited nodes from its traversal).