github.com/enbility/spine-go@v0.7.0/model/setpoint.go (about) 1 package model 2 3 type SetpointIdType uint 4 5 type SetpointTypeType string 6 7 const ( 8 SetpointTypeTypeValueAbsolute SetpointTypeType = "valueAbsolute" 9 SetpointTypeTypeValueRelative SetpointTypeType = "valueRelative" 10 ) 11 12 type SetpointDataType struct { 13 SetpointId *SetpointIdType `json:"setpointId,omitempty" eebus:"key"` 14 Value *ScaledNumberType `json:"value,omitempty"` 15 ValueMin *ScaledNumberType `json:"valueMin,omitempty"` 16 ValueMax *ScaledNumberType `json:"valueMax,omitempty"` 17 ValueToleranceAbsolute *ScaledNumberType `json:"valueToleranceAbsolute,omitempty"` 18 ValueTolerancePercentage *ScaledNumberType `json:"valueTolerancePercentage,omitempty"` 19 IsSetpointChangeable *bool `json:"isSetpointChangeable,omitempty" eebus:"writecheck"` 20 IsSetpointActive *bool `json:"isSetpointActive,omitempty"` 21 TimePeriod *TimePeriodType `json:"timePeriod,omitempty"` 22 } 23 24 type SetpointDataElementsType struct { 25 SetpointId *ElementTagType `json:"setpointId,omitempty"` 26 Value *ScaledNumberElementsType `json:"value,omitempty"` 27 ValueMin *ScaledNumberElementsType `json:"valueMin,omitempty"` 28 ValueMax *ScaledNumberElementsType `json:"valueMax,omitempty"` 29 ValueToleranceAbsolute *ScaledNumberElementsType `json:"valueToleranceAbsolute,omitempty"` 30 ValueTolerancePercentage *ScaledNumberElementsType `json:"valueTolerancePercentage,omitempty"` 31 IsSetpointChangeable *ElementTagType `json:"isSetpointChangeable,omitempty"` 32 IsSetpointActive *ElementTagType `json:"isSetpointActive,omitempty"` 33 TimePeriod *TimePeriodElementsType `json:"timePeriod,omitempty"` 34 } 35 36 type SetpointListDataType struct { 37 SetpointData []SetpointDataType `json:"setpointData,omitempty"` 38 } 39 40 type SetpointListDataSelectorsType struct { 41 SetpointId *SetpointIdType `json:"setpointId,omitempty"` 42 } 43 44 type SetpointConstraintsDataType struct { 45 SetpointId *SetpointIdType `json:"setpointId,omitempty" eebus:"key"` 46 SetpointRangeMin *ScaledNumberType `json:"setpointRangeMin,omitempty"` 47 SetpointRangeMax *ScaledNumberType `json:"setpointRangeMax,omitempty"` 48 SetpointStepSize *ScaledNumberType `json:"setpointStepSize,omitempty"` 49 } 50 51 type SetpointConstraintsDataElementsType struct { 52 SetpointId *ElementTagType `json:"setpointId,omitempty"` 53 SetpointRangeMin *ScaledNumberElementsType `json:"setpointRangeMin,omitempty"` 54 SetpointRangeMax *ScaledNumberElementsType `json:"setpointRangeMax,omitempty"` 55 SetpointStepSize *ScaledNumberElementsType `json:"setpointStepSize,omitempty"` 56 } 57 58 type SetpointConstraintsListDataType struct { 59 SetpointConstraintsData []SetpointConstraintsDataType `json:"setpointConstraintsData,omitempty"` 60 } 61 62 type SetpointConstraintsListDataSelectorsType struct { 63 SetpointId *SetpointIdType `json:"setpointId,omitempty"` 64 } 65 66 type SetpointDescriptionDataType struct { 67 SetpointId *SetpointIdType `json:"setpointId,omitempty" eebus:"key"` 68 MeasurementId *SetpointIdType `json:"measurementId,omitempty"` 69 TimeTableId *SetpointIdType `json:"timeTableId,omitempty"` 70 SetpointType *SetpointTypeType `json:"setpointType,omitempty"` 71 Unit *ScaledNumberType `json:"unit,omitempty"` 72 ScopeType *ScaledNumberType `json:"scopeType,omitempty"` 73 Label *LabelType `json:"label,omitempty"` 74 Description *DescriptionType `json:"description,omitempty"` 75 } 76 77 type SetpointDescriptionDataElementsType struct { 78 SetpointId *ElementTagType `json:"setpointId,omitempty"` 79 MeasurementId *ElementTagType `json:"measurementId,omitempty"` 80 TimeTableId *ElementTagType `json:"timeTableId,omitempty"` 81 SetpointType *ElementTagType `json:"setpointType,omitempty"` 82 Unit *ElementTagType `json:"unit,omitempty"` 83 ScopeType *ElementTagType `json:"scopeType,omitempty"` 84 Label *ElementTagType `json:"label,omitempty"` 85 Description *ElementTagType `json:"description,omitempty"` 86 } 87 88 type SetpointDescriptionListDataType struct { 89 SetpointDescriptionData []SetpointDescriptionDataType `json:"setpointDescriptionData,omitempty"` 90 } 91 92 type SetpointDescriptionListDataSelectorsType struct { 93 SetpointId *SetpointIdType `json:"setpointId,omitempty"` 94 MeasurementId *SetpointIdType `json:"measurementId,omitempty"` 95 TimeTableId *SetpointIdType `json:"timeTableId,omitempty"` 96 SetpointType *SetpointIdType `json:"setpointType,omitempty"` 97 ScopeType *ScaledNumberType `json:"scopeType,omitempty"` 98 }