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

First public version as of Verena Weilers Dissertation

parent 2c40014f
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.Inverter;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Inverter</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class InverterImpl extends EnergyComponentImpl implements Inverter {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InverterImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.INVERTER;
}
} //InverterImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.LinearCharacteristic;
import de.hftstuttgart.energycomponents.LinearFunction;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Linear Characteristic</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.LinearCharacteristicImpl#getFunctions <em>Functions</em>}</li>
* </ul>
*
* @generated
*/
public class LinearCharacteristicImpl extends CharacteristicImpl implements LinearCharacteristic {
/**
* The cached value of the '{@link #getFunctions() <em>Functions</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFunctions()
* @generated
* @ordered
*/
protected EList<LinearFunction> functions;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected LinearCharacteristicImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.LINEAR_CHARACTERISTIC;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList<LinearFunction> getFunctions() {
if (functions == null) {
functions = new EObjectContainmentEList<LinearFunction>(LinearFunction.class, this,
EnCompPackage.LINEAR_CHARACTERISTIC__FUNCTIONS);
}
return functions;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.LINEAR_CHARACTERISTIC__FUNCTIONS:
return ((InternalEList<?>) getFunctions()).basicRemove(otherEnd, 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.LINEAR_CHARACTERISTIC__FUNCTIONS:
return getFunctions();
}
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.LINEAR_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
getFunctions().addAll((Collection<? extends LinearFunction>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.LINEAR_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.LINEAR_CHARACTERISTIC__FUNCTIONS:
return functions != null && !functions.isEmpty();
}
return super.eIsSet(featureID);
}
} //LinearCharacteristicImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.LinearFunction;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
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>Linear Function</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.LinearFunctionImpl#getKey <em>Key</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.LinearFunctionImpl#getParameterM <em>Parameter M</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.LinearFunctionImpl#getParameterC <em>Parameter C</em>}</li>
* </ul>
*
* @generated
*/
public class LinearFunctionImpl extends MinimalEObjectImpl.Container implements LinearFunction {
/**
* The default value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected static final String KEY_EDEFAULT = null;
/**
* The cached value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected String key = KEY_EDEFAULT;
/**
* The default value of the '{@link #getParameterM() <em>Parameter M</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterM()
* @generated
* @ordered
*/
protected static final double PARAMETER_M_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getParameterM() <em>Parameter M</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterM()
* @generated
* @ordered
*/
protected double parameterM = PARAMETER_M_EDEFAULT;
/**
* The default value of the '{@link #getParameterC() <em>Parameter C</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterC()
* @generated
* @ordered
*/
protected static final double PARAMETER_C_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getParameterC() <em>Parameter C</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterC()
* @generated
* @ordered
*/
protected double parameterC = PARAMETER_C_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected LinearFunctionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.LINEAR_FUNCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getKey() {
return key;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setKey(String newKey) {
String oldKey = key;
key = newKey;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.LINEAR_FUNCTION__KEY, oldKey, key));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getParameterM() {
return parameterM;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParameterM(double newParameterM) {
double oldParameterM = parameterM;
parameterM = newParameterM;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.LINEAR_FUNCTION__PARAMETER_M,
oldParameterM, parameterM));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getParameterC() {
return parameterC;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParameterC(double newParameterC) {
double oldParameterC = parameterC;
parameterC = newParameterC;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.LINEAR_FUNCTION__PARAMETER_C,
oldParameterC, parameterC));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double linearfunction(final double x) {
return getParameterM() * x + getParameterC();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.LINEAR_FUNCTION__KEY:
return getKey();
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_M:
return getParameterM();
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_C:
return getParameterC();
}
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.LINEAR_FUNCTION__KEY:
setKey((String) newValue);
return;
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_M:
setParameterM((Double) newValue);
return;
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_C:
setParameterC((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.LINEAR_FUNCTION__KEY:
setKey(KEY_EDEFAULT);
return;
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_M:
setParameterM(PARAMETER_M_EDEFAULT);
return;
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_C:
setParameterC(PARAMETER_C_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.LINEAR_FUNCTION__KEY:
return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_M:
return parameterM != PARAMETER_M_EDEFAULT;
case EnCompPackage.LINEAR_FUNCTION__PARAMETER_C:
return parameterC != PARAMETER_C_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case EnCompPackage.LINEAR_FUNCTION___LINEARFUNCTION__DOUBLE:
return linearfunction((Double) arguments.get(0));
}
return super.eInvoke(operationID, arguments);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (key: ");
result.append(key);
result.append(", parameterM: ");
result.append(parameterM);
result.append(", parameterC: ");
result.append(parameterC);
result.append(')');
return result.toString();
}
} //LinearFunctionImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.Manufacturer;
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>Manufacturer</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.ManufacturerImpl#getManufacturerName <em>Manufacturer Name</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ManufacturerImpl#getCountry <em>Country</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ManufacturerImpl#getOutOfBusinessSince <em>Out Of Business Since</em>}</li>
* </ul>
*
* @generated
*/
public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Manufacturer {
/**
* The default value of the '{@link #getManufacturerName() <em>Manufacturer Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getManufacturerName()
* @generated
* @ordered
*/
protected static final String MANUFACTURER_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getManufacturerName() <em>Manufacturer Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getManufacturerName()
* @generated
* @ordered
*/
protected String manufacturerName = MANUFACTURER_NAME_EDEFAULT;
/**
* The default value of the '{@link #getCountry() <em>Country</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCountry()
* @generated
* @ordered
*/
protected static final String COUNTRY_EDEFAULT = null;
/**
* The cached value of the '{@link #getCountry() <em>Country</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCountry()
* @generated
* @ordered
*/
protected String country = COUNTRY_EDEFAULT;
/**
* The default value of the '{@link #getOutOfBusinessSince() <em>Out Of Business Since</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOutOfBusinessSince()
* @generated
* @ordered
*/
protected static final int OUT_OF_BUSINESS_SINCE_EDEFAULT = 0;
/**
* The cached value of the '{@link #getOutOfBusinessSince() <em>Out Of Business Since</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOutOfBusinessSince()
* @generated
* @ordered
*/
protected int outOfBusinessSince = OUT_OF_BUSINESS_SINCE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ManufacturerImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.MANUFACTURER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getManufacturerName() {
return manufacturerName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setManufacturerName(String newManufacturerName) {
String oldManufacturerName = manufacturerName;
manufacturerName = newManufacturerName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MANUFACTURER__MANUFACTURER_NAME,
oldManufacturerName, manufacturerName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getCountry() {
return country;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setCountry(String newCountry) {
String oldCountry = country;
country = newCountry;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MANUFACTURER__COUNTRY, oldCountry,
country));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getOutOfBusinessSince() {
return outOfBusinessSince;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOutOfBusinessSince(int newOutOfBusinessSince) {
int oldOutOfBusinessSince = outOfBusinessSince;
outOfBusinessSince = newOutOfBusinessSince;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MANUFACTURER__OUT_OF_BUSINESS_SINCE,
oldOutOfBusinessSince, outOfBusinessSince));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.MANUFACTURER__MANUFACTURER_NAME:
return getManufacturerName();
case EnCompPackage.MANUFACTURER__COUNTRY:
return getCountry();
case EnCompPackage.MANUFACTURER__OUT_OF_BUSINESS_SINCE:
return getOutOfBusinessSince();
}
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.MANUFACTURER__MANUFACTURER_NAME:
setManufacturerName((String) newValue);
return;
case EnCompPackage.MANUFACTURER__COUNTRY:
setCountry((String) newValue);
return;
case EnCompPackage.MANUFACTURER__OUT_OF_BUSINESS_SINCE:
setOutOfBusinessSince((Integer) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.MANUFACTURER__MANUFACTURER_NAME:
setManufacturerName(MANUFACTURER_NAME_EDEFAULT);
return;
case EnCompPackage.MANUFACTURER__COUNTRY:
setCountry(COUNTRY_EDEFAULT);
return;
case EnCompPackage.MANUFACTURER__OUT_OF_BUSINESS_SINCE:
setOutOfBusinessSince(OUT_OF_BUSINESS_SINCE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.MANUFACTURER__MANUFACTURER_NAME:
return MANUFACTURER_NAME_EDEFAULT == null ? manufacturerName != null
: !MANUFACTURER_NAME_EDEFAULT.equals(manufacturerName);
case EnCompPackage.MANUFACTURER__COUNTRY:
return COUNTRY_EDEFAULT == null ? country != null : !COUNTRY_EDEFAULT.equals(country);
case EnCompPackage.MANUFACTURER__OUT_OF_BUSINESS_SINCE:
return outOfBusinessSince != OUT_OF_BUSINESS_SINCE_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(" (manufacturerName: ");
result.append(manufacturerName);
result.append(", country: ");
result.append(country);
result.append(", outOfBusinessSince: ");
result.append(outOfBusinessSince);
result.append(')');
return result.toString();
}
} //ManufacturerImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.Material;
import de.hftstuttgart.units.NullableQuantity;
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>Material</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.MaterialImpl#getThermalConductivity <em>Thermal Conductivity</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.MaterialImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public class MaterialImpl extends MinimalEObjectImpl.Container implements Material {
/**
* The default value of the '{@link #getThermalConductivity() <em>Thermal Conductivity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalConductivity()
* @generated
* @ordered
*/
protected static final NullableQuantity THERMAL_CONDUCTIVITY_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), " W/(m*K)");
/**
* The cached value of the '{@link #getThermalConductivity() <em>Thermal Conductivity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalConductivity()
* @generated
* @ordered
*/
protected NullableQuantity thermalConductivity = THERMAL_CONDUCTIVITY_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MaterialImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.MATERIAL;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getThermalConductivity() {
return thermalConductivity;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setThermalConductivity(NullableQuantity newThermalConductivity) {
NullableQuantity oldThermalConductivity = thermalConductivity;
thermalConductivity = newThermalConductivity;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MATERIAL__THERMAL_CONDUCTIVITY,
oldThermalConductivity, thermalConductivity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MATERIAL__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.MATERIAL__THERMAL_CONDUCTIVITY:
return getThermalConductivity();
case EnCompPackage.MATERIAL__NAME:
return getName();
}
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.MATERIAL__THERMAL_CONDUCTIVITY:
setThermalConductivity((NullableQuantity) newValue);
return;
case EnCompPackage.MATERIAL__NAME:
setName((String) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.MATERIAL__THERMAL_CONDUCTIVITY:
setThermalConductivity(THERMAL_CONDUCTIVITY_EDEFAULT);
return;
case EnCompPackage.MATERIAL__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.MATERIAL__THERMAL_CONDUCTIVITY:
return THERMAL_CONDUCTIVITY_EDEFAULT == null ? thermalConductivity != null
: !THERMAL_CONDUCTIVITY_EDEFAULT.equals(thermalConductivity);
case EnCompPackage.MATERIAL__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
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(" (thermalConductivity: ");
result.append(thermalConductivity);
result.append(", name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //MaterialImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.Medium;
import de.hftstuttgart.units.NullableQuantity;
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>Medium</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.MediumImpl#getDensity <em>Density</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.MediumImpl#getHeatCapacity <em>Heat Capacity</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.MediumImpl#getEvaporationTemperature <em>Evaporation Temperature</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.MediumImpl#getMeltingTemperature <em>Melting Temperature</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.MediumImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public class MediumImpl extends MinimalEObjectImpl.Container implements Medium {
/**
* The default value of the '{@link #getDensity() <em>Density</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDensity()
* @generated
* @ordered
*/
protected static final NullableQuantity DENSITY_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "g/cm\u00b3");
/**
* The cached value of the '{@link #getDensity() <em>Density</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDensity()
* @generated
* @ordered
*/
protected NullableQuantity density = DENSITY_EDEFAULT;
/**
* The default value of the '{@link #getHeatCapacity() <em>Heat Capacity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHeatCapacity()
* @generated
* @ordered
*/
protected static final NullableQuantity HEAT_CAPACITY_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "kJ/(kg*K)");
/**
* The cached value of the '{@link #getHeatCapacity() <em>Heat Capacity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHeatCapacity()
* @generated
* @ordered
*/
protected NullableQuantity heatCapacity = HEAT_CAPACITY_EDEFAULT;
/**
* The default value of the '{@link #getEvaporationTemperature() <em>Evaporation Temperature</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEvaporationTemperature()
* @generated
* @ordered
*/
protected static final NullableQuantity EVAPORATION_TEMPERATURE_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "\u00b0C");
/**
* The cached value of the '{@link #getEvaporationTemperature() <em>Evaporation Temperature</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEvaporationTemperature()
* @generated
* @ordered
*/
protected NullableQuantity evaporationTemperature = EVAPORATION_TEMPERATURE_EDEFAULT;
/**
* The default value of the '{@link #getMeltingTemperature() <em>Melting Temperature</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMeltingTemperature()
* @generated
* @ordered
*/
protected static final NullableQuantity MELTING_TEMPERATURE_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "\u00b0C");
/**
* The cached value of the '{@link #getMeltingTemperature() <em>Melting Temperature</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMeltingTemperature()
* @generated
* @ordered
*/
protected NullableQuantity meltingTemperature = MELTING_TEMPERATURE_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected MediumImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.MEDIUM;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getDensity() {
return density;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setDensity(NullableQuantity newDensity) {
NullableQuantity oldDensity = density;
density = newDensity;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MEDIUM__DENSITY, oldDensity, density));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getHeatCapacity() {
return heatCapacity;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setHeatCapacity(NullableQuantity newHeatCapacity) {
NullableQuantity oldHeatCapacity = heatCapacity;
heatCapacity = newHeatCapacity;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MEDIUM__HEAT_CAPACITY, oldHeatCapacity,
heatCapacity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getEvaporationTemperature() {
return evaporationTemperature;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setEvaporationTemperature(NullableQuantity newEvaporationTemperature) {
NullableQuantity oldEvaporationTemperature = evaporationTemperature;
evaporationTemperature = newEvaporationTemperature;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MEDIUM__EVAPORATION_TEMPERATURE,
oldEvaporationTemperature, evaporationTemperature));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getMeltingTemperature() {
return meltingTemperature;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMeltingTemperature(NullableQuantity newMeltingTemperature) {
NullableQuantity oldMeltingTemperature = meltingTemperature;
meltingTemperature = newMeltingTemperature;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MEDIUM__MELTING_TEMPERATURE,
oldMeltingTemperature, meltingTemperature));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.MEDIUM__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.MEDIUM__DENSITY:
return getDensity();
case EnCompPackage.MEDIUM__HEAT_CAPACITY:
return getHeatCapacity();
case EnCompPackage.MEDIUM__EVAPORATION_TEMPERATURE:
return getEvaporationTemperature();
case EnCompPackage.MEDIUM__MELTING_TEMPERATURE:
return getMeltingTemperature();
case EnCompPackage.MEDIUM__NAME:
return getName();
}
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.MEDIUM__DENSITY:
setDensity((NullableQuantity) newValue);
return;
case EnCompPackage.MEDIUM__HEAT_CAPACITY:
setHeatCapacity((NullableQuantity) newValue);
return;
case EnCompPackage.MEDIUM__EVAPORATION_TEMPERATURE:
setEvaporationTemperature((NullableQuantity) newValue);
return;
case EnCompPackage.MEDIUM__MELTING_TEMPERATURE:
setMeltingTemperature((NullableQuantity) newValue);
return;
case EnCompPackage.MEDIUM__NAME:
setName((String) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.MEDIUM__DENSITY:
setDensity(DENSITY_EDEFAULT);
return;
case EnCompPackage.MEDIUM__HEAT_CAPACITY:
setHeatCapacity(HEAT_CAPACITY_EDEFAULT);
return;
case EnCompPackage.MEDIUM__EVAPORATION_TEMPERATURE:
setEvaporationTemperature(EVAPORATION_TEMPERATURE_EDEFAULT);
return;
case EnCompPackage.MEDIUM__MELTING_TEMPERATURE:
setMeltingTemperature(MELTING_TEMPERATURE_EDEFAULT);
return;
case EnCompPackage.MEDIUM__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.MEDIUM__DENSITY:
return DENSITY_EDEFAULT == null ? density != null : !DENSITY_EDEFAULT.equals(density);
case EnCompPackage.MEDIUM__HEAT_CAPACITY:
return HEAT_CAPACITY_EDEFAULT == null ? heatCapacity != null : !HEAT_CAPACITY_EDEFAULT.equals(heatCapacity);
case EnCompPackage.MEDIUM__EVAPORATION_TEMPERATURE:
return EVAPORATION_TEMPERATURE_EDEFAULT == null ? evaporationTemperature != null
: !EVAPORATION_TEMPERATURE_EDEFAULT.equals(evaporationTemperature);
case EnCompPackage.MEDIUM__MELTING_TEMPERATURE:
return MELTING_TEMPERATURE_EDEFAULT == null ? meltingTemperature != null
: !MELTING_TEMPERATURE_EDEFAULT.equals(meltingTemperature);
case EnCompPackage.MEDIUM__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
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(" (density: ");
result.append(density);
result.append(", heatCapacity: ");
result.append(heatCapacity);
result.append(", evaporationTemperature: ");
result.append(evaporationTemperature);
result.append(", meltingTemperature: ");
result.append(meltingTemperature);
result.append(", name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //MediumImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.PhotovoltaicModule;
import de.hftstuttgart.units.NullableQuantity;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Photovoltaic Module</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.PhotovoltaicModuleImpl#getCellType <em>Cell Type</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PhotovoltaicModuleImpl#getNominalPower <em>Nominal Power</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PhotovoltaicModuleImpl#getMppVoltage <em>Mpp Voltage</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PhotovoltaicModuleImpl#getMppCurrent <em>Mpp Current</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PhotovoltaicModuleImpl#getNominalEfficiency <em>Nominal Efficiency</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PhotovoltaicModuleImpl#getModuleArea <em>Module Area</em>}</li>
* </ul>
*
* @generated
*/
public class PhotovoltaicModuleImpl extends EnergyComponentImpl implements PhotovoltaicModule {
/**
* The default value of the '{@link #getCellType() <em>Cell Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCellType()
* @generated
* @ordered
*/
protected static final Enumerator CELL_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getCellType() <em>Cell Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCellType()
* @generated
* @ordered
*/
protected Enumerator cellType = CELL_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getNominalPower() <em>Nominal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNominalPower()
* @generated
* @ordered
*/
protected static final NullableQuantity NOMINAL_POWER_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "W");
/**
* The cached value of the '{@link #getNominalPower() <em>Nominal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNominalPower()
* @generated
* @ordered
*/
protected NullableQuantity nominalPower = NOMINAL_POWER_EDEFAULT;
/**
* The default value of the '{@link #getMppVoltage() <em>Mpp Voltage</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMppVoltage()
* @generated
* @ordered
*/
protected static final NullableQuantity MPP_VOLTAGE_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "V");
/**
* The cached value of the '{@link #getMppVoltage() <em>Mpp Voltage</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMppVoltage()
* @generated
* @ordered
*/
protected NullableQuantity mppVoltage = MPP_VOLTAGE_EDEFAULT;
/**
* The default value of the '{@link #getMppCurrent() <em>Mpp Current</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMppCurrent()
* @generated
* @ordered
*/
protected static final NullableQuantity MPP_CURRENT_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "A");
/**
* The cached value of the '{@link #getMppCurrent() <em>Mpp Current</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMppCurrent()
* @generated
* @ordered
*/
protected NullableQuantity mppCurrent = MPP_CURRENT_EDEFAULT;
/**
* 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.18;
/**
* 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 #getModuleArea() <em>Module Area</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModuleArea()
* @generated
* @ordered
*/
protected static final NullableQuantity MODULE_AREA_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "m\u00b2");
/**
* The cached value of the '{@link #getModuleArea() <em>Module Area</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModuleArea()
* @generated
* @ordered
*/
protected NullableQuantity moduleArea = MODULE_AREA_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PhotovoltaicModuleImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.PHOTOVOLTAIC_MODULE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Enumerator getCellType() {
return cellType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setCellType(Enumerator newCellType) {
Enumerator oldCellType = cellType;
cellType = newCellType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.PHOTOVOLTAIC_MODULE__CELL_TYPE,
oldCellType, cellType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getNominalPower() {
return nominalPower;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNominalPower(NullableQuantity newNominalPower) {
NullableQuantity oldNominalPower = nominalPower;
nominalPower = newNominalPower;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_POWER,
oldNominalPower, nominalPower));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getMppVoltage() {
return mppVoltage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMppVoltage(NullableQuantity newMppVoltage) {
NullableQuantity oldMppVoltage = mppVoltage;
mppVoltage = newMppVoltage;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_VOLTAGE,
oldMppVoltage, mppVoltage));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getMppCurrent() {
return mppCurrent;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMppCurrent(NullableQuantity newMppCurrent) {
NullableQuantity oldMppCurrent = mppCurrent;
mppCurrent = newMppCurrent;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_CURRENT,
oldMppCurrent, mppCurrent));
}
/**
* <!-- 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.PHOTOVOLTAIC_MODULE__NOMINAL_EFFICIENCY,
oldNominalEfficiency, nominalEfficiency));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getModuleArea() {
return moduleArea;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setModuleArea(NullableQuantity newModuleArea) {
NullableQuantity oldModuleArea = moduleArea;
moduleArea = newModuleArea;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.PHOTOVOLTAIC_MODULE__MODULE_AREA,
oldModuleArea, moduleArea));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.PHOTOVOLTAIC_MODULE__CELL_TYPE:
return getCellType();
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_POWER:
return getNominalPower();
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_VOLTAGE:
return getMppVoltage();
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_CURRENT:
return getMppCurrent();
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_EFFICIENCY:
return getNominalEfficiency();
case EnCompPackage.PHOTOVOLTAIC_MODULE__MODULE_AREA:
return getModuleArea();
}
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.PHOTOVOLTAIC_MODULE__CELL_TYPE:
setCellType((Enumerator) newValue);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_POWER:
setNominalPower((NullableQuantity) newValue);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_VOLTAGE:
setMppVoltage((NullableQuantity) newValue);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_CURRENT:
setMppCurrent((NullableQuantity) newValue);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_EFFICIENCY:
setNominalEfficiency((Double) newValue);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__MODULE_AREA:
setModuleArea((NullableQuantity) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.PHOTOVOLTAIC_MODULE__CELL_TYPE:
setCellType(CELL_TYPE_EDEFAULT);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_POWER:
setNominalPower(NOMINAL_POWER_EDEFAULT);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_VOLTAGE:
setMppVoltage(MPP_VOLTAGE_EDEFAULT);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_CURRENT:
setMppCurrent(MPP_CURRENT_EDEFAULT);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_EFFICIENCY:
setNominalEfficiency(NOMINAL_EFFICIENCY_EDEFAULT);
return;
case EnCompPackage.PHOTOVOLTAIC_MODULE__MODULE_AREA:
setModuleArea(MODULE_AREA_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.PHOTOVOLTAIC_MODULE__CELL_TYPE:
return CELL_TYPE_EDEFAULT == null ? cellType != null : !CELL_TYPE_EDEFAULT.equals(cellType);
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_POWER:
return NOMINAL_POWER_EDEFAULT == null ? nominalPower != null : !NOMINAL_POWER_EDEFAULT.equals(nominalPower);
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_VOLTAGE:
return MPP_VOLTAGE_EDEFAULT == null ? mppVoltage != null : !MPP_VOLTAGE_EDEFAULT.equals(mppVoltage);
case EnCompPackage.PHOTOVOLTAIC_MODULE__MPP_CURRENT:
return MPP_CURRENT_EDEFAULT == null ? mppCurrent != null : !MPP_CURRENT_EDEFAULT.equals(mppCurrent);
case EnCompPackage.PHOTOVOLTAIC_MODULE__NOMINAL_EFFICIENCY:
return nominalEfficiency != NOMINAL_EFFICIENCY_EDEFAULT;
case EnCompPackage.PHOTOVOLTAIC_MODULE__MODULE_AREA:
return MODULE_AREA_EDEFAULT == null ? moduleArea != null : !MODULE_AREA_EDEFAULT.equals(moduleArea);
}
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(" (cellType: ");
result.append(cellType);
result.append(", nominalPower: ");
result.append(nominalPower);
result.append(", mppVoltage: ");
result.append(mppVoltage);
result.append(", mppCurrent: ");
result.append(mppCurrent);
result.append(", nominalEfficiency: ");
result.append(nominalEfficiency);
result.append(", moduleArea: ");
result.append(moduleArea);
result.append(')');
return result.toString();
}
} //PhotovoltaicModuleImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.PolynomialCharacteristic;
import de.hftstuttgart.energycomponents.PolynomialFunction;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Polynomial Characteristic</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.PolynomialCharacteristicImpl#getFunctions <em>Functions</em>}</li>
* </ul>
*
* @generated
*/
public class PolynomialCharacteristicImpl extends CharacteristicImpl implements PolynomialCharacteristic {
/**
* The cached value of the '{@link #getFunctions() <em>Functions</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFunctions()
* @generated
* @ordered
*/
protected EList<PolynomialFunction> functions;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PolynomialCharacteristicImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.POLYNOMIAL_CHARACTERISTIC;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList<PolynomialFunction> getFunctions() {
if (functions == null) {
functions = new EObjectContainmentEList<PolynomialFunction>(PolynomialFunction.class, this,
EnCompPackage.POLYNOMIAL_CHARACTERISTIC__FUNCTIONS);
}
return functions;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.POLYNOMIAL_CHARACTERISTIC__FUNCTIONS:
return ((InternalEList<?>) getFunctions()).basicRemove(otherEnd, 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.POLYNOMIAL_CHARACTERISTIC__FUNCTIONS:
return getFunctions();
}
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.POLYNOMIAL_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
getFunctions().addAll((Collection<? extends PolynomialFunction>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.POLYNOMIAL_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.POLYNOMIAL_CHARACTERISTIC__FUNCTIONS:
return functions != null && !functions.isEmpty();
}
return super.eIsSet(featureID);
}
} //PolynomialCharacteristicImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.PolynomialFunction;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
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>Polynomial Function</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.PolynomialFunctionImpl#getKey <em>Key</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PolynomialFunctionImpl#getParameterA <em>Parameter A</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PolynomialFunctionImpl#getParameterB <em>Parameter B</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PolynomialFunctionImpl#getParameterC <em>Parameter C</em>}</li>
* </ul>
*
* @generated
*/
public class PolynomialFunctionImpl extends MinimalEObjectImpl.Container implements PolynomialFunction {
/**
* The default value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected static final String KEY_EDEFAULT = null;
/**
* The cached value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected String key = KEY_EDEFAULT;
/**
* The default value of the '{@link #getParameterA() <em>Parameter A</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterA()
* @generated
* @ordered
*/
protected static final double PARAMETER_A_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getParameterA() <em>Parameter A</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterA()
* @generated
* @ordered
*/
protected double parameterA = PARAMETER_A_EDEFAULT;
/**
* The default value of the '{@link #getParameterB() <em>Parameter B</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterB()
* @generated
* @ordered
*/
protected static final double PARAMETER_B_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getParameterB() <em>Parameter B</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterB()
* @generated
* @ordered
*/
protected double parameterB = PARAMETER_B_EDEFAULT;
/**
* The default value of the '{@link #getParameterC() <em>Parameter C</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterC()
* @generated
* @ordered
*/
protected static final double PARAMETER_C_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getParameterC() <em>Parameter C</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterC()
* @generated
* @ordered
*/
protected double parameterC = PARAMETER_C_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PolynomialFunctionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.POLYNOMIAL_FUNCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getKey() {
return key;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setKey(String newKey) {
String oldKey = key;
key = newKey;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.POLYNOMIAL_FUNCTION__KEY, oldKey, key));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getParameterA() {
return parameterA;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParameterA(double newParameterA) {
double oldParameterA = parameterA;
parameterA = newParameterA;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_A,
oldParameterA, parameterA));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getParameterB() {
return parameterB;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParameterB(double newParameterB) {
double oldParameterB = parameterB;
parameterB = newParameterB;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_B,
oldParameterB, parameterB));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getParameterC() {
return parameterC;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParameterC(double newParameterC) {
double oldParameterC = parameterC;
parameterC = newParameterC;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_C,
oldParameterC, parameterC));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double polynomialfunction(final double x) {
return getParameterA() * Math.pow(x, 2) + getParameterB() * x + getParameterC();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.POLYNOMIAL_FUNCTION__KEY:
return getKey();
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_A:
return getParameterA();
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_B:
return getParameterB();
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_C:
return getParameterC();
}
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.POLYNOMIAL_FUNCTION__KEY:
setKey((String) newValue);
return;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_A:
setParameterA((Double) newValue);
return;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_B:
setParameterB((Double) newValue);
return;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_C:
setParameterC((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.POLYNOMIAL_FUNCTION__KEY:
setKey(KEY_EDEFAULT);
return;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_A:
setParameterA(PARAMETER_A_EDEFAULT);
return;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_B:
setParameterB(PARAMETER_B_EDEFAULT);
return;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_C:
setParameterC(PARAMETER_C_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.POLYNOMIAL_FUNCTION__KEY:
return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_A:
return parameterA != PARAMETER_A_EDEFAULT;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_B:
return parameterB != PARAMETER_B_EDEFAULT;
case EnCompPackage.POLYNOMIAL_FUNCTION__PARAMETER_C:
return parameterC != PARAMETER_C_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case EnCompPackage.POLYNOMIAL_FUNCTION___POLYNOMIALFUNCTION__DOUBLE:
return polynomialfunction((Double) arguments.get(0));
}
return super.eInvoke(operationID, arguments);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (key: ");
result.append(key);
result.append(", parameterA: ");
result.append(parameterA);
result.append(", parameterB: ");
result.append(parameterB);
result.append(", parameterC: ");
result.append(parameterC);
result.append(')');
return result.toString();
}
} //PolynomialFunctionImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.PowerCharacteristic;
import de.hftstuttgart.energycomponents.PowerFunction;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Power Characteristic</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.PowerCharacteristicImpl#getFunctions <em>Functions</em>}</li>
* </ul>
*
* @generated
*/
public class PowerCharacteristicImpl extends CharacteristicImpl implements PowerCharacteristic {
/**
* The cached value of the '{@link #getFunctions() <em>Functions</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFunctions()
* @generated
* @ordered
*/
protected EList<PowerFunction> functions;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PowerCharacteristicImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.POWER_CHARACTERISTIC;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList<PowerFunction> getFunctions() {
if (functions == null) {
functions = new EObjectContainmentEList<PowerFunction>(PowerFunction.class, this,
EnCompPackage.POWER_CHARACTERISTIC__FUNCTIONS);
}
return functions;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.POWER_CHARACTERISTIC__FUNCTIONS:
return ((InternalEList<?>) getFunctions()).basicRemove(otherEnd, 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.POWER_CHARACTERISTIC__FUNCTIONS:
return getFunctions();
}
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.POWER_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
getFunctions().addAll((Collection<? extends PowerFunction>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.POWER_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.POWER_CHARACTERISTIC__FUNCTIONS:
return functions != null && !functions.isEmpty();
}
return super.eIsSet(featureID);
}
} //PowerCharacteristicImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.PowerFunction;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
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>Power Function</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.PowerFunctionImpl#getKey <em>Key</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PowerFunctionImpl#getParameterA <em>Parameter A</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.PowerFunctionImpl#getParameterB <em>Parameter B</em>}</li>
* </ul>
*
* @generated
*/
public class PowerFunctionImpl extends MinimalEObjectImpl.Container implements PowerFunction {
/**
* The default value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected static final String KEY_EDEFAULT = null;
/**
* The cached value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected String key = KEY_EDEFAULT;
/**
* The default value of the '{@link #getParameterA() <em>Parameter A</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterA()
* @generated
* @ordered
*/
protected static final double PARAMETER_A_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getParameterA() <em>Parameter A</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterA()
* @generated
* @ordered
*/
protected double parameterA = PARAMETER_A_EDEFAULT;
/**
* The default value of the '{@link #getParameterB() <em>Parameter B</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterB()
* @generated
* @ordered
*/
protected static final double PARAMETER_B_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getParameterB() <em>Parameter B</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getParameterB()
* @generated
* @ordered
*/
protected double parameterB = PARAMETER_B_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PowerFunctionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.POWER_FUNCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getKey() {
return key;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setKey(String newKey) {
String oldKey = key;
key = newKey;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.POWER_FUNCTION__KEY, oldKey, key));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getParameterA() {
return parameterA;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParameterA(double newParameterA) {
double oldParameterA = parameterA;
parameterA = newParameterA;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.POWER_FUNCTION__PARAMETER_A,
oldParameterA, parameterA));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getParameterB() {
return parameterB;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setParameterB(double newParameterB) {
double oldParameterB = parameterB;
parameterB = newParameterB;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.POWER_FUNCTION__PARAMETER_B,
oldParameterB, parameterB));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double powerfunction(final double x) {
return getParameterA() * Math.pow(x, getParameterB());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.POWER_FUNCTION__KEY:
return getKey();
case EnCompPackage.POWER_FUNCTION__PARAMETER_A:
return getParameterA();
case EnCompPackage.POWER_FUNCTION__PARAMETER_B:
return getParameterB();
}
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.POWER_FUNCTION__KEY:
setKey((String) newValue);
return;
case EnCompPackage.POWER_FUNCTION__PARAMETER_A:
setParameterA((Double) newValue);
return;
case EnCompPackage.POWER_FUNCTION__PARAMETER_B:
setParameterB((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.POWER_FUNCTION__KEY:
setKey(KEY_EDEFAULT);
return;
case EnCompPackage.POWER_FUNCTION__PARAMETER_A:
setParameterA(PARAMETER_A_EDEFAULT);
return;
case EnCompPackage.POWER_FUNCTION__PARAMETER_B:
setParameterB(PARAMETER_B_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.POWER_FUNCTION__KEY:
return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
case EnCompPackage.POWER_FUNCTION__PARAMETER_A:
return parameterA != PARAMETER_A_EDEFAULT;
case EnCompPackage.POWER_FUNCTION__PARAMETER_B:
return parameterB != PARAMETER_B_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
switch (operationID) {
case EnCompPackage.POWER_FUNCTION___POWERFUNCTION__DOUBLE:
return powerfunction((Double) arguments.get(0));
}
return super.eInvoke(operationID, arguments);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (key: ");
result.append(key);
result.append(", parameterA: ");
result.append(parameterA);
result.append(", parameterB: ");
result.append(parameterB);
result.append(')');
return result.toString();
}
} //PowerFunctionImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.CollectorTypes;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.SolarThermalCollector;
import de.hftstuttgart.units.NullableQuantity;
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>Solar Thermal Collector</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.SolarThermalCollectorImpl#getCollectorType <em>Collector Type</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.SolarThermalCollectorImpl#getApertureArea <em>Aperture Area</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.SolarThermalCollectorImpl#getOpticalEfficiency <em>Optical Efficiency</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.SolarThermalCollectorImpl#getLinearHeatLossCoefficient <em>Linear Heat Loss Coefficient</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.SolarThermalCollectorImpl#getQuadraticalHeatLossCoefficient <em>Quadratical Heat Loss Coefficient</em>}</li>
* </ul>
*
* @generated
*/
public class SolarThermalCollectorImpl extends EnergyComponentImpl implements SolarThermalCollector {
/**
* The default value of the '{@link #getCollectorType() <em>Collector Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCollectorType()
* @generated
* @ordered
*/
protected static final CollectorTypes COLLECTOR_TYPE_EDEFAULT = CollectorTypes.FLAT_PLANE_COLLECTOR;
/**
* The cached value of the '{@link #getCollectorType() <em>Collector Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCollectorType()
* @generated
* @ordered
*/
protected CollectorTypes collectorType = COLLECTOR_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getApertureArea() <em>Aperture Area</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getApertureArea()
* @generated
* @ordered
*/
protected static final NullableQuantity APERTURE_AREA_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "m\u00b2");
/**
* The cached value of the '{@link #getApertureArea() <em>Aperture Area</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getApertureArea()
* @generated
* @ordered
*/
protected NullableQuantity apertureArea = APERTURE_AREA_EDEFAULT;
/**
* The default value of the '{@link #getOpticalEfficiency() <em>Optical Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOpticalEfficiency()
* @generated
* @ordered
*/
protected static final double OPTICAL_EFFICIENCY_EDEFAULT = 0.77;
/**
* The cached value of the '{@link #getOpticalEfficiency() <em>Optical Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOpticalEfficiency()
* @generated
* @ordered
*/
protected double opticalEfficiency = OPTICAL_EFFICIENCY_EDEFAULT;
/**
* The default value of the '{@link #getLinearHeatLossCoefficient() <em>Linear Heat Loss Coefficient</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLinearHeatLossCoefficient()
* @generated
* @ordered
*/
protected static final double LINEAR_HEAT_LOSS_COEFFICIENT_EDEFAULT = 3.2;
/**
* The cached value of the '{@link #getLinearHeatLossCoefficient() <em>Linear Heat Loss Coefficient</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLinearHeatLossCoefficient()
* @generated
* @ordered
*/
protected double linearHeatLossCoefficient = LINEAR_HEAT_LOSS_COEFFICIENT_EDEFAULT;
/**
* The default value of the '{@link #getQuadraticalHeatLossCoefficient() <em>Quadratical Heat Loss Coefficient</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getQuadraticalHeatLossCoefficient()
* @generated
* @ordered
*/
protected static final double QUADRATICAL_HEAT_LOSS_COEFFICIENT_EDEFAULT = 0.01;
/**
* The cached value of the '{@link #getQuadraticalHeatLossCoefficient() <em>Quadratical Heat Loss Coefficient</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getQuadraticalHeatLossCoefficient()
* @generated
* @ordered
*/
protected double quadraticalHeatLossCoefficient = QUADRATICAL_HEAT_LOSS_COEFFICIENT_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected SolarThermalCollectorImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.SOLAR_THERMAL_COLLECTOR;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public CollectorTypes getCollectorType() {
return collectorType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setCollectorType(CollectorTypes newCollectorType) {
CollectorTypes oldCollectorType = collectorType;
collectorType = newCollectorType == null ? COLLECTOR_TYPE_EDEFAULT : newCollectorType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.SOLAR_THERMAL_COLLECTOR__COLLECTOR_TYPE,
oldCollectorType, collectorType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getApertureArea() {
return apertureArea;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setApertureArea(NullableQuantity newApertureArea) {
NullableQuantity oldApertureArea = apertureArea;
apertureArea = newApertureArea;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.SOLAR_THERMAL_COLLECTOR__APERTURE_AREA,
oldApertureArea, apertureArea));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getOpticalEfficiency() {
return opticalEfficiency;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOpticalEfficiency(double newOpticalEfficiency) {
double oldOpticalEfficiency = opticalEfficiency;
opticalEfficiency = newOpticalEfficiency;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.SOLAR_THERMAL_COLLECTOR__OPTICAL_EFFICIENCY, oldOpticalEfficiency,
opticalEfficiency));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getLinearHeatLossCoefficient() {
return linearHeatLossCoefficient;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setLinearHeatLossCoefficient(double newLinearHeatLossCoefficient) {
double oldLinearHeatLossCoefficient = linearHeatLossCoefficient;
linearHeatLossCoefficient = newLinearHeatLossCoefficient;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.SOLAR_THERMAL_COLLECTOR__LINEAR_HEAT_LOSS_COEFFICIENT, oldLinearHeatLossCoefficient,
linearHeatLossCoefficient));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getQuadraticalHeatLossCoefficient() {
return quadraticalHeatLossCoefficient;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setQuadraticalHeatLossCoefficient(double newQuadraticalHeatLossCoefficient) {
double oldQuadraticalHeatLossCoefficient = quadraticalHeatLossCoefficient;
quadraticalHeatLossCoefficient = newQuadraticalHeatLossCoefficient;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.SOLAR_THERMAL_COLLECTOR__QUADRATICAL_HEAT_LOSS_COEFFICIENT,
oldQuadraticalHeatLossCoefficient, quadraticalHeatLossCoefficient));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__COLLECTOR_TYPE:
return getCollectorType();
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__APERTURE_AREA:
return getApertureArea();
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__OPTICAL_EFFICIENCY:
return getOpticalEfficiency();
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__LINEAR_HEAT_LOSS_COEFFICIENT:
return getLinearHeatLossCoefficient();
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__QUADRATICAL_HEAT_LOSS_COEFFICIENT:
return getQuadraticalHeatLossCoefficient();
}
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.SOLAR_THERMAL_COLLECTOR__COLLECTOR_TYPE:
setCollectorType((CollectorTypes) newValue);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__APERTURE_AREA:
setApertureArea((NullableQuantity) newValue);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__OPTICAL_EFFICIENCY:
setOpticalEfficiency((Double) newValue);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__LINEAR_HEAT_LOSS_COEFFICIENT:
setLinearHeatLossCoefficient((Double) newValue);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__QUADRATICAL_HEAT_LOSS_COEFFICIENT:
setQuadraticalHeatLossCoefficient((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__COLLECTOR_TYPE:
setCollectorType(COLLECTOR_TYPE_EDEFAULT);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__APERTURE_AREA:
setApertureArea(APERTURE_AREA_EDEFAULT);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__OPTICAL_EFFICIENCY:
setOpticalEfficiency(OPTICAL_EFFICIENCY_EDEFAULT);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__LINEAR_HEAT_LOSS_COEFFICIENT:
setLinearHeatLossCoefficient(LINEAR_HEAT_LOSS_COEFFICIENT_EDEFAULT);
return;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__QUADRATICAL_HEAT_LOSS_COEFFICIENT:
setQuadraticalHeatLossCoefficient(QUADRATICAL_HEAT_LOSS_COEFFICIENT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__COLLECTOR_TYPE:
return collectorType != COLLECTOR_TYPE_EDEFAULT;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__APERTURE_AREA:
return APERTURE_AREA_EDEFAULT == null ? apertureArea != null : !APERTURE_AREA_EDEFAULT.equals(apertureArea);
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__OPTICAL_EFFICIENCY:
return opticalEfficiency != OPTICAL_EFFICIENCY_EDEFAULT;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__LINEAR_HEAT_LOSS_COEFFICIENT:
return linearHeatLossCoefficient != LINEAR_HEAT_LOSS_COEFFICIENT_EDEFAULT;
case EnCompPackage.SOLAR_THERMAL_COLLECTOR__QUADRATICAL_HEAT_LOSS_COEFFICIENT:
return quadraticalHeatLossCoefficient != QUADRATICAL_HEAT_LOSS_COEFFICIENT_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(" (collectorType: ");
result.append(collectorType);
result.append(", apertureArea: ");
result.append(apertureArea);
result.append(", opticalEfficiency: ");
result.append(opticalEfficiency);
result.append(", linearHeatLossCoefficient: ");
result.append(linearHeatLossCoefficient);
result.append(", quadraticalHeatLossCoefficient: ");
result.append(quadraticalHeatLossCoefficient);
result.append(')');
return result.toString();
}
} //SolarThermalCollectorImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.TableCharacteristic;
import de.hftstuttgart.energycomponents.TableFunction;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Table Characteristic</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.TableCharacteristicImpl#getFunctions <em>Functions</em>}</li>
* </ul>
*
* @generated
*/
public class TableCharacteristicImpl extends CharacteristicImpl implements TableCharacteristic {
/**
* The cached value of the '{@link #getFunctions() <em>Functions</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFunctions()
* @generated
* @ordered
*/
protected EList<TableFunction> functions;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected TableCharacteristicImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.TABLE_CHARACTERISTIC;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList<TableFunction> getFunctions() {
if (functions == null) {
functions = new EObjectContainmentEList<TableFunction>(TableFunction.class, this,
EnCompPackage.TABLE_CHARACTERISTIC__FUNCTIONS);
}
return functions;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.TABLE_CHARACTERISTIC__FUNCTIONS:
return ((InternalEList<?>) getFunctions()).basicRemove(otherEnd, 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.TABLE_CHARACTERISTIC__FUNCTIONS:
return getFunctions();
}
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.TABLE_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
getFunctions().addAll((Collection<? extends TableFunction>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.TABLE_CHARACTERISTIC__FUNCTIONS:
getFunctions().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.TABLE_CHARACTERISTIC__FUNCTIONS:
return functions != null && !functions.isEmpty();
}
return super.eIsSet(featureID);
}
} //TableCharacteristicImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.DataPoint;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.TableFunction;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
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;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Table Function</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.TableFunctionImpl#getKey <em>Key</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.TableFunctionImpl#getDatapoints <em>Datapoints</em>}</li>
* </ul>
*
* @generated
*/
public class TableFunctionImpl extends MinimalEObjectImpl.Container implements TableFunction {
/**
* The default value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected static final String KEY_EDEFAULT = null;
/**
* The cached value of the '{@link #getKey() <em>Key</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getKey()
* @generated
* @ordered
*/
protected String key = KEY_EDEFAULT;
/**
* The cached value of the '{@link #getDatapoints() <em>Datapoints</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDatapoints()
* @generated
* @ordered
*/
protected EList<DataPoint> datapoints;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected TableFunctionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.TABLE_FUNCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getKey() {
return key;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setKey(String newKey) {
String oldKey = key;
key = newKey;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.TABLE_FUNCTION__KEY, oldKey, key));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList<DataPoint> getDatapoints() {
if (datapoints == null) {
datapoints = new EObjectContainmentEList<DataPoint>(DataPoint.class, this,
EnCompPackage.TABLE_FUNCTION__DATAPOINTS);
}
return datapoints;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnCompPackage.TABLE_FUNCTION__DATAPOINTS:
return ((InternalEList<?>) getDatapoints()).basicRemove(otherEnd, 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.TABLE_FUNCTION__KEY:
return getKey();
case EnCompPackage.TABLE_FUNCTION__DATAPOINTS:
return getDatapoints();
}
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.TABLE_FUNCTION__KEY:
setKey((String) newValue);
return;
case EnCompPackage.TABLE_FUNCTION__DATAPOINTS:
getDatapoints().clear();
getDatapoints().addAll((Collection<? extends DataPoint>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.TABLE_FUNCTION__KEY:
setKey(KEY_EDEFAULT);
return;
case EnCompPackage.TABLE_FUNCTION__DATAPOINTS:
getDatapoints().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.TABLE_FUNCTION__KEY:
return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
case EnCompPackage.TABLE_FUNCTION__DATAPOINTS:
return datapoints != null && !datapoints.isEmpty();
}
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(" (key: ");
result.append(key);
result.append(')');
return result.toString();
}
} //TableFunctionImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.FuelTypes;
import de.hftstuttgart.energycomponents.ThermalEnergyDevice;
import de.hftstuttgart.units.NullableQuantity;
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>Thermal Energy Device</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalEnergyDeviceImpl#getInstalledThermalPower <em>Installed Thermal Power</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalEnergyDeviceImpl#getModulationRange <em>Modulation Range</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalEnergyDeviceImpl#getFuel <em>Fuel</em>}</li>
* </ul>
*
* @generated
*/
public abstract class ThermalEnergyDeviceImpl extends EnergyComponentImpl implements ThermalEnergyDevice {
/**
* The default value of the '{@link #getInstalledThermalPower() <em>Installed Thermal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstalledThermalPower()
* @generated
* @ordered
*/
protected static final NullableQuantity INSTALLED_THERMAL_POWER_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "kW");
/**
* The cached value of the '{@link #getInstalledThermalPower() <em>Installed Thermal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstalledThermalPower()
* @generated
* @ordered
*/
protected NullableQuantity installedThermalPower = INSTALLED_THERMAL_POWER_EDEFAULT;
/**
* The default value of the '{@link #getModulationRange() <em>Modulation Range</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModulationRange()
* @generated
* @ordered
*/
protected static final double MODULATION_RANGE_EDEFAULT = 0.5;
/**
* The cached value of the '{@link #getModulationRange() <em>Modulation Range</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModulationRange()
* @generated
* @ordered
*/
protected double modulationRange = MODULATION_RANGE_EDEFAULT;
/**
* The default value of the '{@link #getFuel() <em>Fuel</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFuel()
* @generated
* @ordered
*/
protected static final FuelTypes FUEL_EDEFAULT = FuelTypes.NATURAL_GAS;
/**
* The cached value of the '{@link #getFuel() <em>Fuel</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFuel()
* @generated
* @ordered
*/
protected FuelTypes fuel = FUEL_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ThermalEnergyDeviceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.THERMAL_ENERGY_DEVICE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getInstalledThermalPower() {
return installedThermalPower;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setInstalledThermalPower(NullableQuantity newInstalledThermalPower) {
NullableQuantity oldInstalledThermalPower = installedThermalPower;
installedThermalPower = newInstalledThermalPower;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
EnCompPackage.THERMAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER, oldInstalledThermalPower,
installedThermalPower));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getModulationRange() {
return modulationRange;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setModulationRange(double newModulationRange) {
double oldModulationRange = modulationRange;
modulationRange = newModulationRange;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_ENERGY_DEVICE__MODULATION_RANGE,
oldModulationRange, modulationRange));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public FuelTypes getFuel() {
return fuel;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setFuel(FuelTypes newFuel) {
FuelTypes oldFuel = fuel;
fuel = newFuel == null ? FUEL_EDEFAULT : newFuel;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_ENERGY_DEVICE__FUEL, oldFuel,
fuel));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.THERMAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
return getInstalledThermalPower();
case EnCompPackage.THERMAL_ENERGY_DEVICE__MODULATION_RANGE:
return getModulationRange();
case EnCompPackage.THERMAL_ENERGY_DEVICE__FUEL:
return getFuel();
}
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.THERMAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
setInstalledThermalPower((NullableQuantity) newValue);
return;
case EnCompPackage.THERMAL_ENERGY_DEVICE__MODULATION_RANGE:
setModulationRange((Double) newValue);
return;
case EnCompPackage.THERMAL_ENERGY_DEVICE__FUEL:
setFuel((FuelTypes) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.THERMAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
setInstalledThermalPower(INSTALLED_THERMAL_POWER_EDEFAULT);
return;
case EnCompPackage.THERMAL_ENERGY_DEVICE__MODULATION_RANGE:
setModulationRange(MODULATION_RANGE_EDEFAULT);
return;
case EnCompPackage.THERMAL_ENERGY_DEVICE__FUEL:
setFuel(FUEL_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.THERMAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
return INSTALLED_THERMAL_POWER_EDEFAULT == null ? installedThermalPower != null
: !INSTALLED_THERMAL_POWER_EDEFAULT.equals(installedThermalPower);
case EnCompPackage.THERMAL_ENERGY_DEVICE__MODULATION_RANGE:
return modulationRange != MODULATION_RANGE_EDEFAULT;
case EnCompPackage.THERMAL_ENERGY_DEVICE__FUEL:
return fuel != FUEL_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(" (installedThermalPower: ");
result.append(installedThermalPower);
result.append(", modulationRange: ");
result.append(modulationRange);
result.append(", fuel: ");
result.append(fuel);
result.append(')');
return result.toString();
}
} //ThermalEnergyDeviceImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompFactory;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.Material;
import de.hftstuttgart.energycomponents.Medium;
import de.hftstuttgart.energycomponents.ThermalStorage;
import de.hftstuttgart.energycomponents.ThermalStorageTypes;
import de.hftstuttgart.units.NullableQuantity;
import org.eclipse.emf.common.notify.Notification;
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>Thermal Storage</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getVolume <em>Volume</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getThermalStorageType <em>Thermal Storage Type</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getMaxTemp <em>Max Temp</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getTankThickness <em>Tank Thickness</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getInsulationThickness <em>Insulation Thickness</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getUsesMedium <em>Uses Medium</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getInsulationMaterial <em>Insulation Material</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getHeight <em>Height</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.impl.ThermalStorageImpl#getTankMaterial <em>Tank Material</em>}</li>
* </ul>
*
* @generated
*/
public class ThermalStorageImpl extends EnergyComponentImpl implements ThermalStorage {
/**
* The default value of the '{@link #getVolume() <em>Volume</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVolume()
* @generated
* @ordered
*/
protected static final NullableQuantity VOLUME_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "5 m\u00b3");
/**
* The cached value of the '{@link #getVolume() <em>Volume</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVolume()
* @generated
* @ordered
*/
protected NullableQuantity volume = VOLUME_EDEFAULT;
/**
* The default value of the '{@link #getThermalStorageType() <em>Thermal Storage Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalStorageType()
* @generated
* @ordered
*/
protected static final ThermalStorageTypes THERMAL_STORAGE_TYPE_EDEFAULT = ThermalStorageTypes.SENSIBLE;
/**
* The cached value of the '{@link #getThermalStorageType() <em>Thermal Storage Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalStorageType()
* @generated
* @ordered
*/
protected ThermalStorageTypes thermalStorageType = THERMAL_STORAGE_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getMaxTemp() <em>Max Temp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaxTemp()
* @generated
* @ordered
*/
protected static final NullableQuantity MAX_TEMP_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "80 \u00b0C");
/**
* The cached value of the '{@link #getMaxTemp() <em>Max Temp</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaxTemp()
* @generated
* @ordered
*/
protected NullableQuantity maxTemp = MAX_TEMP_EDEFAULT;
/**
* The default value of the '{@link #getTankThickness() <em>Tank Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTankThickness()
* @generated
* @ordered
*/
protected static final NullableQuantity TANK_THICKNESS_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "10 mm ");
/**
* The cached value of the '{@link #getTankThickness() <em>Tank Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTankThickness()
* @generated
* @ordered
*/
protected NullableQuantity tankThickness = TANK_THICKNESS_EDEFAULT;
/**
* The default value of the '{@link #getInsulationThickness() <em>Insulation Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInsulationThickness()
* @generated
* @ordered
*/
protected static final NullableQuantity INSULATION_THICKNESS_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "100 mm");
/**
* The cached value of the '{@link #getInsulationThickness() <em>Insulation Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInsulationThickness()
* @generated
* @ordered
*/
protected NullableQuantity insulationThickness = INSULATION_THICKNESS_EDEFAULT;
/**
* The cached value of the '{@link #getUsesMedium() <em>Uses Medium</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUsesMedium()
* @generated
* @ordered
*/
protected Medium usesMedium;
/**
* The cached value of the '{@link #getInsulationMaterial() <em>Insulation Material</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInsulationMaterial()
* @generated
* @ordered
*/
protected Material insulationMaterial;
/**
* The default value of the '{@link #getHeight() <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHeight()
* @generated
* @ordered
*/
protected static final NullableQuantity HEIGHT_EDEFAULT = (NullableQuantity) EnCompFactory.eINSTANCE
.createFromString(EnCompPackage.eINSTANCE.getQuantityDouble(), "2 m");
/**
* The cached value of the '{@link #getHeight() <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHeight()
* @generated
* @ordered
*/
protected NullableQuantity height = HEIGHT_EDEFAULT;
/**
* The cached value of the '{@link #getTankMaterial() <em>Tank Material</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTankMaterial()
* @generated
* @ordered
*/
protected Material tankMaterial;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ThermalStorageImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.THERMAL_STORAGE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getVolume() {
return volume;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setVolume(NullableQuantity newVolume) {
NullableQuantity oldVolume = volume;
volume = newVolume;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__VOLUME, oldVolume,
volume));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ThermalStorageTypes getThermalStorageType() {
return thermalStorageType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setThermalStorageType(ThermalStorageTypes newThermalStorageType) {
ThermalStorageTypes oldThermalStorageType = thermalStorageType;
thermalStorageType = newThermalStorageType == null ? THERMAL_STORAGE_TYPE_EDEFAULT : newThermalStorageType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__THERMAL_STORAGE_TYPE,
oldThermalStorageType, thermalStorageType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getMaxTemp() {
return maxTemp;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMaxTemp(NullableQuantity newMaxTemp) {
NullableQuantity oldMaxTemp = maxTemp;
maxTemp = newMaxTemp;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__MAX_TEMP, oldMaxTemp,
maxTemp));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getTankThickness() {
return tankThickness;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setTankThickness(NullableQuantity newTankThickness) {
NullableQuantity oldTankThickness = tankThickness;
tankThickness = newTankThickness;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__TANK_THICKNESS,
oldTankThickness, tankThickness));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getInsulationThickness() {
return insulationThickness;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setInsulationThickness(NullableQuantity newInsulationThickness) {
NullableQuantity oldInsulationThickness = insulationThickness;
insulationThickness = newInsulationThickness;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__INSULATION_THICKNESS,
oldInsulationThickness, insulationThickness));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Medium getUsesMedium() {
if (usesMedium != null && usesMedium.eIsProxy()) {
InternalEObject oldUsesMedium = (InternalEObject) usesMedium;
usesMedium = (Medium) eResolveProxy(oldUsesMedium);
if (usesMedium != oldUsesMedium) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
EnCompPackage.THERMAL_STORAGE__USES_MEDIUM, oldUsesMedium, usesMedium));
}
}
return usesMedium;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Medium basicGetUsesMedium() {
return usesMedium;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setUsesMedium(Medium newUsesMedium) {
Medium oldUsesMedium = usesMedium;
usesMedium = newUsesMedium;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__USES_MEDIUM,
oldUsesMedium, usesMedium));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Material getInsulationMaterial() {
if (insulationMaterial != null && insulationMaterial.eIsProxy()) {
InternalEObject oldInsulationMaterial = (InternalEObject) insulationMaterial;
insulationMaterial = (Material) eResolveProxy(oldInsulationMaterial);
if (insulationMaterial != oldInsulationMaterial) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
EnCompPackage.THERMAL_STORAGE__INSULATION_MATERIAL, oldInsulationMaterial,
insulationMaterial));
}
}
return insulationMaterial;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Material basicGetInsulationMaterial() {
return insulationMaterial;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setInsulationMaterial(Material newInsulationMaterial) {
Material oldInsulationMaterial = insulationMaterial;
insulationMaterial = newInsulationMaterial;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__INSULATION_MATERIAL,
oldInsulationMaterial, insulationMaterial));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NullableQuantity getHeight() {
return height;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setHeight(NullableQuantity newHeight) {
NullableQuantity oldHeight = height;
height = newHeight;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__HEIGHT, oldHeight,
height));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Material getTankMaterial() {
if (tankMaterial != null && tankMaterial.eIsProxy()) {
InternalEObject oldTankMaterial = (InternalEObject) tankMaterial;
tankMaterial = (Material) eResolveProxy(oldTankMaterial);
if (tankMaterial != oldTankMaterial) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
EnCompPackage.THERMAL_STORAGE__TANK_MATERIAL, oldTankMaterial, tankMaterial));
}
}
return tankMaterial;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Material basicGetTankMaterial() {
return tankMaterial;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setTankMaterial(Material newTankMaterial) {
Material oldTankMaterial = tankMaterial;
tankMaterial = newTankMaterial;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, EnCompPackage.THERMAL_STORAGE__TANK_MATERIAL,
oldTankMaterial, tankMaterial));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EnCompPackage.THERMAL_STORAGE__VOLUME:
return getVolume();
case EnCompPackage.THERMAL_STORAGE__THERMAL_STORAGE_TYPE:
return getThermalStorageType();
case EnCompPackage.THERMAL_STORAGE__MAX_TEMP:
return getMaxTemp();
case EnCompPackage.THERMAL_STORAGE__TANK_THICKNESS:
return getTankThickness();
case EnCompPackage.THERMAL_STORAGE__INSULATION_THICKNESS:
return getInsulationThickness();
case EnCompPackage.THERMAL_STORAGE__USES_MEDIUM:
if (resolve)
return getUsesMedium();
return basicGetUsesMedium();
case EnCompPackage.THERMAL_STORAGE__INSULATION_MATERIAL:
if (resolve)
return getInsulationMaterial();
return basicGetInsulationMaterial();
case EnCompPackage.THERMAL_STORAGE__HEIGHT:
return getHeight();
case EnCompPackage.THERMAL_STORAGE__TANK_MATERIAL:
if (resolve)
return getTankMaterial();
return basicGetTankMaterial();
}
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.THERMAL_STORAGE__VOLUME:
setVolume((NullableQuantity) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__THERMAL_STORAGE_TYPE:
setThermalStorageType((ThermalStorageTypes) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__MAX_TEMP:
setMaxTemp((NullableQuantity) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__TANK_THICKNESS:
setTankThickness((NullableQuantity) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__INSULATION_THICKNESS:
setInsulationThickness((NullableQuantity) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__USES_MEDIUM:
setUsesMedium((Medium) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__INSULATION_MATERIAL:
setInsulationMaterial((Material) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__HEIGHT:
setHeight((NullableQuantity) newValue);
return;
case EnCompPackage.THERMAL_STORAGE__TANK_MATERIAL:
setTankMaterial((Material) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EnCompPackage.THERMAL_STORAGE__VOLUME:
setVolume(VOLUME_EDEFAULT);
return;
case EnCompPackage.THERMAL_STORAGE__THERMAL_STORAGE_TYPE:
setThermalStorageType(THERMAL_STORAGE_TYPE_EDEFAULT);
return;
case EnCompPackage.THERMAL_STORAGE__MAX_TEMP:
setMaxTemp(MAX_TEMP_EDEFAULT);
return;
case EnCompPackage.THERMAL_STORAGE__TANK_THICKNESS:
setTankThickness(TANK_THICKNESS_EDEFAULT);
return;
case EnCompPackage.THERMAL_STORAGE__INSULATION_THICKNESS:
setInsulationThickness(INSULATION_THICKNESS_EDEFAULT);
return;
case EnCompPackage.THERMAL_STORAGE__USES_MEDIUM:
setUsesMedium((Medium) null);
return;
case EnCompPackage.THERMAL_STORAGE__INSULATION_MATERIAL:
setInsulationMaterial((Material) null);
return;
case EnCompPackage.THERMAL_STORAGE__HEIGHT:
setHeight(HEIGHT_EDEFAULT);
return;
case EnCompPackage.THERMAL_STORAGE__TANK_MATERIAL:
setTankMaterial((Material) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EnCompPackage.THERMAL_STORAGE__VOLUME:
return VOLUME_EDEFAULT == null ? volume != null : !VOLUME_EDEFAULT.equals(volume);
case EnCompPackage.THERMAL_STORAGE__THERMAL_STORAGE_TYPE:
return thermalStorageType != THERMAL_STORAGE_TYPE_EDEFAULT;
case EnCompPackage.THERMAL_STORAGE__MAX_TEMP:
return MAX_TEMP_EDEFAULT == null ? maxTemp != null : !MAX_TEMP_EDEFAULT.equals(maxTemp);
case EnCompPackage.THERMAL_STORAGE__TANK_THICKNESS:
return TANK_THICKNESS_EDEFAULT == null ? tankThickness != null
: !TANK_THICKNESS_EDEFAULT.equals(tankThickness);
case EnCompPackage.THERMAL_STORAGE__INSULATION_THICKNESS:
return INSULATION_THICKNESS_EDEFAULT == null ? insulationThickness != null
: !INSULATION_THICKNESS_EDEFAULT.equals(insulationThickness);
case EnCompPackage.THERMAL_STORAGE__USES_MEDIUM:
return usesMedium != null;
case EnCompPackage.THERMAL_STORAGE__INSULATION_MATERIAL:
return insulationMaterial != null;
case EnCompPackage.THERMAL_STORAGE__HEIGHT:
return HEIGHT_EDEFAULT == null ? height != null : !HEIGHT_EDEFAULT.equals(height);
case EnCompPackage.THERMAL_STORAGE__TANK_MATERIAL:
return tankMaterial != 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(" (volume: ");
result.append(volume);
result.append(", thermalStorageType: ");
result.append(thermalStorageType);
result.append(", maxTemp: ");
result.append(maxTemp);
result.append(", tankThickness: ");
result.append(tankThickness);
result.append(", insulationThickness: ");
result.append(insulationThickness);
result.append(", height: ");
result.append(height);
result.append(')');
return result.toString();
}
} //ThermalStorageImpl
/**
*/
package de.hftstuttgart.energycomponents.impl;
import de.hftstuttgart.energycomponents.EnCompPackage;
import de.hftstuttgart.energycomponents.WindTurbine;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Wind Turbine</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class WindTurbineImpl extends EnergyComponentImpl implements WindTurbine {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected WindTurbineImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EnCompPackage.Literals.WIND_TURBINE;
}
} //WindTurbineImpl
/**
*/
package de.hftstuttgart.energycomponents;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>other Cost</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.energycomponents.otherCost#getAdministrationAndOtherCostShare <em>Administration And Other Cost Share</em>}</li>
* <li>{@link de.hftstuttgart.energycomponents.otherCost#getMaintenanceCostShare <em>Maintenance Cost Share</em>}</li>
* </ul>
*
* @see de.hftstuttgart.energycomponents.EnCompPackage#getotherCost()
* @model abstract="true"
* @generated
*/
public interface otherCost extends EObject {
/**
* Returns the value of the '<em><b>Administration And Other Cost Share</b></em>' attribute.
* The default value is <code>"0.015"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* share of investment cost
* <!-- end-model-doc -->
* @return the value of the '<em>Administration And Other Cost Share</em>' attribute.
* @see #setAdministrationAndOtherCostShare(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getotherCost_AdministrationAndOtherCostShare()
* @model default="0.015"
* @generated
*/
double getAdministrationAndOtherCostShare();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.otherCost#getAdministrationAndOtherCostShare <em>Administration And Other Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Administration And Other Cost Share</em>' attribute.
* @see #getAdministrationAndOtherCostShare()
* @generated
*/
void setAdministrationAndOtherCostShare(double value);
/**
* Returns the value of the '<em><b>Maintenance Cost Share</b></em>' attribute.
* The default value is <code>"0.015"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* share of investment cost
* <!-- end-model-doc -->
* @return the value of the '<em>Maintenance Cost Share</em>' attribute.
* @see #setMaintenanceCostShare(double)
* @see de.hftstuttgart.energycomponents.EnCompPackage#getotherCost_MaintenanceCostShare()
* @model default="0.015"
* @generated
*/
double getMaintenanceCostShare();
/**
* Sets the value of the '{@link de.hftstuttgart.energycomponents.otherCost#getMaintenanceCostShare <em>Maintenance Cost Share</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Maintenance Cost Share</em>' attribute.
* @see #getMaintenanceCostShare()
* @generated
*/
void setMaintenanceCostShare(double value);
} // otherCost
/**
*/
package de.hftstuttgart.energycomponents.util;
import de.hftstuttgart.energycomponents.*;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage
* @generated
*/
public class EnCompAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static EnCompPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EnCompAdapterFactory() {
if (modelPackage == null) {
modelPackage = EnCompPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject) object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EnCompSwitch<Adapter> modelSwitch = new EnCompSwitch<Adapter>() {
@Override
public Adapter caseEnergyComponent(EnergyComponent object) {
return createEnergyComponentAdapter();
}
@Override
public Adapter caseEnergyComponentsCatalog(EnergyComponentsCatalog object) {
return createEnergyComponentsCatalogAdapter();
}
@Override
public Adapter caseThermalStorage(ThermalStorage object) {
return createThermalStorageAdapter();
}
@Override
public Adapter caseElectricalStorage(ElectricalStorage object) {
return createElectricalStorageAdapter();
}
@Override
public Adapter caseCombinedHeatPower(CombinedHeatPower object) {
return createCombinedHeatPowerAdapter();
}
@Override
public Adapter caseHeatPump(HeatPump object) {
return createHeatPumpAdapter();
}
@Override
public Adapter caseBoiler(Boiler object) {
return createBoilerAdapter();
}
@Override
public Adapter caseSolarThermalCollector(SolarThermalCollector object) {
return createSolarThermalCollectorAdapter();
}
@Override
public Adapter caseElectrolyzer(Electrolyzer object) {
return createElectrolyzerAdapter();
}
@Override
public Adapter caseThermalEnergyDevice(ThermalEnergyDevice object) {
return createThermalEnergyDeviceAdapter();
}
@Override
public Adapter caseHydrogenCompressor(HydrogenCompressor object) {
return createHydrogenCompressorAdapter();
}
@Override
public Adapter caseHydrogenStorage(HydrogenStorage object) {
return createHydrogenStorageAdapter();
}
@Override
public Adapter caseFuelCell(FuelCell object) {
return createFuelCellAdapter();
}
@Override
public Adapter caseEnergyCarrier(EnergyCarrier object) {
return createEnergyCarrierAdapter();
}
@Override
public Adapter caseFossilFuel(FossilFuel object) {
return createFossilFuelAdapter();
}
@Override
public Adapter caseHydrogen(Hydrogen object) {
return createHydrogenAdapter();
}
@Override
public Adapter caseElectricity(Electricity object) {
return createElectricityAdapter();
}
@Override
public Adapter caseBioFuel(BioFuel object) {
return createBioFuelAdapter();
}
@Override
public Adapter caseFuel(Fuel object) {
return createFuelAdapter();
}
@Override
public Adapter caseWindTurbine(WindTurbine object) {
return createWindTurbineAdapter();
}
@Override
public Adapter casePhotovoltaicModule(PhotovoltaicModule object) {
return createPhotovoltaicModuleAdapter();
}
@Override
public Adapter caseInverter(Inverter object) {
return createInverterAdapter();
}
@Override
public Adapter caseHeatExchanger(HeatExchanger object) {
return createHeatExchangerAdapter();
}
@Override
public Adapter caseGeothermalHeatExchanger(GeothermalHeatExchanger object) {
return createGeothermalHeatExchangerAdapter();
}
@Override
public Adapter caseMedium(Medium object) {
return createMediumAdapter();
}
@Override
public Adapter caseLinearFunction(LinearFunction object) {
return createLinearFunctionAdapter();
}
@Override
public Adapter caseDataPoint(DataPoint object) {
return createDataPointAdapter();
}
@Override
public Adapter caseTableFunction(TableFunction object) {
return createTableFunctionAdapter();
}
@Override
public Adapter caseExponentialFunction(ExponentialFunction object) {
return createExponentialFunctionAdapter();
}
@Override
public Adapter caseCharacteristic(Characteristic object) {
return createCharacteristicAdapter();
}
@Override
public Adapter caseTableCharacteristic(TableCharacteristic object) {
return createTableCharacteristicAdapter();
}
@Override
public Adapter caseLinearCharacteristic(LinearCharacteristic object) {
return createLinearCharacteristicAdapter();
}
@Override
public Adapter caseExponentionalCharacteristic(ExponentionalCharacteristic object) {
return createExponentionalCharacteristicAdapter();
}
@Override
public Adapter caseManufacturer(Manufacturer object) {
return createManufacturerAdapter();
}
@Override
public Adapter casePolynomialCharacteristic(PolynomialCharacteristic object) {
return createPolynomialCharacteristicAdapter();
}
@Override
public Adapter casePolynomialFunction(PolynomialFunction object) {
return createPolynomialFunctionAdapter();
}
@Override
public Adapter caseMaterial(Material object) {
return createMaterialAdapter();
}
@Override
public Adapter caseEnergyComponentsCostCatalog(EnergyComponentsCostCatalog object) {
return createEnergyComponentsCostCatalogAdapter();
}
@Override
public Adapter caseCost(Cost object) {
return createCostAdapter();
}
@Override
public Adapter casePowerCharacteristic(PowerCharacteristic object) {
return createPowerCharacteristicAdapter();
}
@Override
public Adapter casePowerFunction(PowerFunction object) {
return createPowerFunctionAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject) target);
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.EnergyComponent <em>Energy Component</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.EnergyComponent
* @generated
*/
public Adapter createEnergyComponentAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.EnergyComponentsCatalog <em>Energy Components Catalog</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.EnergyComponentsCatalog
* @generated
*/
public Adapter createEnergyComponentsCatalogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.ThermalStorage <em>Thermal Storage</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.ThermalStorage
* @generated
*/
public Adapter createThermalStorageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.ElectricalStorage <em>Electrical Storage</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.ElectricalStorage
* @generated
*/
public Adapter createElectricalStorageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.CombinedHeatPower <em>Combined Heat Power</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.CombinedHeatPower
* @generated
*/
public Adapter createCombinedHeatPowerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.HeatPump <em>Heat Pump</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.HeatPump
* @generated
*/
public Adapter createHeatPumpAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Boiler <em>Boiler</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Boiler
* @generated
*/
public Adapter createBoilerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.SolarThermalCollector <em>Solar Thermal Collector</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.SolarThermalCollector
* @generated
*/
public Adapter createSolarThermalCollectorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Electrolyzer <em>Electrolyzer</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Electrolyzer
* @generated
*/
public Adapter createElectrolyzerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.ThermalEnergyDevice <em>Thermal Energy Device</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.ThermalEnergyDevice
* @generated
*/
public Adapter createThermalEnergyDeviceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.HydrogenCompressor <em>Hydrogen Compressor</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.HydrogenCompressor
* @generated
*/
public Adapter createHydrogenCompressorAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.HydrogenStorage <em>Hydrogen Storage</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.HydrogenStorage
* @generated
*/
public Adapter createHydrogenStorageAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.FuelCell <em>Fuel Cell</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.FuelCell
* @generated
*/
public Adapter createFuelCellAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.EnergyCarrier <em>Energy Carrier</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.EnergyCarrier
* @generated
*/
public Adapter createEnergyCarrierAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.FossilFuel <em>Fossil Fuel</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.FossilFuel
* @generated
*/
public Adapter createFossilFuelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Hydrogen <em>Hydrogen</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Hydrogen
* @generated
*/
public Adapter createHydrogenAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Electricity <em>Electricity</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Electricity
* @generated
*/
public Adapter createElectricityAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.BioFuel <em>Bio Fuel</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.BioFuel
* @generated
*/
public Adapter createBioFuelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Fuel <em>Fuel</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Fuel
* @generated
*/
public Adapter createFuelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.WindTurbine <em>Wind Turbine</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.WindTurbine
* @generated
*/
public Adapter createWindTurbineAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.PhotovoltaicModule <em>Photovoltaic Module</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.PhotovoltaicModule
* @generated
*/
public Adapter createPhotovoltaicModuleAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Inverter <em>Inverter</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Inverter
* @generated
*/
public Adapter createInverterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.HeatExchanger <em>Heat Exchanger</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.HeatExchanger
* @generated
*/
public Adapter createHeatExchangerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.GeothermalHeatExchanger <em>Geothermal Heat Exchanger</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.GeothermalHeatExchanger
* @generated
*/
public Adapter createGeothermalHeatExchangerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Medium <em>Medium</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Medium
* @generated
*/
public Adapter createMediumAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.LinearFunction <em>Linear Function</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.LinearFunction
* @generated
*/
public Adapter createLinearFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.DataPoint <em>Data Point</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.DataPoint
* @generated
*/
public Adapter createDataPointAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.TableFunction <em>Table Function</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.TableFunction
* @generated
*/
public Adapter createTableFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.ExponentialFunction <em>Exponential Function</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.ExponentialFunction
* @generated
*/
public Adapter createExponentialFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Characteristic <em>Characteristic</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Characteristic
* @generated
*/
public Adapter createCharacteristicAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.TableCharacteristic <em>Table Characteristic</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.TableCharacteristic
* @generated
*/
public Adapter createTableCharacteristicAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.LinearCharacteristic <em>Linear Characteristic</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.LinearCharacteristic
* @generated
*/
public Adapter createLinearCharacteristicAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.ExponentionalCharacteristic <em>Exponentional Characteristic</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.ExponentionalCharacteristic
* @generated
*/
public Adapter createExponentionalCharacteristicAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Manufacturer <em>Manufacturer</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Manufacturer
* @generated
*/
public Adapter createManufacturerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.PolynomialCharacteristic <em>Polynomial Characteristic</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.PolynomialCharacteristic
* @generated
*/
public Adapter createPolynomialCharacteristicAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.PolynomialFunction <em>Polynomial Function</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.PolynomialFunction
* @generated
*/
public Adapter createPolynomialFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Material <em>Material</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Material
* @generated
*/
public Adapter createMaterialAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.EnergyComponentsCostCatalog <em>Energy Components Cost Catalog</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.EnergyComponentsCostCatalog
* @generated
*/
public Adapter createEnergyComponentsCostCatalogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.Cost <em>Cost</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.Cost
* @generated
*/
public Adapter createCostAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.PowerCharacteristic <em>Power Characteristic</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.PowerCharacteristic
* @generated
*/
public Adapter createPowerCharacteristicAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.energycomponents.PowerFunction <em>Power Function</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.energycomponents.PowerFunction
* @generated
*/
public Adapter createPowerFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //EnCompAdapterFactory
/**
*/
package de.hftstuttgart.energycomponents.util;
import de.hftstuttgart.energycomponents.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
* @see de.hftstuttgart.energycomponents.EnCompPackage
* @generated
*/
public class EnCompSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static EnCompPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EnCompSwitch() {
if (modelPackage == null) {
modelPackage = EnCompPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@Override
protected boolean isSwitchFor(EPackage ePackage) {
return ePackage == modelPackage;
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case EnCompPackage.ENERGY_COMPONENT: {
EnergyComponent energyComponent = (EnergyComponent) theEObject;
T result = caseEnergyComponent(energyComponent);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.ENERGY_COMPONENTS_CATALOG: {
EnergyComponentsCatalog energyComponentsCatalog = (EnergyComponentsCatalog) theEObject;
T result = caseEnergyComponentsCatalog(energyComponentsCatalog);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.THERMAL_STORAGE: {
ThermalStorage thermalStorage = (ThermalStorage) theEObject;
T result = caseThermalStorage(thermalStorage);
if (result == null)
result = caseEnergyComponent(thermalStorage);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.ELECTRICAL_STORAGE: {
ElectricalStorage electricalStorage = (ElectricalStorage) theEObject;
T result = caseElectricalStorage(electricalStorage);
if (result == null)
result = caseEnergyComponent(electricalStorage);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.COMBINED_HEAT_POWER: {
CombinedHeatPower combinedHeatPower = (CombinedHeatPower) theEObject;
T result = caseCombinedHeatPower(combinedHeatPower);
if (result == null)
result = caseThermalEnergyDevice(combinedHeatPower);
if (result == null)
result = caseEnergyComponent(combinedHeatPower);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.HEAT_PUMP: {
HeatPump heatPump = (HeatPump) theEObject;
T result = caseHeatPump(heatPump);
if (result == null)
result = caseThermalEnergyDevice(heatPump);
if (result == null)
result = caseEnergyComponent(heatPump);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.BOILER: {
Boiler boiler = (Boiler) theEObject;
T result = caseBoiler(boiler);
if (result == null)
result = caseThermalEnergyDevice(boiler);
if (result == null)
result = caseEnergyComponent(boiler);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.SOLAR_THERMAL_COLLECTOR: {
SolarThermalCollector solarThermalCollector = (SolarThermalCollector) theEObject;
T result = caseSolarThermalCollector(solarThermalCollector);
if (result == null)
result = caseEnergyComponent(solarThermalCollector);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.ELECTROLYZER: {
Electrolyzer electrolyzer = (Electrolyzer) theEObject;
T result = caseElectrolyzer(electrolyzer);
if (result == null)
result = caseEnergyComponent(electrolyzer);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.THERMAL_ENERGY_DEVICE: {
ThermalEnergyDevice thermalEnergyDevice = (ThermalEnergyDevice) theEObject;
T result = caseThermalEnergyDevice(thermalEnergyDevice);
if (result == null)
result = caseEnergyComponent(thermalEnergyDevice);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.HYDROGEN_COMPRESSOR: {
HydrogenCompressor hydrogenCompressor = (HydrogenCompressor) theEObject;
T result = caseHydrogenCompressor(hydrogenCompressor);
if (result == null)
result = caseEnergyComponent(hydrogenCompressor);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.HYDROGEN_STORAGE: {
HydrogenStorage hydrogenStorage = (HydrogenStorage) theEObject;
T result = caseHydrogenStorage(hydrogenStorage);
if (result == null)
result = caseEnergyComponent(hydrogenStorage);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.FUEL_CELL: {
FuelCell fuelCell = (FuelCell) theEObject;
T result = caseFuelCell(fuelCell);
if (result == null)
result = caseEnergyComponent(fuelCell);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.ENERGY_CARRIER: {
EnergyCarrier energyCarrier = (EnergyCarrier) theEObject;
T result = caseEnergyCarrier(energyCarrier);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.FOSSIL_FUEL: {
FossilFuel fossilFuel = (FossilFuel) theEObject;
T result = caseFossilFuel(fossilFuel);
if (result == null)
result = caseFuel(fossilFuel);
if (result == null)
result = caseEnergyCarrier(fossilFuel);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.HYDROGEN: {
Hydrogen hydrogen = (Hydrogen) theEObject;
T result = caseHydrogen(hydrogen);
if (result == null)
result = caseFuel(hydrogen);
if (result == null)
result = caseEnergyCarrier(hydrogen);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.ELECTRICITY: {
Electricity electricity = (Electricity) theEObject;
T result = caseElectricity(electricity);
if (result == null)
result = caseEnergyCarrier(electricity);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.BIO_FUEL: {
BioFuel bioFuel = (BioFuel) theEObject;
T result = caseBioFuel(bioFuel);
if (result == null)
result = caseFuel(bioFuel);
if (result == null)
result = caseEnergyCarrier(bioFuel);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.FUEL: {
Fuel fuel = (Fuel) theEObject;
T result = caseFuel(fuel);
if (result == null)
result = caseEnergyCarrier(fuel);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.WIND_TURBINE: {
WindTurbine windTurbine = (WindTurbine) theEObject;
T result = caseWindTurbine(windTurbine);
if (result == null)
result = caseEnergyComponent(windTurbine);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.PHOTOVOLTAIC_MODULE: {
PhotovoltaicModule photovoltaicModule = (PhotovoltaicModule) theEObject;
T result = casePhotovoltaicModule(photovoltaicModule);
if (result == null)
result = caseEnergyComponent(photovoltaicModule);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.INVERTER: {
Inverter inverter = (Inverter) theEObject;
T result = caseInverter(inverter);
if (result == null)
result = caseEnergyComponent(inverter);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.HEAT_EXCHANGER: {
HeatExchanger heatExchanger = (HeatExchanger) theEObject;
T result = caseHeatExchanger(heatExchanger);
if (result == null)
result = caseEnergyComponent(heatExchanger);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.GEOTHERMAL_HEAT_EXCHANGER: {
GeothermalHeatExchanger geothermalHeatExchanger = (GeothermalHeatExchanger) theEObject;
T result = caseGeothermalHeatExchanger(geothermalHeatExchanger);
if (result == null)
result = caseEnergyComponent(geothermalHeatExchanger);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.MEDIUM: {
Medium medium = (Medium) theEObject;
T result = caseMedium(medium);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.LINEAR_FUNCTION: {
LinearFunction linearFunction = (LinearFunction) theEObject;
T result = caseLinearFunction(linearFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.DATA_POINT: {
DataPoint dataPoint = (DataPoint) theEObject;
T result = caseDataPoint(dataPoint);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.TABLE_FUNCTION: {
TableFunction tableFunction = (TableFunction) theEObject;
T result = caseTableFunction(tableFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.EXPONENTIAL_FUNCTION: {
ExponentialFunction exponentialFunction = (ExponentialFunction) theEObject;
T result = caseExponentialFunction(exponentialFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.CHARACTERISTIC: {
Characteristic characteristic = (Characteristic) theEObject;
T result = caseCharacteristic(characteristic);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.TABLE_CHARACTERISTIC: {
TableCharacteristic tableCharacteristic = (TableCharacteristic) theEObject;
T result = caseTableCharacteristic(tableCharacteristic);
if (result == null)
result = caseCharacteristic(tableCharacteristic);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.LINEAR_CHARACTERISTIC: {
LinearCharacteristic linearCharacteristic = (LinearCharacteristic) theEObject;
T result = caseLinearCharacteristic(linearCharacteristic);
if (result == null)
result = caseCharacteristic(linearCharacteristic);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.EXPONENTIONAL_CHARACTERISTIC: {
ExponentionalCharacteristic exponentionalCharacteristic = (ExponentionalCharacteristic) theEObject;
T result = caseExponentionalCharacteristic(exponentionalCharacteristic);
if (result == null)
result = caseCharacteristic(exponentionalCharacteristic);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.MANUFACTURER: {
Manufacturer manufacturer = (Manufacturer) theEObject;
T result = caseManufacturer(manufacturer);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.POLYNOMIAL_CHARACTERISTIC: {
PolynomialCharacteristic polynomialCharacteristic = (PolynomialCharacteristic) theEObject;
T result = casePolynomialCharacteristic(polynomialCharacteristic);
if (result == null)
result = caseCharacteristic(polynomialCharacteristic);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.POLYNOMIAL_FUNCTION: {
PolynomialFunction polynomialFunction = (PolynomialFunction) theEObject;
T result = casePolynomialFunction(polynomialFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.MATERIAL: {
Material material = (Material) theEObject;
T result = caseMaterial(material);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.ENERGY_COMPONENTS_COST_CATALOG: {
EnergyComponentsCostCatalog energyComponentsCostCatalog = (EnergyComponentsCostCatalog) theEObject;
T result = caseEnergyComponentsCostCatalog(energyComponentsCostCatalog);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.COST: {
Cost cost = (Cost) theEObject;
T result = caseCost(cost);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.POWER_CHARACTERISTIC: {
PowerCharacteristic powerCharacteristic = (PowerCharacteristic) theEObject;
T result = casePowerCharacteristic(powerCharacteristic);
if (result == null)
result = caseCharacteristic(powerCharacteristic);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case EnCompPackage.POWER_FUNCTION: {
PowerFunction powerFunction = (PowerFunction) theEObject;
T result = casePowerFunction(powerFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
default:
return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Energy Component</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Energy Component</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEnergyComponent(EnergyComponent object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Energy Components Catalog</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Energy Components Catalog</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEnergyComponentsCatalog(EnergyComponentsCatalog object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Thermal Storage</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Thermal Storage</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseThermalStorage(ThermalStorage object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Electrical Storage</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Electrical Storage</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseElectricalStorage(ElectricalStorage object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Combined Heat Power</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Combined Heat Power</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCombinedHeatPower(CombinedHeatPower object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Heat Pump</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Heat Pump</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseHeatPump(HeatPump object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Boiler</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Boiler</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBoiler(Boiler object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Solar Thermal Collector</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Solar Thermal Collector</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSolarThermalCollector(SolarThermalCollector object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Electrolyzer</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Electrolyzer</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseElectrolyzer(Electrolyzer object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Thermal Energy Device</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Thermal Energy Device</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseThermalEnergyDevice(ThermalEnergyDevice object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Hydrogen Compressor</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Hydrogen Compressor</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseHydrogenCompressor(HydrogenCompressor object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Hydrogen Storage</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Hydrogen Storage</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseHydrogenStorage(HydrogenStorage object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Fuel Cell</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Fuel Cell</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFuelCell(FuelCell object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Energy Carrier</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Energy Carrier</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEnergyCarrier(EnergyCarrier object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Fossil Fuel</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Fossil Fuel</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFossilFuel(FossilFuel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Hydrogen</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Hydrogen</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseHydrogen(Hydrogen object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Electricity</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Electricity</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseElectricity(Electricity object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Bio Fuel</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Bio Fuel</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBioFuel(BioFuel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Fuel</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Fuel</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFuel(Fuel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Wind Turbine</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Wind Turbine</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWindTurbine(WindTurbine object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Photovoltaic Module</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Photovoltaic Module</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePhotovoltaicModule(PhotovoltaicModule object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Inverter</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Inverter</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInverter(Inverter object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Heat Exchanger</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Heat Exchanger</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseHeatExchanger(HeatExchanger object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Geothermal Heat Exchanger</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Geothermal Heat Exchanger</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGeothermalHeatExchanger(GeothermalHeatExchanger object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Medium</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Medium</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMedium(Medium object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Linear Function</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Linear Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseLinearFunction(LinearFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Data Point</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Data Point</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDataPoint(DataPoint object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Table Function</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Table Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTableFunction(TableFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Exponential Function</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Exponential Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExponentialFunction(ExponentialFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Characteristic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Characteristic</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCharacteristic(Characteristic object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Table Characteristic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Table Characteristic</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTableCharacteristic(TableCharacteristic object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Linear Characteristic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Linear Characteristic</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseLinearCharacteristic(LinearCharacteristic object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Exponentional Characteristic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Exponentional Characteristic</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExponentionalCharacteristic(ExponentionalCharacteristic object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Manufacturer</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Manufacturer</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseManufacturer(Manufacturer object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Polynomial Characteristic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Polynomial Characteristic</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePolynomialCharacteristic(PolynomialCharacteristic object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Polynomial Function</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Polynomial Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePolynomialFunction(PolynomialFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Material</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Material</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMaterial(Material object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Energy Components Cost Catalog</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Energy Components Cost Catalog</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEnergyComponentsCostCatalog(EnergyComponentsCostCatalog object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Cost</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Cost</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCost(Cost object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Power Characteristic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Power Characteristic</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePowerCharacteristic(PowerCharacteristic object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Power Function</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Power Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePowerFunction(PowerFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //EnCompSwitch
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