Documentation
¶
Index ¶
- type DeviceConfiguration
- func (d *DeviceConfiguration) AddKeyValueDescription(description model.DeviceConfigurationKeyValueDescriptionDataType) *model.DeviceConfigurationKeyIdType
- func (d *DeviceConfiguration) UpdateKeyValueDataForFilter(data model.DeviceConfigurationKeyValueDataType, ...) (resultErr error)
- func (d *DeviceConfiguration) UpdateKeyValueDataForKeyId(data model.DeviceConfigurationKeyValueDataType, ...) (resultErr error)
- type DeviceDiagnosis
- type ElectricalConnection
- func (e *ElectricalConnection) AddCharacteristic(data model.ElectricalConnectionCharacteristicDataType) (*model.ElectricalConnectionCharacteristicIdType, error)
- func (e *ElectricalConnection) AddDescription(description model.ElectricalConnectionDescriptionDataType) error
- func (e *ElectricalConnection) AddParameterDescription(description model.ElectricalConnectionParameterDescriptionDataType) *model.ElectricalConnectionParameterIdType
- func (e *ElectricalConnection) GetOrAddIdForDescription(electricalConnectionDescription model.ElectricalConnectionDescriptionDataType) (*model.ElectricalConnectionIdType, error)
- func (e *ElectricalConnection) UpdateCharacteristic(data model.ElectricalConnectionCharacteristicDataType, ...) error
- func (e *ElectricalConnection) UpdatePermittedValueSetForFilters(data []api.ElectricalConnectionPermittedValueSetForFilter, ...) (resultErr error)
- func (e *ElectricalConnection) UpdatePermittedValueSetForIds(data []api.ElectricalConnectionPermittedValueSetForID) (resultErr error)
- type Feature
- type LoadControl
- func (l *LoadControl) AddLimitDescription(description model.LoadControlLimitDescriptionDataType) *model.LoadControlLimitIdType
- func (l *LoadControl) UpdateLimitDataForFilters(data []api.LoadControlLimitDataForFilter, ...) (resultErr error)
- func (l *LoadControl) UpdateLimitDataForIds(data []api.LoadControlLimitDataForID) (resultErr error)
- type Measurement
- func (m *Measurement) AddDescription(description model.MeasurementDescriptionDataType) *model.MeasurementIdType
- func (m *Measurement) UpdateDataForFilters(data []api.MeasurementDataForFilter, ...) (resultErr error)
- func (m *Measurement) UpdateDataForIds(data []api.MeasurementDataForID) (resultErr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceConfiguration ¶
type DeviceConfiguration struct {
*Feature
*internal.DeviceConfigurationCommon
}
func NewDeviceConfiguration ¶
func NewDeviceConfiguration(localEntity spineapi.EntityLocalInterface) (*DeviceConfiguration, error)
func (*DeviceConfiguration) AddKeyValueDescription ¶
func (d *DeviceConfiguration) AddKeyValueDescription( description model.DeviceConfigurationKeyValueDescriptionDataType, ) *model.DeviceConfigurationKeyIdType
Add a new description data set and return the keyId
will return nil if the data set could not be added
func (*DeviceConfiguration) UpdateKeyValueDataForFilter ¶
func (d *DeviceConfiguration) UpdateKeyValueDataForFilter( data model.DeviceConfigurationKeyValueDataType, deleteElements *model.DeviceConfigurationKeyValueDataElementsType, filter model.DeviceConfigurationKeyValueDescriptionDataType, ) (resultErr error)
Set or update data set for a filter Elements provided in deleteElements will be removed from the data set before the update
Will return an error if the data set could not be updated
func (*DeviceConfiguration) UpdateKeyValueDataForKeyId ¶
func (d *DeviceConfiguration) UpdateKeyValueDataForKeyId( data model.DeviceConfigurationKeyValueDataType, deleteElements *model.DeviceConfigurationKeyValueDataElementsType, keyId model.DeviceConfigurationKeyIdType, ) (resultErr error)
Set or update data set for a keyId Elements provided in deleteElements will be removed from the data set before the update
Will return an error if the data set could not be updated
type DeviceDiagnosis ¶
type DeviceDiagnosis struct {
*Feature
*internal.DeviceDiagnosisCommon
}
func NewDeviceDiagnosis ¶
func NewDeviceDiagnosis(localEntity spineapi.EntityLocalInterface) (*DeviceDiagnosis, error)
func (*DeviceDiagnosis) SetLocalOperatingState ¶ added in v0.8.0
func (d *DeviceDiagnosis) SetLocalOperatingState(operatingState model.DeviceDiagnosisOperatingStateType)
set the local device diagnosis operating state
func (*DeviceDiagnosis) SetLocalState ¶
func (d *DeviceDiagnosis) SetLocalState(state *model.DeviceDiagnosisStateDataType)
set the local device diagnosis state of the device
type ElectricalConnection ¶
type ElectricalConnection struct {
*Feature
*internal.ElectricalConnectionCommon
}
func NewElectricalConnection ¶
func NewElectricalConnection(localEntity spineapi.EntityLocalInterface) (*ElectricalConnection, error)
func (*ElectricalConnection) AddCharacteristic ¶
func (e *ElectricalConnection) AddCharacteristic(data model.ElectricalConnectionCharacteristicDataType) (*model.ElectricalConnectionCharacteristicIdType, error)
Add a new characteristic data set
Note: ElectricalConnectionId and ParameterId must be set, CharacteristicId will be set automatically
Will return an error if the data set could not be added
func (*ElectricalConnection) AddDescription ¶
func (e *ElectricalConnection) AddDescription( description model.ElectricalConnectionDescriptionDataType, ) error
Add a new description data set
NOTE: the electricalConnectionId has to be provided
will return nil if the data set could not be added
func (*ElectricalConnection) AddParameterDescription ¶
func (e *ElectricalConnection) AddParameterDescription( description model.ElectricalConnectionParameterDescriptionDataType, ) *model.ElectricalConnectionParameterIdType
Add a new parameter description data set and return the parameterId
NOTE: the electricalConnectionId has to be provided, parameterId shall not be provided
will return nil if the data set could not be added
func (*ElectricalConnection) GetOrAddIdForDescription ¶ added in v0.8.0
func (e *ElectricalConnection) GetOrAddIdForDescription( electricalConnectionDescription model.ElectricalConnectionDescriptionDataType, ) (*model.ElectricalConnectionIdType, error)
Get or add the id for a electrical connection with a given electricalConnectionDescription
NOTE: This can be used instead of AddDescription to be sure it exists only one id for the same description
will return the id for the electrical connection with the given description
func (*ElectricalConnection) UpdateCharacteristic ¶
func (e *ElectricalConnection) UpdateCharacteristic( data model.ElectricalConnectionCharacteristicDataType, deleteElements *model.ElectricalConnectionCharacteristicDataElementsType, ) error
Update data set for a filter Elements provided in deleteElements will be removed from the data set before the update
// ElectricalConnectionId, ParameterId and CharacteristicId must be set
Will return an error if the data set could not be updated
func (*ElectricalConnection) UpdatePermittedValueSetForFilters ¶ added in v0.8.0
func (e *ElectricalConnection) UpdatePermittedValueSetForFilters( data []api.ElectricalConnectionPermittedValueSetForFilter, deleteSelector *model.ElectricalConnectionPermittedValueSetListDataSelectorsType, deleteElements *model.ElectricalConnectionPermittedValueSetDataElementsType, ) (resultErr error)
Set or update data set for a filter deleteSelector will trigger removal of matching items from the data set before the update deleteElement will limit the fields to be removed using Id
Will return an error if the data set could not be updated
func (*ElectricalConnection) UpdatePermittedValueSetForIds ¶ added in v0.8.0
func (e *ElectricalConnection) UpdatePermittedValueSetForIds( data []api.ElectricalConnectionPermittedValueSetForID, ) (resultErr error)
Set or update data set for a electricalConnectiontId Id provided in deleteId will trigger removal of matching items from the data set before the update Elements provided in deleteElement will limit the fields to be removed using Id
Will return an error if the data set could not be updated
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
func NewFeature ¶
func NewFeature( featureType model.FeatureTypeType, localEntity spineapi.EntityLocalInterface) (*Feature, error)
type LoadControl ¶
type LoadControl struct {
*Feature
*internal.LoadControlCommon
}
func NewLoadControl ¶
func NewLoadControl(localEntity spineapi.EntityLocalInterface) (*LoadControl, error)
func (*LoadControl) AddLimitDescription ¶
func (l *LoadControl) AddLimitDescription( description model.LoadControlLimitDescriptionDataType, ) *model.LoadControlLimitIdType
Add a new description data set and return the limitId
NOTE: the limitId may not be provided
will return nil if the data set could not be added
func (*LoadControl) UpdateLimitDataForFilters ¶ added in v0.8.0
func (l *LoadControl) UpdateLimitDataForFilters( data []api.LoadControlLimitDataForFilter, deleteSelector *model.LoadControlLimitListDataSelectorsType, deleteElements *model.LoadControlLimitDataElementsType, ) (resultErr error)
Set or update data set for a filter deleteSelector will trigger removal of matching items from the data set before the update deleteElement will limit the fields to be removed using Id
Will return an error if the data set could not be updated
func (*LoadControl) UpdateLimitDataForIds ¶ added in v0.8.0
func (l *LoadControl) UpdateLimitDataForIds( data []api.LoadControlLimitDataForID, ) (resultErr error)
Set or update data set for a limitId
Will return an error if the data set could not be updated
type Measurement ¶
type Measurement struct {
*Feature
*internal.MeasurementCommon
}
func NewMeasurement ¶
func NewMeasurement(localEntity spineapi.EntityLocalInterface) (*Measurement, error)
func (*Measurement) AddDescription ¶
func (m *Measurement) AddDescription( description model.MeasurementDescriptionDataType, ) *model.MeasurementIdType
Add a new parameter description data sett and return the measurementId
NOTE: the measurementId may not be provided
will return nil if the data set could not be added
func (*Measurement) UpdateDataForFilters ¶ added in v0.8.0
func (m *Measurement) UpdateDataForFilters( data []api.MeasurementDataForFilter, deleteSelector *model.MeasurementListDataSelectorsType, deleteElements *model.MeasurementDataElementsType, ) (resultErr error)
Set or update data set for a filter deleteSelector will trigger removal of matching items from the data set before the update deleteElement will limit the fields to be removed using Id
Will return an error if the data set could not be updated
func (*Measurement) UpdateDataForIds ¶ added in v0.8.0
func (m *Measurement) UpdateDataForIds( data []api.MeasurementDataForID, ) (resultErr error)
Set or update data set for a measurementId
Will return an error if the data set could not be updated