| The MAUVE Toolchain
    | 
A system Task that executes a component. More...
#include <Task.hpp>

| Public Member Functions | |
| Task (AbstractComponent *component) | |
| Create a task associated to a component.  More... | |
| ~Task () | |
| Task Destructor.  More... | |
| bool | activate () | 
| Activate the task.  More... | |
| AbstractComponent * | get_component () | 
| Get the component associated to this task.  More... | |
| TaskStatus | get_status () const | 
| time_ns_t | get_time () const | 
| Get the clock of the task.  More... | |
| bool | start (time_ns_t start_time, pthread_barrier_t *barrier=nullptr) | 
| Start the task.  More... | |
| bool | stop () | 
| Stop the task.  More... | |
| pthread_t | thread_id () const | 
| Get the thread ID of this task.  More... | |
| std::string | to_string () const | 
| Get a string representation of this task.  More... | |
| Protected Attributes | |
| ComponentLogger * | logger | 
| A pointer to a logger.  More... | |
A system Task that executes a component.
| mauve::runtime::Task::Task | ( | AbstractComponent * | component | ) | 
Create a task associated to a component.
| component | the component owned by the task | 
| mauve::runtime::Task::~Task | ( | ) | 
Task Destructor.
| bool mauve::runtime::Task::activate | ( | ) | 
Activate the task.
| AbstractComponent* mauve::runtime::Task::get_component | ( | ) | 
Get the component associated to this task.
| time_ns_t mauve::runtime::Task::get_time | ( | ) | const | 
Get the clock of the task.
| bool mauve::runtime::Task::start | ( | time_ns_t | start_time, | 
| pthread_barrier_t * | barrier = nullptr | ||
| ) | 
Start the task.
| start_time | the desired start time of the task | 
| barrier | a starting barrier | 
| bool mauve::runtime::Task::stop | ( | ) | 
Stop the task.
| pthread_t mauve::runtime::Task::thread_id | ( | ) | const | 
Get the thread ID of this task.
| std::string mauve::runtime::Task::to_string | ( | ) | const | 
Get a string representation of this task.
| 
 | protected | 
A pointer to a logger.