Commit 7ad4aed5 authored by Kai-Holger Brassel's avatar Kai-Holger Brassel
Browse files

Replaced custom unit projects by external cityunits and indriya plugins

parent 01673354
Showing with 281 additions and 1769 deletions
+281 -1769
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style">
<viewpoint:DAnalysis uid="_xDanIFezEeq_N_dFIDFqhA" selectedViews="_xbAAsFezEeq_N_dFIDFqhA" version="14.3.0.201909031200">
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.3/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style">
<viewpoint:DAnalysis uid="_xDanIFezEeq_N_dFIDFqhA" selectedViews="_xbAAsFezEeq_N_dFIDFqhA" version="14.3.1.202003261200">
<semanticResources>EnergyComponents.ecore</semanticResources>
<semanticResources>EnergyComponents.genmodel</semanticResources>
<ownedViews xmi:type="viewpoint:DView" uid="_xbAAsFezEeq_N_dFIDFqhA">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/>
<ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_xgdIcFezEeq_N_dFIDFqhA" name="Energy Components Class Diagram" repPath="#_xdAy4FezEeq_N_dFIDFqhA" changeId="754a5fff-0989-4763-ba99-183e58dc0339">
<ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_xgdIcFezEeq_N_dFIDFqhA" name="Energy Components Class Diagram" repPath="#_xdAy4FezEeq_N_dFIDFqhA" changeId="10bbacab-2dcd-4fef-87ad-83918fb198bb">
<description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/>
<target xmi:type="ecore:EPackage" href="EnergyComponents.ecore#/"/>
</ownedRepresentationDescriptors>
......@@ -760,32 +760,6 @@
<styles xmi:type="notation:ShapeStyle" xmi:id="_Cdv0gLuHEeq7PM-WLoFu_w" fontName="Segoe UI" fontHeight="8"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_Cdv0gbuHEeq7PM-WLoFu_w" x="830" y="1920" width="148" height="63"/>
</children>
<children xmi:type="notation:Node" xmi:id="_OR4Xy8D3Eeq7PM-WLoFu_w" type="2003" element="_ORk1sMD3Eeq7PM-WLoFu_w">
<children xmi:type="notation:Node" xmi:id="_OR4XzsD3Eeq7PM-WLoFu_w" type="5007"/>
<children xmi:type="notation:Node" xmi:id="_OR4Xz8D3Eeq7PM-WLoFu_w" type="7004">
<children xmi:type="notation:Node" xmi:id="_OR4X0sD3Eeq7PM-WLoFu_w" type="3010" element="_ORunbMD3Eeq7PM-WLoFu_w">
<styles xmi:type="notation:FontStyle" xmi:id="_OR4X08D3Eeq7PM-WLoFu_w" fontName="Segoe UI" fontHeight="8" italic="true"/>
<layoutConstraint xmi:type="notation:Location" xmi:id="_OR4X1MD3Eeq7PM-WLoFu_w"/>
</children>
<styles xmi:type="notation:SortingStyle" xmi:id="_OR4X0MD3Eeq7PM-WLoFu_w"/>
<styles xmi:type="notation:FilteringStyle" xmi:id="_OR4X0cD3Eeq7PM-WLoFu_w"/>
</children>
<styles xmi:type="notation:ShapeStyle" xmi:id="_OR4XzMD3Eeq7PM-WLoFu_w" fontName="Segoe UI" fontHeight="8"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_OR4XzcD3Eeq7PM-WLoFu_w" x="318" y="738" width="153" height="63"/>
</children>
<children xmi:type="notation:Node" xmi:id="_biBZ08D3Eeq7PM-WLoFu_w" type="2003" element="_bht2EMD3Eeq7PM-WLoFu_w">
<children xmi:type="notation:Node" xmi:id="_biBZ1sD3Eeq7PM-WLoFu_w" type="5007"/>
<children xmi:type="notation:Node" xmi:id="_biBZ18D3Eeq7PM-WLoFu_w" type="7004">
<children xmi:type="notation:Node" xmi:id="_biBZ2sD3Eeq7PM-WLoFu_w" type="3010" element="_biBYbsD3Eeq7PM-WLoFu_w">
<styles xmi:type="notation:FontStyle" xmi:id="_biBZ28D3Eeq7PM-WLoFu_w" fontName="Segoe UI" fontHeight="8" italic="true"/>
<layoutConstraint xmi:type="notation:Location" xmi:id="_biBZ3MD3Eeq7PM-WLoFu_w"/>
</children>
<styles xmi:type="notation:SortingStyle" xmi:id="_biBZ2MD3Eeq7PM-WLoFu_w"/>
<styles xmi:type="notation:FilteringStyle" xmi:id="_biBZ2cD3Eeq7PM-WLoFu_w"/>
</children>
<styles xmi:type="notation:ShapeStyle" xmi:id="_biBZ1MD3Eeq7PM-WLoFu_w" fontName="Segoe UI" fontHeight="8"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_biBZ1cD3Eeq7PM-WLoFu_w" x="318" y="668" width="153" height="63"/>
</children>
<children xmi:type="notation:Node" xmi:id="_F6kJd8FBEeq7PM-WLoFu_w" type="2003" element="_F6aW0MFBEeq7PM-WLoFu_w">
<children xmi:type="notation:Node" xmi:id="_F6kJesFBEeq7PM-WLoFu_w" type="5007"/>
<children xmi:type="notation:Node" xmi:id="_F6kJe8FBEeq7PM-WLoFu_w" type="7004">
......@@ -3671,52 +3645,6 @@
</ownedStyle>
<actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC_EReference']"/>
</ownedDiagramElements>
<ownedDiagramElements xmi:type="diagram:DNodeList" uid="_ORk1sMD3Eeq7PM-WLoFu_w" name="QuantityDouble" tooltipText="" width="14" height="5">
<target xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityDouble"/>
<semanticElements xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityDouble"/>
<arrangeConstraints>KEEP_LOCATION</arrangeConstraints>
<arrangeConstraints>KEEP_SIZE</arrangeConstraints>
<arrangeConstraints>KEEP_RATIO</arrangeConstraints>
<ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_ORk1scD3Eeq7PM-WLoFu_w" borderSize="1" borderSizeComputationExpression="1" borderColor="125,125,125" backgroundStyle="Liquid" foregroundColor="255,250,191">
<description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@style"/>
</ownedStyle>
<actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']"/>
<ownedElements xmi:type="diagram:DNodeListElement" uid="_ORunbMD3Eeq7PM-WLoFu_w" name="de.hftstuttgart.units.NullableQuantity" tooltipText="">
<target xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityDouble"/>
<semanticElements xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityDouble"/>
<decorations xmi:type="viewpoint:Decoration" uid="_ORunbsD3Eeq7PM-WLoFu_w">
<description xmi:type="description:SemanticBasedDecoration" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@decorationDescriptionsSet/@decorationDescriptions[name='External']"/>
</decorations>
<ownedStyle xmi:type="diagram:BundledImage" uid="_ORunbcD3Eeq7PM-WLoFu_w" showIcon="false">
<labelFormat>italic</labelFormat>
<description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@subNodeMappings[name='EC_DataType_InstanceClassName']/@style"/>
</ownedStyle>
<actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@subNodeMappings[name='EC_DataType_InstanceClassName']"/>
</ownedElements>
</ownedDiagramElements>
<ownedDiagramElements xmi:type="diagram:DNodeList" uid="_bht2EMD3Eeq7PM-WLoFu_w" name="QuantityLong" tooltipText="" width="14" height="5">
<target xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityLong"/>
<semanticElements xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityLong"/>
<arrangeConstraints>KEEP_LOCATION</arrangeConstraints>
<arrangeConstraints>KEEP_SIZE</arrangeConstraints>
<arrangeConstraints>KEEP_RATIO</arrangeConstraints>
<ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_bht2EcD3Eeq7PM-WLoFu_w" borderSize="1" borderSizeComputationExpression="1" borderColor="125,125,125" backgroundStyle="Liquid" foregroundColor="255,250,191">
<description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@style"/>
</ownedStyle>
<actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']"/>
<ownedElements xmi:type="diagram:DNodeListElement" uid="_biBYbsD3Eeq7PM-WLoFu_w" name="de.hftstuttgart.units.NullableQuantity" tooltipText="">
<target xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityLong"/>
<semanticElements xmi:type="ecore:EDataType" href="EnergyComponents.ecore#//QuantityLong"/>
<decorations xmi:type="viewpoint:Decoration" uid="_biBYcMD3Eeq7PM-WLoFu_w">
<description xmi:type="description:SemanticBasedDecoration" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@decorationDescriptionsSet/@decorationDescriptions[name='External']"/>
</decorations>
<ownedStyle xmi:type="diagram:BundledImage" uid="_biBYb8D3Eeq7PM-WLoFu_w" showIcon="false">
<labelFormat>italic</labelFormat>
<description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@subNodeMappings[name='EC_DataType_InstanceClassName']/@style"/>
</ownedStyle>
<actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EDataType']/@subNodeMappings[name='EC_DataType_InstanceClassName']"/>
</ownedElements>
</ownedDiagramElements>
<ownedDiagramElements xmi:type="diagram:DEdge" uid="_vRjVtMEFEeq7PM-WLoFu_w" sourceNode="_1Ws8MFiuEeq_N_dFIDFqhA" targetNode="_QITbgFe0Eeq_N_dFIDFqhA">
<target xmi:type="ecore:EClass" href="EnergyComponents.ecore#//ThermalEnergyDevice"/>
<semanticElements xmi:type="ecore:EClass" href="EnergyComponents.ecore#//ThermalEnergyDevice"/>
......
......@@ -70,7 +70,7 @@
eType="#//EnergyCarrier" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ThermalStorage" eSuperTypes="#//EnergyComponent">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="volume" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="volume" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="5 m³">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="m³"/>
......@@ -78,20 +78,20 @@
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="thermalStorageType" unique="false"
eType="#//ThermalStorageTypes" transient="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="maxTemp" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="maxTemp" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="80 °C">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="degree Celsius"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tankThickness" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tankThickness" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="10 mm "/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="insulationThickness" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="insulationThickness" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="100 mm"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="usesMedium" lowerBound="1"
eType="#//Medium"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="insulationMaterial" eType="#//Material"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="height" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="height" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="2 m"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="tankMaterial" eType="#//Material"/>
</eClassifiers>
......@@ -99,12 +99,13 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="electricalStorageType"
lowerBound="1" eType="#//ElectricalStorageTypes"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="batteryCapacity" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="A*h">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="A*h">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Ah&#xD;&#xA;&#xD;&#xA;The storage capacity of the battery is represented in Ampere &#xD;&#xA;hour or Ah. If V is the battery voltage then the energy storage &#xD;&#xA;capacity of the battery can be Ah x V = Watt-hour. Usually &#xD;&#xA;battery capacity will be specified for a given discharge/charge &#xD;&#xA;rating or C rating. The actual capacity depends on operating &#xD;&#xA;conditions such as load, temperature, etc. "/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="batteryVoltage" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="batteryVoltage" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="V">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="V&#xD;&#xA;&#xD;&#xA;The terminal voltage during operating condition is known as &#xD;&#xA;nominal voltage or working voltage. This voltage will be &#xD;&#xA;specified by manufactures. It may be 3V, 6V, 12V, 24Vetc "/>
......@@ -127,7 +128,8 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="batteryEffiency" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"
defaultValueLiteral="0.8"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="energyContent" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="5 kW*h"/>
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="5 kW*h"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="CombinedHeatPower" eSuperTypes="#//ThermalEnergyDevice">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="thermalEfficiency" lowerBound="1"
......@@ -143,7 +145,8 @@
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="installedElectricalPower"
lowerBound="1" eType="#//QuantityDouble" defaultValueLiteral="kW">
lowerBound="1" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="kW">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kW"/>
</eAnnotations>
......@@ -176,7 +179,8 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="collectorType" lowerBound="1"
eType="#//CollectorTypes"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="apertureArea" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="m²">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="m²">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="m²"/>
</eAnnotations>
......@@ -204,7 +208,8 @@
<eClassifiers xsi:type="ecore:EClass" name="Electrolyzer" eSuperTypes="#//EnergyComponent">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="cellType" eType="#//cellTypesElectrolyzer"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="cellArea" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="50 cm²">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="50 cm²">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="cm²"/>
</eAnnotations>
......@@ -212,24 +217,26 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="numberOfCells" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble" defaultValueLiteral="5"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="maxOperatingCurrentDensity"
eType="#//QuantityDouble" defaultValueLiteral="3 A/cm²">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="3 A/cm²">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A/cm²"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="minOperatingCurrentDensity"
eType="#//QuantityDouble" defaultValueLiteral="0.3 A/cm²">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="0.3 A/cm²">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A/cm²"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="overloadCapacity" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="overloadCapacity" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="120 %">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="percent"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nominalCellVoltage" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nominalCellVoltage" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="1.94 V">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="V"/>
......@@ -239,7 +246,8 @@
<eClassifiers xsi:type="ecore:EClass" name="ThermalEnergyDevice" abstract="true"
eSuperTypes="#//EnergyComponent">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="installedThermalPower"
lowerBound="1" eType="#//QuantityDouble" defaultValueLiteral="kW">
lowerBound="1" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="kW">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kW"/>
</eAnnotations>
......@@ -279,13 +287,13 @@
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="thermodynamicMode" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
defaultValueLiteral="0"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="maxPressure" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="maxPressure" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="50 MPa">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="MPa"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="maxDeliveryRate" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="maxDeliveryRate" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="9 kg/h">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kg/h"/>
......@@ -296,18 +304,20 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="numberOfCylinders" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="1"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="cylinderVolume" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="1.5 m³">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="1.5 m³">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="m³"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nominalPressure" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nominalPressure" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="25 MPa"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FuelCell" eSuperTypes="#//EnergyComponent"/>
<eClassifiers xsi:type="ecore:EClass" name="EnergyCarrier" abstract="true">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="co2EmissionsFactor" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="t/MW*h"/>
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="t/MW*h"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="primaryEnergyFactor" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
......@@ -345,19 +355,22 @@
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Fuel" abstract="true" eSuperTypes="#//EnergyCarrier">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="netCalorificValue" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="(kW*h)/m³">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="(kW*h)/m³">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kWh/m³&#xD;&#xA;Heizwert"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="grossCalorificValue" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="(kW*h)/m³">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="(kW*h)/m³">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kWh/m³&#xD;&#xA;Brennwert"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="density" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="kg/m³">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="kg/m³">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kg/m³"/>
</eAnnotations>
......@@ -371,19 +384,22 @@
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EEnumerator"
transient="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nominalPower" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="W">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="W">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="W"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mppVoltage" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="V">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="V">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="V"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mppCurrent" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="A">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="A">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A"/>
</eAnnotations>
......@@ -395,7 +411,8 @@
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="moduleArea" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="m²">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="m²">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="m²"/>
</eAnnotations>
......@@ -406,14 +423,15 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="heatRecoveryEfficiency"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble" defaultValueLiteral="0.8"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nominalElectricityConsumption"
lowerBound="1" eType="#//QuantityDouble" defaultValueLiteral="W">
lowerBound="1" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="W">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Watt"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GeothermalHeatExchanger" eSuperTypes="#//EnergyComponent">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pipeDiameter" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pipeDiameter" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="1 cm"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BoilerTypes">
......@@ -426,24 +444,26 @@
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Medium">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="density" lowerBound="1"
eType="#//QuantityDouble" defaultValueLiteral="g/cm³">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="g/cm³">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kg/m³"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="heatCapacity" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="heatCapacity" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="kJ/(kg*K)">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="kJ/kg*K"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="evaporationTemperature"
eType="#//QuantityDouble" defaultValueLiteral="°C">
eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="°C">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="degree Celsius"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="meltingTemperature" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="meltingTemperature" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="°C">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="degree Celsius"/>
......@@ -451,8 +471,6 @@
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="QuantityDouble" instanceClassName="de.hftstuttgart.units.NullableQuantity"/>
<eClassifiers xsi:type="ecore:EDataType" name="QuantityLong" instanceClassName="de.hftstuttgart.units.NullableQuantity"/>
<eClassifiers xsi:type="ecore:EEnum" name="cellTypesElectrolyzer">
<eLiterals name="PEM"/>
</eClassifiers>
......@@ -564,7 +582,7 @@
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Material">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="thermalConductivity" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="thermalConductivity" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral=" W/(m*K)">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value=" W/(m*K)"/>
......@@ -595,7 +613,7 @@
eType="#//Characteristic" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="otherInvestmentCost" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"
defaultValueLiteral="0"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="personnelHours" eType="#//QuantityDouble"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="personnelHours" eType="ecore:EDataType ../../de.hftstuttgart.cityunits.model/model/Quantities.ecore#//QuantityDouble"
defaultValueLiteral="10 h"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="personnelCostShare" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="administrationAndOtherCostShare"
......
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/de.hftstuttgart.energycomponents/src-gen" creationIcons="false"
editDirectory="/de.hftstuttgart.energycomponents.edit/src-gen" editorDirectory="/de.hftstuttgart.energycomponents.editor/src-gen"
modelPluginID="de.hftstuttgart.energycomponents" modelName="EnergyComponents"
rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" codeFormatting="true"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false"
modelDirectory="/de.hftstuttgart.energycomponents.model/src-gen"
creationIcons="false" editDirectory="/de.hftstuttgart.energycomponents.edit/src-gen"
editorDirectory="/de.hftstuttgart.energycomponents.editor/src-gen" modelPluginID="de.hftstuttgart.energycomponents.model"
modelName="EnergyComponents" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
codeFormatting="true" importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0"
copyrightFields="false" usedGenPackages="../../de.hftstuttgart.cityunits.model/model/Quantities.genmodel#//quantities"
operationReflection="true" importOrganizing="true">
<foreignModel>EnergyComponents.ecore</foreignModel>
<testsDirectory xsi:nil="true"/>
......@@ -64,10 +65,6 @@
<genEnumLiterals ecoreEnumLiteral="EnergyComponents.ecore#//TypeOfHeatSource/soil"/>
<genEnumLiterals ecoreEnumLiteral="EnergyComponents.ecore#//TypeOfHeatSource/none"/>
</genEnums>
<genDataTypes ecoreDataType="EnergyComponents.ecore#//QuantityDouble" create="return de.hftstuttgart.units.NullableQuantity.create(it);"
convert="return it == null ? null : it.toString();"/>
<genDataTypes ecoreDataType="EnergyComponents.ecore#//QuantityLong" create="return de.hftstuttgart.units.NullableQuantity.create(it);"
convert="return it == null ? null : it.toString();"/>
<genClasses ecoreClass="EnergyComponents.ecore#//EnergyComponent">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//EnergyComponent/description"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//EnergyComponent/modelName"/>
......@@ -238,7 +235,7 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//TableFunction/key"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference EnergyComponents.ecore#//TableFunction/datapoints"/>
</genClasses>
<genClasses documentation="y = ParameterA * ParameterB ^ x" ecoreClass="EnergyComponents.ecore#//ExponentialFunction">
<genClasses ecoreClass="EnergyComponents.ecore#//ExponentialFunction">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//ExponentialFunction/key"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//ExponentialFunction/parameterA"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//ExponentialFunction/parameterB"/>
......@@ -265,8 +262,7 @@
<genClasses ecoreClass="EnergyComponents.ecore#//PolynomialCharacteristic">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference EnergyComponents.ecore#//PolynomialCharacteristic/functions"/>
</genClasses>
<genClasses documentation="y = ParameterA * x^2 + ParameterB * x + ParameterC"
ecoreClass="EnergyComponents.ecore#//PolynomialFunction">
<genClasses ecoreClass="EnergyComponents.ecore#//PolynomialFunction">
<genFeatures documentation="y = ParameterA * x^2 + ParameterB * x + ParameterC"
createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//PolynomialFunction/key"/>
<genFeatures documentation="y = ParameterA * x^2 + ParameterB * x + ParameterC"
......
/**
*/
package de.hftstuttgart.energycomponents;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>All Fuel Types</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getAllFuelTypes()
* @model
* @generated
*/
public enum AllFuelTypes implements Enumerator {
/**
* The '<em><b>Natural Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATURAL_GAS_VALUE
* @generated
* @ordered
*/
NATURAL_GAS(0, "naturalGas", "naturalGas"),
/**
* The '<em><b>Oil</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OIL_VALUE
* @generated
* @ordered
*/
OIL(1, "oil", "oil"),
/**
* The '<em><b>Diesel</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL_VALUE
* @generated
* @ordered
*/
DIESEL(2, "diesel", "diesel"),
/**
* The '<em><b>Bio Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIO_GAS_VALUE
* @generated
* @ordered
*/
BIO_GAS(0, "bioGas", "bioGas"),
/**
* The '<em><b>Synthetic Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS_VALUE
* @generated
* @ordered
*/
SYNTHETIC_GAS(1, "syntheticGas", "syntheticGas"),
/**
* The '<em><b>Wood Pellets</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_PELLETS_VALUE
* @generated
* @ordered
*/
WOOD_PELLETS(2, "woodPellets", "woodPellets"),
/**
* The '<em><b>Wood Chips</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_CHIPS_VALUE
* @generated
* @ordered
*/
WOOD_CHIPS(3, "woodChips", "woodChips"),
/**
* The '<em><b>Sewage Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SEWAGE_GAS_VALUE
* @generated
* @ordered
*/
SEWAGE_GAS(4, "sewageGas", "sewageGas");
/**
* The '<em><b>Natural Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATURAL_GAS
* @model name="naturalGas"
* @generated
* @ordered
*/
public static final int NATURAL_GAS_VALUE = 0;
/**
* The '<em><b>Oil</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OIL
* @model name="oil"
* @generated
* @ordered
*/
public static final int OIL_VALUE = 1;
/**
* The '<em><b>Diesel</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL
* @model name="diesel"
* @generated
* @ordered
*/
public static final int DIESEL_VALUE = 2;
/**
* The '<em><b>Bio Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIO_GAS
* @model name="bioGas"
* @generated
* @ordered
*/
public static final int BIO_GAS_VALUE = 0;
/**
* The '<em><b>Synthetic Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS
* @model name="syntheticGas"
* @generated
* @ordered
*/
public static final int SYNTHETIC_GAS_VALUE = 1;
/**
* The '<em><b>Wood Pellets</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_PELLETS
* @model name="woodPellets"
* @generated
* @ordered
*/
public static final int WOOD_PELLETS_VALUE = 2;
/**
* The '<em><b>Wood Chips</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_CHIPS
* @model name="woodChips"
* @generated
* @ordered
*/
public static final int WOOD_CHIPS_VALUE = 3;
/**
* The '<em><b>Sewage Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SEWAGE_GAS
* @model name="sewageGas"
* @generated
* @ordered
*/
public static final int SEWAGE_GAS_VALUE = 4;
/**
* An array of all the '<em><b>All Fuel Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final AllFuelTypes[] VALUES_ARRAY = new AllFuelTypes[] { NATURAL_GAS, OIL, DIESEL, BIO_GAS,
SYNTHETIC_GAS, WOOD_PELLETS, WOOD_CHIPS, SEWAGE_GAS, };
/**
* A public read-only list of all the '<em><b>All Fuel Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<AllFuelTypes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>All Fuel Types</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static AllFuelTypes get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
AllFuelTypes result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>All Fuel Types</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static AllFuelTypes getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
AllFuelTypes result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>All Fuel Types</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static AllFuelTypes get(int value) {
switch (value) {
case NATURAL_GAS_VALUE:
return NATURAL_GAS;
case OIL_VALUE:
return OIL;
case DIESEL_VALUE:
return DIESEL;
case WOOD_CHIPS_VALUE:
return WOOD_CHIPS;
case SEWAGE_GAS_VALUE:
return SEWAGE_GAS;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private AllFuelTypes(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //AllFuelTypes
/**
*/
package de.hftstuttgart.energycomponents;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Bio Fuel Types</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getBioFuelTypes()
* @model
* @generated
*/
public enum BioFuelTypes implements Enumerator {
/**
* The '<em><b>Bio Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIO_GAS_VALUE
* @generated
* @ordered
*/
BIO_GAS(0, "bioGas", "bioGas"),
/**
* The '<em><b>Synthetic Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS_VALUE
* @generated
* @ordered
*/
SYNTHETIC_GAS(1, "syntheticGas", "syntheticGas"),
/**
* The '<em><b>Wood Pellets</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_PELLETS_VALUE
* @generated
* @ordered
*/
WOOD_PELLETS(2, "woodPellets", "woodPellets"),
/**
* The '<em><b>Wood Chips</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_CHIPS_VALUE
* @generated
* @ordered
*/
WOOD_CHIPS(3, "woodChips", "woodChips"),
/**
* The '<em><b>Sewage Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SEWAGE_GAS_VALUE
* @generated
* @ordered
*/
SEWAGE_GAS(4, "sewageGas", "sewageGas");
/**
* The '<em><b>Bio Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIO_GAS
* @model name="bioGas"
* @generated
* @ordered
*/
public static final int BIO_GAS_VALUE = 0;
/**
* The '<em><b>Synthetic Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS
* @model name="syntheticGas"
* @generated
* @ordered
*/
public static final int SYNTHETIC_GAS_VALUE = 1;
/**
* The '<em><b>Wood Pellets</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_PELLETS
* @model name="woodPellets"
* @generated
* @ordered
*/
public static final int WOOD_PELLETS_VALUE = 2;
/**
* The '<em><b>Wood Chips</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_CHIPS
* @model name="woodChips"
* @generated
* @ordered
*/
public static final int WOOD_CHIPS_VALUE = 3;
/**
* The '<em><b>Sewage Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SEWAGE_GAS
* @model name="sewageGas"
* @generated
* @ordered
*/
public static final int SEWAGE_GAS_VALUE = 4;
/**
* An array of all the '<em><b>Bio Fuel Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final BioFuelTypes[] VALUES_ARRAY = new BioFuelTypes[] { BIO_GAS, SYNTHETIC_GAS, WOOD_PELLETS,
WOOD_CHIPS, SEWAGE_GAS, };
/**
* A public read-only list of all the '<em><b>Bio Fuel Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<BioFuelTypes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Bio Fuel Types</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static BioFuelTypes get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
BioFuelTypes result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Bio Fuel Types</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static BioFuelTypes getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
BioFuelTypes result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Bio Fuel Types</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static BioFuelTypes get(int value) {
switch (value) {
case BIO_GAS_VALUE:
return BIO_GAS;
case SYNTHETIC_GAS_VALUE:
return SYNTHETIC_GAS;
case WOOD_PELLETS_VALUE:
return WOOD_PELLETS;
case WOOD_CHIPS_VALUE:
return WOOD_CHIPS;
case SEWAGE_GAS_VALUE:
return SEWAGE_GAS;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private BioFuelTypes(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //BioFuelTypes
......@@ -27,10 +27,11 @@ public enum BoilerTypes implements Enumerator {
* @ordered
*/
CONDENSING_BOILER(0, "condensingBoiler", "condensingBoiler"),
/**
* The '<em><b>Lowtemperature Boiler</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #LOWTEMPERATURE_BOILER_VALUE
* @generated
* @ordered
......
/**
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Chemical Energy Device</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.ChemicalEnergyDevice#getInstalledThermalPower <em>Installed Thermal Power</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ChemicalEnergyDevice#getUsesFuel <em>Uses Fuel</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ChemicalEnergyDevice#getModulationRange <em>Modulation Range</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getChemicalEnergyDevice()
* @model abstract="true"
* @generated
*/
public interface ChemicalEnergyDevice extends EnergyComponent {
/**
* Returns the value of the '<em><b>Installed Thermal Power</b></em>' attribute.
* The default value is <code>"kW"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* kW
* <!-- end-model-doc -->
* @return the value of the '<em>Installed Thermal Power</em>' attribute.
* @see #setInstalledThermalPower(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getChemicalEnergyDevice_InstalledThermalPower()
* @model default="kW" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getInstalledThermalPower();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ChemicalEnergyDevice#getInstalledThermalPower <em>Installed Thermal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Installed Thermal Power</em>' attribute.
* @see #getInstalledThermalPower()
* @generated
*/
void setInstalledThermalPower(NullableQuantity value);
/**
* Returns the value of the '<em><b>Uses Fuel</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Uses Fuel</em>' reference.
* @see #setUsesFuel(Fuel)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getChemicalEnergyDevice_UsesFuel()
* @model
* @generated
*/
Fuel getUsesFuel();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ChemicalEnergyDevice#getUsesFuel <em>Uses Fuel</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Uses Fuel</em>' reference.
* @see #getUsesFuel()
* @generated
*/
void setUsesFuel(Fuel value);
/**
* Returns the value of the '<em><b>Modulation Range</b></em>' attribute.
* The default value is <code>"0.5"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* share
* <!-- end-model-doc -->
* @return the value of the '<em>Modulation Range</em>' attribute.
* @see #setModulationRange(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getChemicalEnergyDevice_ModulationRange()
* @model default="0.5"
* @generated
*/
double getModulationRange();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ChemicalEnergyDevice#getModulationRange <em>Modulation Range</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Modulation Range</em>' attribute.
* @see #getModulationRange()
* @generated
*/
void setModulationRange(double value);
} // ChemicalEnergyDevice
......@@ -2,7 +2,7 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
/**
* <!-- begin-user-doc -->
......@@ -88,7 +88,7 @@ public interface CombinedHeatPower extends ThermalEnergyDevice {
* @return the value of the '<em>Installed Electrical Power</em>' attribute.
* @see #setInstalledElectricalPower(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCombinedHeatPower_InstalledElectricalPower()
* @model default="kW" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="kW" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getInstalledElectricalPower();
......
......@@ -2,7 +2,8 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
import org.eclipse.emf.ecore.EObject;
/**
......@@ -31,6 +32,78 @@ import org.eclipse.emf.ecore.EObject;
* @generated
*/
public interface Cost extends EObject {
/**
* Returns the value of the '<em><b>Component Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Component Name</em>' attribute.
* @see #setComponentName(String)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_ComponentName()
* @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
* @generated
*/
String getComponentName();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.Cost#getComponentName <em>Component Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Component Name</em>' attribute.
* @see #getComponentName()
* @generated
*/
void setComponentName(String value);
/**
* Returns the value of the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* i.e. what is included in which cost category
* <!-- end-model-doc -->
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_Description()
* @model
* @generated
*/
String getDescription();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.Cost#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Description</em>' attribute.
* @see #getDescription()
* @generated
*/
void setDescription(String value);
/**
* Returns the value of the '<em><b>Heat Source</b></em>' attribute.
* The literals are from the enumeration {@link de.hftstuttgart.energycomponents.TypeOfHeatSource}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Heat Source</em>' attribute.
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see #setHeatSource(TypeOfHeatSource)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_HeatSource()
* @model
* @generated
*/
TypeOfHeatSource getHeatSource();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.Cost#getHeatSource <em>Heat Source</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Heat Source</em>' attribute.
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see #getHeatSource()
* @generated
*/
void setHeatSource(TypeOfHeatSource value);
/**
* Returns the value of the '<em><b>Datasource</b></em>' attribute.
* <!-- begin-user-doc -->
......@@ -106,7 +179,7 @@ public interface Cost extends EObject {
* @return the value of the '<em>Personnel Hours</em>' attribute.
* @see #setPersonnelHours(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_PersonnelHours()
* @model default="10 h" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @model default="10 h" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated
*/
NullableQuantity getPersonnelHours();
......@@ -195,76 +268,4 @@ public interface Cost extends EObject {
*/
void setMaintenanceCostShare(double value);
/**
* Returns the value of the '<em><b>Component Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Component Name</em>' attribute.
* @see #setComponentName(String)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_ComponentName()
* @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
* @generated
*/
String getComponentName();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.Cost#getComponentName <em>Component Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Component Name</em>' attribute.
* @see #getComponentName()
* @generated
*/
void setComponentName(String value);
/**
* Returns the value of the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* i.e. what is included in which cost category
* <!-- end-model-doc -->
* @return the value of the '<em>Description</em>' attribute.
* @see #setDescription(String)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_Description()
* @model
* @generated
*/
String getDescription();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.Cost#getDescription <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Description</em>' attribute.
* @see #getDescription()
* @generated
*/
void setDescription(String value);
/**
* Returns the value of the '<em><b>Heat Source</b></em>' attribute.
* The literals are from the enumeration {@link de.hftstuttgart.energycomponents.TypeOfHeatSource}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Heat Source</em>' attribute.
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see #setHeatSource(TypeOfHeatSource)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_HeatSource()
* @model
* @generated
*/
TypeOfHeatSource getHeatSource();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.Cost#getHeatSource <em>Heat Source</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Heat Source</em>' attribute.
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see #getHeatSource()
* @generated
*/
void setHeatSource(TypeOfHeatSource value);
} // Cost
......@@ -2,7 +2,7 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
/**
* <!-- begin-user-doc -->
......@@ -71,7 +71,7 @@ public interface ElectricalStorage extends EnergyComponent {
* @return the value of the '<em>Battery Capacity</em>' attribute.
* @see #setBatteryCapacity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectricalStorage_BatteryCapacity()
* @model default="A*h" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="A*h" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getBatteryCapacity();
......@@ -101,7 +101,7 @@ public interface ElectricalStorage extends EnergyComponent {
* @return the value of the '<em>Battery Voltage</em>' attribute.
* @see #setBatteryVoltage(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectricalStorage_BatteryVoltage()
* @model default="V" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @model default="V" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated
*/
NullableQuantity getBatteryVoltage();
......@@ -232,7 +232,7 @@ public interface ElectricalStorage extends EnergyComponent {
* @return the value of the '<em>Energy Content</em>' attribute.
* @see #setEnergyContent(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectricalStorage_EnergyContent()
* @model default="5 kW*h" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="5 kW*h" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getEnergyContent();
......
......@@ -19,7 +19,6 @@ package de.hftstuttgart.energycomponents;
* @generated
*/
public interface Electricity extends EnergyCarrier {
/**
* Returns the value of the '<em><b>Renewable Share</b></em>' attribute.
* <!-- begin-user-doc -->
......@@ -41,4 +40,5 @@ public interface Electricity extends EnergyCarrier {
* @generated
*/
void setRenewableShare(double value);
} // Electricity
......@@ -2,7 +2,7 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
/**
* <!-- begin-user-doc -->
......@@ -63,7 +63,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Cell Area</em>' attribute.
* @see #setCellArea(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_CellArea()
* @model default="50 cm\u00b2" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="50 cm\u00b2" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getCellArea();
......@@ -112,7 +112,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Max Operating Current Density</em>' attribute.
* @see #setMaxOperatingCurrentDensity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_MaxOperatingCurrentDensity()
* @model default="3 A/cm\u00b2" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @model default="3 A/cm\u00b2" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated
*/
NullableQuantity getMaxOperatingCurrentDensity();
......@@ -138,7 +138,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Min Operating Current Density</em>' attribute.
* @see #setMinOperatingCurrentDensity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_MinOperatingCurrentDensity()
* @model default="0.3 A/cm\u00b2" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @model default="0.3 A/cm\u00b2" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated
*/
NullableQuantity getMinOperatingCurrentDensity();
......@@ -164,7 +164,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Overload Capacity</em>' attribute.
* @see #setOverloadCapacity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_OverloadCapacity()
* @model default="120 %" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @model default="120 %" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated
*/
NullableQuantity getOverloadCapacity();
......@@ -190,7 +190,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Nominal Cell Voltage</em>' attribute.
* @see #setNominalCellVoltage(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_NominalCellVoltage()
* @model default="1.94 V" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @model default="1.94 V" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated
*/
NullableQuantity getNominalCellVoltage();
......
......@@ -4,7 +4,6 @@ package de.hftstuttgart.energycomponents;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
......@@ -3705,26 +3704,6 @@ public interface EnCompPackage extends EPackage {
*/
int THERMAL_STORAGE_TYPES = 45;
/**
* The meta object id for the '{@link de.hftstuttgart.energycomponents.FuelTypes <em>Fuel Types</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.FuelTypes
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getFuelTypes()
* @generated
*/
int FUEL_TYPES = 47;
/**
* The meta object id for the '{@link de.hftstuttgart.energycomponents.TypeOfHeatSource <em>Type Of Heat Source</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getTypeOfHeatSource()
* @generated
*/
int TYPE_OF_HEAT_SOURCE = 48;
/**
* The meta object id for the '{@link de.hftstuttgart.energycomponents.cellTypesElectrolyzer <em>cell Types Electrolyzer</em>}' enum.
* <!-- begin-user-doc -->
......@@ -3736,24 +3715,24 @@ public interface EnCompPackage extends EPackage {
int CELL_TYPES_ELECTROLYZER = 46;
/**
* The meta object id for the '<em>Quantity Double</em>' data type.
* The meta object id for the '{@link de.hftstuttgart.energycomponents.FuelTypes <em>Fuel Types</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityDouble()
* @see de.hftstuttgart.energycomponents.FuelTypes
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getFuelTypes()
* @generated
*/
int QUANTITY_DOUBLE = 49;
int FUEL_TYPES = 47;
/**
* The meta object id for the '<em>Quantity Long</em>' data type.
* The meta object id for the '{@link de.hftstuttgart.energycomponents.TypeOfHeatSource <em>Type Of Heat Source</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityLong()
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getTypeOfHeatSource()
* @generated
*/
int QUANTITY_LONG = 50;
int TYPE_OF_HEAT_SOURCE = 48;
/**
* Returns the meta object for class '{@link de.hftstuttgart.energycomponents.EnergyComponent <em>Energy Component</em>}'.
......@@ -4376,6 +4355,17 @@ public interface EnCompPackage extends EPackage {
*/
EAttribute getHeatPump_HeatSource();
/**
* Returns the meta object for the containment reference '{@link de.hftstuttgart.energycomponents.HeatPump#getCoefficientOfPerformance <em>Coefficient Of Performance</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Coefficient Of Performance</em>'.
* @see de.hftstuttgart.energycomponents.HeatPump#getCoefficientOfPerformance()
* @see #getHeatPump()
* @generated
*/
EReference getHeatPump_CoefficientOfPerformance();
/**
* Returns the meta object for the containment reference '{@link de.hftstuttgart.energycomponents.HeatPump#getPowerInput <em>Power Input</em>}'.
* <!-- begin-user-doc -->
......@@ -4398,17 +4388,6 @@ public interface EnCompPackage extends EPackage {
*/
EReference getHeatPump_HeatOutput();
/**
* Returns the meta object for the containment reference '{@link de.hftstuttgart.energycomponents.HeatPump#getCoefficientOfPerformance <em>Coefficient Of Performance</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Coefficient Of Performance</em>'.
* @see de.hftstuttgart.energycomponents.HeatPump#getCoefficientOfPerformance()
* @see #getHeatPump()
* @generated
*/
EReference getHeatPump_CoefficientOfPerformance();
/**
* Returns the meta object for class '{@link de.hftstuttgart.energycomponents.Boiler <em>Boiler</em>}'.
* <!-- begin-user-doc -->
......@@ -5638,6 +5617,39 @@ public interface EnCompPackage extends EPackage {
*/
EClass getCost();
/**
* Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getComponentName <em>Component Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Component Name</em>'.
* @see de.hftstuttgart.energycomponents.Cost#getComponentName()
* @see #getCost()
* @generated
*/
EAttribute getCost_ComponentName();
/**
* Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Description</em>'.
* @see de.hftstuttgart.energycomponents.Cost#getDescription()
* @see #getCost()
* @generated
*/
EAttribute getCost_Description();
/**
* Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getHeatSource <em>Heat Source</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Heat Source</em>'.
* @see de.hftstuttgart.energycomponents.Cost#getHeatSource()
* @see #getCost()
* @generated
*/
EAttribute getCost_HeatSource();
/**
* Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getDatasource <em>Datasource</em>}'.
* <!-- begin-user-doc -->
......@@ -5789,39 +5801,6 @@ public interface EnCompPackage extends EPackage {
*/
EOperation getPowerFunction__Powerfunction__double();
/**
* Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getComponentName <em>Component Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Component Name</em>'.
* @see de.hftstuttgart.energycomponents.Cost#getComponentName()
* @see #getCost()
* @generated
*/
EAttribute getCost_ComponentName();
/**
* Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getDescription <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Description</em>'.
* @see de.hftstuttgart.energycomponents.Cost#getDescription()
* @see #getCost()
* @generated
*/
EAttribute getCost_Description();
/**
* Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getHeatSource <em>Heat Source</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Heat Source</em>'.
* @see de.hftstuttgart.energycomponents.Cost#getHeatSource()
* @see #getCost()
* @generated
*/
EAttribute getCost_HeatSource();
/**
* Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.HeatSources <em>Heat Sources</em>}'.
* <!-- begin-user-doc -->
......@@ -5872,26 +5851,6 @@ public interface EnCompPackage extends EPackage {
*/
EEnum getThermalStorageTypes();
/**
* Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.FuelTypes <em>Fuel Types</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Fuel Types</em>'.
* @see de.hftstuttgart.energycomponents.FuelTypes
* @generated
*/
EEnum getFuelTypes();
/**
* Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.TypeOfHeatSource <em>Type Of Heat Source</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Type Of Heat Source</em>'.
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @generated
*/
EEnum getTypeOfHeatSource();
/**
* Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.cellTypesElectrolyzer <em>cell Types Electrolyzer</em>}'.
* <!-- begin-user-doc -->
......@@ -5903,26 +5862,24 @@ public interface EnCompPackage extends EPackage {
EEnum getcellTypesElectrolyzer();
/**
* Returns the meta object for data type '{@link de.hftstuttgart.units.NullableQuantity <em>Quantity Double</em>}'.
* Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.FuelTypes <em>Fuel Types</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for data type '<em>Quantity Double</em>'.
* @see de.hftstuttgart.units.NullableQuantity
* @model instanceClass="de.hftstuttgart.units.NullableQuantity"
* @return the meta object for enum '<em>Fuel Types</em>'.
* @see de.hftstuttgart.energycomponents.FuelTypes
* @generated
*/
EDataType getQuantityDouble();
EEnum getFuelTypes();
/**
* Returns the meta object for data type '{@link de.hftstuttgart.units.NullableQuantity <em>Quantity Long</em>}'.
* Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.TypeOfHeatSource <em>Type Of Heat Source</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for data type '<em>Quantity Long</em>'.
* @see de.hftstuttgart.units.NullableQuantity
* @model instanceClass="de.hftstuttgart.units.NullableQuantity"
* @return the meta object for enum '<em>Type Of Heat Source</em>'.
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @generated
*/
EDataType getQuantityLong();
EEnum getTypeOfHeatSource();
/**
* Returns the factory that creates the instances of the model.
......@@ -6426,28 +6383,28 @@ public interface EnCompPackage extends EPackage {
EAttribute HEAT_PUMP__HEAT_SOURCE = eINSTANCE.getHeatPump_HeatSource();
/**
* The meta object literal for the '<em><b>Power Input</b></em>' containment reference feature.
* The meta object literal for the '<em><b>Coefficient Of Performance</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference HEAT_PUMP__POWER_INPUT = eINSTANCE.getHeatPump_PowerInput();
EReference HEAT_PUMP__COEFFICIENT_OF_PERFORMANCE = eINSTANCE.getHeatPump_CoefficientOfPerformance();
/**
* The meta object literal for the '<em><b>Heat Output</b></em>' containment reference feature.
* The meta object literal for the '<em><b>Power Input</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference HEAT_PUMP__HEAT_OUTPUT = eINSTANCE.getHeatPump_HeatOutput();
EReference HEAT_PUMP__POWER_INPUT = eINSTANCE.getHeatPump_PowerInput();
/**
* The meta object literal for the '<em><b>Coefficient Of Performance</b></em>' containment reference feature.
* The meta object literal for the '<em><b>Heat Output</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference HEAT_PUMP__COEFFICIENT_OF_PERFORMANCE = eINSTANCE.getHeatPump_CoefficientOfPerformance();
EReference HEAT_PUMP__HEAT_OUTPUT = eINSTANCE.getHeatPump_HeatOutput();
/**
* The meta object literal for the '{@link de.hftstuttgart.energycomponents.impl.BoilerImpl <em>Boiler</em>}' class.
......@@ -7444,6 +7401,30 @@ public interface EnCompPackage extends EPackage {
*/
EClass COST = eINSTANCE.getCost();
/**
* The meta object literal for the '<em><b>Component Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COST__COMPONENT_NAME = eINSTANCE.getCost_ComponentName();
/**
* The meta object literal for the '<em><b>Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COST__DESCRIPTION = eINSTANCE.getCost_Description();
/**
* The meta object literal for the '<em><b>Heat Source</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COST__HEAT_SOURCE = eINSTANCE.getCost_HeatSource();
/**
* The meta object literal for the '<em><b>Datasource</b></em>' attribute feature.
* <!-- begin-user-doc -->
......@@ -7560,30 +7541,6 @@ public interface EnCompPackage extends EPackage {
*/
EOperation POWER_FUNCTION___POWERFUNCTION__DOUBLE = eINSTANCE.getPowerFunction__Powerfunction__double();
/**
* The meta object literal for the '<em><b>Component Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COST__COMPONENT_NAME = eINSTANCE.getCost_ComponentName();
/**
* The meta object literal for the '<em><b>Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COST__DESCRIPTION = eINSTANCE.getCost_Description();
/**
* The meta object literal for the '<em><b>Heat Source</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COST__HEAT_SOURCE = eINSTANCE.getCost_HeatSource();
/**
* The meta object literal for the '{@link de.hftstuttgart.energycomponents.HeatSources <em>Heat Sources</em>}' enum.
* <!-- begin-user-doc -->
......@@ -7634,26 +7591,6 @@ public interface EnCompPackage extends EPackage {
*/
EEnum THERMAL_STORAGE_TYPES = eINSTANCE.getThermalStorageTypes();
/**
* The meta object literal for the '{@link de.hftstuttgart.energycomponents.FuelTypes <em>Fuel Types</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.FuelTypes
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getFuelTypes()
* @generated
*/
EEnum FUEL_TYPES = eINSTANCE.getFuelTypes();
/**
* The meta object literal for the '{@link de.hftstuttgart.energycomponents.TypeOfHeatSource <em>Type Of Heat Source</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getTypeOfHeatSource()
* @generated
*/
EEnum TYPE_OF_HEAT_SOURCE = eINSTANCE.getTypeOfHeatSource();
/**
* The meta object literal for the '{@link de.hftstuttgart.energycomponents.cellTypesElectrolyzer <em>cell Types Electrolyzer</em>}' enum.
* <!-- begin-user-doc -->
......@@ -7665,24 +7602,24 @@ public interface EnCompPackage extends EPackage {
EEnum CELL_TYPES_ELECTROLYZER = eINSTANCE.getcellTypesElectrolyzer();
/**
* The meta object literal for the '<em>Quantity Double</em>' data type.
* The meta object literal for the '{@link de.hftstuttgart.energycomponents.FuelTypes <em>Fuel Types</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityDouble()
* @see de.hftstuttgart.energycomponents.FuelTypes
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getFuelTypes()
* @generated
*/
EDataType QUANTITY_DOUBLE = eINSTANCE.getQuantityDouble();
EEnum FUEL_TYPES = eINSTANCE.getFuelTypes();
/**
* The meta object literal for the '<em>Quantity Long</em>' data type.
* The meta object literal for the '{@link de.hftstuttgart.energycomponents.TypeOfHeatSource <em>Type Of Heat Source</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityLong()
* @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getTypeOfHeatSource()
* @generated
*/
EDataType QUANTITY_LONG = eINSTANCE.getQuantityLong();
EEnum TYPE_OF_HEAT_SOURCE = eINSTANCE.getTypeOfHeatSource();
}
......
......@@ -2,7 +2,7 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
import org.eclipse.emf.ecore.EObject;
......@@ -34,7 +34,7 @@ public interface EnergyCarrier extends EObject {
* @return the value of the '<em>Co2 Emissions Factor</em>' attribute.
* @see #setCo2EmissionsFactor(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getEnergyCarrier_Co2EmissionsFactor()
* @model default="t/MW*h" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="t/MW*h" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getCo2EmissionsFactor();
......
/**
*/
package de.hftstuttgart.energycomponents;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Energy Carriers</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getEnergyCarriers()
* @model
* @generated
*/
public enum EnergyCarriers implements Enumerator {
/**
* The '<em><b>Natural Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATURAL_GAS_VALUE
* @generated
* @ordered
*/
NATURAL_GAS(0, "naturalGas", "naturalGas"),
/**
* The '<em><b>Oil</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OIL_VALUE
* @generated
* @ordered
*/
OIL(1, "oil", "oil"),
/**
* The '<em><b>Diesel</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL_VALUE
* @generated
* @ordered
*/
DIESEL(2, "diesel", "diesel"),
/**
* The '<em><b>Bio Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIO_GAS_VALUE
* @generated
* @ordered
*/
BIO_GAS(0, "bioGas", "bioGas"),
/**
* The '<em><b>Synthetic Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS_VALUE
* @generated
* @ordered
*/
SYNTHETIC_GAS(1, "syntheticGas", "syntheticGas"),
/**
* The '<em><b>Wood Pellets</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_PELLETS_VALUE
* @generated
* @ordered
*/
WOOD_PELLETS(2, "woodPellets", "woodPellets"),
/**
* The '<em><b>Wood Chips</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_CHIPS_VALUE
* @generated
* @ordered
*/
WOOD_CHIPS(3, "woodChips", "woodChips"),
/**
* The '<em><b>Sewage Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SEWAGE_GAS_VALUE
* @generated
* @ordered
*/
SEWAGE_GAS(4, "sewageGas", "sewageGas"),
/**
* The '<em><b>Electricity</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ELECTRICITY_VALUE
* @generated
* @ordered
*/
ELECTRICITY(8, "electricity", "electricity"),
/**
* The '<em><b>Hydrogen</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #HYDROGEN_VALUE
* @generated
* @ordered
*/
HYDROGEN(9, "hydrogen", "hydrogen");
/**
* The '<em><b>Natural Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATURAL_GAS
* @model name="naturalGas"
* @generated
* @ordered
*/
public static final int NATURAL_GAS_VALUE = 0;
/**
* The '<em><b>Oil</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OIL
* @model name="oil"
* @generated
* @ordered
*/
public static final int OIL_VALUE = 1;
/**
* The '<em><b>Diesel</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL
* @model name="diesel"
* @generated
* @ordered
*/
public static final int DIESEL_VALUE = 2;
/**
* The '<em><b>Bio Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIO_GAS
* @model name="bioGas"
* @generated
* @ordered
*/
public static final int BIO_GAS_VALUE = 0;
/**
* The '<em><b>Synthetic Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS
* @model name="syntheticGas"
* @generated
* @ordered
*/
public static final int SYNTHETIC_GAS_VALUE = 1;
/**
* The '<em><b>Wood Pellets</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_PELLETS
* @model name="woodPellets"
* @generated
* @ordered
*/
public static final int WOOD_PELLETS_VALUE = 2;
/**
* The '<em><b>Wood Chips</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_CHIPS
* @model name="woodChips"
* @generated
* @ordered
*/
public static final int WOOD_CHIPS_VALUE = 3;
/**
* The '<em><b>Sewage Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SEWAGE_GAS
* @model name="sewageGas"
* @generated
* @ordered
*/
public static final int SEWAGE_GAS_VALUE = 4;
/**
* The '<em><b>Electricity</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ELECTRICITY
* @model name="electricity"
* @generated
* @ordered
*/
public static final int ELECTRICITY_VALUE = 8;
/**
* The '<em><b>Hydrogen</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #HYDROGEN
* @model name="hydrogen"
* @generated
* @ordered
*/
public static final int HYDROGEN_VALUE = 9;
/**
* An array of all the '<em><b>Energy Carriers</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final EnergyCarriers[] VALUES_ARRAY = new EnergyCarriers[] { NATURAL_GAS, OIL, DIESEL, BIO_GAS,
SYNTHETIC_GAS, WOOD_PELLETS, WOOD_CHIPS, SEWAGE_GAS, ELECTRICITY, HYDROGEN, };
/**
* A public read-only list of all the '<em><b>Energy Carriers</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<EnergyCarriers> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Energy Carriers</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static EnergyCarriers get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
EnergyCarriers result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Energy Carriers</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static EnergyCarriers getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
EnergyCarriers result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Energy Carriers</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static EnergyCarriers get(int value) {
switch (value) {
case NATURAL_GAS_VALUE:
return NATURAL_GAS;
case OIL_VALUE:
return OIL;
case DIESEL_VALUE:
return DIESEL;
case WOOD_CHIPS_VALUE:
return WOOD_CHIPS;
case SEWAGE_GAS_VALUE:
return SEWAGE_GAS;
case ELECTRICITY_VALUE:
return ELECTRICITY;
case HYDROGEN_VALUE:
return HYDROGEN;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EnergyCarriers(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //EnergyCarriers
/**
*/
package de.hftstuttgart.energycomponents;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Fossil Fuel Types</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getFossilFuelTypes()
* @model
* @generated
*/
public enum FossilFuelTypes implements Enumerator {
/**
* The '<em><b>Natural Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATURAL_GAS_VALUE
* @generated
* @ordered
*/
NATURAL_GAS(0, "naturalGas", "naturalGas"),
/**
* The '<em><b>Oil</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OIL_VALUE
* @generated
* @ordered
*/
OIL(1, "oil", "oil"),
/**
* The '<em><b>Diesel</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL_VALUE
* @generated
* @ordered
*/
DIESEL(2, "diesel", "diesel"),
/**
* The '<em><b>LNG</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LNG_VALUE
* @generated
* @ordered
*/
LNG(3, "LNG", "LNG"),
/**
* The '<em><b>CNG</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CNG_VALUE
* @generated
* @ordered
*/
CNG(4, "CNG", "CNG");
/**
* The '<em><b>Natural Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATURAL_GAS
* @model name="naturalGas"
* @generated
* @ordered
*/
public static final int NATURAL_GAS_VALUE = 0;
/**
* The '<em><b>Oil</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OIL
* @model name="oil"
* @generated
* @ordered
*/
public static final int OIL_VALUE = 1;
/**
* The '<em><b>Diesel</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL
* @model name="diesel"
* @generated
* @ordered
*/
public static final int DIESEL_VALUE = 2;
/**
* The '<em><b>LNG</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LNG
* @model
* @generated
* @ordered
*/
public static final int LNG_VALUE = 3;
/**
* The '<em><b>CNG</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CNG
* @model
* @generated
* @ordered
*/
public static final int CNG_VALUE = 4;
/**
* An array of all the '<em><b>Fossil Fuel Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final FossilFuelTypes[] VALUES_ARRAY = new FossilFuelTypes[] { NATURAL_GAS, OIL, DIESEL, LNG, CNG, };
/**
* A public read-only list of all the '<em><b>Fossil Fuel Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<FossilFuelTypes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Fossil Fuel Types</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FossilFuelTypes get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FossilFuelTypes result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Fossil Fuel Types</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FossilFuelTypes getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FossilFuelTypes result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Fossil Fuel Types</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FossilFuelTypes get(int value) {
switch (value) {
case NATURAL_GAS_VALUE:
return NATURAL_GAS;
case OIL_VALUE:
return OIL;
case DIESEL_VALUE:
return DIESEL;
case LNG_VALUE:
return LNG;
case CNG_VALUE:
return CNG;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private FossilFuelTypes(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //FossilFuelTypes
......@@ -2,7 +2,7 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
/**
* <!-- begin-user-doc -->
......@@ -36,7 +36,7 @@ public interface Fuel extends EnergyCarrier {
* @return the value of the '<em>Net Calorific Value</em>' attribute.
* @see #setNetCalorificValue(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getFuel_NetCalorificValue()
* @model default="(kW*h)/m\u00b3" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="(kW*h)/m\u00b3" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getNetCalorificValue();
......@@ -63,7 +63,7 @@ public interface Fuel extends EnergyCarrier {
* @return the value of the '<em>Gross Calorific Value</em>' attribute.
* @see #setGrossCalorificValue(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getFuel_GrossCalorificValue()
* @model default="(kW*h)/m\u00b3" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="(kW*h)/m\u00b3" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getGrossCalorificValue();
......@@ -89,7 +89,7 @@ public interface Fuel extends EnergyCarrier {
* @return the value of the '<em>Density</em>' attribute.
* @see #setDensity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getFuel_Density()
* @model default="kg/m\u00b3" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="kg/m\u00b3" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getDensity();
......
......@@ -27,73 +27,81 @@ public enum FuelTypes implements Enumerator {
* @ordered
*/
NATURAL_GAS(0, "naturalGas", "naturalGas"),
/**
* The '<em><b>Oil</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #OIL_VALUE
* @generated
* @ordered
*/
OIL(1, "oil", "oil"),
/**
* The '<em><b>Diesel</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL_VALUE
* @generated
* @ordered
*/
DIESEL(2, "diesel", "diesel"),
/**
* The '<em><b>Bio Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #BIO_GAS_VALUE
* @generated
* @ordered
*/
BIO_GAS(0, "bioGas", "bioGas"),
/**
* The '<em><b>Synthetic Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS_VALUE
* @generated
* @ordered
*/
SYNTHETIC_GAS(1, "syntheticGas", "syntheticGas"),
/**
* The '<em><b>Wood Pellets</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_PELLETS_VALUE
* @generated
* @ordered
*/
WOOD_PELLETS(2, "woodPellets", "woodPellets"),
/**
* The '<em><b>Wood Chips</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #WOOD_CHIPS_VALUE
* @generated
* @ordered
*/
WOOD_CHIPS(3, "woodChips", "woodChips"),
/**
* The '<em><b>Sewage Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #SEWAGE_GAS_VALUE
* @generated
* @ordered
*/
SEWAGE_GAS(4, "sewageGas", "sewageGas"),
/**
* The '<em><b>Electricity</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- end-user-doc -->
* @see #ELECTRICITY_VALUE
* @generated
* @ordered
......
......@@ -2,7 +2,7 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
/**
* <!-- begin-user-doc -->
......@@ -29,7 +29,7 @@ public interface GeothermalHeatExchanger extends EnergyComponent {
* @return the value of the '<em>Pipe Diameter</em>' attribute.
* @see #setPipeDiameter(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getGeothermalHeatExchanger_PipeDiameter()
* @model default="1 cm" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @model default="1 cm" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated
*/
NullableQuantity getPipeDiameter();
......
......@@ -2,7 +2,7 @@
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import de.hftstuttgart.cityunits.model.NullableQuantity;
/**
* <!-- begin-user-doc -->
......@@ -56,7 +56,7 @@ public interface HeatExchanger extends EnergyComponent {
* @return the value of the '<em>Nominal Electricity Consumption</em>' attribute.
* @see #setNominalElectricityConsumption(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHeatExchanger_NominalElectricityConsumption()
* @model default="W" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @model default="W" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getNominalElectricityConsumption();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment