Skip to content
Snippets Groups Projects
Unverified Commit c8c94bfd authored by Dimitrios Stoupis's avatar Dimitrios Stoupis
Browse files

Add initial service files

parent 38cb7a59
No related branches found
No related tags found
No related merge requests found
...@@ -3,25 +3,6 @@ ...@@ -3,25 +3,6 @@
<option name="RIGHT_MARGIN" value="100" /> <option name="RIGHT_MARGIN" value="100" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" /> <option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
<Objective-C-extensions> <Objective-C-extensions>
<file>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="FunctionPredecl" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Function" />
</file>
<class>
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Property" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Synthesize" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InitMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="StaticMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="InstanceMethod" />
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="DeallocMethod" />
</class>
<extensions> <extensions>
<pair source="cpp" header="hpp" fileNamingConvention="PASCAL_CASE" /> <pair source="cpp" header="hpp" fileNamingConvention="PASCAL_CASE" />
<pair source="c" header="h" fileNamingConvention="NONE" /> <pair source="c" header="h" fileNamingConvention="NONE" />
......
...@@ -26,7 +26,7 @@ add_library(common OBJECT ...@@ -26,7 +26,7 @@ add_library(common OBJECT
src/Services/RequestVerificationService.cpp src/Services/RequestVerificationService.cpp
src/Services/TestService.cpp src/Services/TestService.cpp
src/Services/TimeManagementService.cpp src/Services/TimeManagementService.cpp
) src/Services/TimeBasedCommandSchedulingService.cpp)
# Specify the .cpp files for the executables # Specify the .cpp files for the executables
add_executable(ecss_services add_executable(ecss_services
......
#ifndef ECSS_SERVICES_TIMEBASEDCOMMANDSCHEDULINGSERVICE_HPP
#define ECSS_SERVICES_TIMEBASEDCOMMANDSCHEDULINGSERVICE_HPP
#include <iostream>
#include "Service.hpp"
#include "Helpers/CRCHelper.hpp"
#include "ErrorHandler.hpp"
class TimeBasedCommandSchedulingService : public Service {
public:
private:
public:
/**
* TC[11,1] enable the time-based schedule execution function
*
* @details Enables the time-based command execution scheduling
* @param request Provide the received message as a parameter
*/
void enableScheduleExecution(Message &request);
/**
* TC[11,2] disable the time-based schedule execution function
*
* @details Disables the time-based command execution scheduling
* @param request Provide the received message as a parameter
*/
void disableScheduleExecution(Message &request);
/**
* TC[11,3] reset the time-based schedule
*
* @details Resets the time-based command execution schedule (deletes the schedule)
* @param request Provide the received message as a parameter
*/
void resetSchedule(Message &request);
/**
* TC[11,15] time-shift all scheduled activities
*
* @details All scheduled activities are shifted per user request
* @param request Provide the received message as a parameter
*/
void timeShiftAllActivities(Message &request);
/**
* TC[11,16] detail-report all activities
*
* @details Send a detailed report about the status of all the activities
on the current schedule
* @param request Provide the received message as a parameter
*/
void detailReportAllActivities(Message &request);
/**
* TC[11,4] insert activities into the time based schedule
*
* @details Add activities into the schedule for future execution
* @param request Provide the received message as a parameter
*/
void insertActivities(Message &request);
/**
* TC[11,5] delete time-based scheduled activities identified by a request identifier
*
* @details Delete certain activities by using the unique request identifier
* @param request Provide the received message as a parameter
*/
void deleteActivitiesByID(Message &request);
/**
* TC[11,7] time-shift scheduled activities identified by a request identifier
*
* @details Time-shift certain activities by using the unique request identifier
* @param request Provide the received message as a parameter
*/
void timeShiftActivitiesByID(Message &request);
private:
};
#endif //ECSS_SERVICES_TIMEBASEDCOMMANDSCHEDULINGSERVICE_HPP
#include "Services/TimeBasedCommandSchedulingService.hpp"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment