@@ -54,16 +54,16 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
54
54
* @param duration The duration that the ESA SHALL maintain the requested power for.
55
55
* @return Success if the adjustment is accepted; otherwise the command SHALL be rejected with appropriate error.
56
56
*/
57
- virtual chip::Protocols::InteractionModel::Status PowerAdjustRequest (const int64_t powerMw, const uint32_t durationS,
58
- AdjustmentCauseEnum cause) override ;
57
+ chip::Protocols::InteractionModel::Status PowerAdjustRequest (const int64_t powerMw, const uint32_t durationS,
58
+ AdjustmentCauseEnum cause) override ;
59
59
60
60
/* *
61
61
* @brief Make the ESA end the active power adjustment session & return to normal (or idle) power levels.
62
62
* The ESA SHALL also generate an PowerAdjustEnd Event and the ESAState SHALL be restored to Online.
63
63
*
64
64
* @return It should report SUCCESS if successful and FAILURE otherwise.
65
65
*/
66
- virtual chip::Protocols::InteractionModel::Status CancelPowerAdjustRequest () override ;
66
+ chip::Protocols::InteractionModel::Status CancelPowerAdjustRequest () override ;
67
67
68
68
/* *
69
69
* @brief The ESA SHALL update its Forecast attribute with the RequestedStartTime including a new ForecastID.
@@ -81,8 +81,8 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
81
81
* @return Success if the StartTime in the Forecast is updated, otherwise the command SHALL be rejected with appropriate
82
82
* IM_Status.
83
83
*/
84
- virtual chip::Protocols::InteractionModel::Status StartTimeAdjustRequest (const uint32_t requestedStartTimeUtc,
85
- AdjustmentCauseEnum cause) override ;
84
+ chip::Protocols::InteractionModel::Status StartTimeAdjustRequest (const uint32_t requestedStartTimeUtc,
85
+ AdjustmentCauseEnum cause) override ;
86
86
87
87
/* *
88
88
* @brief Handler for PauseRequest command
@@ -97,7 +97,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
97
97
* @param duration Duration that the ESA SHALL be paused for.
98
98
* @return Success if the ESA is paused, otherwise returns other IM_Status.
99
99
*/
100
- virtual chip::Protocols::InteractionModel::Status PauseRequest (const uint32_t durationS, AdjustmentCauseEnum cause) override ;
100
+ chip::Protocols::InteractionModel::Status PauseRequest (const uint32_t durationS, AdjustmentCauseEnum cause) override ;
101
101
102
102
/* *
103
103
* @brief Handler for ResumeRequest command
@@ -108,7 +108,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
108
108
*
109
109
* @return Success if the ESA is resumed, otherwise returns other IM_Status.
110
110
*/
111
- virtual chip::Protocols::InteractionModel::Status ResumeRequest () override ;
111
+ chip::Protocols::InteractionModel::Status ResumeRequest () override ;
112
112
113
113
/* *
114
114
* @brief Handler for ModifyForecastRequest
@@ -126,7 +126,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
126
126
* @return Success if the entire list of SlotAdjustmentStruct are accepted, otherwise the command
127
127
* SHALL be rejected returning other IM_Status.
128
128
*/
129
- virtual chip::Protocols::InteractionModel::Status
129
+ chip::Protocols::InteractionModel::Status
130
130
ModifyForecastRequest (const uint32_t forecastID,
131
131
const DataModel::DecodableList<Structs::SlotAdjustmentStruct::DecodableType> & slotAdjustments,
132
132
AdjustmentCauseEnum cause) override ;
@@ -142,7 +142,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
142
142
* @param constraints Sequence of turn up/down power requests that the ESA is being asked to constrain its operation within.
143
143
* @return Success if successful, otherwise the command SHALL be rejected returning other IM_Status.
144
144
*/
145
- virtual chip::Protocols::InteractionModel::Status
145
+ chip::Protocols::InteractionModel::Status
146
146
RequestConstraintBasedForecast (const DataModel::DecodableList<Structs::ConstraintsStruct::DecodableType> & constraints,
147
147
AdjustmentCauseEnum cause) override ;
148
148
@@ -163,22 +163,23 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
163
163
*
164
164
* @return Success if successful, otherwise the command SHALL be rejected returning other IM_Status.
165
165
*/
166
- virtual chip::Protocols::InteractionModel::Status CancelRequest () override ;
166
+ chip::Protocols::InteractionModel::Status CancelRequest () override ;
167
167
168
168
// ------------------------------------------------------------------
169
169
// Overridden DeviceEnergyManagement::Delegate Get attribute methods
170
- virtual ESATypeEnum GetESAType () override ;
171
- virtual bool GetESACanGenerate () override ;
172
- virtual ESAStateEnum GetESAState () override ;
173
- virtual int64_t GetAbsMinPower () override ;
174
- virtual int64_t GetAbsMaxPower () override ;
175
- virtual const DataModel::Nullable<Structs::PowerAdjustCapabilityStruct::Type> & GetPowerAdjustmentCapability () override ;
176
- virtual const DataModel::Nullable<Structs::ForecastStruct::Type> & GetForecast () override ;
177
- virtual OptOutStateEnum GetOptOutState () override ;
170
+
171
+ ESATypeEnum GetESAType () override ;
172
+ bool GetESACanGenerate () override ;
173
+ ESAStateEnum GetESAState () override ;
174
+ int64_t GetAbsMinPower () override ;
175
+ int64_t GetAbsMaxPower () override ;
176
+ const DataModel::Nullable<Structs::PowerAdjustCapabilityStruct::Type> & GetPowerAdjustmentCapability () override ;
177
+ const DataModel::Nullable<Structs::ForecastStruct::Type> & GetForecast () override ;
178
+ OptOutStateEnum GetOptOutState () override ;
178
179
179
180
// ------------------------------------------------------------------
180
181
// Overridden DeviceEnergyManagement::Delegate Set attribute methods
181
- virtual CHIP_ERROR SetESAState (ESAStateEnum) override ;
182
+ CHIP_ERROR SetESAState (ESAStateEnum) override ;
182
183
183
184
// Local Set methods
184
185
CHIP_ERROR SetESAType (ESATypeEnum);
0 commit comments