oadr_power_20b.xsd 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!-- edited with XMLSpy v2011 rel. 2 sp1 (http://www.altova.com) by Paul Lipkin (private) -->
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmlsf="http://www.opengis.net/gmlsf/2.0" xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:scale="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06" targetNamespace="http://docs.oasis-open.org/ns/emix/2011/06/power" elementFormDefault="qualified" attributeFormDefault="qualified">
  4. <xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="oadr_gml_20b.xsd"/>
  5. <xs:import namespace="http://docs.oasis-open.org/ns/emix/2011/06" schemaLocation="oadr_emix_20b.xsd"/>
  6. <xs:import namespace="http://docs.oasis-open.org/ns/emix/2011/06/siscale" schemaLocation="oadr_siscale_20b.xsd"/>
  7. <xs:element name="endDeviceAsset" type="power:EndDeviceAssetType"/>
  8. <xs:complexType name="EndDeviceAssetType">
  9. <xs:annotation>
  10. <xs:documentation>The EndDeviceAssets are the physical device or devices which could be meters or other types of devices that may be of interest</xs:documentation>
  11. </xs:annotation>
  12. <xs:sequence>
  13. <xs:element ref="power:mrid"/>
  14. </xs:sequence>
  15. </xs:complexType>
  16. <!-- 9.8.1.1 Meters -->
  17. <xs:element name="meterAsset" type="power:MeterAssetType"/>
  18. <xs:complexType name="MeterAssetType">
  19. <xs:annotation>
  20. <xs:documentation>The MeterAsset is the physical device or devices that performs the role of the meter</xs:documentation>
  21. </xs:annotation>
  22. <xs:sequence>
  23. <xs:element ref="power:mrid"/>
  24. </xs:sequence>
  25. </xs:complexType>
  26. <!-- 9.8.2 Nodes -->
  27. <xs:element name="pnode" type="power:PnodeType"/>
  28. <xs:complexType name="PnodeType" mixed="false">
  29. <xs:annotation>
  30. <xs:documentation>A pricing node is directly associated with a connectivity node. It is a pricing location for which market participants submit their bids, offers, buy/sell CRRs, and settle.</xs:documentation>
  31. </xs:annotation>
  32. <xs:sequence>
  33. <xs:element ref="power:node"/>
  34. </xs:sequence>
  35. </xs:complexType>
  36. <xs:element name="aggregatedPnode" type="power:AggregatedPnodeType"/>
  37. <xs:complexType name="AggregatedPnodeType" mixed="false">
  38. <xs:annotation>
  39. <xs:documentation>An aggregated pricing node is a specialized type of pricing node used to model items such as System Zone, Default Price Zone, Custom Price Zone, Control Area, Aggregated Generation, Aggregated Participating Load, Aggregated Non-Participating Load, Trading Hub, DCA Zone</xs:documentation>
  40. </xs:annotation>
  41. <xs:sequence>
  42. <xs:element ref="power:node"/>
  43. </xs:sequence>
  44. </xs:complexType>
  45. <xs:element name="serviceLocation" type="power:ServiceLocationType"/>
  46. <xs:complexType name="ServiceLocationType" mixed="false">
  47. <xs:annotation>
  48. <xs:documentation>A customer ServiceLocation has one or more ServiceDeliveryPoint(s), which in turn relate to Meters. The location may be a point or a polygon, depending on the specific circumstances. For distribution, the ServiceLocation is typically the location of the utility customer's premise. </xs:documentation>
  49. </xs:annotation>
  50. <xs:sequence>
  51. <xs:element ref="gml:FeatureCollection"/>
  52. </xs:sequence>
  53. </xs:complexType>
  54. <xs:element name="serviceDeliveryPoint" type="power:ServiceDeliveryPointType"/>
  55. <xs:complexType name="ServiceDeliveryPointType" mixed="false">
  56. <xs:annotation>
  57. <xs:documentation>Logical point on the network where the ownership of the service changes hands. It is one of potentially many service points within a ServiceLocation, delivering service in accordance with a CustomerAgreement. Used at the place where a meter may be installed.</xs:documentation>
  58. </xs:annotation>
  59. <xs:sequence>
  60. <xs:element ref="power:node"/>
  61. </xs:sequence>
  62. </xs:complexType>
  63. <!-- 9.8.3 Transport Interface -->
  64. <xs:element name="transportInterface" type="power:TransportInterfaceType"/>
  65. <xs:complexType name="TransportInterfaceType" mixed="false">
  66. <xs:annotation>
  67. <xs:documentation>The Transport Interface delineates the edges at either end of a transport segment.</xs:documentation>
  68. </xs:annotation>
  69. <xs:sequence>
  70. <xs:element name="pointOfReceipt" type="power:NodeType"/>
  71. <xs:element name="pointOfDelivery" type="power:NodeType"/>
  72. </xs:sequence>
  73. </xs:complexType>
  74. <!-- 9.8.9 Base Elements for Interfaces -->
  75. <xs:element name="node" type="power:NodeType"/>
  76. <xs:simpleType name="NodeType">
  77. <xs:annotation>
  78. <xs:documentation>The Node is a place where something changes (often ownership) or connects on the grid. Many nodes are associated with meters, but not all are.</xs:documentation>
  79. </xs:annotation>
  80. <xs:restriction base="xs:string"/>
  81. </xs:simpleType>
  82. <!-- 9.8.9.1 Base Elements for Interfaces -->
  83. <!-- The identifier for a EndDevice (meter or other), is mRID from IEC61968-->
  84. <xs:element name="mrid" type="power:MridType"/>
  85. <xs:simpleType name="MridType">
  86. <xs:annotation>
  87. <xs:documentation>The mRID identifies the physical device that may be a CustomerMeter or other types of EndDevices.</xs:documentation>
  88. </xs:annotation>
  89. <xs:restriction base="xs:string"/>
  90. </xs:simpleType>
  91. <!-- 9.9.1 Voltage -->
  92. <xs:element name="voltage" type="power:VoltageType" substitutionGroup="emix:itemBase"/>
  93. <xs:complexType name="VoltageType" mixed="false">
  94. <xs:annotation>
  95. <xs:documentation>Voltage</xs:documentation>
  96. </xs:annotation>
  97. <xs:complexContent mixed="false">
  98. <xs:extension base="emix:ItemBaseType">
  99. <xs:sequence>
  100. <xs:element name="itemDescription" type="xs:string" fixed="Voltage"/>
  101. <xs:element name="itemUnits" type="xs:string" fixed="V"/>
  102. <xs:element ref="scale:siScaleCode"/>
  103. </xs:sequence>
  104. </xs:extension>
  105. </xs:complexContent>
  106. </xs:complexType>
  107. <!-- 9.9.2 Energy Units -->
  108. <xs:element name="energyApparent" type="power:EnergyApparentType" substitutionGroup="power:energyItem"/>
  109. <xs:complexType name="EnergyApparentType" mixed="false">
  110. <xs:annotation>
  111. <xs:documentation>Apparent Energy, measured in volt-ampere hours (VAh)</xs:documentation>
  112. </xs:annotation>
  113. <xs:complexContent mixed="false">
  114. <xs:restriction base="power:EnergyItemType">
  115. <xs:sequence>
  116. <xs:element name="itemDescription" type="xs:string" fixed="ApparentEnergy"/>
  117. <xs:element name="itemUnits" type="xs:string" fixed="VAh"/>
  118. <xs:element ref="scale:siScaleCode"/>
  119. </xs:sequence>
  120. </xs:restriction>
  121. </xs:complexContent>
  122. </xs:complexType>
  123. <xs:element name="energyReactive" type="power:EnergyReactiveType" substitutionGroup="power:energyItem"/>
  124. <xs:complexType name="EnergyReactiveType" mixed="false">
  125. <xs:annotation>
  126. <xs:documentation>Reactive Energy, volt-amperes reactive hours (VARh)</xs:documentation>
  127. </xs:annotation>
  128. <xs:complexContent mixed="false">
  129. <xs:restriction base="power:EnergyItemType">
  130. <xs:sequence>
  131. <xs:element name="itemDescription" type="xs:string" fixed="ReactiveEnergy"/>
  132. <xs:element name="itemUnits" type="xs:string" fixed="VARh"/>
  133. <xs:element ref="scale:siScaleCode"/>
  134. </xs:sequence>
  135. </xs:restriction>
  136. </xs:complexContent>
  137. </xs:complexType>
  138. <xs:element name="energyReal" type="power:EnergyRealType" substitutionGroup="power:energyItem"/>
  139. <xs:complexType name="EnergyRealType" mixed="false">
  140. <xs:annotation>
  141. <xs:documentation>Real Energy, Watt Hours (Wh)</xs:documentation>
  142. </xs:annotation>
  143. <xs:complexContent mixed="false">
  144. <xs:restriction base="power:EnergyItemType">
  145. <xs:sequence>
  146. <xs:element name="itemDescription" type="xs:string" fixed="RealEnergy"/>
  147. <xs:element name="itemUnits" type="xs:string" fixed="Wh"/>
  148. <xs:element ref="scale:siScaleCode"/>
  149. </xs:sequence>
  150. </xs:restriction>
  151. </xs:complexContent>
  152. </xs:complexType>
  153. <!-- ==================================================== -->
  154. <!-- 9.9.5 Base Energy Item Type -->
  155. <!-- ==================================================== -->
  156. <xs:element name="energyItem" type="power:EnergyItemType" substitutionGroup="emix:itemBase"/>
  157. <xs:complexType name="EnergyItemType" abstract="true" mixed="false">
  158. <xs:annotation>
  159. <xs:documentation>Base for the measurement of Energy</xs:documentation>
  160. </xs:annotation>
  161. <xs:complexContent mixed="false">
  162. <xs:extension base="emix:ItemBaseType">
  163. <xs:sequence>
  164. <xs:element name="itemDescription" type="xs:string"/>
  165. <xs:element name="itemUnits" type="xs:string"/>
  166. <xs:element ref="scale:siScaleCode"/>
  167. </xs:sequence>
  168. </xs:extension>
  169. </xs:complexContent>
  170. </xs:complexType>
  171. <!-- ==================================================== -->
  172. <!-- 9.9.4 Power Units -->
  173. <!-- ==================================================== -->
  174. <!-- ==================================================== -->
  175. <xs:element name="powerApparent" type="power:PowerApparentType" substitutionGroup="power:powerItem"/>
  176. <xs:complexType name="PowerApparentType" mixed="false">
  177. <xs:annotation>
  178. <xs:documentation>Apparent Power measured in volt-amperes (VA)</xs:documentation>
  179. </xs:annotation>
  180. <xs:complexContent mixed="false">
  181. <xs:restriction base="power:PowerItemType">
  182. <xs:sequence>
  183. <xs:element name="itemDescription" type="xs:string" fixed="ApparentPower"/>
  184. <xs:element name="itemUnits" type="xs:string" fixed="VA"/>
  185. <xs:element ref="scale:siScaleCode"/>
  186. <xs:element ref="power:powerAttributes"/>
  187. </xs:sequence>
  188. </xs:restriction>
  189. </xs:complexContent>
  190. </xs:complexType>
  191. <!-- ==================================================== -->
  192. <xs:element name="powerReactive" type="power:PowerReactiveType" substitutionGroup="power:powerItem"/>
  193. <xs:complexType name="PowerReactiveType" mixed="false">
  194. <xs:annotation>
  195. <xs:documentation>Reactive power, measured in volt-amperes reactive (VAR)</xs:documentation>
  196. </xs:annotation>
  197. <xs:complexContent mixed="false">
  198. <xs:restriction base="power:PowerItemType">
  199. <xs:sequence>
  200. <xs:element name="itemDescription" type="xs:string" fixed="ReactivePower"/>
  201. <xs:element name="itemUnits" type="xs:string" fixed="VAR"/>
  202. <xs:element ref="scale:siScaleCode"/>
  203. <xs:element ref="power:powerAttributes"/>
  204. </xs:sequence>
  205. </xs:restriction>
  206. </xs:complexContent>
  207. </xs:complexType>
  208. <!-- ==================================================== -->
  209. <xs:element name="powerReal" type="power:PowerRealType" substitutionGroup="power:powerItem"/>
  210. <xs:complexType name="PowerRealType" mixed="false">
  211. <xs:annotation>
  212. <xs:documentation>Real power measured in Watts (W) or Joules/second (J/s)</xs:documentation>
  213. </xs:annotation>
  214. <xs:complexContent mixed="false">
  215. <xs:restriction base="power:PowerItemType">
  216. <xs:sequence>
  217. <xs:element name="itemDescription" type="xs:string" fixed="RealPower"/>
  218. <xs:element name="itemUnits">
  219. <xs:simpleType>
  220. <xs:restriction base="xs:token">
  221. <xs:enumeration value="W"/>
  222. <xs:enumeration value="J/s"/>
  223. </xs:restriction>
  224. </xs:simpleType>
  225. </xs:element>
  226. <xs:element ref="scale:siScaleCode"/>
  227. <xs:element ref="power:powerAttributes"/>
  228. </xs:sequence>
  229. </xs:restriction>
  230. </xs:complexContent>
  231. </xs:complexType>
  232. <!-- ==================================================== -->
  233. <!-- 9.9.5 Base Power Item Type -->
  234. <!-- ==================================================== -->
  235. <xs:element name="powerItem" type="power:PowerItemType" substitutionGroup="emix:itemBase"/>
  236. <xs:complexType name="PowerItemType" abstract="true" mixed="false">
  237. <xs:annotation>
  238. <xs:documentation>Base for the measurement of Power</xs:documentation>
  239. </xs:annotation>
  240. <xs:complexContent mixed="false">
  241. <xs:extension base="emix:ItemBaseType">
  242. <xs:sequence>
  243. <xs:element name="itemDescription" type="xs:string"/>
  244. <xs:element name="itemUnits" type="xs:string"/>
  245. <xs:element ref="scale:siScaleCode"/>
  246. <xs:element ref="power:powerAttributes"/>
  247. </xs:sequence>
  248. </xs:extension>
  249. </xs:complexContent>
  250. </xs:complexType>
  251. <!-- ==================================================== -->
  252. <xs:element name="powerAttributes" type="power:PowerAttributesType"/>
  253. <xs:complexType name="PowerAttributesType">
  254. <xs:sequence>
  255. <xs:element name="hertz" type="xs:decimal"/>
  256. <xs:element name="voltage" type="xs:decimal"/>
  257. <xs:element name="ac" type="xs:boolean"/>
  258. </xs:sequence>
  259. </xs:complexType>
  260. </xs:schema>