Changeset 1302 for DCWoRMS/branches
- Timestamp:
- 03/19/14 18:24:17 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/simulator
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/simulator/schemas/resources/DCwormsResSchema.xsd
r1263 r1302 6 6 <xs:annotation> 7 7 <xs:documentation>Base plugin type. 8 Plugins allow configuring and adapting the simulation framework to his/her experiment8 Plugins allow configuring and adapting the simulation framework to the purpose of particular experiment 9 9 starting from modeling job performance, through method of calculating energy estimation up to implementation of scheduling policies 10 10 Name of the plugin specifies the JAVA class that implements dedicated interface.</xs:documentation> … … 291 291 <xs:element name="airThroughputProfile" type="airThroughputProfileType" minOccurs="0"></xs:element> 292 292 <xs:element name="thermalProfile" type="thermalProfileType" minOccurs="0"></xs:element> 293 <xs:element name="loadProfile" type="loadProfileType" minOccurs="0"></xs:element> 293 294 </xs:sequence> 294 295 </xs:complexType> … … 414 415 <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 415 416 </xs:sequence> 417 </xs:complexType> 418 419 <xs:complexType name="loadProfileType"> 420 <xs:annotation> 421 <xs:documentation>Load profile provides loadEstimation plugin and supports modelinf of a local utilization of the given resource during the time</xs:documentation> 422 </xs:annotation> 423 <xs:sequence> 424 <xs:element name="loadEstimationPlugin" type="loadEstimationPluginType" minOccurs="0"></xs:element> 425 <xs:element name="loadCalendar" type="loadCalendarType" minOccurs="0"></xs:element> 426 <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 427 </xs:sequence> 428 </xs:complexType> 429 430 <xs:complexType name="loadEstimationPluginType"> 431 <xs:annotation> 432 <xs:documentation>LoadEstimationPlugin derived from pluginType. 433 Load plugin is used to calclulate load on the given resource if it's based on user-defined model</xs:documentation> 434 </xs:annotation> 435 <xs:complexContent> 436 <xs:extension base="pluginType"/> 437 </xs:complexContent> 416 438 </xs:complexType> 417 439 … … 454 476 </xs:complexType> 455 477 478 479 <xs:complexType name="loadCalendarType"> 480 <xs:choice> 481 <xs:element name="weekDay" type="weekDayType" maxOccurs="unbounded"/> 482 <xs:element name="loadSchedule" type="loadScheduleType" maxOccurs="unbounded"/> 483 </xs:choice> 484 </xs:complexType> 485 486 <xs:complexType name="weekDayType"> 487 <xs:sequence> 488 <xs:element name="type" type="dayType"></xs:element> 489 <xs:choice> 490 <xs:element name="timePeriod" maxOccurs="unbounded"> 491 <xs:complexType> 492 <xs:sequence> 493 <xs:element name="fromTime" type="xs:time"/> 494 <xs:element name="toTime" type="xs:time"/> 495 <xs:element name="loadLevel" type="xs:double"/> 496 </xs:sequence> 497 </xs:complexType> 498 </xs:element> 499 <xs:element name="loadLevel" type="xs:double"/> 500 </xs:choice> 501 </xs:sequence> 502 </xs:complexType> 503 504 <xs:complexType name="loadScheduleType"> 505 <xs:sequence> 506 <xs:element name="loadDistribution" maxOccurs="unbounded"> 507 <xs:complexType> 508 <xs:sequence> 509 <xs:element name="fromTime" type="xs:long"/> 510 <xs:element name="toTime" type="xs:long"/> 511 <xs:element name="loadLevel" type="xs:double"/> 512 </xs:sequence> 513 </xs:complexType> 514 </xs:element> 515 </xs:sequence> 516 </xs:complexType> 517 518 <xs:simpleType name="dayType"> 519 <xs:annotation> 520 <xs:documentation>The type of day. Values are: 0=AllDays, 521 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 522 6=Friday, 7=Saturday.</xs:documentation> 523 </xs:annotation> 524 <xs:restriction base="xs:integer"> 525 <xs:enumeration value="0" /> 526 <xs:enumeration value="1" /> 527 <xs:enumeration value="2" /> 528 <xs:enumeration value="3" /> 529 <xs:enumeration value="4" /> 530 <xs:enumeration value="5" /> 531 <xs:enumeration value="6" /> 532 <xs:enumeration value="7" /> 533 </xs:restriction> 534 </xs:simpleType> 535 456 536 <xs:element name="environment"> 457 537 <xs:annotation> -
DCWoRMS/branches/coolemall/simulator/xslt/debb/DCwormsDEBBUpdater.xsl
r1260 r1302 182 182 <xsl:apply-templates select="profile" /> 183 183 <!-- device --> 184 <xsl:apply-templates select="device" /> 184 <xsl:apply-templates select="device"> 185 <xsl:with-param name="parResourceClass" select="$resourceClass" /> 186 </xsl:apply-templates> 187 185 188 <!-- resourceUnit --> 186 189 <xsl:apply-templates select="resourceUnit" /> … … 194 197 195 198 <xsl:template match="device"> 199 <xsl:param name="parResourceClass"/> 196 200 <xsl:copy copy-namespaces="no"> 197 201 <xsl:copy-of select="@*" /> … … 222 226 223 227 <xsl:variable name="resourceClass" select="@class"/> 224 <xsl:variable name="resourceType" select="@type"/> 228 <!-- 229 <xsl:variable name="resourceType" select="@type"/> 230 --> 231 <xsl:variable name="resourceType"> 232 <xsl:value-of select="concat($parResourceClass, $resourceClass)" /> 233 </xsl:variable> 225 234 <xsl:variable name="resourceName" select="@name"/> 226 235 … … 230 239 <xsl:variable name="estimationPluginName" select="fun:getEnergyEstimator($resourceClass, $resourceType, $resourceName)"/> 231 240 <xsl:variable name="hasProfile" select="profile != ''"/> 232 <xsl:variable name="hasPowerProfile" select="profile/powerProfile != ''"/>233 241 234 242 <xsl:if test="$hasProfile = false() and $estimationPluginName != ''"> … … 246 254 247 255 <!-- profile --> 248 <xsl:apply-templates select="profile" /> 256 <xsl:apply-templates select="profile" mode="device"> 257 <xsl:with-param name="parResourceClass" select="$parResourceClass" /> 258 </xsl:apply-templates> 249 259 250 260 </xsl:copy> … … 253 263 254 264 <xsl:function name="fun:getEnergyEstimator"> 255 <xsl:param name=" computingResourceClass"/>256 <xsl:param name=" computingResourceType"/>257 <xsl:param name=" computingResourceName"/>265 <xsl:param name="resourceClass"/> 266 <xsl:param name="resourceType"/> 267 <xsl:param name="resourceName"/> 258 268 259 269 260 270 <xsl:variable name="estimatorName" > 261 271 <xsl:choose> 262 <xsl:when test="$nestedDoc//energyEstimationPlugin[resources/class=$computingResourceClass and resources/name=$computingResourceName]/name !=''"> 263 <xsl:value-of select="$nestedDoc//energyEstimationPlugin[resources/class=$computingResourceClass and resources/name=$computingResourceName]/name"/> 264 </xsl:when> 265 <xsl:when test="$nestedDoc//energyEstimationPlugin[resources/class=$computingResourceClass]/name !=''"> 266 <xsl:value-of select="$nestedDoc//energyEstimationPlugin[resources/class=$computingResourceClass ]/name"/> 272 <xsl:when test="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass and resource/type=$resourceType and resources/name=$resourceName]/name !=''"> 273 <xsl:value-of select="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass and resource/type=$resourceType and resources/name=$resourceName]/name"/> 274 </xsl:when> 275 <xsl:when test="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass and resources/type=$resourceType]/name !=''"> 276 <xsl:value-of select="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass and resources/type=$resourceType]/name"/> 277 </xsl:when> 278 <xsl:when test="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass and resources/name=$resourceName]/name !=''"> 279 <xsl:value-of select="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass and resources/name=$resourceName]/name"/> 280 </xsl:when> 281 <xsl:when test="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass]/name !=''"> 282 <xsl:value-of select="$nestedDoc//energyEstimationPlugin[resources/class=$resourceClass ]/name"/> 267 283 </xsl:when> 268 284 <xsl:otherwise> … … 341 357 </xsl:template> 342 358 359 <xsl:template match="profile" mode="device"> 360 <xsl:param name="parResourceClass"/> 361 <xsl:copy copy-namespaces="no"> 362 <xsl:copy-of select="@*" /> 363 364 365 <xsl:variable name="resourceClass" select="../@class"/> 366 <!-- 367 <xsl:variable name="resourceType" select="@type"/> 368 --> 369 <xsl:variable name="resourceType"> 370 <xsl:value-of select="concat($parResourceClass, $resourceClass)" /> 371 </xsl:variable> 372 <xsl:variable name="resourceName" select="../@name"/> 373 374 375 <!-- Don't add energyEstimationPlugin information if there is a template defined for the computingResource. 376 It will appear in the template. --> 377 <xsl:variable name="estimationPluginName" select="fun:getEnergyEstimator($resourceClass, $resourceType, $resourceName)"/> 378 <xsl:variable name="hasPowerProfile" select="powerProfile != ''"/> 379 380 <xsl:if test="$hasPowerProfile = false() and $estimationPluginName != ''"> 381 <xsl:element name="powerProfile"> 382 <xsl:element name="energyEstimationPlugin"> 383 <xsl:element name="name"> 384 <xsl:value-of select="$estimationPluginName"/> 385 </xsl:element> 386 </xsl:element> 387 </xsl:element> 388 </xsl:if> 389 390 <xsl:apply-templates select="powerProfile" /> 391 <xsl:apply-templates select="airThroughputProfile" /> 392 393 </xsl:copy> 394 </xsl:template> 395 343 396 <xsl:template match="powerProfile"> 344 397 <xsl:copy copy-namespaces="no"> -
DCWoRMS/branches/coolemall/simulator/xslt/debb/DEBBComponentTranslator.xsl
r1260 r1302 9 9 <xsl:param name="plmxmlFileName" select="plmxmlFileName" /> 10 10 11 <xsl:template match="//*[ ComponentId]" mode="component">11 <xsl:template match="//*[PartID]" mode="component"> 12 12 <xsl:param name="instanceRefs"/> 13 13 <xsl:call-template name="translateComputingElement"> … … 16 16 </xsl:template> 17 17 18 <xsl:template match="//*[ ComponentId]" mode="coolingDevice">18 <xsl:template match="//*[PartID]" mode="coolingDevice"> 19 19 <xsl:param name="instanceRefs"/> 20 20 <xsl:call-template name="translateCoolingDevice"> … … 23 23 </xsl:template> 24 24 25 <xsl:template match="//*[ ComponentId]" mode="fan">25 <xsl:template match="//*[PartID]" mode="fan"> 26 26 <xsl:param name="instanceRefs"/> 27 27 <xsl:call-template name="translateFan"> … … 30 30 </xsl:template> 31 31 32 <xsl:template match="//*[ ComponentId]" mode="heatsink">32 <xsl:template match="//*[PartID]" mode="heatsink"> 33 33 <xsl:param name="instanceRefs"/> 34 34 <xsl:call-template name="translateHeatsink"> … … 46 46 </xsl:if> 47 47 48 <!-- PERFORMANCE 48 49 <xsl:if test="Baseboard"> 49 50 <xsl:apply-templates select="Baseboard" /> … … 53 54 <xsl:apply-templates select="Sensor" /> 54 55 </xsl:if> 56 --> 55 57 56 58 <xsl:if test="PowerSupply"> … … 84 86 </xsl:if> 85 87 --> 88 89 <!-- PERFORMANCE 86 90 <xsl:if test="Slot"> 87 91 <xsl:apply-templates select="Slot" /> … … 100 104 <xsl:apply-templates select="Network" /> 101 105 </xsl:if> 102 106 --> 107 103 108 </xsl:template> 104 109 … … 116 121 <xsl:attribute name="name">sensor</xsl:attribute> 117 122 <xsl:element name="property"> 123 <xsl:attribute name="name">name</xsl:attribute> 124 <xsl:element name="value"> 125 <xsl:value-of select="Name" /> 126 </xsl:element> 127 </xsl:element> 128 <xsl:element name="property"> 118 129 <xsl:attribute name="name">class</xsl:attribute> 119 130 <xsl:element name="value"> … … 170 181 <xsl:attribute name="class">Processor</xsl:attribute> 171 182 <xsl:call-template name="BasicDEBBPhysicalElementParameters" /> 183 <xsl:variable name="threads"> 184 <xsl:choose> 185 <xsl:when test="VirtualCoresPerCore"> 186 <xsl:value-of select="VirtualCoresPerCore"/> 187 </xsl:when> 188 <xsl:otherwise>1</xsl:otherwise> 189 </xsl:choose> 190 </xsl:variable> 191 172 192 <xsl:if test="Cores"> 173 193 <xsl:element name="computingResource"> 174 194 <xsl:attribute name="class">Core</xsl:attribute> 195 <xsl:variable name="nrOfCores" select="Cores"/> 175 196 <xsl:attribute name="count"> 176 <xsl:value-of select=" Cores" />197 <xsl:value-of select="$nrOfCores" /> 177 198 </xsl:attribute> 178 199 </xsl:element> … … 184 205 </xsl:element> 185 206 </xsl:element> 207 208 <xsl:if test="VirtualCoresPerCore"> 209 <xsl:element name="parameter"> 210 <xsl:attribute name="name">threads</xsl:attribute> 211 <xsl:element name="value"> 212 <xsl:value-of select="VirtualCoresPerCore"/> 213 </xsl:element> 214 </xsl:element> 215 </xsl:if> 186 216 <xsl:if test="PState | CState"> 187 217 <!-- If PState or CState elements present add powerProfile element --> … … 195 225 </xsl:element> 196 226 </xsl:if> 197 198 <!-- 199 <xsl:if test="PState/LoadPowerUsage"> 200 <xsl:apply-templates select="PState/LoadPowerUsage" /> 201 </xsl:if> 202 --> 227 203 228 <xsl:apply-templates select="PState" /> 204 229 </xsl:element> … … 206 231 </xsl:if> 207 232 233 <!-- PERFORMANCE 208 234 <xsl:if test="TDP"> 209 235 <xsl:element name="parameter"> … … 214 240 </xsl:element> 215 241 </xsl:if> 242 --> 243 216 244 </xsl:element> 217 245 </xsl:template> … … 232 260 </xsl:element> 233 261 </xsl:element> 262 <!-- PERFORMANCE 234 263 <xsl:element name="property"> 235 264 <xsl:attribute name="name">voltage</xsl:attribute> … … 238 267 </xsl:element> 239 268 </xsl:element> 269 --> 240 270 <!-- 241 271 <xsl:element name="property"> … … 354 384 </xsl:element> 355 385 </xsl:if> 356 357 <xsl:if test="MaxCoolingCapacity"> 358 <xsl:element name="parameter"> 386 387 <xsl:if test="CRAH"> 388 <xsl:element name="parameter"> 389 <xsl:attribute name="name">fanEfficiency</xsl:attribute> 390 <xsl:element name="value"> 391 <xsl:value-of select="CRAH/FanEfficiency" /> 392 </xsl:element> 393 </xsl:element> 394 <xsl:element name="parameter"> 395 <xsl:attribute name="name">coolingCoilEfficiency</xsl:attribute> 396 <xsl:element name="value"> 397 <xsl:value-of select="CRAH/CoolingCoilEfficiency" /> 398 </xsl:element> 399 </xsl:element> 400 <xsl:element name="parameter"> 401 <xsl:attribute name="name">deltaThEx</xsl:attribute> 402 <xsl:element name="value"> 403 <xsl:value-of select="CRAH/DeltaThEx" /> 404 </xsl:element> 405 </xsl:element> 406 </xsl:if> 407 408 <xsl:if test="Chiller"> 409 <xsl:element name="parameter"> 359 410 <xsl:attribute name="name">maxCoolingCapacity</xsl:attribute> 360 411 <xsl:element name="value"> 361 <xsl:value-of select="MaxCoolingCapacity" /> 362 </xsl:element> 363 </xsl:element> 364 </xsl:if> 365 366 <xsl:if test="MaxAirThroughput"> 367 <xsl:element name="parameter"> 368 <xsl:attribute name="name">maxAirThroughput</xsl:attribute> 369 <xsl:element name="value"> 370 <xsl:value-of select="MaxAirThroughput" /> 371 </xsl:element> 372 </xsl:element> 373 </xsl:if> 374 375 <xsl:if test="CRAHFanEfficiency"> 376 <xsl:element name="parameter"> 377 <xsl:attribute name="name">CRAHFanEfficiency</xsl:attribute> 378 <xsl:element name="value"> 379 <xsl:value-of select="CRAHFanEfficiency" /> 380 </xsl:element> 381 </xsl:element> 382 </xsl:if> 383 384 <xsl:if test="CoolingCoilEfficiency"> 385 <xsl:element name="parameter"> 386 <xsl:attribute name="name">coolingCoilEfficiency</xsl:attribute> 387 <xsl:element name="value"> 388 <xsl:value-of select="CoolingCoilEfficiency" /> 389 </xsl:element> 390 </xsl:element> 391 </xsl:if> 392 393 <xsl:if test="DeltaThEx"> 394 <xsl:element name="parameter"> 395 <xsl:attribute name="name">deltaThEx</xsl:attribute> 396 <xsl:element name="value"> 397 <xsl:value-of select="DeltaThEx" /> 398 </xsl:element> 399 </xsl:element> 400 </xsl:if> 401 402 <xsl:if test="CWT"> 403 <xsl:element name="parameter"> 404 <xsl:attribute name="name">CWT</xsl:attribute> 405 <xsl:element name="value"> 406 <xsl:value-of select="CWT" /> 407 </xsl:element> 408 </xsl:element> 409 </xsl:if> 410 411 <xsl:if test="DeltaThDryCooler"> 412 <xsl:element name="parameter"> 412 <xsl:value-of select="Chiller/MaxCoolingCapacity" /> 413 </xsl:element> 414 </xsl:element> 415 <xsl:element name="parameter"> 416 <xsl:attribute name="name">coolingCapacityRated</xsl:attribute> 417 <xsl:element name="value"> 418 <xsl:value-of select="Chiller/CoolingCapacityRated" /> 419 </xsl:element> 420 </xsl:element> 421 <xsl:element name="parameter"> 422 <xsl:attribute name="name">EERRated</xsl:attribute> 423 <xsl:element name="value"> 424 <xsl:value-of select="Chiller/EERRated" /> 425 </xsl:element> 426 </xsl:element> 427 <xsl:apply-templates select="Chiller/EnergyEfficiencyRatio/Item"/> 428 </xsl:if> 429 430 <xsl:if test="DryCooler"> 431 <xsl:element name="parameter"> 413 432 <xsl:attribute name="name">deltaThDryCooler</xsl:attribute> 414 433 <xsl:element name="value"> 415 <xsl:value-of select="DeltaThDryCooler" /> 416 </xsl:element> 417 </xsl:element> 418 </xsl:if> 419 420 421 <xsl:if test="CoolingCapacityRated"> 422 <xsl:element name="parameter"> 423 <xsl:attribute name="name">coolingCapacityRated</xsl:attribute> 424 <xsl:element name="value"> 425 <xsl:value-of select="CoolingCapacityRated" /> 426 </xsl:element> 427 </xsl:element> 428 </xsl:if> 429 430 <xsl:if test="EERRated"> 431 <xsl:element name="parameter"> 432 <xsl:attribute name="name">EERRated</xsl:attribute> 433 <xsl:element name="value"> 434 <xsl:value-of select="EERRated" /> 435 </xsl:element> 436 </xsl:element> 437 </xsl:if> 438 439 434 <xsl:value-of select="DryCooler/DeltaThDryCooler" /> 435 </xsl:element> 436 </xsl:element> 437 <xsl:element name="parameter"> 438 <xsl:attribute name="name">dryCoolerEfficiency</xsl:attribute> 439 <xsl:element name="value"> 440 <xsl:value-of select="DryCooler/DryCoolerEfficiency" /> 441 </xsl:element> 442 </xsl:element> 443 </xsl:if> 444 440 445 <xsl:apply-templates select="EnergyEfficiencyRatio/Item"/> 441 442 <!-- Air throughput connected, advanced, technical data --> 446 443 447 <xsl:apply-templates select="AirThroughputProfile" /> 444 448 … … 555 559 </xsl:element> 556 560 </xsl:if> 557 </xsl:template> 558 559 561 <xsl:if test="Efficiency"> 562 <xsl:element name="parameter"> 563 <xsl:attribute name="name">efficiency</xsl:attribute> 564 <xsl:element name="value"> 565 <xsl:value-of select="Efficiency" /> 566 </xsl:element> 567 </xsl:element> 568 </xsl:if> 569 </xsl:template> 570 571 <xsl:template name ="FlowStateItemAir"> 572 <xsl:element name="name"> 573 <xsl:variable name="state" select="State"/> 574 <xsl:choose> 575 <xsl:when test="$state = '1'"> 576 <xsl:value-of>OFF</xsl:value-of> 577 </xsl:when> 578 <xsl:when test="$state = '2'"> 579 <xsl:value-of>ON</xsl:value-of> 580 </xsl:when> 581 <xsl:otherwise> 582 <xsl:value-of select="$state" /> 583 </xsl:otherwise> 584 </xsl:choose> 585 </xsl:element> 586 <xsl:if test="Flow"> 587 <xsl:element name="value"> 588 <xsl:value-of select="Flow" /> 589 </xsl:element> 590 </xsl:if> 591 <xsl:if test="PowerUsage"> 592 <xsl:element name="powerUsage"> 593 <xsl:value-of select="PowerUsage" /> 594 </xsl:element> 595 </xsl:if> 596 <xsl:if test="Efficiency"> 597 <xsl:element name="parameter"> 598 <xsl:attribute name="name">efficiency</xsl:attribute> 599 <xsl:element name="value"> 600 <xsl:value-of select="Efficiency" /> 601 </xsl:element> 602 </xsl:element> 603 </xsl:if> 604 </xsl:template> 605 560 606 561 607 <xsl:template name="translateHeatsink"> … … 642 688 <!-- Template for transforming basic parameters of all devices of any type --> 643 689 <xsl:template name="BasicDEBBPhysicalElementParameters"> 690 644 691 <xsl:if test="Label"> 645 692 <xsl:element name="parameter"> … … 650 697 </xsl:element> 651 698 </xsl:if> 652 699 <!-- PERFORMANCE 653 700 <xsl:if test="Manufacturer"> 654 701 <xsl:element name="parameter"> … … 659 706 </xsl:element> 660 707 </xsl:if> 708 --> 661 709 <xsl:if test="Product"> 662 710 <xsl:element name="parameter"> … … 687 735 <!-- TODO: PowerUsageProfile --> 688 736 737 <!-- PERFORMANCE 689 738 <xsl:if test="Type"> 690 739 <xsl:element name="parameter"> … … 695 744 </xsl:element> 696 745 </xsl:if> 746 --> 747 <xsl:if test="MinAllowedTemperature"> 748 <xsl:element name="parameter"> 749 <xsl:attribute name="name">minAllowedTemperature</xsl:attribute> 750 <xsl:element name="value"> 751 <xsl:value-of select="MinAllowedTemperature" /> 752 </xsl:element> 753 </xsl:element> 754 </xsl:if> 755 756 <xsl:if test="MaxAllowedTemperature"> 757 <xsl:element name="parameter"> 758 <xsl:attribute name="name">maxAllowedTemperature</xsl:attribute> 759 <xsl:element name="value"> 760 <xsl:value-of select="MaxAllowedTemperature" /> 761 </xsl:element> 762 </xsl:element> 763 </xsl:if> 697 764 </xsl:template> 698 765 699 766 <xsl:template name="BasicDEBBPhysicalElementProperties"> 700 767 701 768 <xsl:if test="Label"> 702 769 <xsl:element name="property"> … … 752 819 </xsl:element> 753 820 </xsl:if> 754 821 822 <xsl:if test="MinAllowedTemperature"> 823 <xsl:element name="property"> 824 <xsl:attribute name="name">minAllowedTemperature</xsl:attribute> 825 <xsl:element name="value"> 826 <xsl:value-of select="MinAllowedTemperature" /> 827 </xsl:element> 828 </xsl:element> 829 </xsl:if> 830 831 <xsl:if test="MaxAllowedTemperature"> 832 <xsl:element name="property"> 833 <xsl:attribute name="name">maxAllowedTemperature</xsl:attribute> 834 <xsl:element name="value"> 835 <xsl:value-of select="MaxAllowedTemperature" /> 836 </xsl:element> 837 </xsl:element> 838 </xsl:if> 755 839 </xsl:template> 756 840 -
DCWoRMS/branches/coolemall/simulator/xslt/debb/PLMXMLTranslator.xsl
r1266 r1302 94 94 <xsl:value-of select="$templateStartLevel"/> 95 95 </xsl:attribute> 96 <xsl:apply-templates select="$nestedDoc//*[ ComponentId=$debbComponentId]" mode="component"/>96 <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="component"/> 97 97 <xsl:element name="device"> 98 98 <xsl:variable name="deviceName" select="distinct-values($rootDoc//plm:ProductRevisionView[plm:UserData/plm:UserValue/@value=$devicesIds[$index3]]/@name)[1]" /> … … 114 114 </xsl:variable> 115 115 <xsl:variable name="nestedDoc2" select="document($deviceFileFullName)" /> 116 <xsl:apply-templates select="$nestedDoc2//*[ ComponentId=$devicesIds[$index3]]" mode="heatsink">116 <xsl:apply-templates select="$nestedDoc2//*[PartID=$devicesIds[$index3]]" mode="heatsink"> 117 117 <xsl:with-param name="instanceRefs" select="distinct-values($rootDoc//plm:ProductRevisionView[plm:UserData/plm:UserValue/@value=$devicesIds[$index3]]/@id)[1]" /> 118 118 </xsl:apply-templates> … … 207 207 <xsl:when test="$debbComponentFile != ''"> 208 208 <xsl:variable name="nestedDoc" select="document($debbComponentFile)" /> 209 <xsl:apply-templates select="$nestedDoc//*[ ComponentId=$debbComponentId]" mode="component">209 <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="component"> 210 210 <xsl:with-param name="instanceRefs" select="@instanceRefs" /> 211 211 </xsl:apply-templates> … … 247 247 248 248 <xsl:if test="$debbLevel = 'CoolingDevice'"> 249 <xsl:apply-templates select="$nestedDoc//*[ ComponentId=$debbComponentId]" mode="coolingDevice">249 <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="coolingDevice"> 250 250 <xsl:with-param name="instanceRefs" select="@id" /> 251 251 </xsl:apply-templates> 252 252 </xsl:if> 253 253 <xsl:if test="$debbLevel = 'Inlet' or $debbLevel = 'Outlet'"> 254 <xsl:apply-templates select="$nestedDoc//*[ ComponentId=$debbComponentId]" mode="fan">254 <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="fan"> 255 255 <xsl:with-param name="instanceRefs" select="@id" /> 256 256 </xsl:apply-templates> 257 257 </xsl:if> 258 258 <xsl:if test="$debbLevel = 'Heatsink'"> 259 <xsl:apply-templates select="$nestedDoc//*[ ComponentId=$debbComponentId]" mode="heatsink">259 <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="heatsink"> 260 260 <xsl:with-param name="instanceRefs" select="@id" /> 261 261 </xsl:apply-templates> … … 296 296 <xsl:variable name="nestedDoc" select="document($debbComponentFile)" /> 297 297 298 <xsl:apply-templates select="$nestedDoc//*[ ComponentId=$debbComponentId]" mode="component">298 <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="component"> 299 299 <xsl:with-param name="instanceRefs" select="@instanceRefs" /> 300 300 </xsl:apply-templates> -
DCWoRMS/branches/coolemall/simulator/xslt/debb/coolemallPlugins.xml
r1266 r1302 5 5 <name>example.timeestimation.coolemall.PhaseTimeEstimationPlugin</name> 6 6 </timeEstimationPlugin> 7 7 8 8 <schedulingPlugin> 9 <name>example.localplugin.coolemall.computebox 1.CB1_FCFS_Random_SP</name>9 <name>example.localplugin.coolemall.computebox2.CB2_FCFS_Random_SP</name> 10 10 <resources> 11 <class>R ack</class>11 <class>Room</class> 12 12 </resources> 13 13 </schedulingPlugin> … … 93 93 <resources> 94 94 <class>Inlet</class> 95 < name>FlowPump1</name>95 <type>RoomInlet</type> 96 96 </resources> 97 97 </energyEstimationPlugin> … … 101 101 <resources> 102 102 <class>Outlet</class> 103 < name>FlowPump2</name>103 <type>RoomOutlet</type> 104 104 </resources> 105 105 </energyEstimationPlugin> … … 113 113 114 114 <loadEstimationPlugin> 115 <name>example. energy.coolemall.DefaultLoadEstimationPlugin</name>115 <name>example.load.DefaultLoadEstimationPlugin</name> 116 116 <resources> 117 117 <class>ComputeBox2</class>
Note: See TracChangeset
for help on using the changeset viewer.