internal

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DeviceClassificationCommon

type DeviceClassificationCommon struct {
	// contains filtered or unexported fields
}

func NewLocalDeviceClassification

func NewLocalDeviceClassification(featureLocal spineapi.FeatureLocalInterface) *DeviceClassificationCommon

func NewRemoteDeviceClassification

func NewRemoteDeviceClassification(featureRemote spineapi.FeatureRemoteInterface) *DeviceClassificationCommon

func (*DeviceClassificationCommon) GetManufacturerDetails

get the current manufacturer details for a remote device entity

type DeviceConfigurationCommon

type DeviceConfigurationCommon struct {
	// contains filtered or unexported fields
}

func NewLocalDeviceConfiguration

func NewLocalDeviceConfiguration(featureLocal spineapi.FeatureLocalInterface) *DeviceConfigurationCommon

func NewRemoteDeviceConfiguration

func NewRemoteDeviceConfiguration(featureRemote spineapi.FeatureRemoteInterface) *DeviceConfigurationCommon

func (*DeviceConfigurationCommon) CheckEventPayloadDataForFilter

func (d *DeviceConfigurationCommon) CheckEventPayloadDataForFilter(payloadData any, filter any) bool

check if spine.EventPayload Data contains data for a given filter

data type will be checked for model.DeviceConfigurationKeyValueListDataType, filter type will be checked for model.DeviceConfigurationKeyValueDescriptionDataType

func (*DeviceConfigurationCommon) GetKeyValueDataForFilter

Get key value data for a given filter

Will return nil if no data is available

func (*DeviceConfigurationCommon) GetKeyValueDataForKeyId

Get the key value data for a given keyId

Will return nil if no data is available

func (*DeviceConfigurationCommon) GetKeyValueDescriptionFoKeyId

Get the description for a given keyId

Will return nil if no matching description is found

func (*DeviceConfigurationCommon) GetKeyValueDescriptionsForFilter

Get the description for a given value combination

Returns an error if no matching description is found

type DeviceDiagnosisCommon

type DeviceDiagnosisCommon struct {
	// contains filtered or unexported fields
}

func NewLocalDeviceDiagnosis

func NewLocalDeviceDiagnosis(featureLocal spineapi.FeatureLocalInterface) *DeviceDiagnosisCommon

func NewRemoteDeviceDiagnosis

func NewRemoteDeviceDiagnosis(featureRemote spineapi.FeatureRemoteInterface) *DeviceDiagnosisCommon

func (*DeviceDiagnosisCommon) GetState

get the current diagnosis state for an device entity

func (*DeviceDiagnosisCommon) IsHeartbeatWithinDuration

func (d *DeviceDiagnosisCommon) IsHeartbeatWithinDuration(duration time.Duration) bool

check if the currently available heartbeat data is within a time duration

type ElectricalConnectionCommon

type ElectricalConnectionCommon struct {
	// contains filtered or unexported fields
}

func NewLocalElectricalConnection

func NewLocalElectricalConnection(featureLocal spineapi.FeatureLocalInterface) *ElectricalConnectionCommon

func NewRemoteElectricalConnection

func NewRemoteElectricalConnection(featureRemote spineapi.FeatureRemoteInterface) *ElectricalConnectionCommon

func (*ElectricalConnectionCommon) AdjustValueToBeWithinPermittedValuesForParameterId

func (e *ElectricalConnectionCommon) AdjustValueToBeWithinPermittedValuesForParameterId(
	value float64, parameterId model.ElectricalConnectionParameterIdType) float64

Adjust a value to be within the permitted value range

func (*ElectricalConnectionCommon) CheckEventPayloadDataForFilter

func (e *ElectricalConnectionCommon) CheckEventPayloadDataForFilter(payloadData any, filter any) bool

check if spine.EventPayload Data contains data for a given filter

data type will be checked for model.ElectricalConnectionPermittedValueSetListDataType, filter type will be checked for model.ElectricalConnectionParameterDescriptionDataType

func (*ElectricalConnectionCommon) GetCharacteristicsForFilter

Get the characteristics for a given filter

Returns an error if no matching description is found

func (*ElectricalConnectionCommon) GetDescriptionForParameterDescriptionFilter

return current electrical description for a given parameter description

func (*ElectricalConnectionCommon) GetDescriptionsForFilter

Get the description for a given filter

Returns an error if no matching description is found

func (*ElectricalConnectionCommon) GetParameterDescriptionsForFilter

Get the description for a given filter

Returns an error if no matching description is found

func (*ElectricalConnectionCommon) GetPermittedValueDataForFilter

returns minimum, maximum, default/pause limit values

func (*ElectricalConnectionCommon) GetPermittedValueSetForFilter

return permitted values for all Electrical Connections

func (*ElectricalConnectionCommon) GetPhaseCurrentLimits

func (e *ElectricalConnectionCommon) GetPhaseCurrentLimits(measurementDescs []model.MeasurementDescriptionDataType) (
	resultMin []float64, resultMax []float64, resultDefault []float64, resultErr error)

Get the min, max, default current limits for each phase

type IdentificationCommon

type IdentificationCommon struct {
	// contains filtered or unexported fields
}

func NewLocalIdentification

func NewLocalIdentification(featureLocal spineapi.FeatureLocalInterface) *IdentificationCommon

func NewRemoteIdentification

