File: oadr_xcal_20b.xsd

package info (click to toggle)
python-openleadr-python 0.5.34%2Bdfsg.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,496 kB
  • sloc: python: 6,942; xml: 663; makefile: 32; sh: 18
file content (129 lines) | stat: -rw-r--r-- 5,461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XMLSpy v2010 rel. 3 (http://www.altova.com) by James Zuber (private) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110" targetNamespace="urn:ietf:params:xml:ns:icalendar-2.0" elementFormDefault="qualified" attributeFormDefault="qualified">
   <xs:import namespace="http://docs.oasis-open.org/ns/energyinterop/201110" schemaLocation="oadr_ei_20b.xsd"/>
   <!-- ##### SAME AS A ##### -->
   <!--  ******* date-time ******** -->
   <xs:element name="date-time" type="xcal:DateTimeType"/>
   <!--  ******* DateTimeType ******** -->
   <xs:simpleType name="DateTimeType">
      <xs:restriction base="xs:dateTime">
         <xs:pattern value="(\-|\+)?\d{4}\-\d{2}\-\d{2}T\d{2}:\d{2}:\d{2}(\.\d*)?Z?"/>
      </xs:restriction>
   </xs:simpleType>
   <!--  ******* duration ******** -->
   <xs:element name="duration" type="xcal:DurationPropType">
      <xs:annotation>
         <xs:documentation>The duration of the  activity, data, or state </xs:documentation>
      </xs:annotation>
   </xs:element>
   <!--  ******* DurationPropType ******** -->
   <xs:complexType name="DurationPropType" mixed="false">
      <xs:sequence>
         <xs:element name="duration" type="xcal:DurationValueType"/>
      </xs:sequence>
   </xs:complexType>
   <!--  ******* DurationValueType ******** -->
   <xs:simpleType name="DurationValueType">
      <xs:restriction base="xs:string">
         <xs:pattern value="(\+|\-)?P((\d+Y)?(\d+M)?(\d+D)?T?(\d+H)?(\d+M)?(\d+S)?)|(\d+W)"/>
      </xs:restriction>
   </xs:simpleType>
   <!--  ******* uid ******** -->
   <xs:element name="uid">
      <xs:annotation>
         <xs:documentation>Used as an index to identify intervals</xs:documentation>
      </xs:annotation>
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="xcal:text"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <!--  ******* text ******** -->
   <xs:element name="text" type="xs:string"/>
   <xs:element name="dtstart">
      <xs:annotation>
         <xs:documentation>The starting time for the activity, data, or state change</xs:documentation>
      </xs:annotation>
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="xcal:date-time"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <!--  ******* properties ******** -->
   <xs:element name="properties">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="xcal:dtstart"/>
            <xs:element ref="xcal:duration"/>
            <xs:element name="tolerance" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Set randomization period for start of event</xs:documentation>
               </xs:annotation>
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="tolerate">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="startafter" type="xcal:DurationValueType" minOccurs="0"/>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
            <xs:element ref="ei:x-eiNotification" minOccurs="0"/>
            <xs:element ref="ei:x-eiRampUp" minOccurs="0"/>
            <xs:element ref="ei:x-eiRecovery" minOccurs="0"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <!--  ******* components ******** -->
   <xs:element name="components" nillable="true"/>
   <!-- ##### NEW for B ##### -->
   <!--  ******* dtend ******** -->
   <xs:element name="dtend">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="xcal:date-time"/>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
   <!-- ******* vavailabiity ******** -->
   <xs:complexType name="VavailabilityType" mixed="false">
      <xs:sequence>
         <xs:element name="components" type="xcal:ArrayOfVavailabilityContainedComponents"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="vavailability" type="xcal:VavailabilityType">
      <xs:annotation>
         <xs:documentation>A schedule reflecting device availability for participating in DR events</xs:documentation>
      </xs:annotation>
   </xs:element>
   <xs:complexType name="ArrayOfVavailabilityContainedComponents">
      <xs:sequence>
         <xs:element ref="xcal:available" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="AvailableType" mixed="false">
      <xs:sequence>
         <xs:element ref="xcal:properties"/>
      </xs:sequence>
   </xs:complexType>
   <xs:element name="available" type="xcal:AvailableType"/>
   <!-- Granularity is used in the VAVAILABILITY and AVAILABILITY components -->
   <xs:element name="granularity" type="xcal:DurationPropType"/>
   <xs:element name="interval" type="xcal:WsCalendarIntervalType"/>
   <xs:complexType name="WsCalendarIntervalType">
      <xs:annotation>
         <xs:documentation xml:lang="en">
			 An interval takes no sub-components.
			 </xs:documentation>
      </xs:annotation>
      <xs:sequence>
         <xs:element ref="xcal:properties"/>
      </xs:sequence>
   </xs:complexType>
</xs:schema>