oadr_ei_20b.xsd 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!-- edited with XMLSpy v2010 rel. 3 (x64) (http://www.altova.com) by James Zuber (private) -->
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:pyld="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:strm="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power" targetNamespace="http://docs.oasis-open.org/ns/energyinterop/201110" elementFormDefault="qualified" attributeFormDefault="qualified">
  4. <xs:import namespace="http://docs.oasis-open.org/ns/emix/2011/06/power" schemaLocation="oadr_power_20b.xsd"/>
  5. <xs:import namespace="urn:ietf:params:xml:ns:icalendar-2.0" schemaLocation="oadr_xcal_20b.xsd"/>
  6. <xs:import namespace="urn:ietf:params:xml:ns:icalendar-2.0:stream" schemaLocation="oadr_strm_20b.xsd"/>
  7. <xs:import namespace="http://docs.oasis-open.org/ns/emix/2011/06" schemaLocation="oadr_emix_20b.xsd"/>
  8. <xs:import namespace="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" schemaLocation="oadr_pyld_20b.xsd"/>
  9. <!-- ##### SAME AS A ##### -->
  10. <xs:element name="eventStatus" type="ei:EventStatusEnumeratedType"/>
  11. <!-- ******* EventStatusEnumeratedType ******** -->
  12. <xs:simpleType name="EventStatusEnumeratedType">
  13. <xs:restriction base="xs:token">
  14. <xs:enumeration value="none">
  15. <xs:annotation>
  16. <xs:documentation>No event pending</xs:documentation>
  17. </xs:annotation>
  18. </xs:enumeration>
  19. <xs:enumeration value="far">
  20. <xs:annotation>
  21. <xs:documentation>Event pending in the far future. The exact definition of how far in the future this refers is dependent upon the market context, but typically means the next day.</xs:documentation>
  22. </xs:annotation>
  23. </xs:enumeration>
  24. <xs:enumeration value="near">
  25. <xs:annotation>
  26. <xs:documentation>Event pending in the near future. The exact definition of how near in the future the pending event is active is dependent on the market context.</xs:documentation>
  27. </xs:annotation>
  28. </xs:enumeration>
  29. <xs:enumeration value="active">
  30. <xs:annotation>
  31. <xs:documentation>The event has been initiated and is currently active.</xs:documentation>
  32. </xs:annotation>
  33. </xs:enumeration>
  34. <xs:enumeration value="completed">
  35. <xs:annotation>
  36. <xs:documentation>The event has completed.</xs:documentation>
  37. </xs:annotation>
  38. </xs:enumeration>
  39. <xs:enumeration value="cancelled">
  40. <xs:annotation>
  41. <xs:documentation>The event has been canceled.</xs:documentation>
  42. </xs:annotation>
  43. </xs:enumeration>
  44. </xs:restriction>
  45. </xs:simpleType>
  46. <!-- ******* resourceID ******* -->
  47. <xs:element name="resourceID" type="xs:string"/>
  48. <!-- ******* groupID *******-->
  49. <xs:element name="groupID" type="xs:string"/>
  50. <!-- ******* partyID ******* -->
  51. <xs:element name="partyID" type="xs:string"/>
  52. <!-- ******* groupName *******-->
  53. <xs:element name="groupName" type="xs:string"/>
  54. <xs:simpleType name="EiExtensionTokenType">
  55. <xs:annotation>
  56. <xs:documentation>Pattern used for extending string enumeration, where allowed.</xs:documentation>
  57. </xs:annotation>
  58. <xs:restriction base="xs:token">
  59. <xs:pattern value="x-\S.*"/>
  60. </xs:restriction>
  61. </xs:simpleType>
  62. <!-- ******* venID ******** -->
  63. <xs:element name="venID" type="xs:string"/>
  64. <!-- ******* vtnID ******** -->
  65. <xs:element name="vtnID" type="xs:string"/>
  66. <!-- ******* eventID ******** -->
  67. <xs:element name="eventID" type="xs:string">
  68. <xs:annotation>
  69. <xs:documentation>An ID value that identifies a specific DR event instance.</xs:documentation>
  70. </xs:annotation>
  71. </xs:element>
  72. <!-- ******* modificationNumber ******** -->
  73. <xs:element name="modificationNumber" type="xs:unsignedInt">
  74. <xs:annotation>
  75. <xs:documentation>Incremented each time an event is modified.</xs:documentation>
  76. </xs:annotation>
  77. </xs:element>
  78. <!-- ******* qualifiedEventID ******** -->
  79. <xs:element name="qualifiedEventID" type="ei:QualifiedEventIDType"/>
  80. <!-- ******* QualifiedEventIDType ******** -->
  81. <xs:complexType name="QualifiedEventIDType">
  82. <xs:annotation>
  83. <xs:documentation>Fully qualified event ID includes the eventID and the modificationNumber.</xs:documentation>
  84. </xs:annotation>
  85. <xs:sequence>
  86. <xs:element ref="ei:eventID"/>
  87. <xs:element ref="ei:modificationNumber"/>
  88. </xs:sequence>
  89. </xs:complexType>
  90. <!-- ******* x-eiNotification ******** -->
  91. <xs:element name="x-eiNotification" type="xcal:DurationPropType">
  92. <xs:annotation>
  93. <xs:documentation>The VEN should receive the DR event payload prior to dtstart minus this duration.</xs:documentation>
  94. </xs:annotation>
  95. </xs:element>
  96. <!-- ******* x-eiRampUp ******** -->
  97. <xs:element name="x-eiRampUp" type="xcal:DurationPropType">
  98. <xs:annotation>
  99. <xs:documentation>A duration before or after the event start time during which load shed should transit.</xs:documentation>
  100. </xs:annotation>
  101. </xs:element>
  102. <!-- *******x-eiRecovery******** -->
  103. <xs:element name="x-eiRecovery" type="xcal:DurationPropType">
  104. <xs:annotation>
  105. <xs:documentation>A duration before or after the event end time during which load shed should transit.</xs:documentation>
  106. </xs:annotation>
  107. </xs:element>
  108. <!-- ******* interval ******** -->
  109. <xs:element name="interval" type="ei:IntervalType"/>
  110. <xs:complexType name="IntervalType">
  111. <xs:sequence>
  112. <xs:element ref="xcal:dtstart" minOccurs="0"/>
  113. <xs:element ref="xcal:duration" minOccurs="0"/>
  114. <xs:element ref="xcal:uid" minOccurs="0"/>
  115. <xs:element ref="strm:streamPayloadBase" maxOccurs="unbounded"/>
  116. </xs:sequence>
  117. </xs:complexType>
  118. <!-- ******* currentValue ******** -->
  119. <xs:element name="currentValue" type="ei:currentValueType">
  120. <xs:annotation>
  121. <xs:documentation>The payloadFloat value of the event interval currently executing.</xs:documentation>
  122. </xs:annotation>
  123. </xs:element>
  124. <xs:complexType name="currentValueType">
  125. <xs:choice>
  126. <xs:element ref="ei:payloadFloat"/>
  127. </xs:choice>
  128. </xs:complexType>
  129. <!-- ******* payloadFloat ******** -->
  130. <xs:element name="payloadBase" type="ei:PayloadBaseType" abstract="true"/>
  131. <xs:complexType name="PayloadBaseType" abstract="true">
  132. <xs:annotation>
  133. <xs:documentation>Base for information in signal / baseline / report payloads</xs:documentation>
  134. </xs:annotation>
  135. </xs:complexType>
  136. <xs:element name="payloadFloat" type="ei:PayloadFloatType" substitutionGroup="ei:payloadBase">
  137. <xs:annotation>
  138. <xs:documentation>Data point value for event signals or for reporting current or historical values.</xs:documentation>
  139. </xs:annotation>
  140. </xs:element>
  141. <xs:complexType name="PayloadFloatType">
  142. <xs:annotation>
  143. <xs:documentation>This is the payload for signals that require a quantity.</xs:documentation>
  144. </xs:annotation>
  145. <xs:complexContent>
  146. <xs:extension base="ei:PayloadBaseType">
  147. <xs:sequence>
  148. <xs:element name="value" type="xs:float"/>
  149. </xs:sequence>
  150. </xs:extension>
  151. </xs:complexContent>
  152. </xs:complexType>
  153. <!-- ########## Message Responses ########## -->
  154. <!-- ******* responseCode ******** -->
  155. <xs:element name="responseCode" type="ei:ResponseCodeType">
  156. <xs:annotation>
  157. <xs:documentation>A 3 digit response code</xs:documentation>
  158. </xs:annotation>
  159. </xs:element>
  160. <!-- ******* responseCodeType ******** -->
  161. <xs:simpleType name="ResponseCodeType">
  162. <xs:annotation>
  163. <xs:documentation>Similar to HTTP 1.1 Error Pattern, 1st digit sufficient for most error processing
  164. - 1xx: Informational - Request received, continuing process
  165. - 2xx: Success - The action was successfully received, understood, and accepted
  166. - 3xx: Pending - Further action must be taken in order to complete the request
  167. - 4xx: Requester Error - The request contains bad syntax or cannot be fulfilled
  168. - 5xx: Responder Error - The responder failed to fulfill an apparently valid request
  169. xx is used for defining more fine grained errors
  170. </xs:documentation>
  171. </xs:annotation>
  172. <xs:restriction base="xs:string">
  173. <xs:pattern value="[0-9][0-9][0-9]"/>
  174. </xs:restriction>
  175. </xs:simpleType>
  176. <!-- ******* responseDescription ******** -->
  177. <xs:element name="responseDescription" type="xs:string">
  178. <xs:annotation>
  179. <xs:documentation>Narrative description of response status</xs:documentation>
  180. </xs:annotation>
  181. </xs:element>
  182. <!-- ******* optType ******** -->
  183. <xs:element name="optType" type="ei:OptTypeType">
  184. <xs:annotation>
  185. <xs:documentation>optIn or optOut of an event</xs:documentation>
  186. </xs:annotation>
  187. </xs:element>
  188. <xs:simpleType name="OptTypeType">
  189. <xs:restriction base="xs:token">
  190. <xs:enumeration value="optIn"/>
  191. <xs:enumeration value="optOut"/>
  192. </xs:restriction>
  193. </xs:simpleType>
  194. <!-- ******* eiResponse ******** -->
  195. <xs:element name="eiResponse" type="ei:EiResponseType">
  196. <xs:annotation>
  197. <xs:documentation>Indicate whether received payload is acceptable</xs:documentation>
  198. </xs:annotation>
  199. </xs:element>
  200. <xs:complexType name="EiResponseType">
  201. <xs:sequence>
  202. <xs:element ref="ei:responseCode"/>
  203. <xs:element ref="ei:responseDescription" minOccurs="0"/>
  204. <xs:element ref="pyld:requestID"/>
  205. </xs:sequence>
  206. </xs:complexType>
  207. <!-- ******* eventResponses ******** -->
  208. <xs:element name="eventResponses">
  209. <xs:annotation>
  210. <xs:documentation>optIn or optOut responses for received events</xs:documentation>
  211. </xs:annotation>
  212. <xs:complexType>
  213. <xs:sequence>
  214. <xs:element name="eventResponse" minOccurs="0" maxOccurs="unbounded">
  215. <xs:complexType>
  216. <xs:sequence>
  217. <xs:element ref="ei:responseCode"/>
  218. <xs:element ref="ei:responseDescription" minOccurs="0"/>
  219. <xs:element ref="pyld:requestID"/>
  220. <xs:element ref="ei:qualifiedEventID"/>
  221. <xs:element ref="ei:optType"/>
  222. </xs:sequence>
  223. </xs:complexType>
  224. </xs:element>
  225. </xs:sequence>
  226. </xs:complexType>
  227. </xs:element>
  228. <!--########### eiEvent Section ##########-->
  229. <!-- ******* eiEvent ******** -->
  230. <xs:element name="eiEvent" type="ei:eiEventType"/>
  231. <xs:complexType name="eiEventType">
  232. <xs:sequence>
  233. <xs:element ref="ei:eventDescriptor"/>
  234. <xs:element ref="ei:eiActivePeriod"/>
  235. <xs:element ref="ei:eiEventSignals"/>
  236. <xs:element ref="ei:eiTarget"/>
  237. </xs:sequence>
  238. </xs:complexType>
  239. <!-- ***** eiActivePeriod *****-->
  240. <xs:element name="eiActivePeriod" type="ei:eiActivePeriodType">
  241. <xs:annotation>
  242. <xs:documentation>Time frames relevant to the overall event</xs:documentation>
  243. </xs:annotation>
  244. </xs:element>
  245. <xs:complexType name="eiActivePeriodType">
  246. <xs:sequence>
  247. <xs:element ref="xcal:properties"/>
  248. <xs:element ref="xcal:components"/>
  249. </xs:sequence>
  250. </xs:complexType>
  251. <!-- ******* signalType ******** -->
  252. <xs:element name="signalType" type="ei:SignalTypeEnumeratedType">
  253. <xs:annotation>
  254. <xs:documentation>An enumerated value describing the type of signal such as level or price</xs:documentation>
  255. </xs:annotation>
  256. </xs:element>
  257. <!-- ******* SignalTypeEnumeratedType ******** -->
  258. <xs:simpleType name="SignalTypeEnumeratedType">
  259. <xs:annotation>
  260. <xs:documentation>SignalTypeEnumerated lists the pre-defined types used to specify the payload types and conformance in a stream</xs:documentation>
  261. </xs:annotation>
  262. <xs:restriction base="xs:token">
  263. <xs:enumeration value="delta">
  264. <xs:annotation>
  265. <xs:documentation>Signal indicates the amount to change from what one would have used without the signal.</xs:documentation>
  266. </xs:annotation>
  267. </xs:enumeration>
  268. <xs:enumeration value="level">
  269. <xs:annotation>
  270. <xs:documentation>Signal indicates a program level.</xs:documentation>
  271. </xs:annotation>
  272. </xs:enumeration>
  273. <xs:enumeration value="multiplier">
  274. <xs:annotation>
  275. <xs:documentation>Signal indicates a multiplier applied to the current rate of delivery or usage from what one would have used without the signal.</xs:documentation>
  276. </xs:annotation>
  277. </xs:enumeration>
  278. <xs:enumeration value="price">
  279. <xs:annotation>
  280. <xs:documentation>Signal indicates the price.</xs:documentation>
  281. </xs:annotation>
  282. </xs:enumeration>
  283. <xs:enumeration value="priceMultiplier">
  284. <xs:annotation>
  285. <xs:documentation>Signal indicates the price multiplier. Extended price is the computed price value multiplied by the number of units.</xs:documentation>
  286. </xs:annotation>
  287. </xs:enumeration>
  288. <xs:enumeration value="priceRelative">
  289. <xs:annotation>
  290. <xs:documentation>Signal indicates the relative price.</xs:documentation>
  291. </xs:annotation>
  292. </xs:enumeration>
  293. <xs:enumeration value="setpoint">
  294. <xs:annotation>
  295. <xs:documentation>Signal indicates a target amount of units.</xs:documentation>
  296. </xs:annotation>
  297. </xs:enumeration>
  298. <xs:enumeration value="x-loadControlCapacity">
  299. <xs:annotation>
  300. <xs:documentation>This is an instruction for the load controller to operate at a level that is some percentage of its maximum load consumption capacity. This can be mapped to specific load controllers to do things like duty cycling. Note that 1.0 refers to 100% consumption. In the case of simple ON/OFF type devices then 0 = OFF and 1 = ON.</xs:documentation>
  301. </xs:annotation>
  302. </xs:enumeration>
  303. <xs:enumeration value="x-loadControlLevelOffset">
  304. <xs:annotation>
  305. <xs:documentation>Discrete integer levels that are relative to normal operations where 0 is normal operations.</xs:documentation>
  306. </xs:annotation>
  307. </xs:enumeration>
  308. <xs:enumeration value="x-loadControlPercentOffset">
  309. <xs:annotation>
  310. <xs:documentation>Percentage change from normal load control operations.</xs:documentation>
  311. </xs:annotation>
  312. </xs:enumeration>
  313. <xs:enumeration value="x-loadControlSetpoint">
  314. <xs:annotation>
  315. <xs:documentation>Load controller set points.</xs:documentation>
  316. </xs:annotation>
  317. </xs:enumeration>
  318. </xs:restriction>
  319. </xs:simpleType>
  320. <!-- ##### NEW FOR B ##### -->
  321. <!-- ***** Array of responses ***** -->
  322. <xs:element name="responses" type="ei:ArrayofResponses"/>
  323. <xs:complexType name="ArrayofResponses">
  324. <xs:annotation>
  325. <xs:documentation>Collection of Responses. When a service operation regards multiple referenceable items, each referenced item may have its own response. Always accompanied by an overall Response Type.</xs:documentation>
  326. </xs:annotation>
  327. <xs:sequence>
  328. <xs:element name="response" type="ei:EiResponseType" minOccurs="0" maxOccurs="unbounded"/>
  329. </xs:sequence>
  330. </xs:complexType>
  331. <!-- ***** Extended eventDescriptor ***** -->
  332. <xs:element name="eventDescriptor" type="ei:eventDescriptorType">
  333. <xs:annotation>
  334. <xs:documentation>Information about the event</xs:documentation>
  335. </xs:annotation>
  336. </xs:element>
  337. <xs:complexType name="eventDescriptorType">
  338. <xs:sequence>
  339. <xs:element ref="ei:eventID"/>
  340. <xs:element ref="ei:modificationNumber"/>
  341. <xs:element name="modificationDateTime" type="xcal:DateTimeType" minOccurs="0">
  342. <xs:annotation>
  343. <xs:documentation>When an event is modified</xs:documentation>
  344. </xs:annotation>
  345. </xs:element>
  346. <xs:element name="modificationReason" type="xs:string" minOccurs="0">
  347. <xs:annotation>
  348. <xs:documentation>Why an event was modified</xs:documentation>
  349. </xs:annotation>
  350. </xs:element>
  351. <xs:element name="priority" type="xs:unsignedInt" minOccurs="0">
  352. <xs:annotation>
  353. <xs:documentation>The priority of the event in relation to other events (The lower the number higher the priority. A value of zero (0) indicates no priority, which is the lowest priority by default).</xs:documentation>
  354. </xs:annotation>
  355. </xs:element>
  356. <xs:element name="eiMarketContext">
  357. <xs:complexType>
  358. <xs:sequence>
  359. <xs:element ref="emix:marketContext"/>
  360. </xs:sequence>
  361. </xs:complexType>
  362. </xs:element>
  363. <xs:element ref="ei:createdDateTime"/>
  364. <xs:element ref="ei:eventStatus">
  365. <xs:annotation>
  366. <xs:documentation>An indication of the event state: far, near, active, canceled, completed</xs:documentation>
  367. </xs:annotation>
  368. </xs:element>
  369. <xs:element name="testEvent" type="xs:string" minOccurs="0">
  370. <xs:annotation>
  371. <xs:documentation>Anything other than false indicates a test event</xs:documentation>
  372. </xs:annotation>
  373. </xs:element>
  374. <xs:element name="vtnComment" type="xs:string" minOccurs="0">
  375. <xs:annotation>
  376. <xs:documentation>Any text</xs:documentation>
  377. </xs:annotation>
  378. </xs:element>
  379. </xs:sequence>
  380. </xs:complexType>
  381. <xs:element name="signalPayload" type="ei:signalPayloadType" substitutionGroup="strm:streamPayloadBase">
  382. <xs:annotation>
  383. <xs:documentation>Signal values for events and baselines</xs:documentation>
  384. </xs:annotation>
  385. </xs:element>
  386. <xs:complexType name="signalPayloadType">
  387. <xs:complexContent>
  388. <xs:extension base="strm:StreamPayloadBaseType">
  389. <xs:choice>
  390. <xs:element ref="ei:payloadBase"/>
  391. </xs:choice>
  392. </xs:extension>
  393. </xs:complexContent>
  394. </xs:complexType>
  395. <!-- ******* createdDateTime ******** -->
  396. <xs:element name="createdDateTime" type="xcal:DateTimeType">
  397. <xs:annotation>
  398. <xs:documentation>The dateTime the payload was created</xs:documentation>
  399. </xs:annotation>
  400. </xs:element>
  401. <!-- ***** Extended eiTarget *****-->
  402. <xs:element name="eiTarget" type="ei:EiTargetType">
  403. <xs:annotation>
  404. <xs:documentation>Identifies the resources associated with the logical VEN interface. For events, the values specified are the target for the event</xs:documentation>
  405. </xs:annotation>
  406. </xs:element>
  407. <xs:complexType name="EiTargetType">
  408. <xs:sequence>
  409. <xs:element ref="power:aggregatedPnode" minOccurs="0" maxOccurs="unbounded"/>
  410. <xs:element ref="power:endDeviceAsset" minOccurs="0" maxOccurs="unbounded"/>
  411. <xs:element ref="power:meterAsset" minOccurs="0" maxOccurs="unbounded"/>
  412. <xs:element ref="power:pnode" minOccurs="0" maxOccurs="unbounded"/>
  413. <xs:element ref="emix:serviceArea" minOccurs="0" maxOccurs="unbounded"/>
  414. <xs:element ref="power:serviceDeliveryPoint" minOccurs="0" maxOccurs="unbounded"/>
  415. <xs:element ref="power:serviceLocation" minOccurs="0" maxOccurs="unbounded"/>
  416. <xs:element ref="power:transportInterface" minOccurs="0" maxOccurs="unbounded"/>
  417. <xs:element ref="ei:groupID" minOccurs="0" maxOccurs="unbounded"/>
  418. <xs:element ref="ei:groupName" minOccurs="0" maxOccurs="unbounded"/>
  419. <xs:element ref="ei:resourceID" minOccurs="0" maxOccurs="unbounded"/>
  420. <xs:element ref="ei:venID" minOccurs="0" maxOccurs="unbounded"/>
  421. <xs:element ref="ei:partyID" minOccurs="0" maxOccurs="unbounded"/>
  422. </xs:sequence>
  423. </xs:complexType>
  424. <!-- ***** Extended Event Signal ***** -->
  425. <xs:element name="eiEventSignal" type="ei:eiEventSignalType"/>
  426. <xs:complexType name="eiEventSignalType">
  427. <xs:sequence>
  428. <xs:element ref="strm:intervals"/>
  429. <xs:element ref="ei:eiTarget" minOccurs="0">
  430. <xs:annotation>
  431. <xs:documentation>Optionally identifies the device class associated with the signal. Only the endDeviceAsset subelement is used</xs:documentation>
  432. </xs:annotation>
  433. </xs:element>
  434. <xs:element ref="ei:signalName">
  435. <xs:annotation>
  436. <xs:documentation>Descriptive name for signal.</xs:documentation>
  437. </xs:annotation>
  438. </xs:element>
  439. <xs:element ref="ei:signalType"/>
  440. <xs:element name="signalID" type="xs:string">
  441. <xs:annotation>
  442. <xs:documentation>unique Identifier for a specific event signal</xs:documentation>
  443. </xs:annotation>
  444. </xs:element>
  445. <xs:element ref="emix:itemBase" minOccurs="0">
  446. <xs:annotation>
  447. <xs:documentation>This is the unit of the signal.</xs:documentation>
  448. </xs:annotation>
  449. </xs:element>
  450. <xs:element ref="ei:currentValue" minOccurs="0"/>
  451. </xs:sequence>
  452. </xs:complexType>
  453. <xs:element name="signalName" type="ei:signalNameType"/>
  454. <xs:simpleType name="signalNameType">
  455. <xs:annotation>
  456. <xs:documentation>Signal name.</xs:documentation>
  457. </xs:annotation>
  458. <xs:union memberTypes="ei:SignalNameEnumeratedType ei:EiExtensionTokenType"/>
  459. </xs:simpleType>
  460. <xs:element name="SignalNameEnumerated" type="ei:SignalNameEnumeratedType"/>
  461. <xs:simpleType name="SignalNameEnumeratedType">
  462. <xs:restriction base="xs:token">
  463. <xs:enumeration value="SIMPLE">
  464. <xs:annotation>
  465. <xs:documentation>Simple levels (OpenADR 2.0a compliant)</xs:documentation>
  466. </xs:annotation>
  467. </xs:enumeration>
  468. <xs:enumeration value="simple">
  469. <xs:annotation>
  470. <xs:documentation>depreciated - for backwards compatibility with A profile</xs:documentation>
  471. </xs:annotation>
  472. </xs:enumeration>
  473. <xs:enumeration value="ELECTRICITY_PRICE">
  474. <xs:annotation>
  475. <xs:documentation>This is the cost of electricity</xs:documentation>
  476. </xs:annotation>
  477. </xs:enumeration>
  478. <xs:enumeration value="ENERGY_PRICE">
  479. <xs:annotation>
  480. <xs:documentation>This is the cost of energy</xs:documentation>
  481. </xs:annotation>
  482. </xs:enumeration>
  483. <xs:enumeration value="DEMAND_CHARGE">
  484. <xs:annotation>
  485. <xs:documentation>This is the demand charge</xs:documentation>
  486. </xs:annotation>
  487. </xs:enumeration>
  488. <xs:enumeration value="BID_PRICE">
  489. <xs:annotation>
  490. <xs:documentation>This is the price that was bid by the resource</xs:documentation>
  491. </xs:annotation>
  492. </xs:enumeration>
  493. <xs:enumeration value="BID_LOAD">
  494. <xs:annotation>
  495. <xs:documentation>This is the amount of load that was bid by a resource into a program</xs:documentation>
  496. </xs:annotation>
  497. </xs:enumeration>
  498. <xs:enumeration value="BID_ENERGY">
  499. <xs:annotation>
  500. <xs:documentation>This is the amount of energy from a resource that was bid into a program</xs:documentation>
  501. </xs:annotation>
  502. </xs:enumeration>
  503. <xs:enumeration value="CHARGE_STATE">
  504. <xs:annotation>
  505. <xs:documentation>State of energy storage resource</xs:documentation>
  506. </xs:annotation>
  507. </xs:enumeration>
  508. <xs:enumeration value="LOAD_DISPATCH">
  509. <xs:annotation>
  510. <xs:documentation>This is used to dispatch load</xs:documentation>
  511. </xs:annotation>
  512. </xs:enumeration>
  513. <xs:enumeration value="LOAD_CONTROL">
  514. <xs:annotation>
  515. <xs:documentation>Set load output to relative values</xs:documentation>
  516. </xs:annotation>
  517. </xs:enumeration>
  518. </xs:restriction>
  519. </xs:simpleType>
  520. <!-- ***** extended eiEventSignals to include Baselines***** -->
  521. <xs:element name="eiEventSignals" type="ei:eiEventSignalsType">
  522. <xs:annotation>
  523. <xs:documentation>Interval data for one or more event signals and/or baselines</xs:documentation>
  524. </xs:annotation>
  525. </xs:element>
  526. <xs:complexType name="eiEventSignalsType">
  527. <xs:sequence>
  528. <xs:element ref="ei:eiEventSignal" maxOccurs="unbounded">
  529. <xs:annotation>
  530. <xs:documentation>Interval data for an event</xs:documentation>
  531. </xs:annotation>
  532. </xs:element>
  533. <xs:element ref="ei:eiEventBaseline" minOccurs="0">
  534. <xs:annotation>
  535. <xs:documentation>Interval data for a baseline</xs:documentation>
  536. </xs:annotation>
  537. </xs:element>
  538. </xs:sequence>
  539. </xs:complexType>
  540. <!--########## Baselines ########## -->
  541. <xs:element name="eiEventBaseline" type="ei:eiEventBaselineType">
  542. <xs:annotation>
  543. <xs:documentation>B profile</xs:documentation>
  544. </xs:annotation>
  545. </xs:element>
  546. <xs:complexType name="eiEventBaselineType">
  547. <xs:sequence>
  548. <xs:element ref="xcal:dtstart"/>
  549. <xs:element ref="xcal:duration"/>
  550. <xs:element ref="strm:intervals"/>
  551. <xs:element name="baselineID" type="xs:string">
  552. <xs:annotation>
  553. <xs:documentation>Unique ID for a specific baseline</xs:documentation>
  554. </xs:annotation>
  555. </xs:element>
  556. <xs:element ref="ei:resourceID" minOccurs="0" maxOccurs="unbounded"/>
  557. <xs:element name="baselineName" type="xs:string">
  558. <xs:annotation>
  559. <xs:documentation>Descriptive name for baseline</xs:documentation>
  560. </xs:annotation>
  561. </xs:element>
  562. <xs:element ref="emix:itemBase" minOccurs="0">
  563. <xs:annotation>
  564. <xs:documentation>This is the unit of the signal.</xs:documentation>
  565. </xs:annotation>
  566. </xs:element>
  567. </xs:sequence>
  568. </xs:complexType>
  569. <!-- ########## eiOpt Section ########## -->
  570. <!-- EiOpt -->
  571. <xs:complexType name="EiOptType">
  572. <xs:annotation>
  573. <xs:documentation>Opts are used by the VEN to temporarily override the pre-existing agreement. For example, a VEN may opt in to events during the evening, or opt out from events during the world series.</xs:documentation>
  574. </xs:annotation>
  575. <xs:sequence>
  576. <xs:element ref="ei:optID"/>
  577. <xs:element ref="ei:optType"/>
  578. <xs:element ref="ei:optReason"/>
  579. <xs:element ref="emix:marketContext" minOccurs="0"/>
  580. <xs:element ref="ei:venID"/>
  581. <xs:element ref="xcal:vavailability" minOccurs="0"/>
  582. <xs:element ref="ei:createdDateTime"/>
  583. </xs:sequence>
  584. <xs:attribute ref="ei:schemaVersion" use="optional"/>
  585. </xs:complexType>
  586. <!-- optReason - same as in EIClasses -->
  587. <xs:element name="optReason" type="ei:OptReasonType">
  588. <xs:annotation>
  589. <xs:documentation>Enumerated value for the opt reason such as x-schedule</xs:documentation>
  590. </xs:annotation>
  591. </xs:element>
  592. <xs:simpleType name="OptReasonType">
  593. <xs:annotation>
  594. <xs:documentation>Reason for opting.</xs:documentation>
  595. </xs:annotation>
  596. <xs:union memberTypes="ei:OptReasonEnumeratedType ei:EiExtensionTokenType"/>
  597. </xs:simpleType>
  598. <xs:element name="optReasonEnumerated" type="ei:OptReasonEnumeratedType"/>
  599. <xs:simpleType name="OptReasonEnumeratedType">
  600. <xs:annotation>
  601. <xs:documentation>Enumerated reasons for opting.</xs:documentation>
  602. </xs:annotation>
  603. <xs:restriction base="xs:token">
  604. <xs:enumeration value="economic"/>
  605. <xs:enumeration value="emergency"/>
  606. <xs:enumeration value="mustRun"/>
  607. <xs:enumeration value="notParticipating"/>
  608. <xs:enumeration value="outageRunStatus"/>
  609. <xs:enumeration value="overrideStatus"/>
  610. <xs:enumeration value="participating"/>
  611. <xs:enumeration value="x-schedule"/>
  612. </xs:restriction>
  613. </xs:simpleType>
  614. <!-- optID - same as in EIClasses -->
  615. <xs:element name="optID" type="xs:string">
  616. <xs:annotation>
  617. <xs:documentation>Identifier for an opt interaction</xs:documentation>
  618. </xs:annotation>
  619. </xs:element>
  620. <!-- ########## Reports Section ########## -->
  621. <xs:element name="eiReportID" type="xs:string">
  622. <xs:annotation>
  623. <xs:documentation>Reference ID for a report</xs:documentation>
  624. </xs:annotation>
  625. </xs:element>
  626. <xs:element name="reportRequestID" type="xs:string">
  627. <xs:annotation>
  628. <xs:documentation>Identifier for a particular report request</xs:documentation>
  629. </xs:annotation>
  630. </xs:element>
  631. <xs:element name="reportSpecifierID" type="xs:string">
  632. <xs:annotation>
  633. <xs:documentation>Identifier for a particular Metadata report specification</xs:documentation>
  634. </xs:annotation>
  635. </xs:element>
  636. <xs:element name="reportName" type="ei:reportNameType">
  637. <xs:annotation>
  638. <xs:documentation>Optional name for a report.</xs:documentation>
  639. </xs:annotation>
  640. </xs:element>
  641. <xs:simpleType name="reportNameType">
  642. <xs:union memberTypes="ei:reportNameEnumeratedType ei:EiExtensionTokenType"/>
  643. </xs:simpleType>
  644. <xs:simpleType name="reportNameEnumeratedType">
  645. <xs:restriction base="xs:token">
  646. <xs:enumeration value="METADATA_HISTORY_USAGE"/>
  647. <xs:enumeration value="HISTORY_USAGE"/>
  648. <xs:enumeration value="METADATA_HISTORY_GREENBUTTON"/>
  649. <xs:enumeration value="HISTORY_GREENBUTTON"/>
  650. <xs:enumeration value="METADATA_TELEMETRY_USAGE"/>
  651. <xs:enumeration value="TELEMETRY_USAGE"/>
  652. <xs:enumeration value="METADATA_TELEMETRY_STATUS"/>
  653. <xs:enumeration value="TELEMETRY_STATUS"/>
  654. </xs:restriction>
  655. </xs:simpleType>
  656. <xs:element name="rID" type="xs:string">
  657. <xs:annotation>
  658. <xs:documentation>ReferenceID for this data point</xs:documentation>
  659. </xs:annotation>
  660. </xs:element>
  661. <xs:element name="reportSubject" type="ei:EiTargetType">
  662. <xs:annotation>
  663. <xs:documentation>Device Class target - use only endDeviceAsset.</xs:documentation>
  664. </xs:annotation>
  665. </xs:element>
  666. <xs:element name="reportDataSource" type="ei:EiTargetType">
  667. <xs:annotation>
  668. <xs:documentation>Sources for data in this report. Examples include meters or submeters. For example, if a meter is capable of providing two different types of measurements, then each measurement stream would be separately identified.</xs:documentation>
  669. </xs:annotation>
  670. </xs:element>
  671. <xs:element name="statusDateTime" type="xcal:DateTimeType">
  672. <xs:annotation>
  673. <xs:documentation>Date and time this artifact references.</xs:documentation>
  674. </xs:annotation>
  675. </xs:element>
  676. <xs:element name="reportType" type="ei:ReportTypeType"/>
  677. <xs:simpleType name="ReportTypeType">
  678. <xs:annotation>
  679. <xs:documentation>An enumerated value that gives the type of report being provided.</xs:documentation>
  680. </xs:annotation>
  681. <xs:union memberTypes="ei:ReportEnumeratedType ei:EiExtensionTokenType"/>
  682. </xs:simpleType>
  683. <xs:element name="reportEnumerated" type="ei:ReportEnumeratedType"/>
  684. <xs:simpleType name="ReportEnumeratedType">
  685. <xs:annotation>
  686. <xs:documentation>Enumerated report types</xs:documentation>
  687. </xs:annotation>
  688. <xs:restriction base="xs:token">
  689. <xs:enumeration value="reading">
  690. <xs:annotation>
  691. <xs:documentation>Report indicates a reading, as from a meter. Readings are moments in time-changes over time can be computed from the difference between successive readings. Payload type is float</xs:documentation>
  692. </xs:annotation>
  693. </xs:enumeration>
  694. <xs:enumeration value="usage">
  695. <xs:annotation>
  696. <xs:documentation>Report indicates an amount of units (denominated in ItemBase or in the EMIX Product) over a period. Payload type is Quantity. A typical ItemBase is Real Energy.</xs:documentation>
  697. </xs:annotation>
  698. </xs:enumeration>
  699. <xs:enumeration value="demand">
  700. <xs:annotation>
  701. <xs:documentation>Report indicates an amount of units (denominated in ItemBase or in the EMIX Product). Payload type is Quantity. A typical ItemBase is Real Power.</xs:documentation>
  702. </xs:annotation>
  703. </xs:enumeration>
  704. <xs:enumeration value="setPoint">
  705. <xs:annotation>
  706. <xs:documentation>Report indicates the amount (denominated in ItemBase or in the EMIX Product) currently set. May be a confirmation/return of the setpoint control value sent from the VTN. Payload type is Quantity. A typical ItemBase is Real Power.</xs:documentation>
  707. </xs:annotation>
  708. </xs:enumeration>
  709. <xs:enumeration value="deltaUsage">
  710. <xs:annotation>
  711. <xs:documentation>Change in usage as compared to the baseline. See usage for more information</xs:documentation>
  712. </xs:annotation>
  713. </xs:enumeration>
  714. <xs:enumeration value="deltaSetPoint">
  715. <xs:annotation>
  716. <xs:documentation>Changes in setpoint from previous schedule.</xs:documentation>
  717. </xs:annotation>
  718. </xs:enumeration>
  719. <xs:enumeration value="deltaDemand">
  720. <xs:annotation>
  721. <xs:documentation>Change in demand as compared to the baseline. See demand for more information</xs:documentation>
  722. </xs:annotation>
  723. </xs:enumeration>
  724. <xs:enumeration value="baseline">
  725. <xs:annotation>
  726. <xs:documentation>Can be demand or usage, as indicated by ItemBase. Indicates what [measurement] would be if not for the event or regulation. Report is of the format Baseline.</xs:documentation>
  727. </xs:annotation>
  728. </xs:enumeration>
  729. <xs:enumeration value="deviation">
  730. <xs:annotation>
  731. <xs:documentation>Difference between some instruction and actual state.</xs:documentation>
  732. </xs:annotation>
  733. </xs:enumeration>
  734. <xs:enumeration value="avgUsage">
  735. <xs:annotation>
  736. <xs:documentation>Average usage over the duration indicated by the Granularity. See usage for more information.</xs:documentation>
  737. </xs:annotation>
  738. </xs:enumeration>
  739. <xs:enumeration value="avgDemand">
  740. <xs:annotation>
  741. <xs:documentation>Average usage over the duration indicated by the Granularity. See demand for more information.</xs:documentation>
  742. </xs:annotation>
  743. </xs:enumeration>
  744. <xs:enumeration value="operatingState">
  745. <xs:annotation>
  746. <xs:documentation>Generalized state of a resource such as on/off, occupancy of building, etc. No ItemBase is relevant. Requires an Application Specific Payload Extension.</xs:documentation>
  747. </xs:annotation>
  748. </xs:enumeration>
  749. <xs:enumeration value="upRegulationCapacityAvailable">
  750. <xs:annotation>
  751. <xs:documentation>Up Regulation capacity available for dispatch, expressed in EMIX Real Power. Payload is always expressed as positive Quantity.</xs:documentation>
  752. </xs:annotation>
  753. </xs:enumeration>
  754. <xs:enumeration value="downRegulationCapacityAvailable">
  755. <xs:annotation>
  756. <xs:documentation>Down Regulation capacity available for dispatch, expressed in EMIX Real Power. Payload is always expressed as positive Quantity.</xs:documentation>
  757. </xs:annotation>
  758. </xs:enumeration>
  759. <xs:enumeration value="regulationSetpoint">
  760. <xs:annotation>
  761. <xs:documentation>Regulation setpoint as instructed as part of regulation services</xs:documentation>
  762. </xs:annotation>
  763. </xs:enumeration>
  764. <xs:enumeration value="storedEnergy">
  765. <xs:annotation>
  766. <xs:documentation>Stored Energy is expressed as Real Energy and Payload is expressed as a Quantity.</xs:documentation>
  767. </xs:annotation>
  768. </xs:enumeration>
  769. <xs:enumeration value="targetEnergyStorage">
  770. <xs:annotation>
  771. <xs:documentation>Target Energy is expressed as Real Energy and Payload is expressed as a Quantity.</xs:documentation>
  772. </xs:annotation>
  773. </xs:enumeration>
  774. <xs:enumeration value="availableEnergyStorage">
  775. <xs:annotation>
  776. <xs:documentation>Capacity available for further energy storage, perhaps to get to Target Energy Storage</xs:documentation>
  777. </xs:annotation>
  778. </xs:enumeration>
  779. <xs:enumeration value="price">
  780. <xs:annotation>
  781. <xs:documentation>Price per ItemBase at each Interval</xs:documentation>
  782. </xs:annotation>
  783. </xs:enumeration>
  784. <xs:enumeration value="level">
  785. <xs:annotation>
  786. <xs:documentation>Simple level from market at each Interval. Itembase is not relevant.</xs:documentation>
  787. </xs:annotation>
  788. </xs:enumeration>
  789. <xs:enumeration value="powerFactor">
  790. <xs:annotation>
  791. <xs:documentation>Power factor for the resource.</xs:documentation>
  792. </xs:annotation>
  793. </xs:enumeration>
  794. <xs:enumeration value="percentUsage">
  795. <xs:annotation>
  796. <xs:documentation>Percentage of usage.</xs:documentation>
  797. </xs:annotation>
  798. </xs:enumeration>
  799. <xs:enumeration value="percentDemand">
  800. <xs:annotation>
  801. <xs:documentation>Percentage of demand</xs:documentation>
  802. </xs:annotation>
  803. </xs:enumeration>
  804. <xs:enumeration value="x-resourceStatus">
  805. <xs:annotation>
  806. <xs:documentation>Percentage of demand</xs:documentation>
  807. </xs:annotation>
  808. </xs:enumeration>
  809. </xs:restriction>
  810. </xs:simpleType>
  811. <xs:element name="readingType" type="ei:ReadingTypeType">
  812. <xs:annotation>
  813. <xs:documentation>Metadata about the Readings, such as mean or derived</xs:documentation>
  814. </xs:annotation>
  815. </xs:element>
  816. <xs:simpleType name="ReadingTypeType">
  817. <xs:annotation>
  818. <xs:documentation>Type of Reading.</xs:documentation>
  819. </xs:annotation>
  820. <xs:union memberTypes="ei:ReadingTypeEnumeratedType ei:EiExtensionTokenType"/>
  821. </xs:simpleType>
  822. <xs:element name="readingTypeEnumerated" type="ei:ReadingTypeEnumeratedType"/>
  823. <xs:simpleType name="ReadingTypeEnumeratedType">
  824. <xs:restriction base="xs:token">
  825. <xs:enumeration value="Direct Read">
  826. <xs:annotation>
  827. <xs:documentation>Reading is read from a device that increases monotonically, and usage must be computed from pairs of start and stop readings.</xs:documentation>
  828. </xs:annotation>
  829. </xs:enumeration>
  830. <xs:enumeration value="Net">
  831. <xs:annotation>
  832. <xs:documentation>Meter or [resource] prepares its own calculation of total use over time.</xs:documentation>
  833. </xs:annotation>
  834. </xs:enumeration>
  835. <xs:enumeration value="Allocated">
  836. <xs:annotation>
  837. <xs:documentation>Meter covers several [resources] and usage is inferred through some sort of pro data computation.</xs:documentation>
  838. </xs:annotation>
  839. </xs:enumeration>
  840. <xs:enumeration value="Estimated">
  841. <xs:annotation>
  842. <xs:documentation>Used when a reading is absent in a series in which most readings are present.</xs:documentation>
  843. </xs:annotation>
  844. </xs:enumeration>
  845. <xs:enumeration value="Summed">
  846. <xs:annotation>
  847. <xs:documentation>Several meters together provide the reading for this [resource]. This is specifically a different than aggregated, which refers to multiple [resources] in the same payload. See also Hybrid.</xs:documentation>
  848. </xs:annotation>
  849. </xs:enumeration>
  850. <xs:enumeration value="Derived">
  851. <xs:annotation>
  852. <xs:documentation>Usage is inferred through knowledge of run-time, normal operation, etc.</xs:documentation>
  853. </xs:annotation>
  854. </xs:enumeration>
  855. <xs:enumeration value="Mean">
  856. <xs:annotation>
  857. <xs:documentation>Reading is the mean value over the period indicated in Granularity</xs:documentation>
  858. </xs:annotation>
  859. </xs:enumeration>
  860. <xs:enumeration value="Peak">
  861. <xs:annotation>
  862. <xs:documentation>Reading is Peak (highest) value over the period indicated in granularity. For some measurements, it may make more sense as the lowest value. May not be consistent with aggregate readings. Only valid for flow-rate Item Bases, i.e., Power not Energy.</xs:documentation>
  863. </xs:annotation>
  864. </xs:enumeration>
  865. <xs:enumeration value="Hybrid">
  866. <xs:annotation>
  867. <xs:documentation>If aggregated, refers to different reading types in the aggregate number.</xs:documentation>
  868. </xs:annotation>
  869. </xs:enumeration>
  870. <xs:enumeration value="Contract">
  871. <xs:annotation>
  872. <xs:documentation>Indicates reading is pro forma, i.e., is reported at agreed upon rates</xs:documentation>
  873. </xs:annotation>
  874. </xs:enumeration>
  875. <xs:enumeration value="Projected">
  876. <xs:annotation>
  877. <xs:documentation>Indicates reading is in the future, and has not yet been measured.</xs:documentation>
  878. </xs:annotation>
  879. </xs:enumeration>
  880. <xs:enumeration value="x-RMS">
  881. <xs:annotation>
  882. <xs:documentation>Root Mean Square</xs:documentation>
  883. </xs:annotation>
  884. </xs:enumeration>
  885. <xs:enumeration value="x-notApplicable">
  886. <xs:annotation>
  887. <xs:documentation>Not Applicable</xs:documentation>
  888. </xs:annotation>
  889. </xs:enumeration>
  890. </xs:restriction>
  891. </xs:simpleType>
  892. <xs:element name="confidence" type="ei:ConfidenceType"/>
  893. <xs:simpleType name="ConfidenceType">
  894. <xs:restriction base="xs:unsignedInt">
  895. <xs:minInclusive value="0"/>
  896. <xs:maxInclusive value="100"/>
  897. </xs:restriction>
  898. </xs:simpleType>
  899. <xs:element name="accuracy" type="ei:AccuracyType"/>
  900. <xs:simpleType name="AccuracyType">
  901. <xs:annotation>
  902. <xs:documentation>Number is in same units as the payload variable for an Interval. When present with Confidence, indicates the likely variability of the prediction. When present with ReadingType, indicates likely error of Reading.</xs:documentation>
  903. </xs:annotation>
  904. <xs:restriction base="xs:float"/>
  905. </xs:simpleType>
  906. <!-- ***** Report Payload Type***** -->
  907. <xs:complexType name="ReportPayloadType">
  908. <xs:annotation>
  909. <xs:documentation>Report Payload for use in Reports, snaps, and projections.</xs:documentation>
  910. </xs:annotation>
  911. <xs:complexContent>
  912. <xs:extension base="strm:StreamPayloadBaseType">
  913. <xs:sequence>
  914. <xs:element ref="ei:rID">
  915. <xs:annotation>
  916. <xs:documentation>A reference to a metadata data point description </xs:documentation>
  917. </xs:annotation>
  918. </xs:element>
  919. <xs:element ref="ei:confidence" minOccurs="0">
  920. <xs:annotation>
  921. <xs:documentation>Likely variability of prediction: 0-100</xs:documentation>
  922. </xs:annotation>
  923. </xs:element>
  924. <xs:element ref="ei:accuracy" minOccurs="0">
  925. <xs:annotation>
  926. <xs:documentation>Accuracy in same units as interval payload value</xs:documentation>
  927. </xs:annotation>
  928. </xs:element>
  929. <xs:element ref="ei:payloadBase"/>
  930. </xs:sequence>
  931. </xs:extension>
  932. </xs:complexContent>
  933. </xs:complexType>
  934. <xs:element name="numDataSources" type="xs:unsignedInt"/>
  935. <!-- 4.3 Report Specification -->
  936. <xs:element name="reportSpecifier" type="ei:ReportSpecifierType">
  937. <xs:annotation>
  938. <xs:documentation>Specify data points desired in a particular report instance</xs:documentation>
  939. </xs:annotation>
  940. </xs:element>
  941. <xs:complexType name="ReportSpecifierType">
  942. <xs:annotation>
  943. <xs:documentation>Parameters that define the content of a Report Stream</xs:documentation>
  944. </xs:annotation>
  945. <xs:sequence>
  946. <xs:element ref="ei:reportSpecifierID"/>
  947. <xs:element ref="xcal:granularity">
  948. <xs:annotation>
  949. <xs:documentation>How frequently the [measurement] is to be recorded.</xs:documentation>
  950. </xs:annotation>
  951. </xs:element>
  952. <xs:element name="reportBackDuration" type="xcal:DurationPropType">
  953. <xs:annotation>
  954. <xs:documentation>Report back with the Report-To-Date for each passing of this Duration.</xs:documentation>
  955. </xs:annotation>
  956. </xs:element>
  957. <xs:element name="reportInterval" type="xcal:WsCalendarIntervalType" minOccurs="0">
  958. <xs:annotation>
  959. <xs:documentation>This is the overall period of reporting.</xs:documentation>
  960. </xs:annotation>
  961. </xs:element>
  962. <xs:element ref="ei:specifierPayload" maxOccurs="unbounded"/>
  963. </xs:sequence>
  964. </xs:complexType>
  965. <!-- 4.3.1 Specifier Payload -->
  966. <xs:element name="specifierPayload" type="ei:SpecifierPayloadType"/>
  967. <xs:complexType name="SpecifierPayloadType">
  968. <xs:annotation>
  969. <xs:documentation>Payload for use in Report Specifiers.</xs:documentation>
  970. </xs:annotation>
  971. <xs:sequence>
  972. <xs:element ref="ei:rID"/>
  973. <xs:element ref="emix:itemBase" minOccurs="0">
  974. <xs:annotation>
  975. <xs:documentation>What is measured or tracked in this report (Units).</xs:documentation>
  976. </xs:annotation>
  977. </xs:element>
  978. <xs:element ref="ei:readingType"/>
  979. </xs:sequence>
  980. </xs:complexType>
  981. <!-- registrationID-->
  982. <xs:element name="registrationID" substitutionGroup="ei:refID">
  983. <xs:annotation>
  984. <xs:documentation>Identifier for Registration transaction. Not included in response to query registration unless already registered</xs:documentation>
  985. </xs:annotation>
  986. </xs:element>
  987. <!-- 9.8.2.9 Base Type for References -->
  988. <xs:element name="refID" substitutionGroup="ei:uid">
  989. <xs:annotation>
  990. <xs:documentation>Reference ID for a particular instance, transmittal, or artifact. Note: not the same as the native ID of the object being transmitted or shared.</xs:documentation>
  991. </xs:annotation>
  992. </xs:element>
  993. <!-- 9.8.9 Base UID -->
  994. <xs:element name="uid" type="ei:UidType" abstract="true"/>
  995. <xs:simpleType name="UidType">
  996. <xs:annotation>
  997. <xs:documentation>Unique Identifier</xs:documentation>
  998. </xs:annotation>
  999. <xs:restriction base="xs:string"/>
  1000. </xs:simpleType>
  1001. <!-- schemaVersion -->
  1002. <xs:attribute name="schemaVersion" type="ei:schemaVersionType"/>
  1003. <xs:simpleType name="schemaVersionType">
  1004. <xs:union memberTypes="ei:schemaVersionEnumeratedType ei:EiExtensionTokenType"/>
  1005. </xs:simpleType>
  1006. <xs:simpleType name="schemaVersionEnumeratedType">
  1007. <xs:restriction base="xs:token">
  1008. <xs:enumeration value="2.0a"/>
  1009. <xs:enumeration value="2.0b"/>
  1010. </xs:restriction>
  1011. </xs:simpleType>
  1012. </xs:schema>