func NewRemoteIdentification(featureRemote spineapi.FeatureRemoteInterface) *IdentificationCommon

func (*IdentificationCommon) CheckEventPayloadDataForFilter

func (i *IdentificationCommon) CheckEventPayloadDataForFilter(payloadData any) bool

check if spine.EventPayload Data contains identification data

data type will be checked for model.IdentificationListDataType

func (*IdentificationCommon) GetDataForFilter

return current values for Identification

type IncentiveTableCommon

type IncentiveTableCommon struct {
	// contains filtered or unexported fields
}

func NewLocalIncentiveTable

func NewLocalIncentiveTable(featureLocal spineapi.FeatureLocalInterface) *IncentiveTableCommon

func NewRemoteIncentiveTable

func NewRemoteIncentiveTable(featureRemote spineapi.FeatureRemoteInterface) *IncentiveTableCommon

func (*IncentiveTableCommon) GetConstraints

return list of constraints

func (*IncentiveTableCommon) GetData

return current data for Time Series

func (*IncentiveTableCommon) GetDescriptionsForFilter

return list of descriptions for a given filter

type LoadControlCommon

type LoadControlCommon struct {
	// contains filtered or unexported fields
}

func NewLocalLoadControl

func NewLocalLoadControl(featureLocal spineapi.FeatureLocalInterface) *LoadControlCommon

func NewRemoteLoadControl

func NewRemoteLoadControl(featureRemote spineapi.FeatureRemoteInterface) *LoadControlCommon

func (*LoadControlCommon) CheckEventPayloadDataForFilter

func (l *LoadControlCommon) CheckEventPayloadDataForFilter(payloadData any, filter any) bool

check if spine.EventPayload Data contains data for a given filter

data type will be checked for model.LoadControlLimitListDataType, filter type will be checked for model.LoadControlLimitDescriptionDataType

func (*LoadControlCommon) GetLimitDataForFilter

Get limit data for a given filter

Will return nil if no data is available

func (*LoadControlCommon) GetLimitDataForId

Get the description for a given limitId

Will return nil if no data is available

func (*LoadControlCommon) GetLimitDescriptionForId

Get the description for a given limitId

Will return nil if no matching description is found

func (*LoadControlCommon) GetLimitDescriptionsForFilter

Get the description for a given filter

Returns an error if no matching description is found

type MeasurementCommon

type MeasurementCommon struct {
	// contains filtered or unexported fields
}

func NewLocalMeasurement

func NewLocalMeasurement(featureLocal spineapi.FeatureLocalInterface) *MeasurementCommon

func NewRemoteMeasurement

func NewRemoteMeasurement(featureRemote spineapi.FeatureRemoteInterface) *MeasurementCommon

func (*MeasurementCommon) CheckEventPayloadDataForFilter

func (m *MeasurementCommon) CheckEventPayloadDataForFilter(payloadData any, filter any) bool

check if spine.EventPayload Data contains data for a given filter

data type will be checked for model.MeasurementListDataType, filter type will be checked for model.MeasurementDescriptionDataType

func (*MeasurementCommon) GetConstraintsForFilter

Get the constraints for a given filter

Returns an error if no matching constraint is found

func (*MeasurementCommon) GetDataForFilter

Get measuement data for a given filter

Will return nil if no data is available

func (*MeasurementCommon) GetDataForId

func (m *MeasurementCommon) GetDataForId(measurementId model.MeasurementIdType) (
	*model.MeasurementDataType, error)

Get the measuement data for a given measurementId

Will return nil if no data is available

func (*MeasurementCommon) GetDescriptionForId

func (m *MeasurementCommon) GetDescriptionForId(
	measurementId model.MeasurementIdType,
) (*model.MeasurementDescriptionDataType, error)

Get the description for a given id

Returns an error if no matching description is found

func (*MeasurementCommon) GetDescriptionsForFilter

Get the description for a given filter

Returns an error if no matching description is found

type SmartEnergyManagementPsCommon

type SmartEnergyManagementPsCommon struct {
	// contains filtered or unexported fields
}

func NewLocalSmartEnergyManagementPs

func NewLocalSmartEnergyManagementPs(featureLocal spineapi.FeatureLocalInterface) *SmartEnergyManagementPsCommon

func NewRemoteSmartEnergyManagementPs

func NewRemoteSmartEnergyManagementPs(featureRemote spineapi.FeatureRemoteInterface) *SmartEnergyManagementPsCommon

func (*SmartEnergyManagementPsCommon) GetData

return current data for FunctionTypeSmartEnergyManagementPsData

type TimeSeriesCommon

type TimeSeriesCommon struct {
	// contains filtered or unexported fields
}

func NewLocalTimeSeries

func NewLocalTimeSeries(featureLocal spineapi.FeatureLocalInterface) *TimeSeriesCommon

func NewRemoteTimeSeries

func NewRemoteTimeSeries(featureRemote spineapi.FeatureRemoteInterface) *TimeSeriesCommon

func (*TimeSeriesCommon) GetConstraints

func (t *TimeSeriesCommon) GetConstraints() ([]model.TimeSeriesConstraintsDataType, error)

return current constraints for Time Series

func (*TimeSeriesCommon) GetDataForFilter

return current data for Time Series for a given filter

func (*TimeSeriesCommon) GetDescriptionsForFilter

return list of descriptions for a given filter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL