OASIS Energy Market Information Exchange (eMIX) TC

 View Only
  • 1.  A pass at units for power

    Posted 03-09-2011 00:57
    See attached xsd fragment.   Aaron finally got me to see what he had already sent me three times…   See and comment on attached units fragment. If accepted, then it spreads all over Power.       “It is difficult to get a man to understand something, when his salary depends upon his not understanding it” -- Upton Sinclair. Toby Considine TC9, Inc OASIS Technical Advisory Board TC Chair: oBIX & WS-Calendar TC Editor: EMIX, EnergyInterop U.S. National Inst. of Standards and Tech. Smart Grid Architecture Committee    Email: Toby.Considine@gmail.com Phone: (919)619-2104 http://www.tcnine.com/ blog: www.NewDaedalus.com     <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XMLSpy v2011 rel. 2 (x64) ( http://www.altova.com ) by Toby Considine (TC9, Inc) --> <!-- Schema Set for OASIS EMIX 1.0 CSD02 Set includes: EMIX, EMIX-Requirements, EMIX-Warrants (emix) Power, Power-Contracts, Power-Quality (power) Resource (resource) This set built on the WS-Calendar CSD02 Schemas, still a work in process. They are included in this set as a convenince during review. This set includes kml because because of download / registration issues --> <xs:schema xmlns:xu=" http://docs.oasis-open.org/ns/emix/power/units" ; xmlns:xs=" http://www.w3.org/2001/XMLSchema" ; targetNamespace=" http://docs.oasis-open.org/ns/emix/power/units" ; elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="productClass" type="xu:ProductClassBase" abstract="true"> <xs:annotation> <xs:documentation>Abstract extension object for Emix Power Enumerations Power and Energy, Real, Reactive, and Total</xs:documentation> </xs:annotation> </xs:element> <xs:complexType name="ProductClassBase" abstract="true"> <xs:annotation> <xs:documentation>Type of Abstract extension object for Emix Power Prduct Classes</xs:documentation> </xs:annotation> </xs:complexType> <!-- Product selection --> <xs:element name="powerProduct" type="xu:PowerProductType" substitutionGroup="xu:productClass"/> <xs:complexType name="PowerProductType"> <xs:complexContent> <xs:extension base="xu:ProductClassBase"> <xs:sequence> <xs:element ref="xu:powerUnit"/> <xs:element ref="xu:serviceScale"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:element name="energyProduct" type="xu:EnergyProductType" substitutionGroup="xu:productClass"/> <xs:complexType name="EnergyProductType"> <xs:complexContent> <xs:extension base="xu:ProductClassBase"> <xs:sequence> <xs:element ref="xu:energyUnit"/> <xs:element ref="xu:serviceScale"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <!-- Product descriptions --> <xs:element name="energyUnit" type="xu:EnergyUnitType"/> <xs:simpleType name="EnergyUnitType"> <xs:restriction base="xs:string"> <xs:enumeration value="VA"/> <xs:enumeration value="W"/> <xs:enumeration value="VAR"/> <xs:enumeration value="Joules/Sec"/> </xs:restriction> </xs:simpleType> <xs:element name="powerUnit" type="xu:PowerUnitType"/> <xs:simpleType name="PowerUnitType"> <xs:restriction base="xs:string"> <xs:enumeration value="Vah"/> <xs:enumeration value="Volt-Ampere"/> <xs:enumeration value="m"/> </xs:restriction> </xs:simpleType> <xs:element name="serviceScale" type="xu:ServiceScaleType"/> <xs:simpleType name="ServiceScaleType"> <xs:restriction base="xs:string"> <xs:enumeration value="T"/> <xs:enumeration value="M"/> <xs:enumeration value="K"/> <xs:enumeration value="-"/> <xs:enumeration value="c"/> <xs:enumeration value="m"/> </xs:restriction> </xs:simpleType> </xs:schema>