blob: 4eee88068857776b77f38b6572617f352b902328 [file] [log] [blame]
ramangrover29f18d4562013-02-15 23:56:00 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:eg="patterns" targetNamespace="patterns">
3
4
5<!-- definition of simple types -->
6<xs:element name="maxOccurs" type = "xs:int"/>
7<xs:element name="pargs" type="xs:string"/>
8<xs:element name="absvalue" type="xs:string"/>
9<xs:element name="unit" type="xs:string"/>
10<xs:element name="type" type="xs:string"/>
11<xs:element name="min" type="xs:string"/>
12<xs:element name="max" type="xs:string"/>
13<xs:element name="abs" type="xs:string"/>
14<xs:element name="set" type="xs:string"/>
15<xs:element name="exclude" type="xs:string"/>
16<xs:element name="reuse" type="xs:boolean"/>
17<!-- definition of attributes -->
18
19<!-- definition of complex elements -->
20
21<xs:element name="range">
22 <xs:complexType>
23 <xs:sequence>
24 <xs:element ref="eg:set"/>
25 <xs:element ref="eg:exclude" minOccurs="0"/>
26 <xs:element ref="eg:reuse" minOccurs="0"/>
27 </xs:sequence>
28 </xs:complexType>
29</xs:element>
30
31<xs:element name="minmax">
32 <xs:complexType>
33 <xs:sequence>
34 <xs:element ref="eg:min"/>
35 <xs:element ref="eg:max"/>
36 </xs:sequence>
37 </xs:complexType>
38</xs:element>
39
40
41<xs:element name="random">
42 <xs:complexType>
43 <xs:sequence>
44 <xs:element ref="eg:minmax" minOccurs="0"/>
45 <xs:element ref="eg:range" minOccurs="0"/>
46 </xs:sequence>
47 </xs:complexType>
48</xs:element>
49
50<xs:element name="value">
51 <xs:complexType>
52 <xs:sequence>
53 <xs:element ref="eg:random" minOccurs="0"/>
54 <xs:element ref="eg:absvalue" minOccurs="0"/>
55 </xs:sequence>
56 </xs:complexType>
57</xs:element>
58
59<xs:element name="nodeid">
60 <xs:complexType>
61 <xs:sequence>
62 <xs:element ref="eg:value"/>
63 </xs:sequence>
64 </xs:complexType>
65</xs:element>
66
67<xs:element name="period">
68 <xs:complexType>
69 <xs:sequence>
70 <xs:element ref="eg:absvalue"/>
71 <xs:element ref="eg:unit"/>
72 </xs:sequence>
73 </xs:complexType>
74</xs:element>
75
76<xs:element name="delay">
77 <xs:complexType>
78 <xs:sequence>
79 <xs:element ref="eg:value"/>
80 <xs:element ref="eg:unit"/>
81 </xs:sequence>
82 </xs:complexType>
83</xs:element>
84
85<xs:element name="event">
86 <xs:complexType>
87 <xs:sequence>
88 <xs:element ref="eg:type"/>
89 <xs:element ref="eg:nodeid"/>
90 <xs:element ref="eg:pargs"/>
91 </xs:sequence>
92 </xs:complexType>
93</xs:element>
94
95<xs:element name="pattern">
96 <xs:complexType>
97 <xs:sequence>
98 <xs:element ref="eg:delay"/>
99 <xs:element ref="eg:maxOccurs" maxOccurs="1" minOccurs="0"/>
100 <xs:element ref="eg:period"/>
101 <xs:element ref="eg:event"/>
102 </xs:sequence>
103 </xs:complexType>
104</xs:element>
105
106<xs:element name="patterns">
107 <xs:complexType>
108 <xs:sequence>
109 <xs:element ref="eg:pattern" maxOccurs="unbounded"/>
110 </xs:sequence>
111 </xs:complexType>
112</xs:element>
113
114</xs:schema>