Changeset 939 for DCWoRMS/branches/coolemall
- Timestamp:
- 03/11/13 10:14:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/DEBBTranslator/xml/DEBBComponents.xsd
r798 r939 2 2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 3 3 xmlns:xsd_1="http://www.coolemall.eu/DEBBComponent" targetNamespace="http://www.coolemall.eu/DEBBComponent"> 4 <xsd:complexType name="BaseBoardType"> 5 <xsd:complexContent> 6 <xsd:extension base="xsd_1:DEBBPhysicalElementType"></xsd:extension> 7 </xsd:complexContent> 8 </xsd:complexType> 9 10 <xsd:complexType name="ComputeBox1Type"> 11 <xsd:complexContent> 12 <xsd:extension base="xsd_1:DEBBComponentType"> 13 <xsd:sequence> 14 <xsd:element name="NodeGroup" maxOccurs="unbounded" 15 type="xsd_1:NodeGroupType" minOccurs="0" /> 16 </xsd:sequence> 17 </xsd:extension> 18 </xsd:complexContent> 19 </xsd:complexType> 20 21 <xsd:complexType name="ComputeBox2Type"> 22 <xsd:complexContent> 23 <xsd:extension base="xsd_1:DEBBComponentType"> 24 <xsd:sequence> 25 <xsd:element name="ComputeBox1" maxOccurs="1" 26 type="xsd_1:ComputeBox1Type" minOccurs="0" /> 27 </xsd:sequence> 28 </xsd:extension> 29 </xsd:complexContent> 4 5 <xsd:complexType name="ConnectorType"> 6 <xsd:sequence> 7 <xsd:element name="Number" type="xsd:int" minOccurs="0" 8 maxOccurs="1"> 9 <xsd:annotation> 10 <xsd:documentation> 11 The number is only necessary for describing 12 slots but nut the "uplink" connector 13 </xsd:documentation> 14 </xsd:annotation> 15 </xsd:element> 16 <xsd:element name="ConnectorType" type="xsd:string" 17 minOccurs="1" maxOccurs="1"> 18 </xsd:element> 19 <xsd:element name="Label" type="xsd:string" minOccurs="1" 20 maxOccurs="1"> 21 </xsd:element> 22 <xsd:element name="Transform" type="xsd:string" minOccurs="0" maxOccurs="1"> 23 <xsd:annotation> 24 <xsd:documentation>The transform element contains relative position and rotations. It might be the same transform syntax than in PLMXML but depend on our needs.</xsd:documentation> 25 </xsd:annotation></xsd:element> 26 <xsd:element name="AvailSpace" type="xsd:string" 27 minOccurs="0" maxOccurs="1"> 28 <xsd:annotation> 29 <xsd:documentation> 30 Size as space separated string with max XYZ sizes 31 </xsd:documentation> 32 </xsd:annotation> 33 </xsd:element> 34 </xsd:sequence> 30 35 </xsd:complexType> 31 36 32 37 <xsd:complexType name="CoolingDeviceType"> 33 38 <xsd:complexContent> 34 <xsd:extension base="xsd_1:DEBB PhysicalElementType">39 <xsd:extension base="xsd_1:DEBBComplexType"> 35 40 <xsd:sequence> 36 41 <xsd:element name="Class"> … … 54 59 <xsd:element minOccurs="0" name="MaxWaterThroughput" 55 60 type="xsd:decimal" /> 56 <xsd:element name="ThroughputProfile" type="xsd_1:FlowProfileType" 61 <xsd:element name="AirThroughputProfile" type="xsd_1:FlowProfileType" 62 maxOccurs="1" minOccurs="0"></xsd:element> 63 <xsd:element name="WaterThroughputProfile" type="xsd_1:FlowProfileType" 57 64 maxOccurs="1" minOccurs="0"></xsd:element> 58 65 </xsd:sequence> … … 65 72 <xsd:element name="State" type="xsd:int" /> 66 73 <xsd:element name="PowerUsage" type="xsd:double" /> 67 <xsd:element name="Transition" type="xsd_1:TransitionType" minOccurs="0" maxOccurs="unbounded"/>68 74 </xsd:sequence> 69 75 </xsd:complexType> 70 71 <xsd:complexType name="DEBBComponents"> 72 <xsd:sequence> 73 <xsd:element name="Name" type="xsd:string"></xsd:element> 74 <xsd:element name="Description" type="xsd:string"></xsd:element> 75 <xsd:element name="ComputeBox2" type="xsd_1:ComputeBox2Type" 76 maxOccurs="unbounded" minOccurs="0"> 77 </xsd:element> 78 <xsd:element name="ComputeBox1" type="xsd_1:ComputeBox1Type" 79 maxOccurs="unbounded" minOccurs="0"> 80 </xsd:element> 81 <xsd:element name="NodeGroup" type="xsd_1:NodeGroupType" 82 maxOccurs="unbounded" minOccurs="0"> 83 </xsd:element> 84 <xsd:element name="Node" type="xsd_1:NodeType" 85 maxOccurs="unbounded" minOccurs="0"> 86 </xsd:element> 87 <xsd:element name="SecondaryComponent" 88 type="xsd_1:SecondaryComponentType" maxOccurs="unbounded" 89 minOccurs="0"> 90 </xsd:element> 91 <xsd:element name="CoolingDevice" type="xsd_1:CoolingDeviceType" maxOccurs="unbounded" minOccurs="0"></xsd:element> 92 <xsd:element name="PowerSupply" type="xsd_1:PowerSupplyType" maxOccurs="unbounded" minOccurs="0"></xsd:element> 93 <xsd:element name="Sensor" type="xsd_1:SensorType" maxOccurs="unbounded" minOccurs="0"></xsd:element> 94 <xsd:element name="Storage" type="xsd_1:StorageType" maxOccurs="unbounded" minOccurs="0"></xsd:element> 95 </xsd:sequence> 96 </xsd:complexType> 97 98 <xsd:complexType name="DEBBComponentType"> 99 <xsd:complexContent> 100 <xsd:extension base="xsd_1:DEBBPhysicalElementType"> 101 <xsd:sequence> 102 <xsd:element name="CoolingDevice" type="xsd_1:CoolingDeviceType" 76 77 <xsd:complexType name="DEBBComplexType"> 78 <xsd:annotation> 79 <xsd:documentation>DEBBComplexType described the more complex parts in comparison to DEBBPhysicalElementsType like power supplies, cooling devices, etc</xsd:documentation> 80 </xsd:annotation> 81 <xsd:complexContent> 82 <xsd:extension base="xsd_1:DEBBSimpleType"> 83 <xsd:sequence> 84 <xsd:element name="Outlet" type="xsd_1:OutletType" 103 85 maxOccurs="unbounded" minOccurs="0"> 104 86 </xsd:element> 105 <xsd:element name="PowerSupply" type="xsd_1:PowerSupplyType" 106 maxOccurs="unbounded" minOccurs="0"> 87 <xsd:element name="Heatsink" 88 type="xsd_1:HeatsinkType" maxOccurs="unbounded" 89 minOccurs="0"> 107 90 </xsd:element> 108 91 <xsd:element name="Sensor" type="xsd_1:SensorType" 109 92 maxOccurs="unbounded" minOccurs="0"> 110 93 </xsd:element> 111 <xsd:element name="Storage" type="xsd_1:StorageType" 112 maxOccurs="unbounded" minOccurs="0"> 113 </xsd:element> 114 <xsd:element name="SecondaryComponent" type="xsd_1:SecondaryComponentType" 115 maxOccurs="unbounded" minOccurs="0"> 94 </xsd:sequence> 95 </xsd:extension> 96 </xsd:complexContent> 97 </xsd:complexType> 98 99 100 <xsd:complexType name="DEBBComponentType"> 101 <xsd:annotation> 102 <xsd:documentation> 103 DEBBComponent is used to represent exactly one DEBB 104 Component as it is used in the project and references by 105 its own ComponentID. In opposite to DEBBPhysicalElement 106 but is not referenced at all since this would lead to a 107 much more complex simulation. Examples for 108 DEBBComponents: Any model of 109 Node/NodeGroup/Rack/ServerRoom/PowerSupply/CoolingDevice/Fan/Sensor/... 110 </xsd:documentation> 111 </xsd:annotation> 112 <xsd:complexContent> 113 <xsd:extension base="xsd_1:DEBBComplexType"> 114 <xsd:sequence> 115 <xsd:element name="Connector" type="xsd_1:ConnectorType" 116 minOccurs="0" maxOccurs="1"> 117 </xsd:element> 118 <xsd:element name="Slot" type="xsd_1:ConnectorType" 119 minOccurs="0" maxOccurs="unbounded"> 120 </xsd:element> 121 <xsd:element name="Size" type="xsd:string" minOccurs="0" 122 maxOccurs="1"> 123 <xsd:annotation> 124 <xsd:documentation> 125 Size as space separated string with XYZ sizes 126 </xsd:documentation> 127 </xsd:annotation> 116 128 </xsd:element> 117 129 </xsd:sequence> … … 121 133 122 134 <xsd:complexType name="DEBBPhysicalElementType"> 123 <xsd:sequence> 124 <xsd:element name="ComponentId" type="xsd:string" 125 maxOccurs="1" minOccurs="0"> 126 </xsd:element> 127 <xsd:element name="Manufacturer" type="xsd:string" 128 maxOccurs="1" minOccurs="0" /> 129 <xsd:element name="Product" type="xsd:string" maxOccurs="1" 130 minOccurs="0" /> 131 <xsd:element name="MaxPower" type="xsd:float" maxOccurs="1" 132 minOccurs="0"> 133 </xsd:element> 134 <xsd:element name="PowerUsageProfile" type="xsd_1:FlowProfileType" minOccurs="0" maxOccurs="1"></xsd:element> 135 </xsd:sequence> 136 </xsd:complexType> 135 <xsd:annotation> 136 <xsd:documentation>DEBBPhysicalElementType is the basic type for all physical existing parts. 137 Examples for DEBBPhysical ElementTypes but not DEBBComplexTypes (memory module, shelves, ...) which might also have a power consumption (normally static) 138 These modules are directly derived from DEBBPhysicalElementType since no additional definition is needed.</xsd:documentation> 139 </xsd:annotation> 140 <xsd:sequence> 141 <xsd:element name="ComponentId" type="xsd:string" 142 maxOccurs="1" minOccurs="0"> 143 </xsd:element> 144 <xsd:element name="Label" type="xsd:string" minOccurs="0" 145 maxOccurs="1"> 146 </xsd:element> 147 <xsd:element name="Manufacturer" type="xsd:string" 148 maxOccurs="1" minOccurs="0" /> 149 <xsd:element name="Product" type="xsd:string" maxOccurs="1" 150 minOccurs="0" /> 151 <xsd:element name="MaxPower" type="xsd:float" maxOccurs="1" 152 minOccurs="0"> 153 <xsd:annotation> 154 <xsd:documentation> 155 MaxPowerUsage is the theoretical limit of power 156 consumption and may used for designing 157 </xsd:documentation> 158 </xsd:annotation> 159 </xsd:element> 160 <xsd:choice> 161 <xsd:element name="PowerUsage" type="xsd:float" minOccurs="0" maxOccurs="1"></xsd:element> 162 <xsd:element name="PowerUsageProfile" 163 type="xsd_1:FlowProfileType" minOccurs="0" maxOccurs="1"> 164 </xsd:element> 165 </xsd:choice> 166 <xsd:element name="Type" type="xsd:string" minOccurs="0" 167 maxOccurs="1"> 168 <xsd:annotation> 169 <xsd:documentation> 170 The type element might be used to specify a type 171 for the module, i.e. for memory DDR/DDR2, for 172 CPU architecture name etc. It has only 173 informational character. 174 </xsd:documentation> 175 </xsd:annotation> 176 </xsd:element> 177 178 </xsd:sequence> 179 </xsd:complexType> 180 181 <xsd:complexType name="DEBBSimpleType"> 182 <xsd:annotation> 183 <xsd:documentation> 184 SimpleType describes all distinct devices for CAD, so 185 where Transform and id/name are necessary. On the other 186 side the memory or cpu are nor relevant for that. 187 </xsd:documentation> 188 </xsd:annotation> 189 <xsd:complexContent> 190 <xsd:extension base="xsd_1:DEBBPhysicalElementType"> 191 <xsd:sequence> 192 <xsd:element name="Transform" type="xsd:string" 193 minOccurs="0" maxOccurs="1"> 194 <xsd:annotation> 195 <xsd:documentation>The Transform tag is necessary for all part which are located within a Component i.e. fans within a recs or sensors or. For The "root object of a DEBB it is not used. 196 For all parts at a fixed position within the DEBB (fans, sensors, etc.) this is the transform matrix relatvie to the DEBB origin. For DEBBComponents this is the relative position of the connector to the DEBB's origin. By "adding" the relative transforms the resulting transform can be directly used for PLMXML. 197 </xsd:documentation> 198 </xsd:annotation> 199 </xsd:element> 200 <xsd:element name="Reference" type="xsd_1:ReferenceType" minOccurs="0" maxOccurs="unbounded"></xsd:element> 201 </xsd:sequence> 202 </xsd:extension> 203 </xsd:complexContent> 204 </xsd:complexType> 137 205 138 206 <xsd:complexType name="FlowProfileType"> … … 141 209 </xsd:annotation> 142 210 <xsd:sequence> 211 <xsd:element name="Name" type="xsd:string" minOccurs="0" maxOccurs="1"></xsd:element> 143 212 <xsd:element name="FlowState" type="xsd_1:FlowStateType" 144 213 minOccurs="1" maxOccurs="unbounded" /> 145 <xsd:element name="Name" type="xsd:string" minOccurs="0" maxOccurs="1"></xsd:element>146 214 </xsd:sequence> 147 215 </xsd:complexType> … … 149 217 <xsd:complexType name="FlowStateType"> 150 218 <xsd:annotation> 151 <xsd:documentation>Flowstate describes any kind of flow (air, liquid, power, ...) and assumes that for maintaining the flow a certain power usage is necessary. For power supply units only the power which is used for creating/transforming the power flow is counted as PowerUsage, but not the power provided. So adding all PowerUsages will show the overall consumption</xsd:documentation> 219 <xsd:documentation>FlowStateType describes any kind of flow (air, liquid, power, ...) and assumes that for maintaining the flow a certain power usage is necessary. 220 For power supply units only the power which is used for creating/transforming the power flow is counted as PowerUsage, but not the power provided. So adding all PowerUsages will show the overall consumption</xsd:documentation> 152 221 </xsd:annotation> 153 222 <xsd:sequence> … … 159 228 maxOccurs="1" minOccurs="0"> 160 229 </xsd:element> 161 <xsd:element name="Transition" type="xsd_1:TransitionType"162 minOccurs="0" maxOccurs="unbounded" />163 230 </xsd:sequence> 231 </xsd:complexType> 232 233 <xsd:complexType name="HeatsinkType"> 234 <xsd:complexContent> 235 <xsd:extension base="xsd_1:DEBBSimpleType"> 236 <xsd:sequence> 237 <xsd:element name="TransferRate" type="xsd:float" minOccurs="0" maxOccurs="1"></xsd:element> 238 </xsd:sequence> 239 </xsd:extension> 240 </xsd:complexContent> 164 241 </xsd:complexType> 165 242 … … 175 252 </xsd:complexType> 176 253 177 <xsd:complexType name="Node GroupType">254 <xsd:complexType name="NodeType"> 178 255 <xsd:complexContent> 179 256 <xsd:extension base="xsd_1:DEBBComponentType"> 180 257 <xsd:sequence> 181 <xsd:element name="Node" maxOccurs="unbounded" type="xsd_1:NodeType" 182 minOccurs="0" /> 183 </xsd:sequence> 184 </xsd:extension> 185 </xsd:complexContent> 186 </xsd:complexType> 187 188 <xsd:complexType name="NodeType"> 189 <xsd:complexContent> 190 <xsd:extension base="xsd_1:DEBBComponentType"> 191 <xsd:sequence> 192 <xsd:element name="Baseboard" type="xsd_1:BaseBoardType" /> 258 <xsd:element name="Baseboard" 259 type="xsd_1:DEBBPhysicalElementType" /> 193 260 <xsd:element name="Processor" maxOccurs="unbounded" 194 261 type="xsd_1:ProcessorType" /> 195 <xsd:element name="Memory" maxOccurs="unbounded" type="xsd_1:MemoryType" /> 262 <xsd:element name="Memory" maxOccurs="unbounded" 263 type="xsd_1:MemoryType" /> 264 </xsd:sequence> 265 </xsd:extension> 266 </xsd:complexContent> 267 </xsd:complexType> 268 269 <xsd:complexType name="OutletType"> 270 <xsd:complexContent> 271 <xsd:extension base="xsd_1:DEBBSimpleType"> 272 <xsd:sequence> 273 <xsd:element name="MaxRPM" type="xsd:int" minOccurs="0" maxOccurs="1"></xsd:element> 196 274 </xsd:sequence> 197 275 </xsd:extension> … … 201 279 <xsd:complexType name="PowerSupplyType"> 202 280 <xsd:complexContent> 203 <xsd:extension base="xsd_1:DEBB PhysicalElementType">281 <xsd:extension base="xsd_1:DEBBComplexType"> 204 282 <xsd:sequence> 205 283 <xsd:element name="Class"> … … 237 315 minOccurs="0" maxOccurs="unbounded"> 238 316 </xsd:element> 239 <xsd:element name="TDP" type="xsd: int" minOccurs="0"317 <xsd:element name="TDP" type="xsd:float" minOccurs="0" 240 318 maxOccurs="1"> 241 319 </xsd:element> … … 251 329 <xsd:element name="Voltage" type="xsd:double" /> 252 330 <xsd:element name="PowerUsage" type="xsd:double" /> 253 <xsd:element name="Transition" type="xsd_1:TransitionType" minOccurs="0" maxOccurs="unbounded"/>254 331 </xsd:sequence> 255 332 </xsd:complexType> 256 333 257 <xsd:complexType name="SecondaryComponentType"> 258 <xsd:complexContent> 259 <xsd:extension base="xsd_1:DEBBComponentType"> 260 <xsd:sequence> 261 <xsd:element name="Type" type="xsd:string" /> 262 </xsd:sequence> 263 </xsd:extension> 264 </xsd:complexContent> 265 </xsd:complexType> 266 267 <xsd:complexType name="SensorClass"> 268 <xsd:complexContent> 269 <xsd:extension base="xsd_1:DEBBPhysicalElementType"> 334 335 <xsd:complexType name="SensorType"> 336 <xsd:complexContent> 337 <xsd:extension base="xsd_1:DEBBSimpleType"> 270 338 <xsd:sequence> 271 339 <xsd:element name="Class"> … … 282 350 </xsd:element> 283 351 <xsd:element name="Unit"> 284 <xsd:simpleType> 352 <xsd:annotation> 353 <xsd:documentation>Only basic units should be used. For later development other units can be used then the Factor should be added.</xsd:documentation> 354 </xsd:annotation> 355 <xsd:simpleType> 285 356 <xsd:restriction base="xsd:string"> 286 357 <xsd:enumeration value="°C"></xsd:enumeration> … … 304 375 </xsd:element> 305 376 <xsd:element name="MinValue" type="xsd:float" 306 maxOccurs="1" minOccurs="0"></xsd:element> 377 maxOccurs="1" minOccurs="0"> 378 </xsd:element> 307 379 <xsd:element name="MaxValue" type="xsd:float" 308 maxOccurs="1" minOccurs="0"></xsd:element> 309 <xsd:element name="Factor" type="xsd:float" maxOccurs="1" 310 minOccurs="0"></xsd:element> 380 maxOccurs="1" minOccurs="0"> 381 </xsd:element> 382 <xsd:element name="Factor" type="xsd:float" 383 maxOccurs="1" minOccurs="0"> 384 <xsd:annotation> 385 <xsd:documentation>Factor is just the multiplier between the currently used unit and the basic unit (i.e. litre to cubic meter)</xsd:documentation> 386 </xsd:annotation> 387 </xsd:element> 311 388 <xsd:element name="Accuracy" type="xsd:float" 312 maxOccurs="1" minOccurs="0"></xsd:element> 313 </xsd:sequence> 314 </xsd:extension> 315 </xsd:complexContent> 316 </xsd:complexType> 317 318 <xsd:complexType name="SensorType"> 319 <xsd:complexContent> 320 <xsd:extension base="xsd_1:SensorClass"> 321 <xsd:sequence> 322 <xsd:element name="SensorId" type="xsd:string"></xsd:element> 323 <xsd:element name="Transform" type="xsd:string"></xsd:element> 324 </xsd:sequence> 325 </xsd:extension> 326 </xsd:complexContent> 327 </xsd:complexType> 328 329 <xsd:complexType name="StorageType"> 330 <xsd:complexContent> 331 <xsd:extension base="xsd_1:DEBBPhysicalElementType"> 332 <xsd:sequence> 333 <xsd:element name="Class" type="xsd:string"> 334 </xsd:element> 335 <!-- Size of Capacity in MB --> 336 <xsd:element name="Capacity" type="xsd:unsignedInt" /> 337 <xsd:element name="Interface" type="xsd:string"></xsd:element> 338 </xsd:sequence> 339 </xsd:extension> 340 </xsd:complexContent> 341 </xsd:complexType> 342 343 <xsd:complexType name="TransitionType"> 344 <xsd:annotation> 345 <xsd:documentation>Transition describes the possible state changes and the "additional" power which is consumed during the change i.e. spin up power for hard discs is much higher than running consistant speed.</xsd:documentation> 346 </xsd:annotation> 347 <xsd:sequence> 348 <xsd:element name="ToState" type="xsd:string"/> 349 <xsd:element name="PowerUsage" type="xsd:double"/> 350 <xsd:element name="Time" type="xsd:double"/> 351 </xsd:sequence> 352 </xsd:complexType> 353 354 <xsd:element name="DEBBComponents" type="xsd_1:DEBBComponents"></xsd:element> 389 maxOccurs="1" minOccurs="0"> 390 </xsd:element> 391 <xsd:element name="Input" type="xsd:boolean"> 392 <xsd:annotation> 393 <xsd:documentation>Input is a flag describing that a sensors is a input value for the simulation or not. for example heat sources can be seen an sources without any output afterwards. Other sensors migth be added for extracting results at the end of the simulation.</xsd:documentation> 394 </xsd:annotation></xsd:element> 395 </xsd:sequence> 396 </xsd:extension> 397 </xsd:complexContent> 398 </xsd:complexType> 399 400 <xsd:element name="Node" type="xsd_1:NodeType"></xsd:element> 401 <xsd:element name="NodeGroup" type="xsd_1:DEBBComponentType"></xsd:element> 402 <xsd:element name="ComputeBox1" type="xsd_1:DEBBComponentType"></xsd:element> 403 <xsd:element name="ComputeBox2" type="xsd_1:DEBBComponentType"></xsd:element> 404 <xsd:element name="PowerSupply" type="xsd_1:PowerSupplyType"></xsd:element> 405 <xsd:element name="CoolingDevice" type="xsd_1:CoolingDeviceType"></xsd:element> 406 <xsd:element name="Outlet" type="xsd_1:OutletType"></xsd:element> 407 <xsd:element name="Heatsink" type="xsd_1:HeatsinkType"></xsd:element> 408 <xsd:element name="Sensor" type="xsd_1:SensorType"></xsd:element> 409 410 <xsd:complexType name="ReferenceType"> 411 <xsd:annotation> 412 <xsd:documentation> 413 ReferenceType describes references to external files 414 like STL, VRML, etc. and consists of a type and path. 415 </xsd:documentation> 416 </xsd:annotation> 417 <xsd:sequence> 418 <xsd:element name="Type" type="xsd:string" minOccurs="1" 419 maxOccurs="1"> 420 </xsd:element> 421 <xsd:element name="Location" type="xsd:string" minOccurs="1" maxOccurs="1"></xsd:element> 422 </xsd:sequence> 423 </xsd:complexType> 424 355 425 </xsd:schema>
Note: See TracChangeset
for help on using the changeset viewer.