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

First public version as of Verena Weilers Dissertation

parent 2c40014f
No related merge requests found
Showing with 3732 additions and 0 deletions
+3732 -0
/**
*/
package de.hftstuttgart.energycomponents;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Power Function</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.PowerFunction#getKey <em>Key</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.PowerFunction#getParameterA <em>Parameter A</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.PowerFunction#getParameterB <em>Parameter B</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPowerFunction()
* @model
* @generated
*/
public interface PowerFunction extends EObject {
/**
* Returns the value of the '<em><b>Key</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Key</em>' attribute.
* @see #setKey(String)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPowerFunction_Key()
* @model required="true"
* @generated
*/
String getKey();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.PowerFunction#getKey <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Key</em>' attribute.
* @see #getKey()
* @generated
*/
void setKey(String value);
/**
* Returns the value of the '<em><b>Parameter A</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Parameter A</em>' attribute.
* @see #setParameterA(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPowerFunction_ParameterA()
* @model required="true"
* @generated
*/
double getParameterA();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.PowerFunction#getParameterA <em>Parameter A</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parameter A</em>' attribute.
* @see #getParameterA()
* @generated
*/
void setParameterA(double value);
/**
* Returns the value of the '<em><b>Parameter B</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Parameter B</em>' attribute.
* @see #setParameterB(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getPowerFunction_ParameterB()
* @model required="true"
* @generated
*/
double getParameterB();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.PowerFunction#getParameterB <em>Parameter B</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Parameter B</em>' attribute.
* @see #getParameterB()
* @generated
*/
void setParameterB(double value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* y = ParameterA * x^ParameterB
* <!-- end-model-doc -->
* @model
* @generated
*/
double powerfunction(double x);
} // PowerFunction
/**
*/
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
/**
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Solar Thermal Collector</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getCollectorType <em>Collector Type</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getApertureArea <em>Aperture Area</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getOpticalEfficiency <em>Optical Efficiency</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getLinearHeatLossCoefficient <em>Linear Heat Loss Coefficient</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getQuadraticalHeatLossCoefficient <em>Quadratical Heat Loss Coefficient</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector()
* @model
* @generated
*/
public interface SolarThermalCollector extends EnergyComponent {
/**
* Returns the value of the '<em><b>Collector Type</b></em>' attribute.
* The literals are from the enumeration {@link de.hftstuttgart.energycomponents.CollectorTypes}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Collector Type</em>' attribute.
* @see de.hftstuttgart.energycomponents.CollectorTypes
* @see #setCollectorType(CollectorTypes)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector_CollectorType()
* @model required="true"
* @generated
*/
CollectorTypes getCollectorType();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getCollectorType <em>Collector Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Collector Type</em>' attribute.
* @see de.hftstuttgart.energycomponents.CollectorTypes
* @see #getCollectorType()
* @generated
*/
void setCollectorType(CollectorTypes value);
/**
* Returns the value of the '<em><b>Aperture Area</b></em>' attribute.
* The default value is <code>"m\u00b2"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* m²
* <!-- end-model-doc -->
* @return the value of the '<em>Aperture Area</em>' attribute.
* @see #setApertureArea(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector_ApertureArea()
* @model default="m\u00b2" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getApertureArea();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getApertureArea <em>Aperture Area</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Aperture Area</em>' attribute.
* @see #getApertureArea()
* @generated
*/
void setApertureArea(NullableQuantity value);
/**
* Returns the value of the '<em><b>Optical Efficiency</b></em>' attribute.
* The default value is <code>"0.77"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* share
* <!-- end-model-doc -->
* @return the value of the '<em>Optical Efficiency</em>' attribute.
* @see #setOpticalEfficiency(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector_OpticalEfficiency()
* @model default="0.77"
* @generated
*/
double getOpticalEfficiency();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getOpticalEfficiency <em>Optical Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Optical Efficiency</em>' attribute.
* @see #getOpticalEfficiency()
* @generated
*/
void setOpticalEfficiency(double value);
/**
* Returns the value of the '<em><b>Linear Heat Loss Coefficient</b></em>' attribute.
* The default value is <code>"3.2"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Linear Heat Loss Coefficient</em>' attribute.
* @see #setLinearHeatLossCoefficient(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector_LinearHeatLossCoefficient()
* @model default="3.2"
* @generated
*/
double getLinearHeatLossCoefficient();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getLinearHeatLossCoefficient <em>Linear Heat Loss Coefficient</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Linear Heat Loss Coefficient</em>' attribute.
* @see #getLinearHeatLossCoefficient()
* @generated
*/
void setLinearHeatLossCoefficient(double value);
/**
* Returns the value of the '<em><b>Quadratical Heat Loss Coefficient</b></em>' attribute.
* The default value is <code>"0.01"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Quadratical Heat Loss Coefficient</em>' attribute.
* @see #setQuadraticalHeatLossCoefficient(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getSolarThermalCollector_QuadraticalHeatLossCoefficient()
* @model default="0.01"
* @generated
*/
double getQuadraticalHeatLossCoefficient();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.SolarThermalCollector#getQuadraticalHeatLossCoefficient <em>Quadratical Heat Loss Coefficient</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Quadratical Heat Loss Coefficient</em>' attribute.
* @see #getQuadraticalHeatLossCoefficient()
* @generated
*/
void setQuadraticalHeatLossCoefficient(double value);
} // SolarThermalCollector
/**
*/
package de.hftstuttgart.energycomponents;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Table Characteristic</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.TableCharacteristic#getFunctions <em>Functions</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getTableCharacteristic()
* @model
* @generated
*/
public interface TableCharacteristic extends Characteristic {
/**
* Returns the value of the '<em><b>Functions</b></em>' containment reference list.
* The list contents are of type {@link de.hftstuttgart.energycomponents.TableFunction}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Functions</em>' containment reference list.
* @see de.hftstuttgart.energycomponents.EnCompPackage#getTableCharacteristic_Functions()
* @model containment="true" required="true"
* @generated
*/
EList<TableFunction> getFunctions();
} // TableCharacteristic
/**
*/
package de.hftstuttgart.energycomponents;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Table Function</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.TableFunction#getKey <em>Key</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.TableFunction#getDatapoints <em>Datapoints</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getTableFunction()
* @model
* @generated
*/
public interface TableFunction extends EObject {
/**
* Returns the value of the '<em><b>Key</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Key</em>' attribute.
* @see #setKey(String)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getTableFunction_Key()
* @model required="true"
* @generated
*/
String getKey();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.TableFunction#getKey <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Key</em>' attribute.
* @see #getKey()
* @generated
*/
void setKey(String value);
/**
* Returns the value of the '<em><b>Datapoints</b></em>' containment reference list.
* The list contents are of type {@link de.hftstuttgart.energycomponents.DataPoint}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Datapoints</em>' containment reference list.
* @see de.hftstuttgart.energycomponents.EnCompPackage#getTableFunction_Datapoints()
* @model containment="true" lower="2"
* @generated
*/
EList<DataPoint> getDatapoints();
} // TableFunction
/**
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Thermal Energy Device</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.ThermalEnergyDevice#getInstalledThermalPower <em>Installed Thermal Power</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalEnergyDevice#getModulationRange <em>Modulation Range</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalEnergyDevice#getFuel <em>Fuel</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalEnergyDevice()
* @model abstract="true"
* @generated
*/
public interface ThermalEnergyDevice 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#getThermalEnergyDevice_InstalledThermalPower()
* @model default="kW" dataType="de.hftstuttgart.energycomponents.QuantityDouble" required="true"
* @generated
*/
NullableQuantity getInstalledThermalPower();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalEnergyDevice#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>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#getThermalEnergyDevice_ModulationRange()
* @model default="0.5"
* @generated
*/
double getModulationRange();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalEnergyDevice#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);
/**
* Returns the value of the '<em><b>Fuel</b></em>' attribute.
* The literals are from the enumeration {@link de.hftstuttgart.energycomponents.FuelTypes}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Fuel</em>' attribute.
* @see de.hftstuttgart.energycomponents.FuelTypes
* @see #setFuel(FuelTypes)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalEnergyDevice_Fuel()
* @model required="true"
* @generated
*/
FuelTypes getFuel();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalEnergyDevice#getFuel <em>Fuel</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Fuel</em>' attribute.
* @see de.hftstuttgart.energycomponents.FuelTypes
* @see #getFuel()
* @generated
*/
void setFuel(FuelTypes value);
} // ThermalEnergyDevice
/**
*/
package de.hftstuttgart.energycomponents;
import de.hftstuttgart.units.NullableQuantity;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Thermal Storage</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getVolume <em>Volume</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getThermalStorageType <em>Thermal Storage Type</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getMaxTemp <em>Max Temp</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getTankThickness <em>Tank Thickness</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getInsulationThickness <em>Insulation Thickness</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getUsesMedium <em>Uses Medium</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getInsulationMaterial <em>Insulation Material</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getHeight <em>Height</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.ThermalStorage#getTankMaterial <em>Tank Material</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage()
* @model
* @generated
*/
public interface ThermalStorage extends EnergyComponent {
/**
* Returns the value of the '<em><b>Volume</b></em>' attribute.
* The default value is <code>"5 m\u00b3"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* m³
* <!-- end-model-doc -->
* @return the value of the '<em>Volume</em>' attribute.
* @see #setVolume(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_Volume()
* @model default="5 m\u00b3" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @generated
*/
NullableQuantity getVolume();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getVolume <em>Volume</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Volume</em>' attribute.
* @see #getVolume()
* @generated
*/
void setVolume(NullableQuantity value);
/**
* Returns the value of the '<em><b>Thermal Storage Type</b></em>' attribute.
* The literals are from the enumeration {@link de.hftstuttgart.energycomponents.ThermalStorageTypes}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Thermal Storage Type</em>' attribute.
* @see de.hftstuttgart.energycomponents.ThermalStorageTypes
* @see #setThermalStorageType(ThermalStorageTypes)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_ThermalStorageType()
* @model unique="false" transient="true"
* @generated
*/
ThermalStorageTypes getThermalStorageType();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getThermalStorageType <em>Thermal Storage Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Thermal Storage Type</em>' attribute.
* @see de.hftstuttgart.energycomponents.ThermalStorageTypes
* @see #getThermalStorageType()
* @generated
*/
void setThermalStorageType(ThermalStorageTypes value);
/**
* Returns the value of the '<em><b>Max Temp</b></em>' attribute.
* The default value is <code>"80 \u00b0C"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* degree Celsius
* <!-- end-model-doc -->
* @return the value of the '<em>Max Temp</em>' attribute.
* @see #setMaxTemp(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_MaxTemp()
* @model default="80 \u00b0C" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @generated
*/
NullableQuantity getMaxTemp();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getMaxTemp <em>Max Temp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Max Temp</em>' attribute.
* @see #getMaxTemp()
* @generated
*/
void setMaxTemp(NullableQuantity value);
/**
* Returns the value of the '<em><b>Tank Thickness</b></em>' attribute.
* The default value is <code>"10 mm "</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Tank Thickness</em>' attribute.
* @see #setTankThickness(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_TankThickness()
* @model default="10 mm " dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @generated
*/
NullableQuantity getTankThickness();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getTankThickness <em>Tank Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Tank Thickness</em>' attribute.
* @see #getTankThickness()
* @generated
*/
void setTankThickness(NullableQuantity value);
/**
* Returns the value of the '<em><b>Insulation Thickness</b></em>' attribute.
* The default value is <code>"100 mm"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Insulation Thickness</em>' attribute.
* @see #setInsulationThickness(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_InsulationThickness()
* @model default="100 mm" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @generated
*/
NullableQuantity getInsulationThickness();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getInsulationThickness <em>Insulation Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Insulation Thickness</em>' attribute.
* @see #getInsulationThickness()
* @generated
*/
void setInsulationThickness(NullableQuantity value);
/**
* Returns the value of the '<em><b>Uses Medium</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Uses Medium</em>' reference.
* @see #setUsesMedium(Medium)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_UsesMedium()
* @model required="true"
* @generated
*/
Medium getUsesMedium();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getUsesMedium <em>Uses Medium</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Uses Medium</em>' reference.
* @see #getUsesMedium()
* @generated
*/
void setUsesMedium(Medium value);
/**
* Returns the value of the '<em><b>Insulation Material</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Insulation Material</em>' reference.
* @see #setInsulationMaterial(Material)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_InsulationMaterial()
* @model
* @generated
*/
Material getInsulationMaterial();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getInsulationMaterial <em>Insulation Material</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Insulation Material</em>' reference.
* @see #getInsulationMaterial()
* @generated
*/
void setInsulationMaterial(Material value);
/**
* Returns the value of the '<em><b>Height</b></em>' attribute.
* The default value is <code>"2 m"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Height</em>' attribute.
* @see #setHeight(NullableQuantity)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_Height()
* @model default="2 m" dataType="de.hftstuttgart.energycomponents.QuantityDouble"
* @generated
*/
NullableQuantity getHeight();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getHeight <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Height</em>' attribute.
* @see #getHeight()
* @generated
*/
void setHeight(NullableQuantity value);
/**
* Returns the value of the '<em><b>Tank Material</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Tank Material</em>' reference.
* @see #setTankMaterial(Material)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorage_TankMaterial()
* @model
* @generated
*/
Material getTankMaterial();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.ThermalStorage#getTankMaterial <em>Tank Material</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Tank Material</em>' reference.
* @see #getTankMaterial()
* @generated
*/
void setTankMaterial(Material value);
} // ThermalStorage
/**
*/
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>Thermal Storage Types</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getThermalStorageTypes()
* @model
* @generated
*/
public enum ThermalStorageTypes implements Enumerator {
/**
* The '<em><b>Sensible</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SENSIBLE_VALUE
* @generated
* @ordered
*/
SENSIBLE(0, "sensible", "sensible"),
/**
* The '<em><b>Latent</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LATENT_VALUE
* @generated
* @ordered
*/
LATENT(1, "latent", "LITERAL1");
/**
* The '<em><b>Sensible</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SENSIBLE
* @model name="sensible"
* @generated
* @ordered
*/
public static final int SENSIBLE_VALUE = 0;
/**
* The '<em><b>Latent</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LATENT
* @model name="latent" literal="LITERAL1"
* @generated
* @ordered
*/
public static final int LATENT_VALUE = 1;
/**
* An array of all the '<em><b>Thermal Storage Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final ThermalStorageTypes[] VALUES_ARRAY = new ThermalStorageTypes[] { SENSIBLE, LATENT, };
/**
* A public read-only list of all the '<em><b>Thermal Storage Types</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<ThermalStorageTypes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Thermal Storage 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 ThermalStorageTypes get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ThermalStorageTypes result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Thermal Storage 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 ThermalStorageTypes getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ThermalStorageTypes result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Thermal Storage 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 ThermalStorageTypes get(int value) {
switch (value) {
case SENSIBLE_VALUE:
return SENSIBLE;
case LATENT_VALUE:
return LATENT;
}
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 ThermalStorageTypes(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;
}
} //ThermalStorageTypes
/**
*/
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>Type Of Heat Source</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getTypeOfHeatSource()
* @model
* @generated
*/
public enum TypeOfHeatSource 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>Biogas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIOGAS_VALUE
* @generated
* @ordered
*/
BIOGAS(1, "biogas", "biogas"),
/**
* The '<em><b>Oil</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OIL_VALUE
* @generated
* @ordered
*/
OIL(2, "oil", "oil"),
/**
* The '<em><b>Diesel</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIESEL_VALUE
* @generated
* @ordered
*/
DIESEL(3, "diesel", "diesel"),
/**
* The '<em><b>Synthetic Gas</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SYNTHETIC_GAS_VALUE
* @generated
* @ordered
*/
SYNTHETIC_GAS(4, "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(5, "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(6, "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(7, "sewageGas", "sewageGas"),
/**
* The '<em><b>LNG</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LNG_VALUE
* @generated
* @ordered
*/
LNG(8, "LNG", "LNG"),
/**
* The '<em><b>CNG</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #CNG_VALUE
* @generated
* @ordered
*/
CNG(9, "CNG", "CNG"),
/**
* The '<em><b>Water</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WATER_VALUE
* @generated
* @ordered
*/
WATER(10, "water", "water"),
/**
* The '<em><b>Air</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AIR_VALUE
* @generated
* @ordered
*/
AIR(11, "air", "air"),
/**
* The '<em><b>Soil</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SOIL_VALUE
* @generated
* @ordered
*/
SOIL(12, "soil", "soil"),
/**
* The '<em><b>None</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NONE_VALUE
* @generated
* @ordered
*/
NONE(13, "none", "none");
/**
* 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>Biogas</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BIOGAS
* @model name="biogas"
* @generated
* @ordered
*/
public static final int BIOGAS_VALUE = 1;
/**
* 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 = 2;
/**
* 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 = 3;
/**
* 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 = 4;
/**
* 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 = 5;
/**
* 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 = 6;
/**
* 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 = 7;
/**
* 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 = 8;
/**
* 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 = 9;
/**
* The '<em><b>Water</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #WATER
* @model name="water"
* @generated
* @ordered
*/
public static final int WATER_VALUE = 10;
/**
* The '<em><b>Air</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AIR
* @model name="air"
* @generated
* @ordered
*/
public static final int AIR_VALUE = 11;
/**
* The '<em><b>Soil</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SOIL
* @model name="soil"
* @generated
* @ordered
*/
public static final int SOIL_VALUE = 12;
/**
* The '<em><b>None</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NONE
* @model name="none"
* @generated
* @ordered
*/
public static final int NONE_VALUE = 13;
/**
* An array of all the '<em><b>Type Of Heat Source</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final TypeOfHeatSource[] VALUES_ARRAY = new TypeOfHeatSource[] { NATURAL_GAS, BIOGAS, OIL, DIESEL,
SYNTHETIC_GAS, WOOD_PELLETS, WOOD_CHIPS, SEWAGE_GAS, LNG, CNG, WATER, AIR, SOIL, NONE, };
/**
* A public read-only list of all the '<em><b>Type Of Heat Source</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<TypeOfHeatSource> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Type Of Heat Source</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 TypeOfHeatSource get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TypeOfHeatSource result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Type Of Heat Source</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 TypeOfHeatSource getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TypeOfHeatSource result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Type Of Heat Source</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 TypeOfHeatSource get(int value) {
switch (value) {
case NATURAL_GAS_VALUE:
return NATURAL_GAS;
case BIOGAS_VALUE:
return BIOGAS;
case OIL_VALUE:
return OIL;
case DIESEL_VALUE:
return DIESEL;
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;
case LNG_VALUE:
return LNG;
case CNG_VALUE:
return CNG;
case WATER_VALUE:
return WATER;
case AIR_VALUE:
return AIR;
case SOIL_VALUE:
return SOIL;
case NONE_VALUE:
return NONE;
}
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 TypeOfHeatSource(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;
}
} //TypeOfHeatSource
/**
*/
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
/**
*/
package de.hftstuttgart.energycomponents;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Wind Turbine</b></em>'.
* <!-- end-user-doc -->
*
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getWindTurbine()
* @model
* @generated
*/
public interface WindTurbine extends EnergyComponent {
} // WindTurbine
/**
*/
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>cell Types Electrolyzer</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage#getcellTypesElectrolyzer()
* @model
* @generated
*/
public enum cellTypesElectrolyzer implements Enumerator {
/**
* The '<em><b>PEM</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #PEM_VALUE
* @generated
* @ordered
*/
PEM(0, "PEM", "PEM");
/**
* The '<em><b>PEM</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #PEM
* @model
* @generated
* @ordered
*/
public static final int PEM_VALUE = 0;
/**
* An array of all the '<em><b>cell Types Electrolyzer</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final cellTypesElectrolyzer[] VALUES_ARRAY = new cellTypesElectrolyzer[] { PEM, };
/**
* A public read-only list of all the '<em><b>cell Types Electrolyzer</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<cellTypesElectrolyzer> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>cell Types Electrolyzer</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 cellTypesElectrolyzer get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
cellTypesElectrolyzer result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>cell Types Electrolyzer</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 cellTypesElectrolyzer getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
cellTypesElectrolyzer result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>cell Types Electrolyzer</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 cellTypesElectrolyzer get(int value) {
switch (value) {
case PEM_VALUE:
return PEM;
}
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 cellTypesElectrolyzer(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;
}
} //cellTypesElectrolyzer
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.BioFuel;
import de.hftstuttgart.energycomponents.EnCompPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Bio Fuel</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.BioFuelImpl#getWaterContent <em>Water Content</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.BioFuelImpl#getAshContent <em>Ash Content</em>}</li>
* </ul>
*
* @generated
*/
public class BioFuelImpl extends FuelImpl implements BioFuel {
/**
* The default value of the '{@link #getWaterContent() <em>Water Content</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWaterContent()
* @generated
* @ordered
*/
protected static final double WATER_CONTENT_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getWaterContent() <em>Water Content</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWaterContent()
* @generated
* @ordered
*/
protected double waterContent = WATER_CONTENT_EDEFAULT;
/**
* The default value of the '{@link #getAshContent() <em>Ash Content</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAshContent()
* @generated
* @ordered
*/
protected static final double ASH_CONTENT_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getAshContent() <em>Ash Content</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAshContent()
* @generated
* @ordered
*/
protected double ashContent = ASH_CONTENT_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected BioFuelImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.BIO_FUEL;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getWaterContent() {
return waterContent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setWaterContent(double newWaterContent) {
double oldWaterContent = waterContent;
waterContent = newWaterContent;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.BIO_FUEL__WATER_CONTENT,
oldWaterContent, waterContent));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getAshContent() {
return ashContent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setAshContent(double newAshContent) {
double oldAshContent = ashContent;
ashContent = newAshContent;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.BIO_FUEL__ASH_CONTENT, oldAshContent,
ashContent));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.BIO_FUEL__WATER_CONTENT:
return getWaterContent();
case EnCompPackage.BIO_FUEL__ASH_CONTENT:
return getAshContent();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case EnCompPackage.BIO_FUEL__WATER_CONTENT:
setWaterContent((Double) newValue);
return;
case EnCompPackage.BIO_FUEL__ASH_CONTENT:
setAshContent((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.BIO_FUEL__WATER_CONTENT:
setWaterContent(WATER_CONTENT_EDEFAULT);
return;
case EnCompPackage.BIO_FUEL__ASH_CONTENT:
setAshContent(ASH_CONTENT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.BIO_FUEL__WATER_CONTENT:
return waterContent != WATER_CONTENT_EDEFAULT;
case EnCompPackage.BIO_FUEL__ASH_CONTENT:
return ashContent != ASH_CONTENT_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (waterContent: ");
result.append(waterContent);
result.append(", ashContent: ");
result.append(ashContent);
result.append(')');
return result.toString();
}
} //BioFuelImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.Boiler;
import de.hftstuttgart.energycomponents.BoilerTypes;
import de.hftstuttgart.energycomponents.EnCompPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Boiler</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.BoilerImpl#getNominalEfficiency <em>Nominal Efficiency</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.BoilerImpl#getBoilerType <em>Boiler Type</em>}</li>
* </ul>
*
* @generated
*/
public class BoilerImpl extends ThermalEnergyDeviceImpl implements Boiler {
/**
* The default value of the '{@link #getNominalEfficiency() <em>Nominal Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNominalEfficiency()
* @generated
* @ordered
*/
protected static final double NOMINAL_EFFICIENCY_EDEFAULT = 0.98;
/**
* The cached value of the '{@link #getNominalEfficiency() <em>Nominal Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNominalEfficiency()
* @generated
* @ordered
*/
protected double nominalEfficiency = NOMINAL_EFFICIENCY_EDEFAULT;
/**
* The default value of the '{@link #getBoilerType() <em>Boiler Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBoilerType()
* @generated
* @ordered
*/
protected static final BoilerTypes BOILER_TYPE_EDEFAULT = BoilerTypes.CONDENSING_BOILER;
/**
* The cached value of the '{@link #getBoilerType() <em>Boiler Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBoilerType()
* @generated
* @ordered
*/
protected BoilerTypes boilerType = BOILER_TYPE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected BoilerImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.BOILER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getNominalEfficiency() {
return nominalEfficiency;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNominalEfficiency(double newNominalEfficiency) {
double oldNominalEfficiency = nominalEfficiency;
nominalEfficiency = newNominalEfficiency;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.BOILER__NOMINAL_EFFICIENCY,
oldNominalEfficiency, nominalEfficiency));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public BoilerTypes getBoilerType() {
return boilerType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setBoilerType(BoilerTypes newBoilerType) {
BoilerTypes oldBoilerType = boilerType;
boilerType = newBoilerType == null ? BOILER_TYPE_EDEFAULT : newBoilerType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.BOILER__BOILER_TYPE, oldBoilerType,
boilerType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.BOILER__NOMINAL_EFFICIENCY:
return getNominalEfficiency();
case EnCompPackage.BOILER__BOILER_TYPE:
return getBoilerType();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case EnCompPackage.BOILER__NOMINAL_EFFICIENCY:
setNominalEfficiency((Double) newValue);
return;
case EnCompPackage.BOILER__BOILER_TYPE:
setBoilerType((BoilerTypes) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.BOILER__NOMINAL_EFFICIENCY:
setNominalEfficiency(NOMINAL_EFFICIENCY_EDEFAULT);
return;
case EnCompPackage.BOILER__BOILER_TYPE:
setBoilerType(BOILER_TYPE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.BOILER__NOMINAL_EFFICIENCY:
return nominalEfficiency != NOMINAL_EFFICIENCY_EDEFAULT;
case EnCompPackage.BOILER__BOILER_TYPE:
return boilerType != BOILER_TYPE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (nominalEfficiency: ");
result.append(nominalEfficiency);
result.append(", boilerType: ");
result.append(boilerType);
result.append(')');
return result.toString();
}
} //BoilerImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.Characteristic;
import de.hftstuttgart.energycomponents.EnCompPackage;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Characteristic</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public abstract class CharacteristicImpl extends MinimalEObjectImpl.Container implements Characteristic {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CharacteristicImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.CHARACTERISTIC;
}
} //CharacteristicImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.Characteristic;
import de.hftstuttgart.energycomponents.CombinedHeatPower;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.units.NullableQuantity;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Combined Heat Power</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.CombinedHeatPowerImpl#getThermalEfficiency <em>Thermal Efficiency</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CombinedHeatPowerImpl#getElectricalEfficiency <em>Electrical Efficiency</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CombinedHeatPowerImpl#getInstalledElectricalPower <em>Installed Electrical Power</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CombinedHeatPowerImpl#getElectricalEfficiencyPartLoad <em>Electrical Efficiency Part Load</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CombinedHeatPowerImpl#getThermalEfficiencyPartLoad <em>Thermal Efficiency Part Load</em>}</li>
* </ul>
*
* @generated
*/
public class CombinedHeatPowerImpl extends ThermalEnergyDeviceImpl implements CombinedHeatPower {
/**
* The default value of the '{@link #getThermalEfficiency() <em>Thermal Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalEfficiency()
* @generated
* @ordered
*/
protected static final double THERMAL_EFFICIENCY_EDEFAULT = 0.4;
/**
* The cached value of the '{@link #getThermalEfficiency() <em>Thermal Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalEfficiency()
* @generated
* @ordered
*/
protected double thermalEfficiency = THERMAL_EFFICIENCY_EDEFAULT;
/**
* The default value of the '{@link #getElectricalEfficiency() <em>Electrical Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElectricalEfficiency()
* @generated
* @ordered
*/
protected static final double ELECTRICAL_EFFICIENCY_EDEFAULT = 0.4;
/**
* The cached value of the '{@link #getElectricalEfficiency() <em>Electrical Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElectricalEfficiency()
* @generated
* @ordered
*/
protected double electricalEfficiency = ELECTRICAL_EFFICIENCY_EDEFAULT;
/**
* The default value of the '{@link #getInstalledElectricalPower() <em>Installed Electrical Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstalledElectricalPower()
* @generated
* @ordered
*/
protected static final NullableQuantity INSTALLED_ELECTRICAL_POWER_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "kW");
/**
* The cached value of the '{@link #getInstalledElectricalPower() <em>Installed Electrical Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstalledElectricalPower()
* @generated
* @ordered
*/
protected NullableQuantity installedElectricalPower = INSTALLED_ELECTRICAL_POWER_EDEFAULT;
/**
* The cached value of the '{@link #getElectricalEfficiencyPartLoad() <em>Electrical Efficiency Part Load</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElectricalEfficiencyPartLoad()
* @generated
* @ordered
*/
protected Characteristic electricalEfficiencyPartLoad;
/**
* The cached value of the '{@link #getThermalEfficiencyPartLoad() <em>Thermal Efficiency Part Load</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalEfficiencyPartLoad()
* @generated
* @ordered
*/
protected Characteristic thermalEfficiencyPartLoad;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CombinedHeatPowerImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.COMBINED_HEAT_POWER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getThermalEfficiency() {
return thermalEfficiency;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setThermalEfficiency(double newThermalEfficiency) {
double oldThermalEfficiency = thermalEfficiency;
thermalEfficiency = newThermalEfficiency;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY,
oldThermalEfficiency, thermalEfficiency));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getElectricalEfficiency() {
return electricalEfficiency;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setElectricalEfficiency(double newElectricalEfficiency) {
double oldElectricalEfficiency = electricalEfficiency;
electricalEfficiency = newElectricalEfficiency;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY, oldElectricalEfficiency,
electricalEfficiency));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getInstalledElectricalPower() {
return installedElectricalPower;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setInstalledElectricalPower(NullableQuantity newInstalledElectricalPower) {
NullableQuantity oldInstalledElectricalPower = installedElectricalPower;
installedElectricalPower = newInstalledElectricalPower;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.COMBINED_HEAT_POWER__INSTALLED_ELECTRICAL_POWER, oldInstalledElectricalPower,
installedElectricalPower));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Characteristic getElectricalEfficiencyPartLoad() {
return electricalEfficiencyPartLoad;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetElectricalEfficiencyPartLoad(Characteristic newElectricalEfficiencyPartLoad,
NotificationChain msgs) {
Characteristic oldElectricalEfficiencyPartLoad = electricalEfficiencyPartLoad;
electricalEfficiencyPartLoad = newElectricalEfficiencyPartLoad;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD, oldElectricalEfficiencyPartLoad,
newElectricalEfficiencyPartLoad);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setElectricalEfficiencyPartLoad(Characteristic newElectricalEfficiencyPartLoad) {
if (newElectricalEfficiencyPartLoad != electricalEfficiencyPartLoad) {
NotificationChain msgs = null;
if (electricalEfficiencyPartLoad != null)
msgs = ((InternalEObject) electricalEfficiencyPartLoad).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD,
null, msgs);
if (newElectricalEfficiencyPartLoad != null)
msgs = ((InternalEObject) newElectricalEfficiencyPartLoad).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD,
null, msgs);
msgs = basicSetElectricalEfficiencyPartLoad(newElectricalEfficiencyPartLoad, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD, newElectricalEfficiencyPartLoad,
newElectricalEfficiencyPartLoad));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Characteristic getThermalEfficiencyPartLoad() {
return thermalEfficiencyPartLoad;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetThermalEfficiencyPartLoad(Characteristic newThermalEfficiencyPartLoad,
NotificationChain msgs) {
Characteristic oldThermalEfficiencyPartLoad = thermalEfficiencyPartLoad;
thermalEfficiencyPartLoad = newThermalEfficiencyPartLoad;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD, oldThermalEfficiencyPartLoad,
newThermalEfficiencyPartLoad);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setThermalEfficiencyPartLoad(Characteristic newThermalEfficiencyPartLoad) {
if (newThermalEfficiencyPartLoad != thermalEfficiencyPartLoad) {
NotificationChain msgs = null;
if (thermalEfficiencyPartLoad != null)
msgs = ((InternalEObject) thermalEfficiencyPartLoad).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD, null,
msgs);
if (newThermalEfficiencyPartLoad != null)
msgs = ((InternalEObject) newThermalEfficiencyPartLoad).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD, null,
msgs);
msgs = basicSetThermalEfficiencyPartLoad(newThermalEfficiencyPartLoad, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD, newThermalEfficiencyPartLoad,
newThermalEfficiencyPartLoad));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD:
return basicSetElectricalEfficiencyPartLoad(null, msgs);
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD:
return basicSetThermalEfficiencyPartLoad(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
return getThermalEfficiency();
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY:
return getElectricalEfficiency();
case EnCompPackage.COMBINED_HEAT_POWER__INSTALLED_ELECTRICAL_POWER:
return getInstalledElectricalPower();
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD:
return getElectricalEfficiencyPartLoad();
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD:
return getThermalEfficiencyPartLoad();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
setThermalEfficiency((Double) newValue);
return;
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY:
setElectricalEfficiency((Double) newValue);
return;
case EnCompPackage.COMBINED_HEAT_POWER__INSTALLED_ELECTRICAL_POWER:
setInstalledElectricalPower((NullableQuantity) newValue);
return;
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD:
setElectricalEfficiencyPartLoad((Characteristic) newValue);
return;
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD:
setThermalEfficiencyPartLoad((Characteristic) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
setThermalEfficiency(THERMAL_EFFICIENCY_EDEFAULT);
return;
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY:
setElectricalEfficiency(ELECTRICAL_EFFICIENCY_EDEFAULT);
return;
case EnCompPackage.COMBINED_HEAT_POWER__INSTALLED_ELECTRICAL_POWER:
setInstalledElectricalPower(INSTALLED_ELECTRICAL_POWER_EDEFAULT);
return;
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD:
setElectricalEfficiencyPartLoad((Characteristic) null);
return;
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD:
setThermalEfficiencyPartLoad((Characteristic) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
return thermalEfficiency != THERMAL_EFFICIENCY_EDEFAULT;
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY:
return electricalEfficiency != ELECTRICAL_EFFICIENCY_EDEFAULT;
case EnCompPackage.COMBINED_HEAT_POWER__INSTALLED_ELECTRICAL_POWER:
return INSTALLED_ELECTRICAL_POWER_EDEFAULT == null ? installedElectricalPower != null
: !INSTALLED_ELECTRICAL_POWER_EDEFAULT.equals(installedElectricalPower);
case EnCompPackage.COMBINED_HEAT_POWER__ELECTRICAL_EFFICIENCY_PART_LOAD:
return electricalEfficiencyPartLoad != null;
case EnCompPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY_PART_LOAD:
return thermalEfficiencyPartLoad != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (thermalEfficiency: ");
result.append(thermalEfficiency);
result.append(", electricalEfficiency: ");
result.append(electricalEfficiency);
result.append(", installedElectricalPower: ");
result.append(installedElectricalPower);
result.append(')');
return result.toString();
}
} //CombinedHeatPowerImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.Characteristic;
import de.hftstuttgart.energycomponents.Cost;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.TypeOfHeatSource;
import de.hftstuttgart.units.NullableQuantity;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Cost</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getComponentName <em>Component Name</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getDescription <em>Description</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getHeatSource <em>Heat Source</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getDatasource <em>Datasource</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getInvestmentCost <em>Investment Cost</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getOtherInvestmentCost <em>Other Investment Cost</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getPersonnelHours <em>Personnel Hours</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getPersonnelCostShare <em>Personnel Cost Share</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getAdministrationAndOtherCostShare <em>Administration And Other Cost Share</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.CostImpl#getMaintenanceCostShare <em>Maintenance Cost Share</em>}</li>
* </ul>
*
* @generated
*/
public class CostImpl extends MinimalEObjectImpl.Container implements Cost {
/**
* The default value of the '{@link #getComponentName() <em>Component Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComponentName()
* @generated
* @ordered
*/
protected static final String COMPONENT_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getComponentName() <em>Component Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComponentName()
* @generated
* @ordered
*/
protected String componentName = COMPONENT_NAME_EDEFAULT;
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected String description = DESCRIPTION_EDEFAULT;
/**
* The default value of the '{@link #getHeatSource() <em>Heat Source</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHeatSource()
* @generated
* @ordered
*/
protected static final TypeOfHeatSource HEAT_SOURCE_EDEFAULT = TypeOfHeatSource.NATURAL_GAS;
/**
* The cached value of the '{@link #getHeatSource() <em>Heat Source</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHeatSource()
* @generated
* @ordered
*/
protected TypeOfHeatSource heatSource = HEAT_SOURCE_EDEFAULT;
/**
* The default value of the '{@link #getDatasource() <em>Datasource</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDatasource()
* @generated
* @ordered
*/
protected static final String DATASOURCE_EDEFAULT = null;
/**
* The cached value of the '{@link #getDatasource() <em>Datasource</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDatasource()
* @generated
* @ordered
*/
protected String datasource = DATASOURCE_EDEFAULT;
/**
* The cached value of the '{@link #getInvestmentCost() <em>Investment Cost</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInvestmentCost()
* @generated
* @ordered
*/
protected Characteristic investmentCost;
/**
* The default value of the '{@link #getOtherInvestmentCost() <em>Other Investment Cost</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOtherInvestmentCost()
* @generated
* @ordered
*/
protected static final double OTHER_INVESTMENT_COST_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getOtherInvestmentCost() <em>Other Investment Cost</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOtherInvestmentCost()
* @generated
* @ordered
*/
protected double otherInvestmentCost = OTHER_INVESTMENT_COST_EDEFAULT;
/**
* The default value of the '{@link #getPersonnelHours() <em>Personnel Hours</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPersonnelHours()
* @generated
* @ordered
*/
protected static final NullableQuantity PERSONNEL_HOURS_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "10 h");
/**
* The cached value of the '{@link #getPersonnelHours() <em>Personnel Hours</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPersonnelHours()
* @generated
* @ordered
*/
protected NullableQuantity personnelHours = PERSONNEL_HOURS_EDEFAULT;
/**
* The default value of the '{@link #getPersonnelCostShare() <em>Personnel Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPersonnelCostShare()
* @generated
* @ordered
*/
protected static final double PERSONNEL_COST_SHARE_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getPersonnelCostShare() <em>Personnel Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPersonnelCostShare()
* @generated
* @ordered
*/
protected double personnelCostShare = PERSONNEL_COST_SHARE_EDEFAULT;
/**
* The default value of the '{@link #getAdministrationAndOtherCostShare() <em>Administration And Other Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAdministrationAndOtherCostShare()
* @generated
* @ordered
*/
protected static final double ADMINISTRATION_AND_OTHER_COST_SHARE_EDEFAULT = 0.015;
/**
* The cached value of the '{@link #getAdministrationAndOtherCostShare() <em>Administration And Other Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAdministrationAndOtherCostShare()
* @generated
* @ordered
*/
protected double administrationAndOtherCostShare = ADMINISTRATION_AND_OTHER_COST_SHARE_EDEFAULT;
/**
* The default value of the '{@link #getMaintenanceCostShare() <em>Maintenance Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaintenanceCostShare()
* @generated
* @ordered
*/
protected static final double MAINTENANCE_COST_SHARE_EDEFAULT = 0.015;
/**
* The cached value of the '{@link #getMaintenanceCostShare() <em>Maintenance Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaintenanceCostShare()
* @generated
* @ordered
*/
protected double maintenanceCostShare = MAINTENANCE_COST_SHARE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CostImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.COST;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getPersonnelHours() {
return personnelHours;
}
/**
* <!-- 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;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setPersonnelCostShare(double newPersonnelCostShare) {
double oldPersonnelCostShare = personnelCostShare;
personnelCostShare = newPersonnelCostShare;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__PERSONNEL_COST_SHARE,
oldPersonnelCostShare, personnelCostShare));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getAdministrationAndOtherCostShare() {
return administrationAndOtherCostShare;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setAdministrationAndOtherCostShare(double newAdministrationAndOtherCostShare) {
double oldAdministrationAndOtherCostShare = administrationAndOtherCostShare;
administrationAndOtherCostShare = newAdministrationAndOtherCostShare;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
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);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getDatasource() {
return datasource;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setDatasource(String newDatasource) {
String oldDatasource = datasource;
datasource = newDatasource;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__DATASOURCE, oldDatasource,
datasource));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Characteristic getInvestmentCost() {
return investmentCost;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetInvestmentCost(Characteristic newInvestmentCost, NotificationChain msgs) {
Characteristic oldInvestmentCost = investmentCost;
investmentCost = newInvestmentCost;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
EnCompPackage.COST__INVESTMENT_COST, oldInvestmentCost, newInvestmentCost);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setInvestmentCost(Characteristic newInvestmentCost) {
if (newInvestmentCost != investmentCost) {
NotificationChain msgs = null;
if (investmentCost != null)
msgs = ((InternalEObject) investmentCost).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - EnCompPackage.COST__INVESTMENT_COST, null, msgs);
if (newInvestmentCost != null)
msgs = ((InternalEObject) newInvestmentCost).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - EnCompPackage.COST__INVESTMENT_COST, null, msgs);
msgs = basicSetInvestmentCost(newInvestmentCost, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__INVESTMENT_COST,
newInvestmentCost, newInvestmentCost));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getOtherInvestmentCost() {
return otherInvestmentCost;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOtherInvestmentCost(double newOtherInvestmentCost) {
double oldOtherInvestmentCost = otherInvestmentCost;
otherInvestmentCost = newOtherInvestmentCost;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__OTHER_INVESTMENT_COST,
oldOtherInvestmentCost, otherInvestmentCost));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getComponentName() {
return componentName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setComponentName(String newComponentName) {
String oldComponentName = componentName;
componentName = newComponentName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__COMPONENT_NAME, oldComponentName,
componentName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getDescription() {
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__DESCRIPTION, oldDescription,
description));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public TypeOfHeatSource getHeatSource() {
return heatSource;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setHeatSource(TypeOfHeatSource newHeatSource) {
TypeOfHeatSource oldHeatSource = heatSource;
heatSource = newHeatSource == null ? HEAT_SOURCE_EDEFAULT : newHeatSource;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.COST__HEAT_SOURCE, oldHeatSource,
heatSource));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.COST__COMPONENT_NAME:
return getComponentName();
case EnCompPackage.COST__DESCRIPTION:
return getDescription();
case EnCompPackage.COST__HEAT_SOURCE:
return getHeatSource();
case EnCompPackage.COST__DATASOURCE:
return getDatasource();
case EnCompPackage.COST__INVESTMENT_COST:
return getInvestmentCost();
case EnCompPackage.COST__OTHER_INVESTMENT_COST:
return getOtherInvestmentCost();
case EnCompPackage.COST__PERSONNEL_HOURS:
return getPersonnelHours();
case EnCompPackage.COST__PERSONNEL_COST_SHARE:
return getPersonnelCostShare();
case EnCompPackage.COST__ADMINISTRATION_AND_OTHER_COST_SHARE:
return getAdministrationAndOtherCostShare();
case EnCompPackage.COST__MAINTENANCE_COST_SHARE:
return getMaintenanceCostShare();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case EnCompPackage.COST__COMPONENT_NAME:
setComponentName((String) newValue);
return;
case EnCompPackage.COST__DESCRIPTION:
setDescription((String) newValue);
return;
case EnCompPackage.COST__HEAT_SOURCE:
setHeatSource((TypeOfHeatSource) newValue);
return;
case EnCompPackage.COST__DATASOURCE:
setDatasource((String) newValue);
return;
case EnCompPackage.COST__INVESTMENT_COST:
setInvestmentCost((Characteristic) newValue);
return;
case EnCompPackage.COST__OTHER_INVESTMENT_COST:
setOtherInvestmentCost((Double) newValue);
return;
case EnCompPackage.COST__PERSONNEL_HOURS:
setPersonnelHours((NullableQuantity) newValue);
return;
case EnCompPackage.COST__PERSONNEL_COST_SHARE:
setPersonnelCostShare((Double) newValue);
return;
case EnCompPackage.COST__ADMINISTRATION_AND_OTHER_COST_SHARE:
setAdministrationAndOtherCostShare((Double) newValue);
return;
case EnCompPackage.COST__MAINTENANCE_COST_SHARE:
setMaintenanceCostShare((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.COST__COMPONENT_NAME:
setComponentName(COMPONENT_NAME_EDEFAULT);
return;
case EnCompPackage.COST__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case EnCompPackage.COST__HEAT_SOURCE:
setHeatSource(HEAT_SOURCE_EDEFAULT);
return;
case EnCompPackage.COST__DATASOURCE:
setDatasource(DATASOURCE_EDEFAULT);
return;
case EnCompPackage.COST__INVESTMENT_COST:
setInvestmentCost((Characteristic) null);
return;
case EnCompPackage.COST__OTHER_INVESTMENT_COST:
setOtherInvestmentCost(OTHER_INVESTMENT_COST_EDEFAULT);
return;
case EnCompPackage.COST__PERSONNEL_HOURS:
setPersonnelHours(PERSONNEL_HOURS_EDEFAULT);
return;
case EnCompPackage.COST__PERSONNEL_COST_SHARE:
setPersonnelCostShare(PERSONNEL_COST_SHARE_EDEFAULT);
return;
case EnCompPackage.COST__ADMINISTRATION_AND_OTHER_COST_SHARE:
setAdministrationAndOtherCostShare(ADMINISTRATION_AND_OTHER_COST_SHARE_EDEFAULT);
return;
case EnCompPackage.COST__MAINTENANCE_COST_SHARE:
setMaintenanceCostShare(MAINTENANCE_COST_SHARE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.COST__COMPONENT_NAME:
return COMPONENT_NAME_EDEFAULT == null ? componentName != null
: !COMPONENT_NAME_EDEFAULT.equals(componentName);
case EnCompPackage.COST__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
case EnCompPackage.COST__HEAT_SOURCE:
return heatSource != HEAT_SOURCE_EDEFAULT;
case EnCompPackage.COST__DATASOURCE:
return DATASOURCE_EDEFAULT == null ? datasource != null : !DATASOURCE_EDEFAULT.equals(datasource);
case EnCompPackage.COST__INVESTMENT_COST:
return investmentCost != null;
case EnCompPackage.COST__OTHER_INVESTMENT_COST:
return otherInvestmentCost != OTHER_INVESTMENT_COST_EDEFAULT;
case EnCompPackage.COST__PERSONNEL_HOURS:
return PERSONNEL_HOURS_EDEFAULT == null ? personnelHours != null
: !PERSONNEL_HOURS_EDEFAULT.equals(personnelHours);
case EnCompPackage.COST__PERSONNEL_COST_SHARE:
return personnelCostShare != PERSONNEL_COST_SHARE_EDEFAULT;
case EnCompPackage.COST__ADMINISTRATION_AND_OTHER_COST_SHARE:
return administrationAndOtherCostShare != ADMINISTRATION_AND_OTHER_COST_SHARE_EDEFAULT;
case EnCompPackage.COST__MAINTENANCE_COST_SHARE:
return maintenanceCostShare != MAINTENANCE_COST_SHARE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (componentName: ");
result.append(componentName);
result.append(", description: ");
result.append(description);
result.append(", heatSource: ");
result.append(heatSource);
result.append(", datasource: ");
result.append(datasource);
result.append(", otherInvestmentCost: ");
result.append(otherInvestmentCost);
result.append(", personnelHours: ");
result.append(personnelHours);
result.append(", personnelCostShare: ");
result.append(personnelCostShare);
result.append(", administrationAndOtherCostShare: ");
result.append(administrationAndOtherCostShare);
result.append(", maintenanceCostShare: ");
result.append(maintenanceCostShare);
result.append(')');
return result.toString();
}
} //CostImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.DataPoint;
import de.hftstuttgart.energycomponents.EnCompPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Data Point</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.DataPointImpl#getX <em>X</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.DataPointImpl#getY <em>Y</em>}</li>
* </ul>
*
* @generated
*/
public class DataPointImpl extends MinimalEObjectImpl.Container implements DataPoint {
/**
* The default value of the '{@link #getX() <em>X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getX()
* @generated
* @ordered
*/
protected static final double X_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getX() <em>X</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getX()
* @generated
* @ordered
*/
protected double x = X_EDEFAULT;
/**
* The default value of the '{@link #getY() <em>Y</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getY()
* @generated
* @ordered
*/
protected static final double Y_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getY() <em>Y</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getY()
* @generated
* @ordered
*/
protected double y = Y_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DataPointImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.DATA_POINT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getX() {
return x;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setX(double newX) {
double oldX = x;
x = newX;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.DATA_POINT__X, oldX, x));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getY() {
return y;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setY(double newY) {
double oldY = y;
y = newY;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.DATA_POINT__Y, oldY, y));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.DATA_POINT__X:
return getX();
case EnCompPackage.DATA_POINT__Y:
return getY();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case EnCompPackage.DATA_POINT__X:
setX((Double) newValue);
return;
case EnCompPackage.DATA_POINT__Y:
setY((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.DATA_POINT__X:
setX(X_EDEFAULT);
return;
case EnCompPackage.DATA_POINT__Y:
setY(Y_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.DATA_POINT__X:
return x != X_EDEFAULT;
case EnCompPackage.DATA_POINT__Y:
return y != Y_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (x: ");
result.append(x);
result.append(", y: ");
result.append(y);
result.append(')');
return result.toString();
}
} //DataPointImpl
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