Changeset 317


Ignore:
Timestamp:
07/14/12 19:46:44 (13 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xssim/trunk/src/test/rewolucja/schemas/XSSimResSchema.xsd

    r315 r317  
    4747                                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    4848                                                        <xs:element name="energyEstimationPlugin" type="energyEstimationPluginType" minOccurs="0" maxOccurs="1"></xs:element> 
    49                                                         <xs:element name="powerProfile" type="powerProfileType" minOccurs="0" maxOccurs="1"></xs:element> 
     49                                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element> 
    5050                                                </xs:sequence> 
    5151                                                <xs:element name="templateId" type="xs:IDREF"/> 
     
    7070                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    7171                                        <xs:element name="energyEstimationPlugin" type="energyEstimationPluginType" minOccurs="0" maxOccurs="1"></xs:element> 
    72                                         <xs:element name="powerProfile" type="powerProfileType" minOccurs="0" maxOccurs="1"></xs:element> 
     72                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element> 
    7373                                </xs:sequence> 
    7474                        </xs:extension> 
     
    115115                                <xs:sequence> 
    116116                                        <xs:element name="amount" type="xs:double"/> 
     117                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    117118                                </xs:sequence> 
    118119                        </xs:extension> 
     
    139140        </xs:complexType> 
    140141         
     142        <xs:complexType name="profileType"> 
     143                <xs:annotation> 
     144                        <xs:documentation>Resource profiles</xs:documentation> 
     145                </xs:annotation> 
     146                <xs:sequence> 
     147                        <xs:element name="powerProfile" type="powerProfileType" minOccurs="0"></xs:element> 
     148                        <xs:element name="airThroughputProfile" type="airThroughputProfileType" minOccurs="0"></xs:element> 
     149                </xs:sequence> 
     150        </xs:complexType> 
     151         
    141152        <xs:complexType name="powerProfileType"> 
    142153                <xs:annotation> 
    143                         <xs:documentation>power profile</xs:documentation> 
    144                 </xs:annotation> 
    145                 <xs:sequence> 
    146                         <xs:sequence> 
    147                                 <xs:element name="powerStates" type="powerStatesType" minOccurs="0"></xs:element> 
    148                                 <xs:element name="pStates" type="pStatesType" minOccurs="0"></xs:element> 
    149                                 <xs:element name="fan" type="fanType" minOccurs="0"></xs:element> 
    150                                 <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    151                         </xs:sequence> 
    152                 </xs:sequence> 
    153         </xs:complexType> 
    154  
    155         <xs:complexType name="pStatesType"> 
    156                 <xs:annotation> 
    157                         <xs:documentation>Definition of supported  p-states</xs:documentation> 
    158                 </xs:annotation> 
    159                 <xs:sequence minOccurs="1" maxOccurs="unbounded"> 
    160                         <xs:element name="pState" type="pStateType"></xs:element> 
    161                 </xs:sequence> 
    162         </xs:complexType> 
    163          
    164         <xs:complexType name="pStateType"> 
    165                 <xs:annotation> 
    166                         <xs:documentation>Definition of the p-state</xs:documentation> 
    167                 </xs:annotation> 
    168                 <xs:sequence> 
    169                         <xs:element name="name" type="xs:string"></xs:element> 
    170                         <xs:element name="frequency" type="xs:double"></xs:element> 
    171                         <xs:element name="voltage" type="xs:double" minOccurs="0"></xs:element> 
    172                         <xs:element name="power" type="xs:double"></xs:element> 
     154                        <xs:documentation>Power profile</xs:documentation> 
     155                </xs:annotation> 
     156                <xs:sequence> 
     157                        <xs:element name="powerStates" type="powerStatesType" minOccurs="0"></xs:element> 
     158                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    173159                </xs:sequence> 
    174160        </xs:complexType> 
     
    205191        </xs:complexType> 
    206192         
    207         <xs:complexType name="fanType"> 
     193        <xs:complexType name="airThroughputProfileType"> 
    208194                <xs:annotation> 
    209195                        <xs:documentation>Description of the computing resource fan</xs:documentation> 
    210196                </xs:annotation> 
    211197                <xs:sequence minOccurs="1" maxOccurs="unbounded"> 
    212                         <xs:element name="fanState" type="fanStateType"></xs:element> 
    213                 </xs:sequence> 
    214         </xs:complexType> 
    215          
    216         <xs:complexType name="fanStateType"> 
     198                        <xs:element name="airThroughput" type="airThroughputType"></xs:element> 
     199                </xs:sequence> 
     200        </xs:complexType> 
     201         
     202        <xs:complexType name="airThroughputType"> 
    217203                <xs:annotation> 
    218204                        <xs:documentation>Definition of the power state</xs:documentation> 
    219205                </xs:annotation> 
    220206                <xs:sequence> 
    221                         <xs:element name="speed" type="xs:double"></xs:element> 
    222                         <xs:element name="airThroughput" type="xs:double"></xs:element> 
    223                         <xs:element name="power" type="xs:double" minOccurs="0"></xs:element> 
     207                        <xs:element name="name" type="xs:string"></xs:element> 
     208                        <xs:element name="value" type="xs:double"></xs:element> 
     209                        <xs:element name="powerConsumption" type="xs:double" minOccurs="0"></xs:element> 
    224210                </xs:sequence> 
    225211        </xs:complexType> 
     
    240226                        <xs:documentation>Description of parameter of resource</xs:documentation> 
    241227                </xs:annotation> 
    242                 <xs:sequence> 
     228                <xs:choice> 
    243229                        <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> 
    244                 </xs:sequence> 
     230                        <xs:sequence minOccurs="0" maxOccurs="unbounded"> 
     231                                <xs:element name="property"> 
     232                                <xs:complexType> 
     233                                        <xs:sequence> 
     234                                                <xs:element name="value" type="xs:string"/> 
     235                                        </xs:sequence> 
     236                                        <xs:attribute name="name" type="xs:string" use="required"/> 
     237                                </xs:complexType> 
     238                        </xs:element> 
     239                        </xs:sequence> 
     240                </xs:choice> 
    245241                <xs:attribute name="name" type="xs:string" use="required"/> 
    246242        </xs:complexType> 
Note: See TracChangeset for help on using the changeset viewer.