|
28 | 28 | namespace chip {
|
29 | 29 | namespace app {
|
30 | 30 |
|
31 |
| -// - If it has changed due to a change in the CurrentPhase or OperationalState attributes, or |
32 |
| -// - When it changes from 0 to any other value and vice versa, or |
33 |
| -// - When it changes from null to any other value and vice versa, or |
34 |
| -// - When it increases, or |
35 |
| -// - When there is any increase or decrease in the estimated time remaining that was due to progressing insight of the server's control logic, or |
36 |
| -// - When it changes at a rate significantly different from one unit per second. |
37 |
| - |
38 | 31 | enum class QuieterReportingPolicyEnum
|
39 | 32 | {
|
40 | 33 | kMarkDirtyOnChangeToFromZero = (1u << 0),
|
@@ -75,6 +68,15 @@ using Nullable = chip::app::DataModel::Nullable<T>;
|
75 | 68 | * method most suitable at the call site (e.g. `MatterReportingAttributeChangeCallback` call
|
76 | 69 | * or similar methods).
|
77 | 70 | *
|
| 71 | + * Example of situations that require dirty, which are possible to support with this class: |
| 72 | + * |
| 73 | + * - If attribute has changed due to a change in the X or Y attributes, or |
| 74 | + * - When it changes from 0 to any other value and vice versa, or |
| 75 | + * - When it changes from null to any other value and vice versa, or |
| 76 | + * - When it increases, or |
| 77 | + * - When there is any increase or decrease in the estimated time remaining that was due to progressing insight of the server's control logic, or |
| 78 | + * - When it changes at a rate significantly different from one unit per second. |
| 79 | + * |
78 | 80 | * @tparam T - the type of underlying numerical value that will be held by the class.
|
79 | 81 | */
|
80 | 82 | template <typename T>
|
|
0 commit comments