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
<?xml version="1.0" encoding="UTF-8"?> <?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"> <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.0.201909031200"> <viewpoint:DAnalysis uid="_xDanIFezEeq_N_dFIDFqhA" selectedViews="_xbAAsFezEeq_N_dFIDFqhA" version="14.3.1.202003261200">
<semanticResources>EnergyComponents.ecore</semanticResources> <semanticResources>EnergyComponents.ecore</semanticResources>
<semanticResources>EnergyComponents.genmodel</semanticResources> <semanticResources>EnergyComponents.genmodel</semanticResources>
<ownedViews xmi:type="viewpoint:DView" uid="_xbAAsFezEeq_N_dFIDFqhA"> <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']"/> <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']"/> <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#/"/> <target xmi:type="ecore:EPackage" href="EnergyComponents.ecore#/"/>
</ownedRepresentationDescriptors> </ownedRepresentationDescriptors>
...@@ -760,32 +760,6 @@ ...@@ -760,32 +760,6 @@
<styles xmi:type="notation:ShapeStyle" xmi:id="_Cdv0gLuHEeq7PM-WLoFu_w" fontName="Segoe UI" fontHeight="8"/> <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"/> <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Cdv0gbuHEeq7PM-WLoFu_w" x="830" y="1920" width="148" height="63"/>
</children> </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="_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="_F6kJesFBEeq7PM-WLoFu_w" type="5007"/>
<children xmi:type="notation:Node" xmi:id="_F6kJe8FBEeq7PM-WLoFu_w" type="7004"> <children xmi:type="notation:Node" xmi:id="_F6kJe8FBEeq7PM-WLoFu_w" type="7004">
...@@ -3671,52 +3645,6 @@ ...@@ -3671,52 +3645,6 @@
</ownedStyle> </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']"/> <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>
<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"> <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"/> <target xmi:type="ecore:EClass" href="EnergyComponents.ecore#//ThermalEnergyDevice"/>
<semanticElements xmi:type="ecore:EClass" href="EnergyComponents.ecore#//ThermalEnergyDevice"/> <semanticElements xmi:type="ecore:EClass" href="EnergyComponents.ecore#//ThermalEnergyDevice"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?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" <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" 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" modelDirectory="/de.hftstuttgart.energycomponents.model/src-gen"
editDirectory="/de.hftstuttgart.energycomponents.edit/src-gen" editorDirectory="/de.hftstuttgart.energycomponents.editor/src-gen" creationIcons="false" editDirectory="/de.hftstuttgart.energycomponents.edit/src-gen"
modelPluginID="de.hftstuttgart.energycomponents" modelName="EnergyComponents" editorDirectory="/de.hftstuttgart.energycomponents.editor/src-gen" modelPluginID="de.hftstuttgart.energycomponents.model"
rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" codeFormatting="true" modelName="EnergyComponents" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false" 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"> operationReflection="true" importOrganizing="true">
<foreignModel>EnergyComponents.ecore</foreignModel> <foreignModel>EnergyComponents.ecore</foreignModel>
<testsDirectory xsi:nil="true"/> <testsDirectory xsi:nil="true"/>
...@@ -64,10 +65,6 @@ ...@@ -64,10 +65,6 @@
<genEnumLiterals ecoreEnumLiteral="EnergyComponents.ecore#//TypeOfHeatSource/soil"/> <genEnumLiterals ecoreEnumLiteral="EnergyComponents.ecore#//TypeOfHeatSource/soil"/>
<genEnumLiterals ecoreEnumLiteral="EnergyComponents.ecore#//TypeOfHeatSource/none"/> <genEnumLiterals ecoreEnumLiteral="EnergyComponents.ecore#//TypeOfHeatSource/none"/>
</genEnums> </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"> <genClasses ecoreClass="EnergyComponents.ecore#//EnergyComponent">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//EnergyComponent/description"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//EnergyComponent/description"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//EnergyComponent/modelName"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//EnergyComponent/modelName"/>
...@@ -238,7 +235,7 @@ ...@@ -238,7 +235,7 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//TableFunction/key"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//TableFunction/key"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference EnergyComponents.ecore#//TableFunction/datapoints"/> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference EnergyComponents.ecore#//TableFunction/datapoints"/>
</genClasses> </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/key"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//ExponentialFunction/parameterA"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//ExponentialFunction/parameterA"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//ExponentialFunction/parameterB"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//ExponentialFunction/parameterB"/>
...@@ -265,8 +262,7 @@ ...@@ -265,8 +262,7 @@
<genClasses ecoreClass="EnergyComponents.ecore#//PolynomialCharacteristic"> <genClasses ecoreClass="EnergyComponents.ecore#//PolynomialCharacteristic">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference EnergyComponents.ecore#//PolynomialCharacteristic/functions"/> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference EnergyComponents.ecore#//PolynomialCharacteristic/functions"/>
</genClasses> </genClasses>
<genClasses documentation="y = ParameterA * x^2 + ParameterB * x + ParameterC" <genClasses ecoreClass="EnergyComponents.ecore#//PolynomialFunction">
ecoreClass="EnergyComponents.ecore#//PolynomialFunction">
<genFeatures documentation="y = ParameterA * x^2 + ParameterB * x + ParameterC" <genFeatures documentation="y = ParameterA * x^2 + ParameterB * x + ParameterC"
createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//PolynomialFunction/key"/> createChild="false" ecoreFeature="ecore:EAttribute EnergyComponents.ecore#//PolynomialFunction/key"/>
<genFeatures documentation="y = ParameterA * x^2 + ParameterB * x + ParameterC" <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 { ...@@ -27,10 +27,11 @@ public enum BoilerTypes implements Enumerator {
* @ordered * @ordered
*/ */
CONDENSING_BOILER(0, "condensingBoiler", "condensingBoiler"), CONDENSING_BOILER(0, "condensingBoiler", "condensingBoiler"),
/** /**
* The '<em><b>Lowtemperature Boiler</b></em>' literal object. * The '<em><b>Lowtemperature Boiler</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #LOWTEMPERATURE_BOILER_VALUE * @see #LOWTEMPERATURE_BOILER_VALUE
* @generated * @generated
* @ordered * @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 @@ ...@@ -2,7 +2,7 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
/** /**
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -88,7 +88,7 @@ public interface CombinedHeatPower extends ThermalEnergyDevice { ...@@ -88,7 +88,7 @@ public interface CombinedHeatPower extends ThermalEnergyDevice {
* @return the value of the '<em>Installed Electrical Power</em>' attribute. * @return the value of the '<em>Installed Electrical Power</em>' attribute.
* @see #setInstalledElectricalPower(NullableQuantity) * @see #setInstalledElectricalPower(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCombinedHeatPower_InstalledElectricalPower() * @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 * @generated
*/ */
NullableQuantity getInstalledElectricalPower(); NullableQuantity getInstalledElectricalPower();
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EObject;
/** /**
...@@ -31,6 +32,78 @@ import org.eclipse.emf.ecore.EObject; ...@@ -31,6 +32,78 @@ import org.eclipse.emf.ecore.EObject;
* @generated * @generated
*/ */
public interface Cost extends EObject { 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. * Returns the value of the '<em><b>Datasource</b></em>' attribute.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -106,7 +179,7 @@ public interface Cost extends EObject { ...@@ -106,7 +179,7 @@ public interface Cost extends EObject {
* @return the value of the '<em>Personnel Hours</em>' attribute. * @return the value of the '<em>Personnel Hours</em>' attribute.
* @see #setPersonnelHours(NullableQuantity) * @see #setPersonnelHours(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getCost_PersonnelHours() * @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 * @generated
*/ */
NullableQuantity getPersonnelHours(); NullableQuantity getPersonnelHours();
...@@ -195,76 +268,4 @@ public interface Cost extends EObject { ...@@ -195,76 +268,4 @@ public interface Cost extends EObject {
*/ */
void setMaintenanceCostShare(double value); 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 } // Cost
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
/** /**
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -71,7 +71,7 @@ public interface ElectricalStorage extends EnergyComponent { ...@@ -71,7 +71,7 @@ public interface ElectricalStorage extends EnergyComponent {
* @return the value of the '<em>Battery Capacity</em>' attribute. * @return the value of the '<em>Battery Capacity</em>' attribute.
* @see #setBatteryCapacity(NullableQuantity) * @see #setBatteryCapacity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectricalStorage_BatteryCapacity() * @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 * @generated
*/ */
NullableQuantity getBatteryCapacity(); NullableQuantity getBatteryCapacity();
...@@ -101,7 +101,7 @@ public interface ElectricalStorage extends EnergyComponent { ...@@ -101,7 +101,7 @@ public interface ElectricalStorage extends EnergyComponent {
* @return the value of the '<em>Battery Voltage</em>' attribute. * @return the value of the '<em>Battery Voltage</em>' attribute.
* @see #setBatteryVoltage(NullableQuantity) * @see #setBatteryVoltage(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectricalStorage_BatteryVoltage() * @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 * @generated
*/ */
NullableQuantity getBatteryVoltage(); NullableQuantity getBatteryVoltage();
...@@ -232,7 +232,7 @@ public interface ElectricalStorage extends EnergyComponent { ...@@ -232,7 +232,7 @@ public interface ElectricalStorage extends EnergyComponent {
* @return the value of the '<em>Energy Content</em>' attribute. * @return the value of the '<em>Energy Content</em>' attribute.
* @see #setEnergyContent(NullableQuantity) * @see #setEnergyContent(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectricalStorage_EnergyContent() * @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 * @generated
*/ */
NullableQuantity getEnergyContent(); NullableQuantity getEnergyContent();
......
...@@ -19,7 +19,6 @@ package de.hftstuttgart.energycomponents; ...@@ -19,7 +19,6 @@ package de.hftstuttgart.energycomponents;
* @generated * @generated
*/ */
public interface Electricity extends EnergyCarrier { public interface Electricity extends EnergyCarrier {
/** /**
* Returns the value of the '<em><b>Renewable Share</b></em>' attribute. * Returns the value of the '<em><b>Renewable Share</b></em>' attribute.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -41,4 +40,5 @@ public interface Electricity extends EnergyCarrier { ...@@ -41,4 +40,5 @@ public interface Electricity extends EnergyCarrier {
* @generated * @generated
*/ */
void setRenewableShare(double value); void setRenewableShare(double value);
} // Electricity } // Electricity
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
/** /**
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -63,7 +63,7 @@ public interface Electrolyzer extends EnergyComponent { ...@@ -63,7 +63,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Cell Area</em>' attribute. * @return the value of the '<em>Cell Area</em>' attribute.
* @see #setCellArea(NullableQuantity) * @see #setCellArea(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_CellArea() * @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 * @generated
*/ */
NullableQuantity getCellArea(); NullableQuantity getCellArea();
...@@ -112,7 +112,7 @@ public interface Electrolyzer extends EnergyComponent { ...@@ -112,7 +112,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Max Operating Current Density</em>' attribute. * @return the value of the '<em>Max Operating Current Density</em>' attribute.
* @see #setMaxOperatingCurrentDensity(NullableQuantity) * @see #setMaxOperatingCurrentDensity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_MaxOperatingCurrentDensity() * @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 * @generated
*/ */
NullableQuantity getMaxOperatingCurrentDensity(); NullableQuantity getMaxOperatingCurrentDensity();
...@@ -138,7 +138,7 @@ public interface Electrolyzer extends EnergyComponent { ...@@ -138,7 +138,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Min Operating Current Density</em>' attribute. * @return the value of the '<em>Min Operating Current Density</em>' attribute.
* @see #setMinOperatingCurrentDensity(NullableQuantity) * @see #setMinOperatingCurrentDensity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_MinOperatingCurrentDensity() * @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 * @generated
*/ */
NullableQuantity getMinOperatingCurrentDensity(); NullableQuantity getMinOperatingCurrentDensity();
...@@ -164,7 +164,7 @@ public interface Electrolyzer extends EnergyComponent { ...@@ -164,7 +164,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Overload Capacity</em>' attribute. * @return the value of the '<em>Overload Capacity</em>' attribute.
* @see #setOverloadCapacity(NullableQuantity) * @see #setOverloadCapacity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_OverloadCapacity() * @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 * @generated
*/ */
NullableQuantity getOverloadCapacity(); NullableQuantity getOverloadCapacity();
...@@ -190,7 +190,7 @@ public interface Electrolyzer extends EnergyComponent { ...@@ -190,7 +190,7 @@ public interface Electrolyzer extends EnergyComponent {
* @return the value of the '<em>Nominal Cell Voltage</em>' attribute. * @return the value of the '<em>Nominal Cell Voltage</em>' attribute.
* @see #setNominalCellVoltage(NullableQuantity) * @see #setNominalCellVoltage(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getElectrolyzer_NominalCellVoltage() * @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 * @generated
*/ */
NullableQuantity getNominalCellVoltage(); NullableQuantity getNominalCellVoltage();
......
...@@ -4,7 +4,6 @@ package de.hftstuttgart.energycomponents; ...@@ -4,7 +4,6 @@ package de.hftstuttgart.energycomponents;
import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EOperation; import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EPackage;
...@@ -3705,26 +3704,6 @@ public interface EnCompPackage extends EPackage { ...@@ -3705,26 +3704,6 @@ public interface EnCompPackage extends EPackage {
*/ */
int THERMAL_STORAGE_TYPES = 45; 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. * The meta object id for the '{@link de.hftstuttgart.energycomponents.cellTypesElectrolyzer <em>cell Types Electrolyzer</em>}' enum.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -3736,24 +3715,24 @@ public interface EnCompPackage extends EPackage { ...@@ -3736,24 +3715,24 @@ public interface EnCompPackage extends EPackage {
int CELL_TYPES_ELECTROLYZER = 46; 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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity * @see de.hftstuttgart.energycomponents.FuelTypes
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityDouble() * @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getFuelTypes()
* @generated * @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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity * @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityLong() * @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getTypeOfHeatSource()
* @generated * @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>}'. * Returns the meta object for class '{@link de.hftstuttgart.energycomponents.EnergyComponent <em>Energy Component</em>}'.
...@@ -4376,6 +4355,17 @@ public interface EnCompPackage extends EPackage { ...@@ -4376,6 +4355,17 @@ public interface EnCompPackage extends EPackage {
*/ */
EAttribute getHeatPump_HeatSource(); 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>}'. * Returns the meta object for the containment reference '{@link de.hftstuttgart.energycomponents.HeatPump#getPowerInput <em>Power Input</em>}'.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -4398,17 +4388,6 @@ public interface EnCompPackage extends EPackage { ...@@ -4398,17 +4388,6 @@ public interface EnCompPackage extends EPackage {
*/ */
EReference getHeatPump_HeatOutput(); 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>}'. * Returns the meta object for class '{@link de.hftstuttgart.energycomponents.Boiler <em>Boiler</em>}'.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -5638,6 +5617,39 @@ public interface EnCompPackage extends EPackage { ...@@ -5638,6 +5617,39 @@ public interface EnCompPackage extends EPackage {
*/ */
EClass getCost(); 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>}'. * Returns the meta object for the attribute '{@link de.hftstuttgart.energycomponents.Cost#getDatasource <em>Datasource</em>}'.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -5789,39 +5801,6 @@ public interface EnCompPackage extends EPackage { ...@@ -5789,39 +5801,6 @@ public interface EnCompPackage extends EPackage {
*/ */
EOperation getPowerFunction__Powerfunction__double(); 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>}'. * Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.HeatSources <em>Heat Sources</em>}'.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -5872,26 +5851,6 @@ public interface EnCompPackage extends EPackage { ...@@ -5872,26 +5851,6 @@ public interface EnCompPackage extends EPackage {
*/ */
EEnum getThermalStorageTypes(); 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>}'. * Returns the meta object for enum '{@link de.hftstuttgart.energycomponents.cellTypesElectrolyzer <em>cell Types Electrolyzer</em>}'.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -5903,26 +5862,24 @@ public interface EnCompPackage extends EPackage { ...@@ -5903,26 +5862,24 @@ public interface EnCompPackage extends EPackage {
EEnum getcellTypesElectrolyzer(); 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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @return the meta object for data type '<em>Quantity Double</em>'. * @return the meta object for enum '<em>Fuel Types</em>'.
* @see de.hftstuttgart.units.NullableQuantity * @see de.hftstuttgart.energycomponents.FuelTypes
* @model instanceClass="de.hftstuttgart.units.NullableQuantity"
* @generated * @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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @return the meta object for data type '<em>Quantity Long</em>'. * @return the meta object for enum '<em>Type Of Heat Source</em>'.
* @see de.hftstuttgart.units.NullableQuantity * @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @model instanceClass="de.hftstuttgart.units.NullableQuantity"
* @generated * @generated
*/ */
EDataType getQuantityLong(); EEnum getTypeOfHeatSource();
/** /**
* Returns the factory that creates the instances of the model. * Returns the factory that creates the instances of the model.
...@@ -6426,28 +6383,28 @@ public interface EnCompPackage extends EPackage { ...@@ -6426,28 +6383,28 @@ public interface EnCompPackage extends EPackage {
EAttribute HEAT_PUMP__HEAT_SOURCE = eINSTANCE.getHeatPump_HeatSource(); 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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @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. * 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 { ...@@ -7444,6 +7401,30 @@ public interface EnCompPackage extends EPackage {
*/ */
EClass COST = eINSTANCE.getCost(); 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. * The meta object literal for the '<em><b>Datasource</b></em>' attribute feature.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -7560,30 +7541,6 @@ public interface EnCompPackage extends EPackage { ...@@ -7560,30 +7541,6 @@ public interface EnCompPackage extends EPackage {
*/ */
EOperation POWER_FUNCTION___POWERFUNCTION__DOUBLE = eINSTANCE.getPowerFunction__Powerfunction__double(); 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. * The meta object literal for the '{@link de.hftstuttgart.energycomponents.HeatSources <em>Heat Sources</em>}' enum.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -7634,26 +7591,6 @@ public interface EnCompPackage extends EPackage { ...@@ -7634,26 +7591,6 @@ public interface EnCompPackage extends EPackage {
*/ */
EEnum THERMAL_STORAGE_TYPES = eINSTANCE.getThermalStorageTypes(); 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. * The meta object literal for the '{@link de.hftstuttgart.energycomponents.cellTypesElectrolyzer <em>cell Types Electrolyzer</em>}' enum.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -7665,24 +7602,24 @@ public interface EnCompPackage extends EPackage { ...@@ -7665,24 +7602,24 @@ public interface EnCompPackage extends EPackage {
EEnum CELL_TYPES_ELECTROLYZER = eINSTANCE.getcellTypesElectrolyzer(); 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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity * @see de.hftstuttgart.energycomponents.FuelTypes
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityDouble() * @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getFuelTypes()
* @generated * @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 --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see de.hftstuttgart.units.NullableQuantity * @see de.hftstuttgart.energycomponents.TypeOfHeatSource
* @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getQuantityLong() * @see de.hftstuttgart.energycomponents.impl.EnCompPackageImpl#getTypeOfHeatSource()
* @generated * @generated
*/ */
EDataType QUANTITY_LONG = eINSTANCE.getQuantityLong(); EEnum TYPE_OF_HEAT_SOURCE = eINSTANCE.getTypeOfHeatSource();
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EObject;
...@@ -34,7 +34,7 @@ public interface EnergyCarrier extends EObject { ...@@ -34,7 +34,7 @@ public interface EnergyCarrier extends EObject {
* @return the value of the '<em>Co2 Emissions Factor</em>' attribute. * @return the value of the '<em>Co2 Emissions Factor</em>' attribute.
* @see #setCo2EmissionsFactor(NullableQuantity) * @see #setCo2EmissionsFactor(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getEnergyCarrier_Co2EmissionsFactor() * @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 * @generated
*/ */
NullableQuantity getCo2EmissionsFactor(); 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 @@ ...@@ -2,7 +2,7 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
/** /**
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -36,7 +36,7 @@ public interface Fuel extends EnergyCarrier { ...@@ -36,7 +36,7 @@ public interface Fuel extends EnergyCarrier {
* @return the value of the '<em>Net Calorific Value</em>' attribute. * @return the value of the '<em>Net Calorific Value</em>' attribute.
* @see #setNetCalorificValue(NullableQuantity) * @see #setNetCalorificValue(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getFuel_NetCalorificValue() * @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 * @generated
*/ */
NullableQuantity getNetCalorificValue(); NullableQuantity getNetCalorificValue();
...@@ -63,7 +63,7 @@ public interface Fuel extends EnergyCarrier { ...@@ -63,7 +63,7 @@ public interface Fuel extends EnergyCarrier {
* @return the value of the '<em>Gross Calorific Value</em>' attribute. * @return the value of the '<em>Gross Calorific Value</em>' attribute.
* @see #setGrossCalorificValue(NullableQuantity) * @see #setGrossCalorificValue(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getFuel_GrossCalorificValue() * @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 * @generated
*/ */
NullableQuantity getGrossCalorificValue(); NullableQuantity getGrossCalorificValue();
...@@ -89,7 +89,7 @@ public interface Fuel extends EnergyCarrier { ...@@ -89,7 +89,7 @@ public interface Fuel extends EnergyCarrier {
* @return the value of the '<em>Density</em>' attribute. * @return the value of the '<em>Density</em>' attribute.
* @see #setDensity(NullableQuantity) * @see #setDensity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getFuel_Density() * @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 * @generated
*/ */
NullableQuantity getDensity(); NullableQuantity getDensity();
......
...@@ -27,73 +27,81 @@ public enum FuelTypes implements Enumerator { ...@@ -27,73 +27,81 @@ public enum FuelTypes implements Enumerator {
* @ordered * @ordered
*/ */
NATURAL_GAS(0, "naturalGas", "naturalGas"), NATURAL_GAS(0, "naturalGas", "naturalGas"),
/** /**
* The '<em><b>Oil</b></em>' literal object. * The '<em><b>Oil</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #OIL_VALUE * @see #OIL_VALUE
* @generated * @generated
* @ordered * @ordered
*/ */
OIL(1, "oil", "oil"), OIL(1, "oil", "oil"),
/** /**
* The '<em><b>Diesel</b></em>' literal object. * The '<em><b>Diesel</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #DIESEL_VALUE * @see #DIESEL_VALUE
* @generated * @generated
* @ordered * @ordered
*/ */
DIESEL(2, "diesel", "diesel"), DIESEL(2, "diesel", "diesel"),
/** /**
* The '<em><b>Bio Gas</b></em>' literal object. * The '<em><b>Bio Gas</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #BIO_GAS_VALUE * @see #BIO_GAS_VALUE
* @generated * @generated
* @ordered * @ordered
*/ */
BIO_GAS(0, "bioGas", "bioGas"), BIO_GAS(0, "bioGas", "bioGas"),
/** /**
* The '<em><b>Synthetic Gas</b></em>' literal object. * The '<em><b>Synthetic Gas</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #SYNTHETIC_GAS_VALUE * @see #SYNTHETIC_GAS_VALUE
* @generated * @generated
* @ordered * @ordered
*/ */
SYNTHETIC_GAS(1, "syntheticGas", "syntheticGas"), SYNTHETIC_GAS(1, "syntheticGas", "syntheticGas"),
/** /**
* The '<em><b>Wood Pellets</b></em>' literal object. * The '<em><b>Wood Pellets</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #WOOD_PELLETS_VALUE * @see #WOOD_PELLETS_VALUE
* @generated * @generated
* @ordered * @ordered
*/ */
WOOD_PELLETS(2, "woodPellets", "woodPellets"), WOOD_PELLETS(2, "woodPellets", "woodPellets"),
/** /**
* The '<em><b>Wood Chips</b></em>' literal object. * The '<em><b>Wood Chips</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #WOOD_CHIPS_VALUE * @see #WOOD_CHIPS_VALUE
* @generated * @generated
* @ordered * @ordered
*/ */
WOOD_CHIPS(3, "woodChips", "woodChips"), WOOD_CHIPS(3, "woodChips", "woodChips"),
/** /**
* The '<em><b>Sewage Gas</b></em>' literal object. * The '<em><b>Sewage Gas</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #SEWAGE_GAS_VALUE * @see #SEWAGE_GAS_VALUE
* @generated * @generated
* @ordered * @ordered
*/ */
SEWAGE_GAS(4, "sewageGas", "sewageGas"), SEWAGE_GAS(4, "sewageGas", "sewageGas"),
/** /**
* The '<em><b>Electricity</b></em>' literal object. * The '<em><b>Electricity</b></em>' literal object.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see #ELECTRICITY_VALUE * @see #ELECTRICITY_VALUE
* @generated * @generated
* @ordered * @ordered
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
/** /**
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -29,7 +29,7 @@ public interface GeothermalHeatExchanger extends EnergyComponent { ...@@ -29,7 +29,7 @@ public interface GeothermalHeatExchanger extends EnergyComponent {
* @return the value of the '<em>Pipe Diameter</em>' attribute. * @return the value of the '<em>Pipe Diameter</em>' attribute.
* @see #setPipeDiameter(NullableQuantity) * @see #setPipeDiameter(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getGeothermalHeatExchanger_PipeDiameter() * @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 * @generated
*/ */
NullableQuantity getPipeDiameter(); NullableQuantity getPipeDiameter();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
*/ */
package de.hftstuttgart.energycomponents; package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity; import de.hftstuttgart.cityunits.model.NullableQuantity;
/** /**
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -56,7 +56,7 @@ public interface HeatExchanger extends EnergyComponent { ...@@ -56,7 +56,7 @@ public interface HeatExchanger extends EnergyComponent {
* @return the value of the '<em>Nominal Electricity Consumption</em>' attribute. * @return the value of the '<em>Nominal Electricity Consumption</em>' attribute.
* @see #setNominalElectricityConsumption(NullableQuantity) * @see #setNominalElectricityConsumption(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHeatExchanger_NominalElectricityConsumption() * @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 * @generated
*/ */
NullableQuantity getNominalElectricityConsumption(); NullableQuantity getNominalElectricityConsumption();
......
Markdown is supported
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