Skip to content

Commit fe2b702

Browse files
author
David Sapir
committed
Add note to isActive and IsChangable flags
1 parent 26efd39 commit fe2b702

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

usecases/ca/cdt/public.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ func (e *CDT) Setpoints(entity spineapi.EntityRemoteInterface) ([]usecasesapi.Se
5050
timePeriod = *setpoint.TimePeriod
5151
}
5252

53+
// As per [Resource Specification] 4.3.23.4 setpointListData:
54+
// - isSetpointActive: If false, the setpoint is inactive; if true or omitted, it is active.
55+
// - isSetpointChangeable: If true, the server accepts changes; if false, it declines changes. If absent, changes are accepted.
5356
isActive := (setpoint.IsSetpointActive == nil || *setpoint.IsSetpointActive)
5457
isChangeable := (setpoint.IsSetpointChangeable == nil || *setpoint.IsSetpointChangeable)
5558

0 commit comments

Comments
 (0)