3-phase PV router
|
Config parameters for overriding a load. More...
#include <utils_dualtariff.h>
Public Member Functions | |
constexpr | pairForceLoad ()=default |
constexpr | pairForceLoad (int16_t _iStartOffset) |
constexpr | pairForceLoad (int16_t _iStartOffset, uint16_t _uiDuration) |
constexpr uint16_t | getDuration () const |
constexpr int16_t | getStartOffset () const |
Private Attributes | |
int16_t | iStartOffset { 0 } |
uint16_t | uiDuration { UINT16_MAX } |
Config parameters for overriding a load.
This class allows the user to define when and how long a load will be forced at full power during off-peak period.
For each load, the user defines a pair of values: pairForceLoad => { offset, duration }. The load will be started with full power at ('start_offpeak' + 'offset') for a duration of 'duration'
Definition at line 27 of file utils_dualtariff.h.
|
constexprdefault |
|
inlineexplicitconstexpr |
Definition at line 31 of file utils_dualtariff.h.
|
inlineconstexpr |
Definition at line 35 of file utils_dualtariff.h.
|
inlinenodiscardconstexpr |
Definition at line 44 of file utils_dualtariff.h.
|
inlinenodiscardconstexpr |
Definition at line 40 of file utils_dualtariff.h.
|
private |
the start offset from the off-peak begin in hours or minutes
Definition at line 50 of file utils_dualtariff.h.
|
private |
the duration for overriding the load in hours or minutes
Definition at line 51 of file utils_dualtariff.h.