Changeset 343 for xssim


Ignore:
Timestamp:
07/19/12 15:18:18 (13 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

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

    r341 r343  
    6767                                                        <xs:element name="resourceUnit" type="resourceUnitType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    6868                                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    69                                                         <xs:element name="energyEstimationPlugin" type="energyEstimationPluginType" minOccurs="0" maxOccurs="1"></xs:element> 
    7069                                                        <xs:element name="profile" type="profileType" minOccurs="0" maxOccurs="1"></xs:element> 
    7170                                                        <xs:element name="location" type="locationType" minOccurs="0" maxOccurs="1"></xs:element> 
     
    131130                        <xs:extension base="pluginType"> 
    132131                                <xs:sequence> 
    133                                         <xs:element name="frequency" type="valueWithUnitType" minOccurs="0" maxOccurs="1"></xs:element> 
     132                                        <xs:element name="frequency" type="doubleValueWithUnitType" minOccurs="0" maxOccurs="1"></xs:element> 
    134133                                </xs:sequence> 
    135134                        </xs:extension> 
     
    145144                        <xs:extension base="resourceType"> 
    146145                                <xs:sequence> 
    147                                         <xs:element name="amount" type="valueWithUnitType"/> 
     146                                        <xs:element name="amount" type="doubleValueWithUnitType"/> 
    148147                                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    149148                                </xs:sequence> 
     
    152151        </xs:complexType> 
    153152 
    154         <xs:complexType name="valueWithUnitType"> 
    155                 <xs:annotation> 
    156                         <xs:documentation>ValueWitUnit derived from double. Allows providing units in which a given value is expressed 
     153        <xs:complexType name="doubleValueWithUnitType"> 
     154                <xs:annotation> 
     155                        <xs:documentation>DoubleValueWitUnit derived from double. Allows providing units in which a given value is expressed 
    157156                        Attributes: unit - indicate appropriate units, for instance: seconds, watts, bytes etc. </xs:documentation> 
    158157                </xs:annotation> 
     
    164163        </xs:complexType> 
    165164         
     165        <xs:complexType name="stringValueWithUnitType"> 
     166                <xs:annotation> 
     167                        <xs:documentation>StringValueWitUnit derived from string. Allows providing units in which a given value is expressed 
     168                        Attributes: unit - indicate appropriate units. </xs:documentation> 
     169                </xs:annotation> 
     170                <xs:simpleContent> 
     171                        <xs:extension base="xs:string"> 
     172                                <xs:attribute name="unit" type="xs:string" use="optional"/> 
     173                        </xs:extension>  
     174                </xs:simpleContent>      
     175        </xs:complexType> 
     176         
    166177        <xs:complexType name="managedComputingResourcesType"> 
    167178                <xs:annotation> 
     
    203214        <xs:complexType name="powerProfileType"> 
    204215                <xs:annotation> 
    205                         <xs:documentation>Power profile provides powerState and other power-related parameters definition</xs:documentation> 
    206                 </xs:annotation> 
    207                 <xs:sequence> 
     216                        <xs:documentation>Power profile provides energyEstimation plugin, powerStates and other power-related parameters definition</xs:documentation> 
     217                </xs:annotation> 
     218                <xs:sequence> 
     219                        <xs:element name="energyEstimationPlugin" type="energyEstimationPluginType" minOccurs="0" maxOccurs="1"></xs:element> 
    208220                        <xs:element name="powerStates" type="powerStatesType" minOccurs="0"></xs:element> 
    209221                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     
    229241                <xs:sequence> 
    230242                        <xs:element name="name" type="xs:string"></xs:element> 
    231                         <xs:element name="powerUsage" type="valueWithUnitType" minOccurs="0" maxOccurs="1"></xs:element> 
     243                        <xs:element name="powerUsage" type="doubleValueWithUnitType" minOccurs="0" maxOccurs="1"></xs:element> 
    232244                        <xs:element name="transition" type="powerStatesTransitionType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    233245                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     
    244256                <xs:sequence> 
    245257                        <xs:element name="to" type="xs:string"></xs:element> 
    246                         <xs:element name="powerUsage" type="valueWithUnitType"></xs:element> 
    247                         <xs:element name="time" type="valueWithUnitType"></xs:element> 
    248                         <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    249                 </xs:sequence> 
     258                        <xs:element name="powerUsage" type="doubleValueWithUnitType"></xs:element> 
     259                        <xs:element name="time" type="doubleValueWithUnitType"></xs:element> 
     260                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
     261                </xs:sequence> 
     262        </xs:complexType> 
     263         
     264        <xs:complexType name="airThroughputEstimationPluginType"> 
     265                <xs:annotation> 
     266                        <xs:documentation>AirThroughputEstimationPlugin derived from Plugin.  
     267                        Air Throughput plugin is used to estimate air flow value based on the defined air throughput states</xs:documentation> 
     268                </xs:annotation> 
     269                <xs:complexContent> 
     270                        <xs:extension base="pluginType"/> 
     271                </xs:complexContent> 
    250272        </xs:complexType> 
    251273         
    252274        <xs:complexType name="airThroughputProfileType"> 
    253275                <xs:annotation> 
    254                         <xs:documentation>AirThrouhputProfile type acts as a container for air throughput states</xs:documentation> 
     276                        <xs:documentation>AirThrouhputProfile provides airThroughputEstimation plugin, airThroughputStates and other airThroughput-related parameters definition</xs:documentation> 
     277                </xs:annotation> 
     278                <xs:sequence> 
     279                        <xs:element name="airThroughputEstimationPlugin" type="airThroughputEstimationPluginType" minOccurs="0" maxOccurs="1"></xs:element> 
     280                        <xs:element name="airThroughputStates" type="airThroughputStatesType" minOccurs="1" maxOccurs="unbounded"></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="airThroughputStatesType"> 
     286                <xs:annotation> 
     287                        <xs:documentation>AirThroughputState type act as a container for air throughput states.</xs:documentation> 
    255288                </xs:annotation> 
    256289                <xs:sequence> 
     
    266299                <xs:sequence> 
    267300                        <xs:element name="name" type="xs:string"></xs:element> 
    268                         <xs:element name="value" type="valueWithUnitType"></xs:element> 
    269                         <xs:element name="powerUsage" type="valueWithUnitType" minOccurs="0"></xs:element> 
     301                        <xs:element name="value" type="doubleValueWithUnitType"></xs:element> 
     302                        <xs:element name="powerUsage" type="doubleValueWithUnitType" minOccurs="0"></xs:element> 
    270303                        <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"></xs:element> 
    271304                </xs:sequence> 
     
    291324                </xs:annotation> 
    292325                <xs:choice> 
    293                         <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> 
     326                        <xs:element name="value" type="stringValueWithUnitType" minOccurs="0" maxOccurs="unbounded"/> 
    294327                        <xs:sequence> 
    295328                                <xs:element name="property" minOccurs="0" maxOccurs="unbounded"> 
     
    300333                                                </xs:annotation> 
    301334                                                <xs:sequence> 
    302                                                         <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> 
     335                                                        <xs:element name="value" type="stringValueWithUnitType" minOccurs="0" maxOccurs="unbounded"/> 
    303336                                                </xs:sequence> 
    304337                                                <xs:attribute name="name" type="xs:string" use="required"/> 
Note: See TracChangeset for help on using the changeset viewer.