Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
33fff303
Unverified
Commit
33fff303
authored
6 years ago
by
Dimitrios Stoupis
Browse files
Options
Downloads
Patches
Plain Diff
Rename the file to a shorter name
parent
bad990f2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
inc/Services/TimeBasedSchedulingService.hpp
+5
-5
5 additions, 5 deletions
inc/Services/TimeBasedSchedulingService.hpp
src/Services/TimeBasedSchedulingService.cpp
+9
-9
9 additions, 9 deletions
src/Services/TimeBasedSchedulingService.cpp
with
15 additions
and
15 deletions
CMakeLists.txt
+
1
−
1
View file @
33fff303
...
@@ -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/TimeBased
Command
SchedulingService.cpp
src/Services/TimeBasedSchedulingService.cpp
src/Services/EventActionService.cpp
src/Services/EventActionService.cpp
)
)
...
...
This diff is collapsed.
Click to expand it.
inc/Services/TimeBased
Command
SchedulingService.hpp
→
inc/Services/TimeBasedSchedulingService.hpp
+
5
−
5
View file @
33fff303
#ifndef ECSS_SERVICES_TIMEBASED
COMMAND
SCHEDULINGSERVICE_HPP
#ifndef ECSS_SERVICES_TIMEBASEDSCHEDULINGSERVICE_HPP
#define ECSS_SERVICES_TIMEBASED
COMMAND
SCHEDULINGSERVICE_HPP
#define ECSS_SERVICES_TIMEBASEDSCHEDULINGSERVICE_HPP
#include
<iostream>
#include
<iostream>
#include
<
vector
>
#include
"etl/
vector
.h"
#include
"Service.hpp"
#include
"Service.hpp"
#include
"Helpers/CRCHelper.hpp"
#include
"Helpers/CRCHelper.hpp"
#include
"ErrorHandler.hpp"
#include
"ErrorHandler.hpp"
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#define TIME_MARGIN_FOR_ACTIVATION 60 // todo: define the time margin for the command activation
#define TIME_MARGIN_FOR_ACTIVATION 60 // todo: define the time margin for the command activation
class
TimeBased
Command
SchedulingService
:
public
Service
{
class
TimeBasedSchedulingService
:
public
Service
{
public:
public:
...
@@ -105,4 +105,4 @@ private:
...
@@ -105,4 +105,4 @@ private:
};
};
#endif //ECSS_SERVICES_TIMEBASED
COMMAND
SCHEDULINGSERVICE_HPP
#endif //ECSS_SERVICES_TIMEBASEDSCHEDULINGSERVICE_HPP
This diff is collapsed.
Click to expand it.
src/Services/TimeBased
Command
SchedulingService.cpp
→
src/Services/TimeBasedSchedulingService.cpp
+
9
−
9
View file @
33fff303
#include
"Services/TimeBased
Command
SchedulingService.hpp"
#include
"Services/TimeBasedSchedulingService.hpp"
void
TimeBased
Command
SchedulingService
::
enableScheduleExecution
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
enableScheduleExecution
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
@@ -10,7 +10,7 @@ void TimeBasedCommandSchedulingService::enableScheduleExecution(Message &request
...
@@ -10,7 +10,7 @@ void TimeBasedCommandSchedulingService::enableScheduleExecution(Message &request
executionFunctionStatus
=
true
;
// Enable the service
executionFunctionStatus
=
true
;
// Enable the service
}
}
void
TimeBased
Command
SchedulingService
::
disableScheduleExecution
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
disableScheduleExecution
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
@@ -19,7 +19,7 @@ void TimeBasedCommandSchedulingService::disableScheduleExecution(Message &reques
...
@@ -19,7 +19,7 @@ void TimeBasedCommandSchedulingService::disableScheduleExecution(Message &reques
executionFunctionStatus
=
false
;
// Disable the service
executionFunctionStatus
=
false
;
// Disable the service
}
}
void
TimeBased
Command
SchedulingService
::
resetSchedule
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
resetSchedule
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
@@ -30,7 +30,7 @@ void TimeBasedCommandSchedulingService::resetSchedule(Message &request) {
...
@@ -30,7 +30,7 @@ void TimeBasedCommandSchedulingService::resetSchedule(Message &request) {
// todo: Add resetting for sub-schedules and groups, if defined
// todo: Add resetting for sub-schedules and groups, if defined
}
}
void
TimeBased
Command
SchedulingService
::
insertActivities
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
insertActivities
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
@@ -65,7 +65,7 @@ void TimeBasedCommandSchedulingService::insertActivities(Message &request) {
...
@@ -65,7 +65,7 @@ void TimeBasedCommandSchedulingService::insertActivities(Message &request) {
}
}
void
TimeBased
Command
SchedulingService
::
timeShiftAllActivities
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
timeShiftAllActivities
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
@@ -83,7 +83,7 @@ void TimeBasedCommandSchedulingService::timeShiftAllActivities(Message &request)
...
@@ -83,7 +83,7 @@ void TimeBasedCommandSchedulingService::timeShiftAllActivities(Message &request)
}
}
}
}
void
TimeBased
Command
SchedulingService
::
timeShiftActivitiesByID
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
timeShiftActivitiesByID
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
@@ -106,7 +106,7 @@ void TimeBasedCommandSchedulingService::timeShiftActivitiesByID(Message &request
...
@@ -106,7 +106,7 @@ void TimeBasedCommandSchedulingService::timeShiftActivitiesByID(Message &request
}
}
}
}
void
TimeBased
Command
SchedulingService
::
deleteActivitiesByID
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
deleteActivitiesByID
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
@@ -114,7 +114,7 @@ void TimeBasedCommandSchedulingService::deleteActivitiesByID(Message &request) {
...
@@ -114,7 +114,7 @@ void TimeBasedCommandSchedulingService::deleteActivitiesByID(Message &request) {
}
}
void
TimeBased
Command
SchedulingService
::
detailReportAllActivities
(
Message
&
request
)
{
void
TimeBasedSchedulingService
::
detailReportAllActivities
(
Message
&
request
)
{
// Check if the correct packet is being processed
// Check if the correct packet is being processed
assert
(
request
.
serviceType
==
11
);
assert
(
request
.
serviceType
==
11
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment