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

     1  package model
     2  
     3  type StateInformationIdType uint
     4  
     5  type StateInformationType string
     6  
     7  // union  StateInformationFunctionalityType StateInformationFunctionalityType
     8  const (
     9  	StateInformationTypeExternalOverrideFromGrid      StateInformationType = "externalOverrideFromGrid"
    10  	StateInformationTypeAutonomousGridSupport         StateInformationType = "autonomousGridSupport"
    11  	StateInformationTypeIslandingMode                 StateInformationType = "islandingMode"
    12  	StateInformationTypeBalancing                     StateInformationType = "balancing"
    13  	StateInformationTypeTrickleCharging               StateInformationType = "trickleCharging"
    14  	StateInformationTypeCalibration                   StateInformationType = "calibration"
    15  	StateInformationTypeCommissioningMissing          StateInformationType = "commissioningMissing"
    16  	StateInformationTypeSleeping                      StateInformationType = "sleeping"
    17  	StateInformationTypeStarting                      StateInformationType = "starting"
    18  	StateInformationTypeMppt                          StateInformationType = "mppt"
    19  	StateInformationTypeThrottled                     StateInformationType = "throttled"
    20  	StateInformationTypeShuttingDown                  StateInformationType = "shuttingDown"
    21  	StateInformationTypeManualShutdown                StateInformationType = "manualShutdown"
    22  	StateInformationTypeInverterDefective             StateInformationType = "inverterDefective"
    23  	StateInformationTypeBatteryOvercurrentProtection  StateInformationType = "batteryOvercurrentProtection"
    24  	StateInformationTypePvStringOvercurrentProtection StateInformationType = "pvStringOvercurrentProtection"
    25  	StateInformationTypeGridFault                     StateInformationType = "gridFault"
    26  	StateInformationTypeGroundFault                   StateInformationType = "groundFault"
    27  	StateInformationTypeAcDisconnected                StateInformationType = "acDisconnected"
    28  	StateInformationTypeDcDisconnected                StateInformationType = "dcDisconnected"
    29  	StateInformationTypeCabinetOpen                   StateInformationType = "cabinetOpen"
    30  	StateInformationTypeOverTemperature               StateInformationType = "overTemperature"
    31  	StateInformationTypeUnderTemperature              StateInformationType = "underTemperature"
    32  	StateInformationTypeFrequencyAboveLimit           StateInformationType = "frequencyAboveLimit"
    33  	StateInformationTypeFrequencyBelowLimit           StateInformationType = "frequencyBelowLimit"
    34  	StateInformationTypeAcVoltageAboveLimit           StateInformationType = "acVoltageAboveLimit"
    35  	StateInformationTypeAcVoltageBelowLimit           StateInformationType = "acVoltageBelowLimit"
    36  	StateInformationTypeDcVoltageAboveLimit           StateInformationType = "dcVoltageAboveLimit"
    37  	StateInformationTypeDcVoltageBelowLimit           StateInformationType = "dcVoltageBelowLimit"
    38  	StateInformationTypeHardwareTestFailure           StateInformationType = "hardwareTestFailure"
    39  	StateInformationTypeGenericInternalError          StateInformationType = "genericInternalError"
    40  )
    41  
    42  type StateInformationFunctionalityType string
    43  
    44  const (
    45  	StateInformationFunctionalityTypeExternalOverrideFromGrid StateInformationFunctionalityType = "externalOverrideFromGrid"
    46  	StateInformationFunctionalityTypeAutonomousGridSupport    StateInformationFunctionalityType = "autonomousGridSupport"
    47  	StateInformationFunctionalityTypeIslandingMode            StateInformationFunctionalityType = "islandingMode"
    48  	StateInformationFunctionalityTypeBalancing                StateInformationFunctionalityType = "balancing"
    49  	StateInformationFunctionalityTypeTrickleCharging          StateInformationFunctionalityType = "trickleCharging"
    50  	StateInformationFunctionalityTypeCalibration              StateInformationFunctionalityType = "calibration"
    51  	StateInformationFunctionalityTypeCommissioningMissing     StateInformationFunctionalityType = "commissioningMissing"
    52  	StateInformationFunctionalityTypeSleeping                 StateInformationFunctionalityType = "sleeping"
    53  	StateInformationFunctionalityTypeStarting                 StateInformationFunctionalityType = "starting"
    54  	StateInformationFunctionalityTypeMppt                     StateInformationFunctionalityType = "mppt"
    55  	StateInformationFunctionalityTypeThrottled                StateInformationFunctionalityType = "throttled"
    56  	StateInformationFunctionalityTypeShuttingDown             StateInformationFunctionalityType = "shuttingDown"
    57  	StateInformationFunctionalityTypeManualShutdown           StateInformationFunctionalityType = "manualShutdown"
    58  )
    59  
    60  type StateInformationFailureType string
    61  
    62  const (
    63  	StateInformationFailureTypeInverterDefective             StateInformationFailureType = "inverterDefective"
    64  	StateInformationFailureTypeBatteryOvercurrentProtection  StateInformationFailureType = "batteryOvercurrentProtection"
    65  	StateInformationFailureTypePvStringOvercurrentProtection StateInformationFailureType = "pvStringOvercurrentProtection"
    66  	StateInformationFailureTypeGridFault                     StateInformationFailureType = "gridFault"
    67  	StateInformationFailureTypeGroundFault                   StateInformationFailureType = "groundFault"
    68  	StateInformationFailureTypeAcDisconnected                StateInformationFailureType = "acDisconnected"
    69  	StateInformationFailureTypeDcDisconnected                StateInformationFailureType = "dcDisconnected"
    70  	StateInformationFailureTypeCabinetOpen                   StateInformationFailureType = "cabinetOpen"
    71  	StateInformationFailureTypeOverTemperature               StateInformationFailureType = "overTemperature"
    72  	StateInformationFailureTypeUnderTemperature              StateInformationFailureType = "underTemperature"
    73  	StateInformationFailureTypeFrequencyAboveLimit           StateInformationFailureType = "frequencyAboveLimit"
    74  	StateInformationFailureTypeFrequencyBelowLimit           StateInformationFailureType = "frequencyBelowLimit"
    75  	StateInformationFailureTypeAcVoltageAboveLimit           StateInformationFailureType = "acVoltageAboveLimit"
    76  	StateInformationFailureTypeAcVoltageBelowLimit           StateInformationFailureType = "acVoltageBelowLimit"
    77  	StateInformationFailureTypeDcVoltageAboveLimit           StateInformationFailureType = "dcVoltageAboveLimit"
    78  	StateInformationFailureTypeDcVoltageBelowLimit           StateInformationFailureType = "dcVoltageBelowLimit"
    79  	StateInformationFailureTypeHardwareTestFailure           StateInformationFailureType = "hardwareTestFailure"
    80  	StateInformationFailureTypeGenericInternalError          StateInformationFailureType = "genericInternalError"
    81  )
    82  
    83  type StateInformationCategoryType string
    84  
    85  const (
    86  	StateInformationCategoryTypeFunctionality StateInformationCategoryType = "functionality"
    87  	StateInformationCategoryTypeFailure       StateInformationCategoryType = "failure"
    88  )
    89  
    90  type StateInformationDataType struct {
    91  	StateInformationId *StateInformationIdType       `json:"stateInformationId,omitempty" eebus:"key"`
    92  	StateInformation   *StateInformationType         `json:"stateInformation,omitempty"`
    93  	IsActive           *bool                         `json:"isActive,omitempty"`
    94  	Category           *StateInformationCategoryType `json:"category,omitempty"`
    95  	TimeOfLastChange   *AbsoluteOrRelativeTimeType   `json:"timeOfLastChange,omitempty"`
    96  }
    97  
    98  type StateInformationDataElementsType struct {
    99  	StateInformationId *ElementTagType `json:"stateInformationId,omitempty"`
   100  	StateInformation   *ElementTagType `json:"stateInformation,omitempty"`
   101  	IsActive           *ElementTagType `json:"isActive,omitempty"`
   102  	Category           *ElementTagType `json:"category,omitempty"`
   103  	TimeOfLastChange   *ElementTagType `json:"timeOfLastChange,omitempty"`
   104  }
   105  
   106  type StateInformationListDataType struct {
   107  	StateInformationData []StateInformationDataType `json:"stateInformationData,omitempty"`
   108  }
   109  
   110  type StateInformationListDataSelectorsType struct {
   111  	StateInformationId *StateInformationIdType       `json:"stateInformationId,omitempty"`
   112  	StateInformation   *StateInformationType         `json:"stateInformation,omitempty"`
   113  	IsActive           *bool                         `json:"isActive,omitempty"`
   114  	Category           *StateInformationCategoryType `json:"category,omitempty"`
   115  }