Vanetza
 
Loading...
Searching...
No Matches
duty_cycle_permit.hpp
1#ifndef DUTY_CYCLE_PERMIT_HPP_9QUTPOPH
2#define DUTY_CYCLE_PERMIT_HPP_9QUTPOPH
3
4#include <vanetza/common/unit_interval.hpp>
5
6namespace vanetza
7{
8namespace dcc
9{
10
11/**
12 * Interface for controlling channel usage by duty cycle limits
13 */
15{
16public:
17 /**
18 * Get allowed channel occupancy for local station in current time window
19 * \return permitted duty cycle
20 */
22
23 virtual ~DutyCyclePermit() = default;
24};
25
26} // namespace dcc
27} // namespace vanetza
28
29#endif /* DUTY_CYCLE_PERMIT_HPP_9QUTPOPH */
30
virtual UnitInterval permitted_duty_cycle() const =0