diff --git a/CMakeLists.txt b/CMakeLists.txt index acaefa9f2610a5f1deae3fcdc872bb2608f213c7..2eb1adc0e438faa151518073d866868bb354797b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ add_library(common OBJECT src/Services/RequestVerificationService.cpp src/Services/TestService.cpp src/Services/TimeManagementService.cpp - src/Services/TimeBasedCommandSchedulingService.cpp + src/Services/TimeBasedSchedulingService.cpp src/Services/EventActionService.cpp ) diff --git a/inc/Services/TimeBasedCommandSchedulingService.hpp b/inc/Services/TimeBasedSchedulingService.hpp similarity index 92% rename from inc/Services/TimeBasedCommandSchedulingService.hpp rename to inc/Services/TimeBasedSchedulingService.hpp index d5dceddd89f0ccd85dad89a9ccf1c7cb38422dd9..77baac0e9a4f8096d01472f6eb4e0d14d4a16b13 100644 --- a/inc/Services/TimeBasedCommandSchedulingService.hpp +++ b/inc/Services/TimeBasedSchedulingService.hpp @@ -1,8 +1,8 @@ -#ifndef ECSS_SERVICES_TIMEBASEDCOMMANDSCHEDULINGSERVICE_HPP -#define ECSS_SERVICES_TIMEBASEDCOMMANDSCHEDULINGSERVICE_HPP +#ifndef ECSS_SERVICES_TIMEBASEDSCHEDULINGSERVICE_HPP +#define ECSS_SERVICES_TIMEBASEDSCHEDULINGSERVICE_HPP #include <iostream> -#include <vector> +#include "etl/vector.h" #include "Service.hpp" #include "Helpers/CRCHelper.hpp" #include "ErrorHandler.hpp" @@ -15,7 +15,7 @@ #define TIME_MARGIN_FOR_ACTIVATION 60 // todo: define the time margin for the command activation -class TimeBasedCommandSchedulingService : public Service { +class TimeBasedSchedulingService : public Service { public: @@ -105,4 +105,4 @@ private: }; -#endif //ECSS_SERVICES_TIMEBASEDCOMMANDSCHEDULINGSERVICE_HPP +#endif //ECSS_SERVICES_TIMEBASEDSCHEDULINGSERVICE_HPP diff --git a/src/Services/TimeBasedCommandSchedulingService.cpp b/src/Services/TimeBasedSchedulingService.cpp similarity index 86% rename from src/Services/TimeBasedCommandSchedulingService.cpp rename to src/Services/TimeBasedSchedulingService.cpp index 23b80683e2dded610eaafb5946ebde312414ea13..f487d64da98735fdb7440eeedb7c90857670dffc 100644 --- a/src/Services/TimeBasedCommandSchedulingService.cpp +++ b/src/Services/TimeBasedSchedulingService.cpp @@ -1,7 +1,7 @@ -#include "Services/TimeBasedCommandSchedulingService.hpp" +#include "Services/TimeBasedSchedulingService.hpp" -void TimeBasedCommandSchedulingService::enableScheduleExecution(Message &request) { +void TimeBasedSchedulingService::enableScheduleExecution(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11); @@ -10,7 +10,7 @@ void TimeBasedCommandSchedulingService::enableScheduleExecution(Message &request executionFunctionStatus = true; // Enable the service } -void TimeBasedCommandSchedulingService::disableScheduleExecution(Message &request) { +void TimeBasedSchedulingService::disableScheduleExecution(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11); @@ -19,7 +19,7 @@ void TimeBasedCommandSchedulingService::disableScheduleExecution(Message &reques executionFunctionStatus = false; // Disable the service } -void TimeBasedCommandSchedulingService::resetSchedule(Message &request) { +void TimeBasedSchedulingService::resetSchedule(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11); @@ -30,7 +30,7 @@ void TimeBasedCommandSchedulingService::resetSchedule(Message &request) { // todo: Add resetting for sub-schedules and groups, if defined } -void TimeBasedCommandSchedulingService::insertActivities(Message &request) { +void TimeBasedSchedulingService::insertActivities(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11); @@ -65,7 +65,7 @@ void TimeBasedCommandSchedulingService::insertActivities(Message &request) { } -void TimeBasedCommandSchedulingService::timeShiftAllActivities(Message &request) { +void TimeBasedSchedulingService::timeShiftAllActivities(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11); @@ -83,7 +83,7 @@ void TimeBasedCommandSchedulingService::timeShiftAllActivities(Message &request) } } -void TimeBasedCommandSchedulingService::timeShiftActivitiesByID(Message &request) { +void TimeBasedSchedulingService::timeShiftActivitiesByID(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11); @@ -106,7 +106,7 @@ void TimeBasedCommandSchedulingService::timeShiftActivitiesByID(Message &request } } -void TimeBasedCommandSchedulingService::deleteActivitiesByID(Message &request) { +void TimeBasedSchedulingService::deleteActivitiesByID(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11); @@ -114,7 +114,7 @@ void TimeBasedCommandSchedulingService::deleteActivitiesByID(Message &request) { } -void TimeBasedCommandSchedulingService::detailReportAllActivities(Message &request) { +void TimeBasedSchedulingService::detailReportAllActivities(Message &request) { // Check if the correct packet is being processed assert(request.serviceType == 11);