2018-07-12 16:29:32 +02:00
|
|
|
#ifndef FRAMEWORK_TASKS_FIXEDTIMESLOTTASKIF_H_
|
|
|
|
#define FRAMEWORK_TASKS_FIXEDTIMESLOTTASKIF_H_
|
|
|
|
|
|
|
|
#include <framework/objectmanager/ObjectManagerIF.h>
|
|
|
|
#include <framework/tasks/PeriodicTaskIF.h>
|
|
|
|
|
|
|
|
/**
|
2020-03-24 00:22:17 +01:00
|
|
|
* @brief Following the same principle as the base class IF.
|
|
|
|
* This is the interface for a Fixed timeslot task
|
2018-07-12 16:29:32 +02:00
|
|
|
*/
|
|
|
|
class FixedTimeslotTaskIF : public PeriodicTaskIF {
|
|
|
|
public:
|
|
|
|
virtual ~FixedTimeslotTaskIF() {}
|
2020-03-24 00:22:17 +01:00
|
|
|
|
2020-03-28 00:09:15 +01:00
|
|
|
virtual ReturnValue_t addSlot(object_id_t componentId,
|
|
|
|
uint32_t slotTimeMs, int8_t executionStep) = 0;
|
2018-07-12 16:29:32 +02:00
|
|
|
virtual ReturnValue_t checkSequence() const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FRAMEWORK_TASKS_FIXEDTIMESLOTTASKIF_H_ */
|