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

Replaced custom unit projects by external cityunits and indriya plugins

parent 01673354
Showing with 151 additions and 645 deletions
+151 -645
...@@ -47,6 +47,28 @@ public interface HeatPump extends ThermalEnergyDevice { ...@@ -47,6 +47,28 @@ public interface HeatPump extends ThermalEnergyDevice {
*/ */
void setHeatSource(HeatSources value); void setHeatSource(HeatSources value);
/**
* Returns the value of the '<em><b>Coefficient Of Performance</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Coefficient Of Performance</em>' containment reference.
* @see #setCoefficientOfPerformance(Characteristic)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHeatPump_CoefficientOfPerformance()
* @model containment="true" required="true"
* @generated
*/
Characteristic getCoefficientOfPerformance();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.HeatPump#getCoefficientOfPerformance <em>Coefficient Of Performance</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Coefficient Of Performance</em>' containment reference.
* @see #getCoefficientOfPerformance()
* @generated
*/
void setCoefficientOfPerformance(Characteristic value);
/** /**
* Returns the value of the '<em><b>Power Input</b></em>' containment reference. * Returns the value of the '<em><b>Power Input</b></em>' containment reference.
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
...@@ -91,26 +113,4 @@ public interface HeatPump extends ThermalEnergyDevice { ...@@ -91,26 +113,4 @@ public interface HeatPump extends ThermalEnergyDevice {
*/ */
void setHeatOutput(Characteristic value); void setHeatOutput(Characteristic value);
/**
* Returns the value of the '<em><b>Coefficient Of Performance</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Coefficient Of Performance</em>' containment reference.
* @see #setCoefficientOfPerformance(Characteristic)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHeatPump_CoefficientOfPerformance()
* @model containment="true" required="true"
* @generated
*/
Characteristic getCoefficientOfPerformance();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.HeatPump#getCoefficientOfPerformance <em>Coefficient Of Performance</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Coefficient Of Performance</em>' containment reference.
* @see #getCoefficientOfPerformance()
* @generated
*/
void setCoefficientOfPerformance(Characteristic value);
} // HeatPump } // HeatPump
/**
*/
package de.hftstuttgart.energycomponents;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Hydrocarbon</b></em>'.
* <!-- end-user-doc -->
*
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrocarbon()
* @model
* @generated
*/
public interface Hydrocarbon extends Medium {
} // Hydrocarbon
...@@ -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 -->
...@@ -84,7 +84,7 @@ public interface HydrogenCompressor extends EnergyComponent { ...@@ -84,7 +84,7 @@ public interface HydrogenCompressor extends EnergyComponent {
* @return the value of the '<em>Max Pressure</em>' attribute. * @return the value of the '<em>Max Pressure</em>' attribute.
* @see #setMaxPressure(NullableQuantity) * @see #setMaxPressure(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenCompressor_MaxPressure() * @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenCompressor_MaxPressure()
* @model default="50 MPa" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="50 MPa" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getMaxPressure(); NullableQuantity getMaxPressure();
...@@ -110,7 +110,7 @@ public interface HydrogenCompressor extends EnergyComponent { ...@@ -110,7 +110,7 @@ public interface HydrogenCompressor extends EnergyComponent {
* @return the value of the '<em>Max Delivery Rate</em>' attribute. * @return the value of the '<em>Max Delivery Rate</em>' attribute.
* @see #setMaxDeliveryRate(NullableQuantity) * @see #setMaxDeliveryRate(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenCompressor_MaxDeliveryRate() * @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenCompressor_MaxDeliveryRate()
* @model default="9 kg/h" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="9 kg/h" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getMaxDeliveryRate(); NullableQuantity getMaxDeliveryRate();
......
...@@ -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 -->
...@@ -57,7 +57,7 @@ public interface HydrogenStorage extends EnergyComponent { ...@@ -57,7 +57,7 @@ public interface HydrogenStorage extends EnergyComponent {
* @return the value of the '<em>Cylinder Volume</em>' attribute. * @return the value of the '<em>Cylinder Volume</em>' attribute.
* @see #setCylinderVolume(NullableQuantity) * @see #setCylinderVolume(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenStorage_CylinderVolume() * @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenStorage_CylinderVolume()
* @model default="1.5 m\u00b3" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true" * @model default="1.5 m\u00b3" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated * @generated
*/ */
NullableQuantity getCylinderVolume(); NullableQuantity getCylinderVolume();
...@@ -80,7 +80,7 @@ public interface HydrogenStorage extends EnergyComponent { ...@@ -80,7 +80,7 @@ public interface HydrogenStorage extends EnergyComponent {
* @return the value of the '<em>Nominal Pressure</em>' attribute. * @return the value of the '<em>Nominal Pressure</em>' attribute.
* @see #setNominalPressure(NullableQuantity) * @see #setNominalPressure(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenStorage_NominalPressure() * @see de.hftstuttgart.energycomponents.EnCompPackage#getHydrogenStorage_NominalPressure()
* @model default="25 MPa" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="25 MPa" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getNominalPressure(); NullableQuantity getNominalPressure();
......
/**
*/
package de.hftstuttgart.energycomponents;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Investment Cost</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.InvestmentCost#getOtherInvestmentCost <em>Other Investment Cost</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.InvestmentCost#getInvestmentCost <em>Investment Cost</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getInvestmentCost()
* @model abstract="true"
* @generated
*/
public interface InvestmentCost extends EObject {
/**
* Returns the value of the '<em><b>Other Investment Cost</b></em>' attribute.
* The default value is <code>"0"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Other Investment Cost</em>' attribute.
* @see #setOtherInvestmentCost(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getInvestmentCost_OtherInvestmentCost()
* @model default="0"
* @generated
*/
double getOtherInvestmentCost();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.InvestmentCost#getOtherInvestmentCost <em>Other Investment Cost</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Other Investment Cost</em>' attribute.
* @see #getOtherInvestmentCost()
* @generated
*/
void setOtherInvestmentCost(double value);
/**
* Returns the value of the '<em><b>Investment Cost</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Investment Cost</em>' containment reference.
* @see #setInvestmentCost(Characteristic)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getInvestmentCost_InvestmentCost()
* @model containment="true" required="true"
* @generated
*/
Characteristic getInvestmentCost();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.InvestmentCost#getInvestmentCost <em>Investment Cost</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Investment Cost</em>' containment reference.
* @see #getInvestmentCost()
* @generated
*/
void setInvestmentCost(Characteristic value);
} // InvestmentCost
...@@ -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;
/** /**
...@@ -34,7 +35,7 @@ public interface Material extends EObject { ...@@ -34,7 +35,7 @@ public interface Material extends EObject {
* @return the value of the '<em>Thermal Conductivity</em>' attribute. * @return the value of the '<em>Thermal Conductivity</em>' attribute.
* @see #setThermalConductivity(NullableQuantity) * @see #setThermalConductivity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getMaterial_ThermalConductivity() * @see de.hftstuttgart.energycomponents.EnCompPackage#getMaterial_ThermalConductivity()
* @model default=" W/(m*K)" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default=" W/(m*K)" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getThermalConductivity(); NullableQuantity getThermalConductivity();
......
...@@ -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;
...@@ -38,7 +38,7 @@ public interface Medium extends EObject { ...@@ -38,7 +38,7 @@ public interface Medium extends EObject {
* @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#getMedium_Density() * @see de.hftstuttgart.energycomponents.EnCompPackage#getMedium_Density()
* @model default="g/cm\u00b3" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true" * @model default="g/cm\u00b3" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated * @generated
*/ */
NullableQuantity getDensity(); NullableQuantity getDensity();
...@@ -64,7 +64,7 @@ public interface Medium extends EObject { ...@@ -64,7 +64,7 @@ public interface Medium extends EObject {
* @return the value of the '<em>Heat Capacity</em>' attribute. * @return the value of the '<em>Heat Capacity</em>' attribute.
* @see #setHeatCapacity(NullableQuantity) * @see #setHeatCapacity(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getMedium_HeatCapacity() * @see de.hftstuttgart.energycomponents.EnCompPackage#getMedium_HeatCapacity()
* @model default="kJ/(kg*K)" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="kJ/(kg*K)" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getHeatCapacity(); NullableQuantity getHeatCapacity();
...@@ -90,7 +90,7 @@ public interface Medium extends EObject { ...@@ -90,7 +90,7 @@ public interface Medium extends EObject {
* @return the value of the '<em>Evaporation Temperature</em>' attribute. * @return the value of the '<em>Evaporation Temperature</em>' attribute.
* @see #setEvaporationTemperature(NullableQuantity) * @see #setEvaporationTemperature(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getMedium_EvaporationTemperature() * @see de.hftstuttgart.energycomponents.EnCompPackage#getMedium_EvaporationTemperature()
* @model default="\u00b0C" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="\u00b0C" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getEvaporationTemperature(); NullableQuantity getEvaporationTemperature();
...@@ -116,7 +116,7 @@ public interface Medium extends EObject { ...@@ -116,7 +116,7 @@ public interface Medium extends EObject {
* @return the value of the '<em>Melting Temperature</em>' attribute. * @return the value of the '<em>Melting Temperature</em>' attribute.
* @see #setMeltingTemperature(NullableQuantity) * @see #setMeltingTemperature(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getMedium_MeltingTemperature() * @see de.hftstuttgart.energycomponents.EnCompPackage#getMedium_MeltingTemperature()
* @model default="\u00b0C" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="\u00b0C" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getMeltingTemperature(); NullableQuantity getMeltingTemperature();
......
/**
*/
package de.hftstuttgart.energycomponents;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>New EClass40</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.NewEClass40#getOtherCost <em>Other Cost</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.NewEClass40#getMaintenanceCost <em>Maintenance Cost</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.NewEClass40#getInvestmentCost <em>Investment Cost</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getNewEClass40()
* @model
* @generated
*/
public interface NewEClass40 extends EnergyComponentsCostCatalog {
/**
* Returns the value of the '<em><b>Other Cost</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Other Cost</em>' attribute.
* @see #setOtherCost(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getNewEClass40_OtherCost()
* @model
* @generated
*/
double getOtherCost();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.NewEClass40#getOtherCost <em>Other Cost</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Other Cost</em>' attribute.
* @see #getOtherCost()
* @generated
*/
void setOtherCost(double value);
/**
* Returns the value of the '<em><b>Maintenance Cost</b></em>' attribute.
* The default value is <code>"0.015"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* percentage of total investment cost
* <!-- end-model-doc -->
* @return the value of the '<em>Maintenance Cost</em>' attribute.
* @see #setMaintenanceCost(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getNewEClass40_MaintenanceCost()
* @model default="0.015"
* @generated
*/
double getMaintenanceCost();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.NewEClass40#getMaintenanceCost <em>Maintenance Cost</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Maintenance Cost</em>' attribute.
* @see #getMaintenanceCost()
* @generated
*/
void setMaintenanceCost(double value);
/**
* Returns the value of the '<em><b>Investment Cost</b></em>' containment reference list.
* The list contents are of type {@link de.hftstuttgart.energycomponents.Characteristic}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Investment Cost</em>' containment reference list.
* @see de.hftstuttgart.energycomponents.EnCompPackage#getNewEClass40_InvestmentCost()
* @model containment="true"
* @generated
*/
EList<Characteristic> getInvestmentCost();
} // NewEClass40
/**
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Personnel Cost</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.PersonnelCost#getPersonnelHours <em>Personnel Hours</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.PersonnelCost#getPersonnelCostShare <em>Personnel Cost Share</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPersonnelCost()
* @model abstract="true"
* @generated
*/
public interface PersonnelCost extends EObject {
/**
* Returns the value of the '<em><b>Personnel Hours</b></em>' attribute.
* The default value is <code>"10 h"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Personnel Hours</em>' attribute.
* @see #setPersonnelHours(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPersonnelCost_PersonnelHours()
* @model default="10 h" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @generated
*/
NullableQuantity getPersonnelHours();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.PersonnelCost#getPersonnelHours <em>Personnel Hours</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Personnel Hours</em>' attribute.
* @see #getPersonnelHours()
* @generated
*/
void setPersonnelHours(NullableQuantity value);
/**
* Returns the value of the '<em><b>Personnel Cost Share</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Personnel Cost Share</em>' attribute.
* @see #setPersonnelCostShare(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPersonnelCost_PersonnelCostShare()
* @model
* @generated
*/
double getPersonnelCostShare();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.PersonnelCost#getPersonnelCostShare <em>Personnel Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Personnel Cost Share</em>' attribute.
* @see #getPersonnelCostShare()
* @generated
*/
void setPersonnelCostShare(double value);
} // PersonnelCost
...@@ -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.common.util.Enumerator; import org.eclipse.emf.common.util.Enumerator;
...@@ -61,7 +61,7 @@ public interface PhotovoltaicModule extends EnergyComponent { ...@@ -61,7 +61,7 @@ public interface PhotovoltaicModule extends EnergyComponent {
* @return the value of the '<em>Nominal Power</em>' attribute. * @return the value of the '<em>Nominal Power</em>' attribute.
* @see #setNominalPower(NullableQuantity) * @see #setNominalPower(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_NominalPower() * @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_NominalPower()
* @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 getNominalPower(); NullableQuantity getNominalPower();
...@@ -87,7 +87,7 @@ public interface PhotovoltaicModule extends EnergyComponent { ...@@ -87,7 +87,7 @@ public interface PhotovoltaicModule extends EnergyComponent {
* @return the value of the '<em>Mpp Voltage</em>' attribute. * @return the value of the '<em>Mpp Voltage</em>' attribute.
* @see #setMppVoltage(NullableQuantity) * @see #setMppVoltage(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_MppVoltage() * @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_MppVoltage()
* @model default="V" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true" * @model default="V" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated * @generated
*/ */
NullableQuantity getMppVoltage(); NullableQuantity getMppVoltage();
...@@ -113,7 +113,7 @@ public interface PhotovoltaicModule extends EnergyComponent { ...@@ -113,7 +113,7 @@ public interface PhotovoltaicModule extends EnergyComponent {
* @return the value of the '<em>Mpp Current</em>' attribute. * @return the value of the '<em>Mpp Current</em>' attribute.
* @see #setMppCurrent(NullableQuantity) * @see #setMppCurrent(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_MppCurrent() * @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_MppCurrent()
* @model default="A" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true" * @model default="A" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated * @generated
*/ */
NullableQuantity getMppCurrent(); NullableQuantity getMppCurrent();
...@@ -165,7 +165,7 @@ public interface PhotovoltaicModule extends EnergyComponent { ...@@ -165,7 +165,7 @@ public interface PhotovoltaicModule extends EnergyComponent {
* @return the value of the '<em>Module Area</em>' attribute. * @return the value of the '<em>Module Area</em>' attribute.
* @see #setModuleArea(NullableQuantity) * @see #setModuleArea(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_ModuleArea() * @see de.hftstuttgart.energycomponents.EnCompPackage#getPhotovoltaicModule_ModuleArea()
* @model default="m\u00b2" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true" * @model default="m\u00b2" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated * @generated
*/ */
NullableQuantity getModuleArea(); NullableQuantity getModuleArea();
......
...@@ -9,10 +9,6 @@ import org.eclipse.emf.ecore.EObject; ...@@ -9,10 +9,6 @@ import org.eclipse.emf.ecore.EObject;
* A representation of the model object '<em><b>Polynomial Function</b></em>'. * A representation of the model object '<em><b>Polynomial Function</b></em>'.
* <!-- end-user-doc --> * <!-- end-user-doc -->
* *
* <!-- begin-model-doc -->
* y = ParameterA * x^2 + ParameterB * x + ParameterC
* <!-- end-model-doc -->
*
* <p> * <p>
* The following features are supported: * The following features are supported:
* </p> * </p>
......
/**
*/
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>Power Sources</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPowerSources()
* @model
* @generated
*/
public enum PowerSources implements Enumerator {
/**
* The '<em><b>Electricity</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ELECTRICITY_VALUE
* @generated
* @ordered
*/
ELECTRICITY(0, "electricity", "electricity"),
/**
* The '<em><b>Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GAS_VALUE
* @generated
* @ordered
*/
GAS(1, "gas", "gas");
/**
* 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 = 0;
/**
* The '<em><b>Gas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GAS
* @model name="gas"
* @generated
* @ordered
*/
public static final int GAS_VALUE = 1;
/**
* An array of all the '<em><b>Power Sources</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final PowerSources[] VALUES_ARRAY = new PowerSources[] { ELECTRICITY, GAS, };
/**
* A public read-only list of all the '<em><b>Power Sources</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<PowerSources> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Power Sources</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 PowerSources get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PowerSources result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Power Sources</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 PowerSources getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PowerSources result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Power Sources</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 PowerSources get(int value) {
switch (value) {
case ELECTRICITY_VALUE:
return ELECTRICITY;
case GAS_VALUE:
return 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 PowerSources(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;
}
} //PowerSources
/**
*/
package de.hftstuttgart.energycomponents;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Regular Fuel</b></em>'.
* <!-- end-user-doc -->
*
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getRegularFuel()
* @model abstract="true"
* @generated
*/
public interface RegularFuel extends Fuel {
} // RegularFuel
/**
*/
package de.hftstuttgart.energycomponents;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Salt Hydrate</b></em>'.
* <!-- end-user-doc -->
*
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSaltHydrate()
* @model
* @generated
*/
public interface SaltHydrate extends Medium {
} // SaltHydrate
...@@ -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 -->
...@@ -61,7 +61,7 @@ public interface SolarThermalCollector extends EnergyComponent { ...@@ -61,7 +61,7 @@ public interface SolarThermalCollector extends EnergyComponent {
* @return the value of the '<em>Aperture Area</em>' attribute. * @return the value of the '<em>Aperture Area</em>' attribute.
* @see #setApertureArea(NullableQuantity) * @see #setApertureArea(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector_ApertureArea() * @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector_ApertureArea()
* @model default="m\u00b2" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true" * @model default="m\u00b2" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated * @generated
*/ */
NullableQuantity getApertureArea(); NullableQuantity getApertureArea();
......
...@@ -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 -->
...@@ -34,7 +34,7 @@ public interface ThermalEnergyDevice extends EnergyComponent { ...@@ -34,7 +34,7 @@ public interface ThermalEnergyDevice extends EnergyComponent {
* @return the value of the '<em>Installed Thermal Power</em>' attribute. * @return the value of the '<em>Installed Thermal Power</em>' attribute.
* @see #setInstalledThermalPower(NullableQuantity) * @see #setInstalledThermalPower(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalEnergyDevice_InstalledThermalPower() * @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalEnergyDevice_InstalledThermalPower()
* @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 getInstalledThermalPower(); NullableQuantity getInstalledThermalPower();
......
...@@ -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 -->
...@@ -40,7 +40,7 @@ public interface ThermalStorage extends EnergyComponent { ...@@ -40,7 +40,7 @@ public interface ThermalStorage extends EnergyComponent {
* @return the value of the '<em>Volume</em>' attribute. * @return the value of the '<em>Volume</em>' attribute.
* @see #setVolume(NullableQuantity) * @see #setVolume(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_Volume() * @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_Volume()
* @model default="5 m\u00b3" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="5 m\u00b3" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getVolume(); NullableQuantity getVolume();
...@@ -91,7 +91,7 @@ public interface ThermalStorage extends EnergyComponent { ...@@ -91,7 +91,7 @@ public interface ThermalStorage extends EnergyComponent {
* @return the value of the '<em>Max Temp</em>' attribute. * @return the value of the '<em>Max Temp</em>' attribute.
* @see #setMaxTemp(NullableQuantity) * @see #setMaxTemp(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_MaxTemp() * @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_MaxTemp()
* @model default="80 \u00b0C" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="80 \u00b0C" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getMaxTemp(); NullableQuantity getMaxTemp();
...@@ -114,7 +114,7 @@ public interface ThermalStorage extends EnergyComponent { ...@@ -114,7 +114,7 @@ public interface ThermalStorage extends EnergyComponent {
* @return the value of the '<em>Tank Thickness</em>' attribute. * @return the value of the '<em>Tank Thickness</em>' attribute.
* @see #setTankThickness(NullableQuantity) * @see #setTankThickness(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_TankThickness() * @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_TankThickness()
* @model default="10 mm " dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="10 mm " dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getTankThickness(); NullableQuantity getTankThickness();
...@@ -137,7 +137,7 @@ public interface ThermalStorage extends EnergyComponent { ...@@ -137,7 +137,7 @@ public interface ThermalStorage extends EnergyComponent {
* @return the value of the '<em>Insulation Thickness</em>' attribute. * @return the value of the '<em>Insulation Thickness</em>' attribute.
* @see #setInsulationThickness(NullableQuantity) * @see #setInsulationThickness(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_InsulationThickness() * @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_InsulationThickness()
* @model default="100 mm" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="100 mm" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getInsulationThickness(); NullableQuantity getInsulationThickness();
...@@ -204,7 +204,7 @@ public interface ThermalStorage extends EnergyComponent { ...@@ -204,7 +204,7 @@ public interface ThermalStorage extends EnergyComponent {
* @return the value of the '<em>Height</em>' attribute. * @return the value of the '<em>Height</em>' attribute.
* @see #setHeight(NullableQuantity) * @see #setHeight(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_Height() * @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_Height()
* @model default="2 m" dataType="de.hftstuttgart.energycomponents.QuantityDouble" * @model default="2 m" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble"
* @generated * @generated
*/ */
NullableQuantity getHeight(); NullableQuantity getHeight();
......
/**
*/
package de.hftstuttgart.energycomponents;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Water</b></em>'.
* <!-- end-user-doc -->
*
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getWater()
* @model
* @generated
*/
public interface Water extends Medium {
} // Water
...@@ -2,19 +2,21 @@ ...@@ -2,19 +2,21 @@
*/ */
package de.hftstuttgart.energycomponents.impl; package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.cityunits.model.NullableQuantity;
import de.hftstuttgart.cityunits.model.quantities.QuantitiesFactory;
import de.hftstuttgart.cityunits.model.quantities.QuantitiesPackage;
import de.hftstuttgart.energycomponents.Characteristic; import de.hftstuttgart.energycomponents.Characteristic;
import de.hftstuttgart.energycomponents.CombinedHeatPower; import de.hftstuttgart.energycomponents.CombinedHeatPower;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage; import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.units.NullableQuantity;
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.ENotificationImpl;
/** /**
...@@ -83,8 +85,8 @@ public class CombinedHeatPowerImpl extends ThermalEnergyDeviceImpl implements Co ...@@ -83,8 +85,8 @@ public class CombinedHeatPowerImpl extends ThermalEnergyDeviceImpl implements Co
* @generated * @generated
* @ordered * @ordered
*/ */
protected static final NullableQuantity INSTALLED_ELECTRICAL_POWER_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE protected static final NullableQuantity INSTALLED_ELECTRICAL_POWER_EDEFAULT = (NullableQuantity) QuantitiesFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "kW"); .createFromString(QuantitiesPackage.eINSTANCE.getQuantityDouble(), "kW");
/** /**
* The cached value of the '{@link #getInstalledElectricalPower() <em>Installed Electrical Power</em>}' attribute. * The cached value of the '{@link #getInstalledElectricalPower() <em>Installed Electrical Power</em>}' attribute.
......
...@@ -2,16 +2,22 @@ ...@@ -2,16 +2,22 @@
*/ */
package de.hftstuttgart.energycomponents.impl; package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.cityunits.model.NullableQuantity;
import de.hftstuttgart.cityunits.model.quantities.QuantitiesFactory;
import de.hftstuttgart.cityunits.model.quantities.QuantitiesPackage;
import de.hftstuttgart.energycomponents.Characteristic; import de.hftstuttgart.energycomponents.Characteristic;
import de.hftstuttgart.energycomponents.Cost; import de.hftstuttgart.energycomponents.Cost;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage; import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.TypeOfHeatSource; import de.hftstuttgart.energycomponents.TypeOfHeatSource;
import de.hftstuttgart.units.NullableQuantity;
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
...@@ -156,8 +162,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -156,8 +162,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
* @ordered * @ordered
*/ */
protected static final NullableQuantity PERSONNEL_HOURS_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE protected static final NullableQuantity PERSONNEL_HOURS_EDEFAULT = (NullableQuantity) QuantitiesFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "10 h"); .createFromString(QuantitiesPackage.eINSTANCE.getQuantityDouble(), "10 h");
/** /**
* The cached value of the '{@link #getPersonnelHours() <em>Personnel Hours</em>}' attribute. * The cached value of the '{@link #getPersonnelHours() <em>Personnel Hours</em>}' attribute.
...@@ -254,32 +260,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -254,32 +260,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public NullableQuantity getPersonnelHours() { public String getComponentName() {
return personnelHours; return componentName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setPersonnelHours(NullableQuantity newPersonnelHours) {
NullableQuantity oldPersonnelHours = personnelHours;
personnelHours = newPersonnelHours;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__PERSONNEL_HOURS,
oldPersonnelHours, personnelHours));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getPersonnelCostShare() {
return personnelCostShare;
} }
/** /**
...@@ -288,12 +270,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -288,12 +270,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public void setPersonnelCostShare(double newPersonnelCostShare) { public void setComponentName(String newComponentName) {
double oldPersonnelCostShare = personnelCostShare; String oldComponentName = componentName;
personnelCostShare = newPersonnelCostShare; componentName = newComponentName;
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__PERSONNEL_COST_SHARE, eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__COMPONENT_NAME, oldComponentName,
oldPersonnelCostShare, personnelCostShare)); componentName));
} }
/** /**
...@@ -302,8 +284,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -302,8 +284,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public double getAdministrationAndOtherCostShare() { public String getDescription() {
return administrationAndOtherCostShare; return description;
} }
/** /**
...@@ -312,13 +294,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -312,13 +294,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public void setAdministrationAndOtherCostShare(double newAdministrationAndOtherCostShare) { public void setDescription(String newDescription) {
double oldAdministrationAndOtherCostShare = administrationAndOtherCostShare; String oldDescription = description;
administrationAndOtherCostShare = newAdministrationAndOtherCostShare; description = newDescription;
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__DESCRIPTION, oldDescription,
EnCompPackage.COST__ADMINISTRATION_AND_OTHER_COST_SHARE, oldAdministrationAndOtherCostShare, description));
administrationAndOtherCostShare));
} }
/** /**
...@@ -327,8 +308,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -327,8 +308,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public double getMaintenanceCostShare() { public TypeOfHeatSource getHeatSource() {
return maintenanceCostShare; return heatSource;
} }
/** /**
...@@ -337,26 +318,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -337,26 +318,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public void setMaintenanceCostShare(double newMaintenanceCostShare) { public void setHeatSource(TypeOfHeatSource newHeatSource) {
double oldMaintenanceCostShare = maintenanceCostShare; TypeOfHeatSource oldHeatSource = heatSource;
maintenanceCostShare = newMaintenanceCostShare; heatSource = newHeatSource == null ? HEAT_SOURCE_EDEFAULT : newHeatSource;
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__MAINTENANCE_COST_SHARE, eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__HEAT_SOURCE, oldHeatSource,
oldMaintenanceCostShare, maintenanceCostShare)); heatSource));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.COST__INVESTMENT_COST:
return basicSetInvestmentCost(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
} }
/** /**
...@@ -465,8 +432,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -465,8 +432,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public String getComponentName() { public NullableQuantity getPersonnelHours() {
return componentName; return personnelHours;
} }
/** /**
...@@ -475,12 +442,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -475,12 +442,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public void setComponentName(String newComponentName) { public void setPersonnelHours(NullableQuantity newPersonnelHours) {
String oldComponentName = componentName; NullableQuantity oldPersonnelHours = personnelHours;
componentName = newComponentName; personnelHours = newPersonnelHours;
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__COMPONENT_NAME, oldComponentName, eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__PERSONNEL_HOURS,
componentName)); oldPersonnelHours, personnelHours));
} }
/** /**
...@@ -489,8 +456,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -489,8 +456,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public String getDescription() { public double getPersonnelCostShare() {
return description; return personnelCostShare;
} }
/** /**
...@@ -499,12 +466,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -499,12 +466,12 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public void setDescription(String newDescription) { public void setPersonnelCostShare(double newPersonnelCostShare) {
String oldDescription = description; double oldPersonnelCostShare = personnelCostShare;
description = newDescription; personnelCostShare = newPersonnelCostShare;
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__DESCRIPTION, oldDescription, eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__PERSONNEL_COST_SHARE,
description)); oldPersonnelCostShare, personnelCostShare));
} }
/** /**
...@@ -513,8 +480,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -513,8 +480,8 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public TypeOfHeatSource getHeatSource() { public double getAdministrationAndOtherCostShare() {
return heatSource; return administrationAndOtherCostShare;
} }
/** /**
...@@ -523,12 +490,51 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -523,12 +490,51 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* @generated * @generated
*/ */
@Override @Override
public void setHeatSource(TypeOfHeatSource newHeatSource) { public void setAdministrationAndOtherCostShare(double newAdministrationAndOtherCostShare) {
TypeOfHeatSource oldHeatSource = heatSource; double oldAdministrationAndOtherCostShare = administrationAndOtherCostShare;
heatSource = newHeatSource == null ? HEAT_SOURCE_EDEFAULT : newHeatSource; administrationAndOtherCostShare = newAdministrationAndOtherCostShare;
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__HEAT_SOURCE, oldHeatSource, eNotify(new ENotificationImpl(this, Notification.SET,
heatSource)); EnCompPackage.COST__ADMINISTRATION_AND_OTHER_COST_SHARE, oldAdministrationAndOtherCostShare,
administrationAndOtherCostShare));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getMaintenanceCostShare() {
return maintenanceCostShare;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMaintenanceCostShare(double newMaintenanceCostShare) {
double oldMaintenanceCostShare = maintenanceCostShare;
maintenanceCostShare = newMaintenanceCostShare;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__MAINTENANCE_COST_SHARE,
oldMaintenanceCostShare, maintenanceCostShare));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.COST__INVESTMENT_COST:
return basicSetInvestmentCost(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
} }
/** /**
...@@ -568,7 +574,6 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost { ...@@ -568,7 +574,6 @@ public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @generated * @generated
*/ */
@SuppressWarnings("unchecked")
@Override @Override
public void eSet(int featureID, Object newValue) { public void eSet(int featureID, Object newValue) {
switch (featureID) { switch (featureID) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment