source: xssim/trunk/simulator/schemas/grms3/GrmsSchedulingPlanSchema.xsd @ 104

Revision 104, 7.3 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Tomasz Piontek (Instytut Chemii Bioorganicznej PAN) -->
3<!-- edited with XMLSpy v2005 U (http://www.xmlspy.com) by Ariel Oleksiak (PSNC) -->
4<!--
5<xs:attribute name="state" type="resourceState" use="optional"/>
6-->
7<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
8        <xs:annotation>
9                <xs:documentation>Scheduling Plan v2</xs:documentation>
10        </xs:annotation>
11        <!-- ========================Enum Types ====================== -->
12        <xs:simpleType name="computingParameterName">
13                <xs:restriction base="xs:string">
14                        <xs:enumeration value="osname"/>
15                        <xs:enumeration value="ostype"/>
16                        <xs:enumeration value="cpuarch"/>
17                        <xs:enumeration value="osversion"/>
18                        <xs:enumeration value="osrelease"/>
19                        <xs:enumeration value="memory"/>
20                        <xs:enumeration value="freememory"/>
21                        <xs:enumeration value="cpucount"/>
22                        <xs:enumeration value="freecpus"/>
23                        <xs:enumeration value="cpuspeed"/>
24                        <xs:enumeration value="applications"/>
25                        <xs:enumeration value="diskspace"/>
26                        <xs:enumeration value="freediskspace"/>
27                        <xs:enumeration value="remoteSubmissionInterface"/>
28                        <xs:enumeration value="localResourceManager"/>
29                        <xs:enumeration value="hostname"/>
30                </xs:restriction>
31        </xs:simpleType>
32        <xs:simpleType name="networkParameterName">
33                <xs:restriction base="xs:string">
34                        <xs:enumeration value="bandwidth"/>
35                        <xs:enumeration value="latency"/>
36                        <xs:enumeration value="capacity"/>
37                </xs:restriction>
38        </xs:simpleType>
39        <xs:simpleType name="allocationStatus">
40                <xs:restriction base="xs:string">
41                        <xs:enumeration value="SCHEDULED"/>
42                        <xs:enumeration value="REJECTED"/>
43                        <xs:enumeration value="REQUEUED"/>
44                </xs:restriction>
45        </xs:simpleType>
46        <xs:simpleType name="interfaceType">
47                <xs:restriction base="xs:string">
48                        <xs:enumeration value="GRMS"/>
49                        <xs:enumeration value="SMOA"/>
50                        <xs:enumeration value="GT4"/>
51                </xs:restriction>
52        </xs:simpleType>
53        <!-- ========================  Complex Types =================== -->
54        <xs:complexType name="computingResourceType">
55                <xs:annotation>
56                        <xs:documentation> Computing resource type</xs:documentation>
57                </xs:annotation>
58                <xs:choice maxOccurs="unbounded">
59                        <xs:element name="hostParameter" type="computingResourceParameterType"/>
60                        <xs:element name="otherParameter" type="otherParameterType"/>
61                </xs:choice>
62        </xs:complexType>
63        <xs:complexType name="computingResourceParameterType">
64                <xs:annotation>
65                        <xs:documentation>Computational resource related parameter</xs:documentation>
66                </xs:annotation>
67                <xs:complexContent>
68                        <xs:extension base="parameterType">
69                                <xs:attribute name="name" type="computingParameterName" use="required"/>
70                        </xs:extension>
71                </xs:complexContent>
72        </xs:complexType>
73        <xs:complexType name="otherParameterType">
74                <xs:annotation>
75                        <xs:documentation>Dynamically defined parameter of resource</xs:documentation>
76                </xs:annotation>
77                <xs:complexContent>
78                        <xs:extension base="parameterType">
79                                <xs:attribute name="name" type="xs:string" use="required"/>
80                                <xs:attribute name="endpoint" type="xs:string" use="optional"/>
81                        </xs:extension>
82                </xs:complexContent>
83        </xs:complexType>
84        <xs:complexType name="parameterType">
85                <xs:annotation>
86                        <xs:documentation>Description of parameter of resource</xs:documentation>
87                </xs:annotation>
88                <xs:sequence>
89                        <xs:element name="paramValue" type="xs:string" maxOccurs="unbounded"/>
90                        <xs:element name="property" minOccurs="0" maxOccurs="unbounded">
91                                <xs:complexType>
92                                        <xs:sequence>
93                                                <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
94                                        </xs:sequence>
95                                        <xs:attribute name="name" type="xs:string" use="required"/>
96                                        <xs:attribute name="exclude" type="xs:boolean" use="optional" default="false"/>
97                                </xs:complexType>
98                        </xs:element>
99                </xs:sequence>
100        </xs:complexType>
101        <xs:complexType name="timeSlotType"/>
102        <!-- ========================  Scheduling Plan =================== -->
103        <xs:element name="schedulingPlan">
104                <xs:annotation>
105                        <xs:documentation>Description of Scheduling Plan</xs:documentation>
106                </xs:annotation>
107                <xs:complexType>
108                        <xs:sequence>
109                                <xs:element name="task" maxOccurs="unbounded">
110                                        <xs:complexType>
111                                                <xs:sequence>
112                                                        <xs:element name="scheduledTime">
113                                                                <xs:complexType>
114                                                                        <xs:complexContent>
115                                                                                <xs:extension base="timeSlotType">
116                                                                                        <xs:sequence>
117                                                                                                <xs:element name="start" type="xs:dateTime"/>
118                                                                                                <xs:element name="end" type="xs:dateTime" minOccurs="0"/>
119                                                                                        </xs:sequence>
120                                                                                </xs:extension>
121                                                                        </xs:complexContent>
122                                                                </xs:complexType>
123                                                        </xs:element>
124                                                        <xs:element name="allocation" maxOccurs="unbounded">
125                                                                <xs:complexType>
126                                                                        <xs:sequence>
127                                                                                <xs:element name="host">
128                                                                                        <xs:annotation>
129                                                                                                <xs:documentation>Submission host</xs:documentation>
130                                                                                        </xs:annotation>
131                                                                                        <xs:complexType>
132                                                                                                <xs:sequence>
133                                                                                                        <xs:element name="machineParameters" type="computingResourceType" minOccurs="0"/>
134                                                                                                </xs:sequence>
135                                                                                                <xs:attribute name="hostname" type="xs:string" use="required"/>
136                                                                                                <xs:attribute name="queue" type="xs:string" use="optional"/>
137                                                                                        </xs:complexType>
138                                                                                </xs:element>
139                                                                                <xs:element name="providerInfo" minOccurs="0">
140                                                                                        <xs:complexType>
141                                                                                                <xs:sequence>
142                                                                                                        <xs:element name="type" type="interfaceType"/>
143                                                                                                        <xs:element name="location" type="xs:string"/>
144                                                                                                        <xs:element name="proxyName" type="xs:string" minOccurs="0"/>
145                                                                                                </xs:sequence>
146                                                                                        </xs:complexType>
147                                                                                </xs:element>
148                                                                                <xs:element name="reservationId" type="xs:string" minOccurs="0">
149                                                                                        <xs:annotation>
150                                                                                                <xs:documentation>Reservation identifier in local system </xs:documentation>
151                                                                                        </xs:annotation>
152                                                                                </xs:element>
153                                                                                <xs:element name="additionalProperties" minOccurs="0">
154                                                                                        <xs:complexType>
155                                                                                                <xs:sequence>
156                                                                                                        <xs:element name="property" maxOccurs="unbounded">
157                                                                                                                <xs:complexType>
158                                                                                                                        <xs:simpleContent>
159                                                                                                                                <xs:extension base="xs:string">
160                                                                                                                                        <xs:attribute name="name" type="xs:string" use="required"/>
161                                                                                                                                </xs:extension>
162                                                                                                                        </xs:simpleContent>
163                                                                                                                </xs:complexType>
164                                                                                                        </xs:element>
165                                                                                                </xs:sequence>
166                                                                                        </xs:complexType>
167                                                                                </xs:element>
168                                                                        </xs:sequence>
169                                                                        <xs:attribute name="processGroupId" type="xs:string" use="optional"/>
170                                                                        <xs:attribute name="processQuantity" type="xs:int" use="required"/>
171                                                                </xs:complexType>
172                                                        </xs:element>
173                                                </xs:sequence>
174                                                <xs:attribute name="jobId" type="xs:string" use="required"/>
175                                                <xs:attribute name="taskId" type="xs:string" use="required"/>
176                                                <xs:attribute name="status" type="allocationStatus" use="required"/>
177                                                <xs:attribute name="topology" type="xs:int" use="optional" default="0"/>
178                                                <xs:attribute name="statusDescription" type="xs:string" use="optional"/>
179                                        </xs:complexType>
180                                </xs:element>
181                        </xs:sequence>
182                </xs:complexType>
183        </xs:element>
184</xs:schema>
Note: See TracBrowser for help on using the repository browser.