Changeset 1235 for DCWoRMS


Ignore:
Timestamp:
11/26/13 14:02:42 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/simulator/schemas/resources/DCWormsResSchema.xsd

    r961 r1235  
    33        elementFormDefault="qualified" attributeFormDefault="unqualified"> 
    44                 
    5                 <xs:complexType name="pluginType"> 
     5        <xs:complexType name="pluginType"> 
    66                <xs:annotation> 
    77                        <xs:documentation>Base plugin type.  
     
    2525                        <xs:restriction base="pluginType"> 
    2626                                <xs:sequence> 
    27                                         <xs:element name="name" type="xs:string" default="ExecTimeEstimationPlugin"></xs:element> 
     27                                        <xs:element name="name" type="xs:string"></xs:element> 
    2828                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    2929                                </xs:sequence> 
     
    4949        </xs:complexType> 
    5050 
    51         <xs:complexType name="computingResourceType"> 
     51        <xs:complexType name="physicalResourceType"> 
    5252                <xs:annotation> 
    5353                        <xs:documentation> ComputingResource derived from resourceType 
     
    6262                <xs:complexContent> 
    6363                        <xs:extension base="resourceType"> 
     64                                <xs:attribute name="groupId" type="xs:integer" use="optional"/>                  
     65                                <xs:attribute name="count" type="xs:integer" use="optional"/> 
     66                        </xs:extension> 
     67                </xs:complexContent> 
     68        </xs:complexType> 
     69         
     70        <xs:complexType name="computingResourceType"> 
     71                <xs:annotation> 
     72                        <xs:documentation> ComputingResource derived from physicalResourceType 
     73                        Computing resource specifies resources that are able to perform computing operations.  
     74                        From the simulator point of view computing resource is everything that is/contains processing element. 
     75                        Hence, all entities like core, processor, computing node, as well as those which aggregate them (like shelf, rack, container etc.) 
     76                        should be define using this type. This way of description provides flexibility in defining system architecture 
     77                        and allows to build hierarchy of resources that corresponds to real world. 
     78                        Attributes: groupId - allows to group resources of the given class in the logical structures that can be used during binding them with schedulers 
     79                        count - defines number of resources of the given class</xs:documentation> 
     80                </xs:annotation> 
     81                <xs:complexContent> 
     82                        <xs:extension base="physicalResourceType"> 
    6483                                <xs:sequence> 
    6584                                        <xs:choice> 
    6685                                                <xs:sequence> 
    67                                                         <xs:element name="resourceUnit" type="resourceUnitType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     86                                                        <xs:element name="location" type="locationType" minOccurs="0" maxOccurs="1"></xs:element> 
    6887                                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    6988                                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element> 
     89                                                        <xs:element name="device" type="deviceType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     90                                                        <xs:element name="resourceUnit" type="resourceUnitType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     91                                                        <xs:element name="computingResource" type="computingResourceType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     92                                                </xs:sequence> 
     93                                                <xs:sequence> 
     94                                                        <xs:element name="templateId" type="xs:string"/> 
    7095                                                        <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> 
     96                                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     97                                                </xs:sequence> 
     98                                        </xs:choice> 
     99                                </xs:sequence> 
     100                        </xs:extension> 
     101                </xs:complexContent> 
     102        </xs:complexType> 
     103         
     104        <xs:complexType name="deviceType"> 
     105                <xs:annotation> 
     106                        <xs:documentation> Device derived from physicalResourceType</xs:documentation> 
     107                </xs:annotation> 
     108                <xs:complexContent> 
     109                        <xs:extension base="physicalResourceType"> 
     110                                <xs:sequence> 
     111                                        <xs:choice> 
     112                                                <xs:sequence> 
     113                                                        <xs:element name="location" type="locationType" minOccurs="0" maxOccurs="1"></xs:element> 
     114                                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     115                                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element> 
    72116                                                </xs:sequence> 
    73117                                                <xs:sequence> 
    74118                                                        <xs:element name="templateId" type="xs:string"/> 
     119                                                        <xs:element name="location" type="locationType" minOccurs="0" maxOccurs="1"></xs:element> 
    75120                                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    76                                                         <xs:element name="location" type="locationType" minOccurs="0" maxOccurs="1"></xs:element> 
    77121                                                </xs:sequence> 
    78122                                        </xs:choice> 
    79123                                </xs:sequence> 
    80                                 <xs:attribute name="groupId" type="xs:integer" use="optional"/>                  
    81                                 <xs:attribute name="count" type="xs:integer" use="optional"/> 
    82124                        </xs:extension> 
    83125                </xs:complexContent> 
     
    93135                        <xs:extension base="resourceType"> 
    94136                                <xs:sequence> 
    95                                         <xs:element name="resourceUnit" type="resourceUnitType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    96137                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    97138                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element> 
     139                                        <xs:element name="device" type="deviceType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     140                                        <xs:element name="resourceUnit" type="resourceUnitType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    98141                                        <xs:element name="computingResource" type="computingResourceType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     142                                </xs:sequence> 
     143                        </xs:extension> 
     144                </xs:complexContent> 
     145        </xs:complexType> 
     146         
     147        <xs:complexType name="deviceTemplateType"> 
     148                <xs:annotation> 
     149                        <xs:documentation>ComputingResourceTemplate derived from resourceType. 
     150                        It allows user to define model of computing resource component that may constitute other computing resources 
     151                        Computing resource templates can be then referred in computing resource definition</xs:documentation> 
     152                </xs:annotation> 
     153                <xs:complexContent> 
     154                        <xs:extension base="resourceType"> 
     155                                <xs:sequence> 
     156                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     157                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element> 
    99158                                </xs:sequence> 
    100159                        </xs:extension> 
     
    241300                <xs:sequence> 
    242301                        <xs:element name="energyEstimationPlugin" type="energyEstimationPluginType" minOccurs="0"></xs:element> 
    243                         <xs:element name="powerStates" type="powerStatesType" minOccurs="0"></xs:element> 
    244                         <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    245                 </xs:sequence> 
    246         </xs:complexType> 
    247          
    248         <xs:complexType name="powerStatesType"> 
     302                        <xs:element name="powerStates" type="powerStatesListType" minOccurs="0"></xs:element> 
     303                        <xs:element name="loadPowerUsage" type="loadPowerUsageType" minOccurs="0"></xs:element>                  
     304                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     305                </xs:sequence> 
     306        </xs:complexType> 
     307         
     308        <xs:complexType name="powerStatesListType"> 
    249309                <xs:annotation> 
    250310                        <xs:documentation>PowerState type act as a container for power states. It contains energy-related characteristics of the computing resource</xs:documentation> 
     
    284344                </xs:sequence> 
    285345        </xs:complexType> 
     346                 
     347        <xs:complexType name="loadPowerUsageType"> 
     348                <xs:sequence> 
     349                        <xs:element name="load" type="xs:float" maxOccurs="1" minOccurs="1"></xs:element> 
     350                        <xs:element name="powerUsage" type="xs:float" maxOccurs="1" minOccurs="1"></xs:element> 
     351                </xs:sequence> 
     352        </xs:complexType> 
    286353         
    287354        <xs:complexType name="airThroughputEstimationPluginType"> 
     
    301368                <xs:sequence> 
    302369                        <xs:element name="airThroughputEstimationPlugin" type="airThroughputEstimationPluginType" minOccurs="0"></xs:element> 
    303                         <xs:element name="airThroughputStates" type="airThroughputStatesType" minOccurs="0"></xs:element> 
    304                         <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    305                 </xs:sequence> 
    306         </xs:complexType> 
    307          
    308         <xs:complexType name="airThroughputStatesType"> 
     370                        <xs:element name="airThroughputStates" type="airThroughputStatesListType" minOccurs="0"></xs:element> 
     371                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     372                </xs:sequence> 
     373        </xs:complexType> 
     374         
     375        <xs:complexType name="airThroughputStatesListType"> 
    309376                <xs:annotation> 
    310377                        <xs:documentation>AirThroughputStates type act as a container for air throughput states.</xs:documentation> 
     
    318385        <xs:complexType name="airThroughputStateType"> 
    319386                <xs:annotation> 
    320                         <xs:documentation>Air througput state provides means to define air flow level.  
     387                        <xs:documentation>Air throughput state provides means to define air flow level.  
    321388                        It can represent, for instance, a fan working state</xs:documentation> 
    322389                </xs:annotation> 
     
    341408        <xs:complexType name="thermalProfileType"> 
    342409                <xs:annotation> 
    343                         <xs:documentation>ThermalProfile provides temperatureEstimation plugin,  and other thermal-related parameters definition</xs:documentation> 
     410                        <xs:documentation>ThermalProfile provides temperatureEstimation plugin, and other thermal-related parameters definition</xs:documentation> 
    344411                </xs:annotation> 
    345412                <xs:sequence> 
     
    405472                                                        <xs:element name="scheduler" type="schedulerType" maxOccurs="unbounded"/> 
    406473                                                </xs:sequence> 
     474                                                <xs:attribute name="mode" type="xs:string" default="Standard"/> 
    407475                                        </xs:complexType> 
    408476                                </xs:element> 
     
    414482                                                <xs:sequence> 
    415483                                                        <xs:element name="description" type="xs:string" minOccurs="0" ></xs:element> 
    416                                                         <xs:element name="computingResourceTemplate" type="computingResourceTemplateType" maxOccurs="unbounded"/> 
     484                                                        <xs:element name="computingResourceTemplate" type="computingResourceTemplateType" minOccurs="0" maxOccurs="unbounded"/> 
     485                                                        <xs:element name="deviceTemplate" type="deviceTemplateType" minOccurs="0" maxOccurs="unbounded"/> 
    417486                                                </xs:sequence> 
    418487                                        </xs:complexType> 
Note: See TracChangeset for help on using the changeset viewer.