SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Types | Public Member Functions | Protected Attributes | List of all members
smtk::task::Adaptor Class Referenceabstract

This object provides applications a way to configure a task using information adapted from its dependencies. More...

#include <Adaptor.h>

Inheritance diagram for smtk::task::Adaptor:
[legend]
Collaboration diagram for smtk::task::Adaptor:
[legend]

Public Types

using Configuration = nlohmann::json
 Task adaptors are configured using JSON.
 

Public Member Functions

 smtkTypeMacroBase (smtk::task::Adaptor)
 
 Adaptor ()
 Construct an unconfigured adaptor.
 
 Adaptor (const Configuration &config)
 
 Adaptor (const Configuration &config, Task *from, Task *to)
 
virtual ~Adaptor ()=default
 Destructor must be virtual.
 
virtual bool reconfigureTask ()=0
 Subclasses must implement this to reconfigure the "to()" task. More...
 
Taskfrom () const
 The task this adaptor uses to fetch configuration parameters.
 
Taskto () const
 The task to which this adaptor applies configuration parameters.
 

Protected Attributes

Taskm_from
 
Taskm_to
 
smtk::task::Task::Observers::Key m_observer
 

Detailed Description

This object provides applications a way to configure a task using information adapted from its dependencies.

Member Function Documentation

◆ reconfigureTask()

virtual bool smtk::task::Adaptor::reconfigureTask ( )
pure virtual

Subclasses must implement this to reconfigure the "to()" task.

This method is called when the "from()" task changes into a completable state.

Implemented in smtk::task::adaptor::ResourceAndRole.


The documentation for this class was generated from the following files: