source: DCWoRMS/trunk/simulator/schemas/resources/DCWormsResSchema.xsd @ 810

Revision 810, 19.6 KB checked in by wojtekp, 12 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3        elementFormDefault="qualified" attributeFormDefault="unqualified">
4               
5                <xs:complexType name="pluginType">
6                <xs:annotation>
7                        <xs:documentation>Base plugin type.
8                        Plugins allow configuring and adapting the simulation framework to his/her experiment
9                        starting from modeling job performance, through method of calculating energy estimation up to implementation of scheduling policies
10                        Name of the plugin specifies the JAVA class that implements dedicated interface.</xs:documentation>
11                </xs:annotation>
12                <xs:sequence>
13                        <xs:element name="name" type="xs:string"></xs:element>
14                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
15                </xs:sequence>
16        </xs:complexType>
17       
18        <xs:complexType name="timeEstimationPluginType">
19                <xs:annotation>
20                        <xs:documentation>TimeEstimationPlugin derived from pluginType.
21                        Time estimation plugin provides means to include specific application performance models during simulations
22                        and allows introducing specific ways of calculating task execution time.</xs:documentation>
23                </xs:annotation>
24                <xs:complexContent>
25                        <xs:restriction base="pluginType">
26                                <xs:sequence>
27                                        <xs:element name="name" type="xs:string" default="ExecTimeEstimationPlugin"></xs:element>
28                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
29                                </xs:sequence>
30                        </xs:restriction>
31                </xs:complexContent>   
32        </xs:complexType>
33       
34        <xs:complexType name="resourceType">
35                <xs:annotation>
36                        <xs:documentation>Base resource type.
37                        It allows to define simulation entities like computing resources, devices, schedulers.
38                        Attributes: class - determines the component of the architecture i.e. rack, processor, memory, storage etc.
39                        type - type of resource; for instance, continuous for memory, bandwidth, etc. and discrete for processors
40                        name - unique resource identifier, if not specified it will be generated by the simulator in the following manner: class + "_" + subsequent_natural_number
41                        </xs:documentation>
42                </xs:annotation>
43                <xs:sequence>
44                        <xs:element name="description" type="xs:string" minOccurs="0"></xs:element>
45                </xs:sequence>
46                <xs:attribute name="class" type="xs:string" use="required"/>
47                <xs:attribute name="type" type="xs:string" use="optional"/>
48                <xs:attribute name="name" type="xs:ID" use="optional"/>
49        </xs:complexType>
50
51        <xs:complexType name="computingResourceType">
52                <xs:annotation>
53                        <xs:documentation> ComputingResource derived from resourceType
54                        Computing resource specifies resources that are able to perform computing operations.
55                        From the simulator point of view computing resource is everything that is/contains processing element.
56                        Hence, all entities like core, processor, computing node, as well as those which aggregate them (like shelf, rack, container etc.)
57                        should be define using this type. This way of description provides flexibility in defining system architecture
58                        and allows to build hierarchy of resources that corresponds to real world.
59                        Attributes: groupId - allows to group resources of the given class in the logical structures that can be used during binding them with schedulers
60                        count - defines number of resources of the given class</xs:documentation>
61                </xs:annotation>
62                <xs:complexContent>
63                        <xs:extension base="resourceType">
64                                <xs:sequence>
65                                        <xs:choice>
66                                                <xs:sequence>
67                                                        <xs:element name="resourceUnit" type="resourceUnitType" minOccurs="0" maxOccurs="unbounded"></xs:element>
68                                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
69                                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element>
70                                                        <xs:element name="location" type="locationType" minOccurs="0" maxOccurs="1"></xs:element>
71                                                        <xs:element name="computingResource" type="computingResourceType" minOccurs="0" maxOccurs="unbounded"></xs:element>
72                                                </xs:sequence>
73                                                <xs:sequence>
74                                                        <xs:element name="templateId" type="xs:IDREF"/>
75                                                        <xs:element name="location" type="locationType" minOccurs="0" maxOccurs="1"></xs:element>
76                                                </xs:sequence>
77                                        </xs:choice>
78                                </xs:sequence>
79                                <xs:attribute name="groupId" type="xs:integer" use="optional"/>                 
80                                <xs:attribute name="count" type="xs:integer" use="optional"/>
81                        </xs:extension>
82                </xs:complexContent>
83        </xs:complexType>
84       
85        <xs:complexType name="computingResourceTemplateType">
86                <xs:annotation>
87                        <xs:documentation>ComputingResourceTemplate derived from resourceType.
88                        It allows user to define model of computing resource component that may constitute other computing resources
89                        Computing resource templates can be then referred in computing resource definition</xs:documentation>
90                </xs:annotation>
91                <xs:complexContent>
92                        <xs:extension base="resourceType">
93                                <xs:sequence>
94                                        <xs:element name="resourceUnit" type="resourceUnitType" minOccurs="0" maxOccurs="unbounded"></xs:element>
95                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
96                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element>
97                                        <xs:element name="computingResource" type="computingResourceType" minOccurs="0" maxOccurs="unbounded"></xs:element>
98                                </xs:sequence>
99                        </xs:extension>
100                </xs:complexContent>
101        </xs:complexType>
102
103        <xs:complexType name="schedulerType">
104                <xs:annotation>
105                        <xs:documentation>Scheduler derived from resourceType.
106                        It allows to model scheduling entity responsible for managing resources.</xs:documentation>
107                </xs:annotation>
108                <xs:complexContent>
109                        <xs:extension base="resourceType">
110                                <xs:sequence>
111                                        <xs:element name="schedulingPlugin" type="schedulingPluginType" minOccurs="0" maxOccurs="1"></xs:element>
112                                        <xs:element name="queues" type="queueListType" minOccurs="0"></xs:element>
113                                        <xs:choice minOccurs="1" maxOccurs="unbounded">
114                                                <xs:element name="scheduler" type="schedulerType"></xs:element>
115                                                <xs:element name="managedComputingResources" type="managedComputingResourcesType"></xs:element>
116                                        </xs:choice>
117                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
118                                </xs:sequence>
119                        </xs:extension>
120                </xs:complexContent>
121        </xs:complexType>
122       
123        <xs:complexType name="schedulingPluginType">
124                <xs:annotation>
125                        <xs:documentation>SchedulingPlugin derived from pluginType.
126                        Scheduling plugins allow plugging scheduling algorithms into the simulated environment.
127                        Elements: frequency - is used to enable scheduling periodically; it specifies the time interval (in seconds by default) between subsequent scheduling invocations
128                        </xs:documentation>
129                </xs:annotation>
130                <xs:complexContent>
131                        <xs:extension base="pluginType">
132                                <xs:sequence>
133                                        <xs:element name="frequency" type="doubleValueWithUnitType" minOccurs="0" maxOccurs="1"></xs:element>
134                                </xs:sequence>
135                        </xs:extension>
136                </xs:complexContent>
137        </xs:complexType>
138       
139        <xs:complexType name="resourceUnitType">
140                <xs:annotation>
141                        <xs:documentation>Resource unit is used to define non-computing resource like memory, storage etc.
142                        Elements: amount - represents concrete amount (values) of specific resource unit</xs:documentation>
143                </xs:annotation>
144                <xs:complexContent>
145                        <xs:extension base="resourceType">
146                                <xs:sequence>
147                                        <xs:element name="amount" type="doubleValueWithUnitType"/>
148                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
149                                </xs:sequence>
150                        </xs:extension>
151                </xs:complexContent>
152        </xs:complexType>
153
154        <xs:complexType name="doubleValueWithUnitType">
155                <xs:annotation>
156                        <xs:documentation>DoubleValueWitUnit derived from double. Allows providing units in which the given value is expressed
157                        Attributes: unit - indicates appropriate units, for instance: seconds, watts, bytes etc. </xs:documentation>
158                </xs:annotation>
159                <xs:simpleContent>
160                        <xs:extension base="xs:double">
161                                <xs:attribute name="unit" type="xs:string" use="optional"/>
162                        </xs:extension>
163                </xs:simpleContent>     
164        </xs:complexType>
165       
166        <xs:complexType name="stringValueWithUnitType">
167                <xs:annotation>
168                        <xs:documentation>StringValueWitUnit derived from string. Allows providing units in which the given value is expressed
169                        Attributes: unit - indicates appropriate units. </xs:documentation>
170                </xs:annotation>
171                <xs:simpleContent>
172                        <xs:extension base="xs:string">
173                                <xs:attribute name="unit" type="xs:string" use="optional"/>
174                        </xs:extension>
175                </xs:simpleContent>     
176        </xs:complexType>
177       
178        <xs:complexType name="queueListType">
179                <xs:annotation>
180                        <xs:documentation>Profile acts as a container for resource profiles: power and air throughput</xs:documentation>
181                </xs:annotation>
182                <xs:sequence>
183                        <xs:element name="queue" type="queueType" minOccurs="1" maxOccurs="unbounded"></xs:element>
184                </xs:sequence>
185        </xs:complexType>
186       
187        <xs:complexType name="queueType">
188                <xs:annotation>
189                        <xs:documentation>Profile acts as a container for resource profiles: power and air throughput</xs:documentation>
190                </xs:annotation>
191                <xs:sequence>
192                        <xs:element name="name" type="xs:string"></xs:element>
193                        <xs:element name="priority" type="xs:int" minOccurs="0"></xs:element>
194                        <xs:element name="reservation" type="xs:boolean" minOccurs="0" ></xs:element>
195                </xs:sequence>
196        </xs:complexType>
197       
198        <xs:complexType name="managedComputingResourcesType">
199                <xs:annotation>
200                        <xs:documentation>ManagedComputingResource type specifies computing resources controlled by scheduler.
201                        They can be provided either by listing their names or listing the group ids which they belong to.
202                        Attributes: include - specifies whether the given resource layer (listed resources) can be allocated by the scheduler
203                        In other words, false (default) value indicates that scheduler maneges only the subcomponents of the listed resources;
204                        true value determines that also listed resources will be under the control of the defined scheduler</xs:documentation>
205                </xs:annotation>
206                <xs:choice>
207                        <xs:element name="resourceName" type="xs:string" minOccurs="1" maxOccurs="unbounded"></xs:element>
208                        <xs:element name="resourceGroupId" type="xs:string" minOccurs="1" maxOccurs="unbounded"></xs:element>
209                </xs:choice>
210                <xs:attribute name="include" type="xs:boolean" default="false"/>
211        </xs:complexType>
212
213        <xs:complexType name="energyEstimationPluginType">
214                <xs:annotation>
215                        <xs:documentation>EnergyEstimationPlugin derived from pluginType.
216                        Energy estimation plugin is used to estimate energy consumption of the given computing resource.
217                        It has access to the detailed resource description including power and air throughput profiles
218                        and application characteristics running on a given resource</xs:documentation>
219                </xs:annotation>
220                <xs:complexContent>
221                        <xs:extension base="pluginType"/>
222                </xs:complexContent>
223        </xs:complexType>
224       
225        <xs:complexType name="profileType">
226                <xs:annotation>
227                        <xs:documentation>Profile acts as a container for resource profiles: power and air throughput</xs:documentation>
228                </xs:annotation>
229                <xs:sequence>
230                        <xs:element name="powerProfile" type="powerProfileType" minOccurs="0"></xs:element>
231                        <xs:element name="airThroughputProfile" type="airThroughputProfileType" minOccurs="0"></xs:element>
232                        <xs:element name="thermalProfile" type="thermalProfileType" minOccurs="0"></xs:element>
233                </xs:sequence>
234        </xs:complexType>
235       
236        <xs:complexType name="powerProfileType">
237                <xs:annotation>
238                        <xs:documentation>Power profile provides energyEstimation plugin, powerStates and other power-related parameters definition</xs:documentation>
239                </xs:annotation>
240                <xs:sequence>
241                        <xs:element name="energyEstimationPlugin" type="energyEstimationPluginType" minOccurs="0"></xs:element>
242                        <xs:element name="powerStates" type="powerStatesType" minOccurs="0"></xs:element>
243                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
244                </xs:sequence>
245        </xs:complexType>
246       
247        <xs:complexType name="powerStatesType">
248                <xs:annotation>
249                        <xs:documentation>PowerState type act as a container for power states. It contains energy-related characteristics of the computing resource</xs:documentation>
250                </xs:annotation>
251                <xs:sequence>
252                        <xs:element name="powerState" type="powerStateType" minOccurs="1" maxOccurs="unbounded"></xs:element>
253                </xs:sequence>
254        </xs:complexType>
255       
256        <xs:complexType name="powerStateType">
257                <xs:annotation>
258                        <xs:documentation>Power state defines available (for computing resource) power states.
259                        Elements: name - denotes name of the given power state
260                        powerUsage - defines power consumption in the given state
261                        transition - specifies possible power states transitions from the given power state</xs:documentation>
262                </xs:annotation>
263                <xs:sequence>
264                        <xs:element name="name" type="xs:string"></xs:element>
265                        <xs:element name="powerUsage" type="doubleValueWithUnitType" minOccurs="0" maxOccurs="1"></xs:element>
266                        <xs:element name="transition" type="powerStatesTransitionType" minOccurs="0" maxOccurs="unbounded"></xs:element>
267                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
268                </xs:sequence>
269        </xs:complexType>
270       
271        <xs:complexType name="powerStatesTransitionType">
272                <xs:annotation>
273                        <xs:documentation>Description of power states transtition
274                        Elements: to - denotes name of target power state
275                        powerUsage - defines transition cost in the form of power consumption
276                        time - specifies transition time</xs:documentation>
277                </xs:annotation>
278                <xs:sequence>
279                        <xs:element name="to" type="xs:string"></xs:element>
280                        <xs:element name="powerUsage" type="doubleValueWithUnitType"></xs:element>
281                        <xs:element name="time" type="doubleValueWithUnitType"></xs:element>
282                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
283                </xs:sequence>
284        </xs:complexType>
285       
286        <xs:complexType name="airThroughputEstimationPluginType">
287                <xs:annotation>
288                        <xs:documentation>AirThroughputEstimationPlugin derived from pluginType.
289                        Air Throughput plugin is used to estimate air flow value based on the defined air throughput states</xs:documentation>
290                </xs:annotation>
291                <xs:complexContent>
292                        <xs:extension base="pluginType"/>
293                </xs:complexContent>
294        </xs:complexType>
295       
296        <xs:complexType name="airThroughputProfileType">
297                <xs:annotation>
298                        <xs:documentation>AirThrouhputProfile provides airThroughputEstimation plugin, airThroughputStates and other airThroughput-related parameters definition</xs:documentation>
299                </xs:annotation>
300                <xs:sequence>
301                        <xs:element name="airThroughputEstimationPlugin" type="airThroughputEstimationPluginType" minOccurs="0"></xs:element>
302                        <xs:element name="airThroughputStates" type="airThroughputStatesType" minOccurs="0"></xs:element>
303                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
304                </xs:sequence>
305        </xs:complexType>
306       
307        <xs:complexType name="airThroughputStatesType">
308                <xs:annotation>
309                        <xs:documentation>AirThroughputStates type act as a container for air throughput states.</xs:documentation>
310                </xs:annotation>
311                <xs:sequence>
312                        <xs:element name="airThroughputState" type="airThroughputStateType" minOccurs="1" maxOccurs="unbounded"></xs:element>
313                </xs:sequence>
314                <xs:attribute name="name" type="xs:string" use="optional"/>
315        </xs:complexType>
316       
317        <xs:complexType name="airThroughputStateType">
318                <xs:annotation>
319                        <xs:documentation>Air througput state provides means to define air flow level.
320                        It can represent, for instance, a fan working state</xs:documentation>
321                </xs:annotation>
322                <xs:sequence>
323                        <xs:element name="name" type="xs:string"></xs:element>
324                        <xs:element name="value" type="doubleValueWithUnitType"></xs:element>
325                        <xs:element name="powerUsage" type="doubleValueWithUnitType" minOccurs="0"></xs:element>
326                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
327                </xs:sequence>
328        </xs:complexType>
329       
330        <xs:complexType name="temperatureEstimationPluginType">
331                <xs:annotation>
332                        <xs:documentation>TemperatureEstimationPlugin derived from pluginType.
333                        Temperature plugin is used to estimate temperature based on the defined resource characteristics</xs:documentation>
334                </xs:annotation>
335                <xs:complexContent>
336                        <xs:extension base="pluginType"/>
337                </xs:complexContent>
338        </xs:complexType>
339       
340        <xs:complexType name="thermalProfileType">
341                <xs:annotation>
342                        <xs:documentation>ThermalProfile provides temperatureEstimation plugin,  and other thermal-related parameters definition</xs:documentation>
343                </xs:annotation>
344                <xs:sequence>
345                        <xs:element name="temperatureEstimationPlugin" type="temperatureEstimationPluginType" minOccurs="0"></xs:element>
346                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
347                </xs:sequence>
348        </xs:complexType>
349       
350        <xs:complexType name="locationType">
351                <xs:annotation>
352                        <xs:documentation>The location type describes placement of the computing resource using 3 coordinates</xs:documentation>
353                </xs:annotation>
354                <xs:sequence>
355                        <xs:element name="horizontal" type="xs:long"/>
356                        <xs:element name="vertical" type="xs:long"/>
357                        <xs:element name="depth" type="xs:long"/>
358                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
359                </xs:sequence>
360        </xs:complexType>
361       
362        <xs:complexType name="parameterType">
363                <xs:annotation>
364                        <xs:documentation>Parameter of resource. Allows defining additional resource parameters.
365                        Contains a list of parameter values or a list of key-value pairs.
366                        Attribute : name - denotes parameter name</xs:documentation>
367                </xs:annotation>
368                <xs:choice>
369                        <xs:element name="value" type="stringValueWithUnitType" minOccurs="0" maxOccurs="unbounded"/>
370                        <xs:sequence>
371                                <xs:element name="property" minOccurs="0" maxOccurs="unbounded">
372                                        <xs:complexType>
373                                                <xs:annotation>
374                                                        <xs:documentation>Property of parameter. Allows defining additional properties of parameter as a list of values.
375                                                        Attribute : name - denotes property name</xs:documentation>
376                                                </xs:annotation>
377                                                <xs:sequence>
378                                                        <xs:element name="value" type="stringValueWithUnitType" minOccurs="0" maxOccurs="unbounded"/>
379                                                </xs:sequence>
380                                                <xs:attribute name="name" type="xs:string" use="required"/>
381                                        </xs:complexType>
382                                </xs:element>
383                        </xs:sequence>
384                </xs:choice>
385                <xs:attribute name="name" type="xs:string" use="required"/>
386        </xs:complexType>
387       
388        <xs:element name="environment">
389                <xs:annotation>
390                        <xs:documentation>Schema describing simulation environment</xs:documentation>
391                </xs:annotation>
392                <xs:complexType>
393                        <xs:sequence>
394                                <xs:element name="description" type="xs:string" minOccurs="0" ></xs:element>
395                                <xs:element name="timeEstimationPlugin" type="timeEstimationPluginType" minOccurs="0" maxOccurs="1"></xs:element>
396                                <xs:element name="resources">
397                                        <xs:annotation>
398                                                <xs:documentation>Description of resources</xs:documentation>
399                                        </xs:annotation>
400                                        <xs:complexType>
401                                                <xs:sequence>
402                                                        <xs:element name="description" type="xs:string" minOccurs="0" ></xs:element>
403                                                        <xs:element name="computingResource" type="computingResourceType" maxOccurs="unbounded"/>
404                                                        <xs:element name="scheduler" type="schedulerType" maxOccurs="unbounded"/>
405                                                </xs:sequence>
406                                        </xs:complexType>
407                                </xs:element>
408                                <xs:element name="templates" minOccurs="0">
409                                        <xs:annotation>
410                                                <xs:documentation>Definition of computing resource templates that can/will be used in resource description section </xs:documentation>
411                                        </xs:annotation>
412                                        <xs:complexType>
413                                                <xs:sequence>
414                                                        <xs:element name="description" type="xs:string" minOccurs="0" ></xs:element>
415                                                        <xs:element name="computingResourceTemplate" type="computingResourceTemplateType" maxOccurs="unbounded"/>
416                                                </xs:sequence>
417                                        </xs:complexType>
418                                </xs:element>
419                        </xs:sequence>
420                </xs:complexType>
421        </xs:element>
422
423</xs:schema>
Note: See TracBrowser for help on using the repository browser.