2020-09-04 14:28:43 +02:00
|
|
|
#include "FixedSequenceSlot.h"
|
|
|
|
#include "PeriodicTaskIF.h"
|
2020-08-28 18:33:29 +02:00
|
|
|
#include <cstddef>
|
|
|
|
|
|
|
|
FixedSequenceSlot::FixedSequenceSlot(object_id_t handlerId, uint32_t setTime,
|
|
|
|
int8_t setSequenceId, ExecutableObjectIF* executableObject,
|
2020-08-29 19:08:10 +02:00
|
|
|
PeriodicTaskIF* executingTask) : handlerId(handlerId),
|
2020-08-28 18:33:29 +02:00
|
|
|
pollingTimeMs(setTime), opcode(setSequenceId) {
|
|
|
|
if(executableObject == nullptr) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
this->executableObject = executableObject;
|
|
|
|
this->executableObject->setTaskIF(executingTask);
|
|
|
|
}
|
|
|
|
|
|
|
|
FixedSequenceSlot::~FixedSequenceSlot() {}
|
|
|
|
|