source: branches/xtext-MDT/org.modelica.emf.units/model/OpenModelicaPhysicalQuantity.ecore

Last change on this file was 552, checked in by nasko, 15 years ago

Work in progress

File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ecore:EPackage xmi:version="2.0"
3    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="PhysicalQuantities"
5    nsURI="http://www.openmodelica.org/openmodelica.properties/3.1" nsPrefix="ModelicaProperties">
6  <eClassifiers xsi:type="ecore:EEnum" name="UnitPrefixes">
7    <eLiterals name="NONE" literal="NONE"/>
8    <eLiterals name="YOTTA" value="24" literal="Y"/>
9    <eLiterals name="ZETTA" value="21" literal="Z"/>
10    <eLiterals name="EXA" value="18" literal="E"/>
11    <eLiterals name="PETA" value="15" literal="P"/>
12    <eLiterals name="TERA" value="12" literal="T"/>
13    <eLiterals name="GIGA" value="9" literal="G"/>
14    <eLiterals name="MEGA" value="6" literal="M"/>
15    <eLiterals name="KILO" value="3" literal="K"/>
16    <eLiterals name="HECTO" value="2" literal="h"/>
17    <eLiterals name="DEKA" value="1" literal="D"/>
18    <eLiterals name="DECI" value="-1" literal="d"/>
19    <eLiterals name="CENTI" value="-2" literal="c"/>
20    <eLiterals name="MILLI" value="-3" literal="m"/>
21    <eLiterals name="MICRO" value="-6" literal="u"/>
22    <eLiterals name="NANO" value="-9" literal="n"/>
23    <eLiterals name="PICO" value="-12" literal="p"/>
24    <eLiterals name="FEMTO" value="-15" literal="f"/>
25    <eLiterals name="ATTO" value="-18" literal="a"/>
26    <eLiterals name="ZEPTO" value="-21" literal="z"/>
27    <eLiterals name="YOCTO" value="-24" literal="y"/>
28  </eClassifiers>
29  <eClassifiers xsi:type="ecore:EClass" name="Quantity">
30    <eStructuralFeatures xsi:type="ecore:EReference" name="unit" eType="#//Unit" containment="true"/>
31    <eStructuralFeatures xsi:type="ecore:EReference" name="alternativeUnits" eType="#//AlternativeUnit"
32        containment="true"/>
33    <eStructuralFeatures xsi:type="ecore:EReference" name="derivedUnits" upperBound="-1"
34        eType="#//DerivedUnit" containment="true"/>
35    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
36    <eStructuralFeatures xsi:type="ecore:EAttribute" name="descriptiveName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
37    <eStructuralFeatures xsi:type="ecore:EAttribute" name="symbol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
38  </eClassifiers>
39  <eClassifiers xsi:type="ecore:EClass" name="Unit" abstract="true"/>
40  <eClassifiers xsi:type="ecore:EClass" name="BaseUnit" eSuperTypes="#//Unit">
41    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
42    <eStructuralFeatures xsi:type="ecore:EAttribute" name="symbol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
43  </eClassifiers>
44  <eClassifiers xsi:type="ecore:EClass" name="AlternativeUnit" eSuperTypes="#//BaseUnit">
45    <eStructuralFeatures xsi:type="ecore:EReference" name="basisUnit" lowerBound="1"
46        eType="#//Unit"/>
47    <eStructuralFeatures xsi:type="ecore:EReference" name="transformationToBasisUnit"
48        lowerBound="1" eType="#//UnitTransformation" containment="true"/>
49  </eClassifiers>
50  <eClassifiers xsi:type="ecore:EClass" name="UnitTransformation">
51    <eOperations name="getInverseTransformation" eType="#//UnitTransformation"/>
52    <eStructuralFeatures xsi:type="ecore:EAttribute" name="multiplier" lowerBound="1"
53        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble" defaultValueLiteral="1"/>
54    <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset" lowerBound="1"
55        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble" defaultValueLiteral="0"/>
56  </eClassifiers>
57  <eClassifiers xsi:type="ecore:EClass" name="DerivedUnit" eSuperTypes="#//Unit"/>
58  <eClassifiers xsi:type="ecore:EClass" name="ProductUnit" eSuperTypes="#//DerivedUnit">
59    <eStructuralFeatures xsi:type="ecore:EReference" name="elements" lowerBound="1"
60        upperBound="-1" eType="#//ProductUnitElement" containment="true"/>
61  </eClassifiers>
62  <eClassifiers xsi:type="ecore:EClass" name="ProductUnitElement">
63    <eStructuralFeatures xsi:type="ecore:EReference" name="unit" eType="#//Unit"/>
64    <eStructuralFeatures xsi:type="ecore:EAttribute" name="prefix" lowerBound="1"
65        eType="#//UnitPrefixes" defaultValueLiteral="NONE"/>
66    <eStructuralFeatures xsi:type="ecore:EAttribute" name="powerNumerator" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
67        defaultValueLiteral="1"/>
68    <eStructuralFeatures xsi:type="ecore:EAttribute" name="powerDenominator" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
69        defaultValueLiteral="1"/>
70  </eClassifiers>
71  <eClassifiers xsi:type="ecore:EClass" name="SystemOfUnits">
72    <eStructuralFeatures xsi:type="ecore:EReference" name="baseUnits" lowerBound="3"
73        upperBound="-1" eType="#//BaseUnit" containment="true"/>
74    <eStructuralFeatures xsi:type="ecore:EReference" name="quantities" upperBound="-1"
75        eType="#//Quantity" containment="true"/>
76  </eClassifiers>
77</ecore:EPackage>
Note: See TracBrowser for help on using the repository browser.