source: DCWoRMS/trunk/src/test/DEBBTranslator/xml/DCWormsResSchema.xsd @ 611

Revision 611, 18.7 KB checked in by gosiaw, 12 years ago (diff)

Packages moved

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:sequence>
233        </xs:complexType>
234       
235        <xs:complexType name="powerProfileType">
236                <xs:annotation>
237                        <xs:documentation>Power profile provides energyEstimation plugin, powerStates and other power-related parameters definition</xs:documentation>
238                </xs:annotation>
239                <xs:sequence>
240                        <xs:element name="energyEstimationPlugin" type="energyEstimationPluginType" minOccurs="0"></xs:element>
241                        <xs:element name="powerStates" type="powerStatesType" minOccurs="0"></xs:element>
242                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
243                </xs:sequence>
244        </xs:complexType>
245       
246        <xs:complexType name="powerStatesType">
247                <xs:annotation>
248                        <xs:documentation>PowerState type act as a container for power states. It contains energy-related characteristics of the computing resource</xs:documentation>
249                </xs:annotation>
250                <xs:sequence>
251                        <xs:element name="powerState" type="powerStateType" minOccurs="1" maxOccurs="unbounded"></xs:element>
252                </xs:sequence>
253        </xs:complexType>
254       
255        <xs:complexType name="powerStateType">
256                <xs:annotation>
257                        <xs:documentation>Power state defines available (for computing resource) power states.
258                        Elements: name - denotes name of the given power state
259                        powerUsage - defines power consumption in the given state
260                        transition - specifies possible power states transitions from the given power state</xs:documentation>
261                </xs:annotation>
262                <xs:sequence>
263                        <xs:element name="name" type="xs:string"></xs:element>
264                        <xs:element name="powerUsage" type="doubleValueWithUnitType" minOccurs="0" maxOccurs="1"></xs:element>
265                        <xs:element name="transition" type="powerStatesTransitionType" minOccurs="0" maxOccurs="unbounded"></xs:element>
266                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
267                </xs:sequence>
268        </xs:complexType>
269       
270        <xs:complexType name="powerStatesTransitionType">
271                <xs:annotation>
272                        <xs:documentation>Description of power states transtition
273                        Elements: to - denotes name of target power state
274                        powerUsage - defines transition cost in the form of power consumption
275                        time - specifies transition time</xs:documentation>
276                </xs:annotation>
277                <xs:sequence>
278                        <xs:element name="to" type="xs:string"></xs:element>
279                        <xs:element name="powerUsage" type="doubleValueWithUnitType"></xs:element>
280                        <xs:element name="time" type="doubleValueWithUnitType"></xs:element>
281                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
282                </xs:sequence>
283        </xs:complexType>
284       
285        <xs:complexType name="airThroughputEstimationPluginType">
286                <xs:annotation>
287                        <xs:documentation>AirThroughputEstimationPlugin derived from pluginType.
288                        Air Throughput plugin is used to estimate air flow value based on the defined air throughput states</xs:documentation>
289                </xs:annotation>
290                <xs:complexContent>
291                        <xs:extension base="pluginType"/>
292                </xs:complexContent>
293        </xs:complexType>
294       
295        <xs:complexType name="airThroughputProfileType">
296                <xs:annotation>
297                        <xs:documentation>AirThrouhputProfile provides airThroughputEstimation plugin, airThroughputStates and other airThroughput-related parameters definition</xs:documentation>
298                </xs:annotation>
299                <xs:sequence>
300                        <xs:element name="airThroughputEstimationPlugin" type="airThroughputEstimationPluginType" minOccurs="0"></xs:element>
301                        <xs:element name="airThroughputStates" type="airThroughputStatesType" minOccurs="0" maxOccurs="unbounded"></xs:element>
302                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
303                </xs:sequence>
304        </xs:complexType>
305       
306        <xs:complexType name="airThroughputStatesType">
307                <xs:annotation>
308                        <xs:documentation>AirThroughputStates type act as a container for air throughput states.</xs:documentation>
309                </xs:annotation>
310                <xs:sequence>
311                        <xs:element name="airThroughputState" type="airThroughputStateType" minOccurs="1" maxOccurs="unbounded"></xs:element>
312                </xs:sequence>
313                <xs:attribute name="name" type="xs:string" use="optional"/>
314        </xs:complexType>
315       
316        <xs:complexType name="airThroughputStateType">
317                <xs:annotation>
318                        <xs:documentation>Air througput state provides means to define air flow level.
319                        It can represent, for instance, a fan working state</xs:documentation>
320                </xs:annotation>
321                <xs:sequence>
322                        <xs:element name="name" type="xs:string"></xs:element>
323                        <xs:element name="value" type="doubleValueWithUnitType"></xs:element>
324                        <xs:element name="powerUsage" type="doubleValueWithUnitType" minOccurs="0"></xs:element>
325                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
326                </xs:sequence>
327        </xs:complexType>
328       
329        <xs:complexType name="locationType">
330                <xs:annotation>
331                        <xs:documentation>The location type describes placement of the computing resource using 3 coordinates</xs:documentation>
332                </xs:annotation>
333                <xs:sequence>
334                        <xs:element name="horizontal" type="xs:long"/>
335                        <xs:element name="vertical" type="xs:long"/>
336                        <xs:element name="depth" type="xs:long"/>
337                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element>
338                </xs:sequence>
339        </xs:complexType>
340       
341        <xs:complexType name="parameterType">
342                <xs:annotation>
343                        <xs:documentation>Parameter of resource. Allows defining additional resource parameters.
344                        Contains a list of parameter values or a list of key-value pairs.
345                        Attribute : name - denotes parameter name</xs:documentation>
346                </xs:annotation>
347                <xs:choice>
348                        <xs:element name="value" type="stringValueWithUnitType" minOccurs="0" maxOccurs="unbounded"/>
349                        <xs:sequence>
350                                <xs:element name="property" minOccurs="0" maxOccurs="unbounded">
351                                        <xs:complexType>
352                                                <xs:annotation>
353                                                        <xs:documentation>Property of parameter. Allows defining additional properties of parameter as a list of values.
354                                                        Attribute : name - denotes property name</xs:documentation>
355                                                </xs:annotation>
356                                                <xs:sequence>
357                                                        <xs:element name="value" type="stringValueWithUnitType" minOccurs="0" maxOccurs="unbounded"/>
358                                                </xs:sequence>
359                                                <xs:attribute name="name" type="xs:string" use="required"/>
360                                        </xs:complexType>
361                                </xs:element>
362                        </xs:sequence>
363                </xs:choice>
364                <xs:attribute name="name" type="xs:string" use="required"/>
365        </xs:complexType>
366       
367        <xs:element name="environment">
368                <xs:annotation>
369                        <xs:documentation>Schema describing simulation environment</xs:documentation>
370                </xs:annotation>
371                <xs:complexType>
372                        <xs:sequence>
373                                <xs:element name="description" type="xs:string" minOccurs="0" ></xs:element>
374                                <xs:element name="timeEstimationPlugin" type="timeEstimationPluginType" minOccurs="0" maxOccurs="1"></xs:element>
375                                <xs:element name="resources">
376                                        <xs:annotation>
377                                                <xs:documentation>Description of resources</xs:documentation>
378                                        </xs:annotation>
379                                        <xs:complexType>
380                                                <xs:sequence>
381                                                        <xs:element name="description" type="xs:string" minOccurs="0" ></xs:element>
382                                                        <xs:element name="computingResource" type="computingResourceType" maxOccurs="unbounded"/>
383                                                        <xs:element name="scheduler" type="schedulerType" maxOccurs="unbounded"/>
384                                                </xs:sequence>
385                                        </xs:complexType>
386                                </xs:element>
387                                <xs:element name="templates" minOccurs="0">
388                                        <xs:annotation>
389                                                <xs:documentation>Definition of computing resource templates that can/will be used in resource description section </xs:documentation>
390                                        </xs:annotation>
391                                        <xs:complexType>
392                                                <xs:sequence>
393                                                        <xs:element name="description" type="xs:string" minOccurs="0" ></xs:element>
394                                                        <xs:element name="computingResourceTemplate" type="computingResourceTemplateType" maxOccurs="unbounded"/>
395                                                </xs:sequence>
396                                        </xs:complexType>
397                                </xs:element>
398                        </xs:sequence>
399                </xs:complexType>
400        </xs:element>
401
402</xs:schema>
Note: See TracBrowser for help on using the repository browser.