Commit 7cde7532 authored by kaushikas's avatar kaushikas
Browse files

Edit TS28310_EnergyInformationNrm.yaml

parent 6e3e0097
Loading
Loading
Loading
Loading
Loading
+35 −1
Original line number Diff line number Diff line
@@ -37,6 +37,12 @@ components:
        - GRID_ELECTRICITY
        - BACKUP_ENERGY
        - LOCALLY_GENERATED_ENERGY
    energyRationingCause:
      type: string
      enum:
        - REGULATORY_CAUSE
        - ECONOMIC_CAUSE
        - BLACKOUT_CAUSE

#-------- Definition of concrete IOCs --------------------------------------------
    SubNetwork-ncO-EnergyInformationNrm:
@@ -46,6 +52,8 @@ components:
          $ref: '#/components/schemas/EnergySupplyInfo-Multiple'
        EnergyInfoGroup:
          $ref: '#/components/schemas/EnergyInfoGroup-Multiple'
        EnergyRationingInfo:
          $ref: '#/components/schemas/EnergyRationingInfo-Multiple'

    EnergySupplyInfo-Single:
      allOf:
@@ -75,6 +83,26 @@ components:
                  $ref: 'TS28623_ComDefs.yaml#/components/schemas/DnList'
                memberDNList:
                  $ref: 'TS28623_ComDefs.yaml#/components/schemas/DnList'
    EnergyRationingInfo-Single:
      allOf:
        - $ref: 'TS28623_GenericNrm.yaml#/components/schemas/Top'
        - type: object
          properties:
            attributes:
              type: object
              properties:
                maxEnergyConsumLimit:
                  type: integer
                energyRationingLocation:
                  type: string
                applicableEnergyRationServices:
                  type: integer
                energyRationingTimePeriod:
                  $ref: 'TS28623_ComDefs.yaml#/components/schemas/TimeInterval'
                energyRationingCause:
                  $ref: '#/components/schemas/EnergyRationingCause'
                


#-------- Definition of JSON arrays for name-contained IOCs ----------------------
          
@@ -86,6 +114,10 @@ components:
      type: array
      items:
        $ref: '#/components/schemas/EnergyInfoGroup-Single'
    EnergyRationingInfo-Multiple:
      type: array
      items:
        $ref: '#/components/schemas/EnergyRationingInfo-Single'
        
#--------------------------------- Definition ------------------------------------                          

@@ -93,3 +125,5 @@ components:
      oneOf:
        - $ref: '#/components/schemas/EnergySupplyInfo-Single'
        - $ref: '#/components/schemas/EnergyInfoGroup-Single'
        - $ref: '#/components/schemas/EnergyRationingInfo-Single'