ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
aschedulernotificationmanager.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2017-2023 German Aerospace Center (DLR).
3  * Eclipse ADORe, Automated Driving Open Research https://eclipse.org/adore
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License 2.0 which is available at
7  * http://www.eclipse.org/legal/epl-2.0.
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  * Matthias Nichting - initial API and implementation
13  ********************************************************************************/
14 
16 #include <string>
17 
19 {
24  {
25  protected:
27  uint32_t m_duration; // in nanoseconds
28  bool m_pause;
29 
30  public:
31  ASchedulerNotificationManager(uint32_t duration)
32  : m_duration(duration), m_pause(false)
33  {
34  }
35  virtual void publishClientName(std::string name) = 0;
36  virtual void registerAtScheduler() = 0;
37  virtual void notifyScheduler(uint32_t sec, uint32_t nsec) = 0;
38  virtual void pause() = 0;
39  virtual void resume() = 0;
40  };
41 }
Definition: aschedulernotificationmanager.h:24
virtual void publishClientName(std::string name)=0
uint32_t m_duration
Definition: aschedulernotificationmanager.h:27
adore_scheduling::SchedulerNotification m_sn
Definition: aschedulernotificationmanager.h:26
ASchedulerNotificationManager(uint32_t duration)
Definition: aschedulernotificationmanager.h:31
bool m_pause
Definition: aschedulernotificationmanager.h:28
virtual void notifyScheduler(uint32_t sec, uint32_t nsec)=0
Definition: schedulernotification.h:26
Definition: aschedulernotificationmanager.h:19