#include <Task.hpp>
Public Member Functions | |
void | cancelRepeat () |
Time | getScheduledTime () |
Scheduled time getter. | |
bool | hasRepeatScheduling () |
void | incrementScheduledTimeForRepeat () |
bool | isOkToRun () |
virtual void | run () |
Method to run the Task. | |
Task (Time scheduledTime=Time::getCurrentTime(), bool repeatScheduling=false, float repeatFrequency=0.0) | |
Task constructor. scheduledTime Time at which Task should be executed repeatScheduling If true, the Task will be rescheduled after it has completed its execution. repeatFrequency Defines the frequency at which the Task should execute. |
Task base class.
Definition at line 51 of file Task.hpp.
Task::Task | ( | Time | scheduledTime = Time::getCurrentTime() , |
|
bool | repeatScheduling = false , |
|||
float | repeatFrequency = 0.0 | |||
) |
Time Task::getScheduledTime | ( | ) |
void Task::run | ( | ) | [virtual] |
Method to run the Task.
Reimplemented in mermaid::support::communication::YarpDataFeedReconnectTask, mermaid::support::communication::YarpServiceReplyConversionTask, mermaid::support::communication::YarpServiceRequestConversionTask, mermaid::support::io::AddStreamReaderTask, mermaid::support::io::AddStreamWriterTask, mermaid::support::io::CloseTask, mermaid::support::io::IOThreadUpdateTask, mermaid::support::io::StreamReadReplyTask, mermaid::support::io::StreamWriteReplyTask, mermaid::support::io::WriteTask, mermaid::support::service::ServiceBuildTask< SERVICE_TYPE >, mermaid::support::service::ServiceDataFeedDeliveryTask, mermaid::support::service::ServiceReplyDeliveryTask, mermaid::support::service::ServiceRequestDeliveryTask, mermaid::support::service::ServiceUpdateTask, mermaid::support::unitgenerator::ControlUnitServiceBuildTask< SERVICE_TYPE >, and mermaid::support::unitgenerator::UnitServiceBuildTask< SERVICE_TYPE >.