github.com/enbility/spine-go@v0.7.0/model/directcontrol.go (about)

     1  package model
     2  
     3  type DirectControlActivityStateType string
     4  
     5  const (
     6  	DirectControlActivityStateTypeRunning  AlarmTypeType = "running"
     7  	DirectControlActivityStateTypePaused   AlarmTypeType = "paused"
     8  	DirectControlActivityStateTypeInactive AlarmTypeType = "inactive"
     9  )
    10  
    11  type DirectControlActivityDataType struct {
    12  	Timestamp                 *AbsoluteOrRelativeTimeType     `json:"timestamp,omitempty"`
    13  	ActivityState             *DirectControlActivityStateType `json:"activityState,omitempty"`
    14  	IsActivityStateChangeable *bool                           `json:"isActivityStateChangeable,omitempty"`
    15  	EnergyMode                *EnergyModeType                 `json:"energyMode,omitempty"`
    16  	IsEnergyModeChangeable    *bool                           `json:"isEnergyModeChangeable,omitempty"`
    17  	Power                     *ScaledNumberType               `json:"power,omitempty"`
    18  	IsPowerChangeable         *bool                           `json:"isPowerChangeable,omitempty"`
    19  	Energy                    *ScaledNumberType               `json:"energy,omitempty"`
    20  	IsEnergyChangeable        *bool                           `json:"isEnergyChangeable,omitempty"`
    21  	SequenceId                *PowerSequenceIdType            `json:"sequence_id,omitempty"`
    22  }
    23  
    24  type DirectControlActivityDataElementsType struct {
    25  	Timestamp                 *ElementTagType           `json:"timestamp,omitempty"`
    26  	ActivityState             *ElementTagType           `json:"activityState,omitempty"`
    27  	IsActivityStateChangeable *ElementTagType           `json:"isActivityStateChangeable,omitempty"`
    28  	EnergyMode                *ElementTagType           `json:"energyMode,omitempty"`
    29  	IsEnergyModeChangeable    *ElementTagType           `json:"isEnergyModeChangeable,omitempty"`
    30  	Power                     *ScaledNumberElementsType `json:"power,omitempty"`
    31  	IsPowerChangeable         *ElementTagType           `json:"isPowerChangeable,omitempty"`
    32  	Energy                    *ScaledNumberElementsType `json:"energy,omitempty"`
    33  	IsEnergyChangeable        *ElementTagType           `json:"isEnergyChangeable,omitempty"`
    34  	SequenceId                *ElementTagType           `json:"sequence_id,omitempty"`
    35  }
    36  
    37  type DirectControlActivityListDataType struct {
    38  	DirectControlActivityDataElements []DirectControlActivityDataType `json:"directControlActivityDataElements,omitempty"`
    39  }
    40  
    41  type DirectControlActivityListDataSelectorsType struct {
    42  	TimestampInterval *TimestampIntervalType `json:"timestampInterval,omitempty"`
    43  }
    44  
    45  type DirectControlDescriptionDataType struct {
    46  	PositiveEnergyDirection *EnergyDirectionType   `json:"positiveEnergyDirection,omitempty"`
    47  	PowerUnit               *UnitOfMeasurementType `json:"powerUnit,omitempty"`
    48  	EnergyUnit              *UnitOfMeasurementType `json:"energyUnit,omitempty"`
    49  }
    50  
    51  type DirectControlDescriptionDataElementsType struct {
    52  	PositiveEnergyDirection *ElementTagType `json:"positiveEnergyDirection,omitempty"`
    53  	PowerUnit               *ElementTagType `json:"powerUnit,omitempty"`
    54  	EnergyUnit              *ElementTagType `json:"energyUnit,omitempty"`
    55  }