SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Configure a task with a resource and role given a dependent producer. More...
#include <ResourceAndRole.h>
Public Member Functions | |
smtkTypeMacro (smtk::task::adaptor::ResourceAndRole) | |
smtkSuperclassMacro (smtk::task::Adaptor) | |
smtkCreateMacro (smtk::task::Adaptor) | |
ResourceAndRole () | |
Construct an unconfigured adaptor. | |
ResourceAndRole (const Configuration &config) | |
ResourceAndRole (const Configuration &config, Task *from, Task *to) | |
bool | reconfigureTask () override |
Reconfigure the "to()" task. More... | |
![]() | |
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. | |
Task * | from () const |
The task this adaptor uses to fetch configuration parameters. | |
Task * | to () const |
The task to which this adaptor applies configuration parameters. | |
Protected Member Functions | |
void | configureSelf (const Configuration &config) |
Protected Attributes | |
std::string | m_fromTag |
std::string | m_toTag |
![]() | |
Task * | m_from |
Task * | m_to |
smtk::task::Task::Observers::Key | m_observer |
Additional Inherited Members | |
![]() | |
using | Configuration = nlohmann::json |
Task adaptors are configured using JSON. | |
Configure a task with a resource and role given a dependent producer.
|
overridevirtual |
Reconfigure the "to()" task.
This method is called when the "from()" task changes into a completable state.
Implements smtk::task::Adaptor.