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

Demo catalog with data model and generated classes

parent d9b6ae6f
/**
*/
package demo.catalog.democatalog;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Solar Panel</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.SolarPanel#getNominalPower <em>Nominal Power</em>}</li>
* </ul>
*
* @see demo.catalog.democatalog.democatalogPackage#getSolarPanel()
* @model
* @generated
*/
public interface SolarPanel extends EnergyComponent {
/**
* Returns the value of the '<em><b>Nominal Power</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Nominal Power</em>' attribute.
* @see #setNominalPower(double)
* @see demo.catalog.democatalog.democatalogPackage#getSolarPanel_NominalPower()
* @model required="true"
* @generated
*/
double getNominalPower();
/**
* Sets the value of the '{@link demo.catalog.democatalog.SolarPanel#getNominalPower <em>Nominal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Nominal Power</em>' attribute.
* @see #getNominalPower()
* @generated
*/
void setNominalPower(double value);
} // SolarPanel
/**
*/
package demo.catalog.democatalog;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.democatalogPackage
* @generated
*/
public interface democatalogFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
democatalogFactory eINSTANCE = demo.catalog.democatalog.impl.democatalogFactoryImpl.init();
/**
* Returns a new object of class '<em>Energy Components Catalog</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Energy Components Catalog</em>'.
* @generated
*/
EnergyComponentsCatalog createEnergyComponentsCatalog();
/**
* Returns a new object of class '<em>Boiler</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Boiler</em>'.
* @generated
*/
Boiler createBoiler();
/**
* Returns a new object of class '<em>Combined Heat Power</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Combined Heat Power</em>'.
* @generated
*/
CombinedHeatPower createCombinedHeatPower();
/**
* Returns a new object of class '<em>Solar Panel</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Solar Panel</em>'.
* @generated
*/
SolarPanel createSolarPanel();
/**
* Returns a new object of class '<em>Inverter</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Inverter</em>'.
* @generated
*/
Inverter createInverter();
/**
* Returns a new object of class '<em>Manufacturer</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Manufacturer</em>'.
* @generated
*/
Manufacturer createManufacturer();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
democatalogPackage getdemocatalogPackage();
} //democatalogFactory
/**
*/
package demo.catalog.democatalog;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each operation of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.democatalogFactory
* @model kind="package"
* @generated
*/
public interface democatalogPackage extends EPackage {
/**
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNAME = "democatalog";
/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.example.org/democatalog";
/**
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_PREFIX = "democatalog";
/**
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
democatalogPackage eINSTANCE = demo.catalog.democatalog.impl.democatalogPackageImpl.init();
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl <em>Energy Components Catalog</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getEnergyComponentsCatalog()
* @generated
*/
int ENERGY_COMPONENTS_CATALOG = 0;
/**
* The feature id for the '<em><b>Author</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG__AUTHOR = 0;
/**
* The feature id for the '<em><b>Boilers</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG__BOILERS = 1;
/**
* The feature id for the '<em><b>Chps</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG__CHPS = 2;
/**
* The feature id for the '<em><b>Solarpanels</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG__SOLARPANELS = 3;
/**
* The feature id for the '<em><b>Inverters</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG__INVERTERS = 4;
/**
* The feature id for the '<em><b>Manufacturers</b></em>' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG__MANUFACTURERS = 5;
/**
* The number of structural features of the '<em>Energy Components Catalog</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG_FEATURE_COUNT = 6;
/**
* The number of operations of the '<em>Energy Components Catalog</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENTS_CATALOG_OPERATION_COUNT = 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.EnergyComponentImpl <em>Energy Component</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getEnergyComponent()
* @generated
*/
int ENERGY_COMPONENT = 7;
/**
* The feature id for the '<em><b>Model Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENT__MODEL_NAME = 0;
/**
* The feature id for the '<em><b>Revision Year</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENT__REVISION_YEAR = 1;
/**
* The feature id for the '<em><b>Produced By</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENT__PRODUCED_BY = 2;
/**
* The number of structural features of the '<em>Energy Component</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENT_FEATURE_COUNT = 3;
/**
* The number of operations of the '<em>Energy Component</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ENERGY_COMPONENT_OPERATION_COUNT = 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl <em>Chemical Energy Device</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getChemicalEnergyDevice()
* @generated
*/
int CHEMICAL_ENERGY_DEVICE = 6;
/**
* The feature id for the '<em><b>Model Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CHEMICAL_ENERGY_DEVICE__MODEL_NAME = ENERGY_COMPONENT__MODEL_NAME;
/**
* The feature id for the '<em><b>Revision Year</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CHEMICAL_ENERGY_DEVICE__REVISION_YEAR = ENERGY_COMPONENT__REVISION_YEAR;
/**
* The feature id for the '<em><b>Produced By</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CHEMICAL_ENERGY_DEVICE__PRODUCED_BY = ENERGY_COMPONENT__PRODUCED_BY;
/**
* The feature id for the '<em><b>Installed Thermal Power</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER = ENERGY_COMPONENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Chemical Energy Device</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CHEMICAL_ENERGY_DEVICE_FEATURE_COUNT = ENERGY_COMPONENT_FEATURE_COUNT + 1;
/**
* The number of operations of the '<em>Chemical Energy Device</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int CHEMICAL_ENERGY_DEVICE_OPERATION_COUNT = ENERGY_COMPONENT_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.BoilerImpl <em>Boiler</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.BoilerImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getBoiler()
* @generated
*/
int BOILER = 1;
/**
* The feature id for the '<em><b>Model Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BOILER__MODEL_NAME = CHEMICAL_ENERGY_DEVICE__MODEL_NAME;
/**
* The feature id for the '<em><b>Revision Year</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BOILER__REVISION_YEAR = CHEMICAL_ENERGY_DEVICE__REVISION_YEAR;
/**
* The feature id for the '<em><b>Produced By</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BOILER__PRODUCED_BY = CHEMICAL_ENERGY_DEVICE__PRODUCED_BY;
/**
* The feature id for the '<em><b>Installed Thermal Power</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BOILER__INSTALLED_THERMAL_POWER = CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER;
/**
* The feature id for the '<em><b>Boiler Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BOILER__BOILER_TYPE = CHEMICAL_ENERGY_DEVICE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Boiler</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BOILER_FEATURE_COUNT = CHEMICAL_ENERGY_DEVICE_FEATURE_COUNT + 1;
/**
* The number of operations of the '<em>Boiler</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int BOILER_OPERATION_COUNT = CHEMICAL_ENERGY_DEVICE_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.CombinedHeatPowerImpl <em>Combined Heat Power</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.CombinedHeatPowerImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getCombinedHeatPower()
* @generated
*/
int COMBINED_HEAT_POWER = 2;
/**
* The feature id for the '<em><b>Model Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMBINED_HEAT_POWER__MODEL_NAME = CHEMICAL_ENERGY_DEVICE__MODEL_NAME;
/**
* The feature id for the '<em><b>Revision Year</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMBINED_HEAT_POWER__REVISION_YEAR = CHEMICAL_ENERGY_DEVICE__REVISION_YEAR;
/**
* The feature id for the '<em><b>Produced By</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMBINED_HEAT_POWER__PRODUCED_BY = CHEMICAL_ENERGY_DEVICE__PRODUCED_BY;
/**
* The feature id for the '<em><b>Installed Thermal Power</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMBINED_HEAT_POWER__INSTALLED_THERMAL_POWER = CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER;
/**
* The feature id for the '<em><b>Thermal Efficiency</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMBINED_HEAT_POWER__THERMAL_EFFICIENCY = CHEMICAL_ENERGY_DEVICE_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Combined Heat Power</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMBINED_HEAT_POWER_FEATURE_COUNT = CHEMICAL_ENERGY_DEVICE_FEATURE_COUNT + 1;
/**
* The number of operations of the '<em>Combined Heat Power</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int COMBINED_HEAT_POWER_OPERATION_COUNT = CHEMICAL_ENERGY_DEVICE_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.SolarPanelImpl <em>Solar Panel</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.SolarPanelImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getSolarPanel()
* @generated
*/
int SOLAR_PANEL = 3;
/**
* The feature id for the '<em><b>Model Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SOLAR_PANEL__MODEL_NAME = ENERGY_COMPONENT__MODEL_NAME;
/**
* The feature id for the '<em><b>Revision Year</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SOLAR_PANEL__REVISION_YEAR = ENERGY_COMPONENT__REVISION_YEAR;
/**
* The feature id for the '<em><b>Produced By</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SOLAR_PANEL__PRODUCED_BY = ENERGY_COMPONENT__PRODUCED_BY;
/**
* The feature id for the '<em><b>Nominal Power</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SOLAR_PANEL__NOMINAL_POWER = ENERGY_COMPONENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Solar Panel</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SOLAR_PANEL_FEATURE_COUNT = ENERGY_COMPONENT_FEATURE_COUNT + 1;
/**
* The number of operations of the '<em>Solar Panel</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SOLAR_PANEL_OPERATION_COUNT = ENERGY_COMPONENT_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.InverterImpl <em>Inverter</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.InverterImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getInverter()
* @generated
*/
int INVERTER = 4;
/**
* The feature id for the '<em><b>Model Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INVERTER__MODEL_NAME = ENERGY_COMPONENT__MODEL_NAME;
/**
* The feature id for the '<em><b>Revision Year</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INVERTER__REVISION_YEAR = ENERGY_COMPONENT__REVISION_YEAR;
/**
* The feature id for the '<em><b>Produced By</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INVERTER__PRODUCED_BY = ENERGY_COMPONENT__PRODUCED_BY;
/**
* The feature id for the '<em><b>Nominal Power</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INVERTER__NOMINAL_POWER = ENERGY_COMPONENT_FEATURE_COUNT + 0;
/**
* The number of structural features of the '<em>Inverter</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INVERTER_FEATURE_COUNT = ENERGY_COMPONENT_FEATURE_COUNT + 1;
/**
* The number of operations of the '<em>Inverter</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int INVERTER_OPERATION_COUNT = ENERGY_COMPONENT_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.impl.ManufacturerImpl <em>Manufacturer</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ManufacturerImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getManufacturer()
* @generated
*/
int MANUFACTURER = 5;
/**
* The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MANUFACTURER__NAME = 0;
/**
* The number of structural features of the '<em>Manufacturer</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MANUFACTURER_FEATURE_COUNT = 1;
/**
* The number of operations of the '<em>Manufacturer</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int MANUFACTURER_OPERATION_COUNT = 0;
/**
* The meta object id for the '{@link demo.catalog.democatalog.BoilerType <em>Boiler Type</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.BoilerType
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getBoilerType()
* @generated
*/
int BOILER_TYPE = 8;
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.EnergyComponentsCatalog <em>Energy Components Catalog</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Energy Components Catalog</em>'.
* @see demo.catalog.democatalog.EnergyComponentsCatalog
* @generated
*/
EClass getEnergyComponentsCatalog();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.EnergyComponentsCatalog#getAuthor <em>Author</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Author</em>'.
* @see demo.catalog.democatalog.EnergyComponentsCatalog#getAuthor()
* @see #getEnergyComponentsCatalog()
* @generated
*/
EAttribute getEnergyComponentsCatalog_Author();
/**
* Returns the meta object for the containment reference list '{@link demo.catalog.democatalog.EnergyComponentsCatalog#getBoilers <em>Boilers</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Boilers</em>'.
* @see demo.catalog.democatalog.EnergyComponentsCatalog#getBoilers()
* @see #getEnergyComponentsCatalog()
* @generated
*/
EReference getEnergyComponentsCatalog_Boilers();
/**
* Returns the meta object for the containment reference list '{@link demo.catalog.democatalog.EnergyComponentsCatalog#getChps <em>Chps</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Chps</em>'.
* @see demo.catalog.democatalog.EnergyComponentsCatalog#getChps()
* @see #getEnergyComponentsCatalog()
* @generated
*/
EReference getEnergyComponentsCatalog_Chps();
/**
* Returns the meta object for the containment reference list '{@link demo.catalog.democatalog.EnergyComponentsCatalog#getSolarpanels <em>Solarpanels</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Solarpanels</em>'.
* @see demo.catalog.democatalog.EnergyComponentsCatalog#getSolarpanels()
* @see #getEnergyComponentsCatalog()
* @generated
*/
EReference getEnergyComponentsCatalog_Solarpanels();
/**
* Returns the meta object for the containment reference list '{@link demo.catalog.democatalog.EnergyComponentsCatalog#getInverters <em>Inverters</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Inverters</em>'.
* @see demo.catalog.democatalog.EnergyComponentsCatalog#getInverters()
* @see #getEnergyComponentsCatalog()
* @generated
*/
EReference getEnergyComponentsCatalog_Inverters();
/**
* Returns the meta object for the containment reference list '{@link demo.catalog.democatalog.EnergyComponentsCatalog#getManufacturers <em>Manufacturers</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Manufacturers</em>'.
* @see demo.catalog.democatalog.EnergyComponentsCatalog#getManufacturers()
* @see #getEnergyComponentsCatalog()
* @generated
*/
EReference getEnergyComponentsCatalog_Manufacturers();
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.Boiler <em>Boiler</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Boiler</em>'.
* @see demo.catalog.democatalog.Boiler
* @generated
*/
EClass getBoiler();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.Boiler#getBoilerType <em>Boiler Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Boiler Type</em>'.
* @see demo.catalog.democatalog.Boiler#getBoilerType()
* @see #getBoiler()
* @generated
*/
EAttribute getBoiler_BoilerType();
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.CombinedHeatPower <em>Combined Heat Power</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Combined Heat Power</em>'.
* @see demo.catalog.democatalog.CombinedHeatPower
* @generated
*/
EClass getCombinedHeatPower();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.CombinedHeatPower#getThermalEfficiency <em>Thermal Efficiency</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Thermal Efficiency</em>'.
* @see demo.catalog.democatalog.CombinedHeatPower#getThermalEfficiency()
* @see #getCombinedHeatPower()
* @generated
*/
EAttribute getCombinedHeatPower_ThermalEfficiency();
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.SolarPanel <em>Solar Panel</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Solar Panel</em>'.
* @see demo.catalog.democatalog.SolarPanel
* @generated
*/
EClass getSolarPanel();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.SolarPanel#getNominalPower <em>Nominal Power</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Nominal Power</em>'.
* @see demo.catalog.democatalog.SolarPanel#getNominalPower()
* @see #getSolarPanel()
* @generated
*/
EAttribute getSolarPanel_NominalPower();
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.Inverter <em>Inverter</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Inverter</em>'.
* @see demo.catalog.democatalog.Inverter
* @generated
*/
EClass getInverter();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.Inverter#getNominalPower <em>Nominal Power</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Nominal Power</em>'.
* @see demo.catalog.democatalog.Inverter#getNominalPower()
* @see #getInverter()
* @generated
*/
EAttribute getInverter_NominalPower();
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.Manufacturer <em>Manufacturer</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Manufacturer</em>'.
* @see demo.catalog.democatalog.Manufacturer
* @generated
*/
EClass getManufacturer();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.Manufacturer#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see demo.catalog.democatalog.Manufacturer#getName()
* @see #getManufacturer()
* @generated
*/
EAttribute getManufacturer_Name();
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.ChemicalEnergyDevice <em>Chemical Energy Device</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Chemical Energy Device</em>'.
* @see demo.catalog.democatalog.ChemicalEnergyDevice
* @generated
*/
EClass getChemicalEnergyDevice();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.ChemicalEnergyDevice#getInstalledThermalPower <em>Installed Thermal Power</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Installed Thermal Power</em>'.
* @see demo.catalog.democatalog.ChemicalEnergyDevice#getInstalledThermalPower()
* @see #getChemicalEnergyDevice()
* @generated
*/
EAttribute getChemicalEnergyDevice_InstalledThermalPower();
/**
* Returns the meta object for class '{@link demo.catalog.democatalog.EnergyComponent <em>Energy Component</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Energy Component</em>'.
* @see demo.catalog.democatalog.EnergyComponent
* @generated
*/
EClass getEnergyComponent();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.EnergyComponent#getModelName <em>Model Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Model Name</em>'.
* @see demo.catalog.democatalog.EnergyComponent#getModelName()
* @see #getEnergyComponent()
* @generated
*/
EAttribute getEnergyComponent_ModelName();
/**
* Returns the meta object for the attribute '{@link demo.catalog.democatalog.EnergyComponent#getRevisionYear <em>Revision Year</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Revision Year</em>'.
* @see demo.catalog.democatalog.EnergyComponent#getRevisionYear()
* @see #getEnergyComponent()
* @generated
*/
EAttribute getEnergyComponent_RevisionYear();
/**
* Returns the meta object for the reference '{@link demo.catalog.democatalog.EnergyComponent#getProducedBy <em>Produced By</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Produced By</em>'.
* @see demo.catalog.democatalog.EnergyComponent#getProducedBy()
* @see #getEnergyComponent()
* @generated
*/
EReference getEnergyComponent_ProducedBy();
/**
* Returns the meta object for enum '{@link demo.catalog.democatalog.BoilerType <em>Boiler Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for enum '<em>Boiler Type</em>'.
* @see demo.catalog.democatalog.BoilerType
* @generated
*/
EEnum getBoilerType();
/**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the factory that creates the instances of the model.
* @generated
*/
democatalogFactory getdemocatalogFactory();
/**
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each operation of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @generated
*/
interface Literals {
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl <em>Energy Components Catalog</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getEnergyComponentsCatalog()
* @generated
*/
EClass ENERGY_COMPONENTS_CATALOG = eINSTANCE.getEnergyComponentsCatalog();
/**
* The meta object literal for the '<em><b>Author</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENERGY_COMPONENTS_CATALOG__AUTHOR = eINSTANCE.getEnergyComponentsCatalog_Author();
/**
* The meta object literal for the '<em><b>Boilers</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENERGY_COMPONENTS_CATALOG__BOILERS = eINSTANCE.getEnergyComponentsCatalog_Boilers();
/**
* The meta object literal for the '<em><b>Chps</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENERGY_COMPONENTS_CATALOG__CHPS = eINSTANCE.getEnergyComponentsCatalog_Chps();
/**
* The meta object literal for the '<em><b>Solarpanels</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENERGY_COMPONENTS_CATALOG__SOLARPANELS = eINSTANCE.getEnergyComponentsCatalog_Solarpanels();
/**
* The meta object literal for the '<em><b>Inverters</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENERGY_COMPONENTS_CATALOG__INVERTERS = eINSTANCE.getEnergyComponentsCatalog_Inverters();
/**
* The meta object literal for the '<em><b>Manufacturers</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENERGY_COMPONENTS_CATALOG__MANUFACTURERS = eINSTANCE.getEnergyComponentsCatalog_Manufacturers();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.BoilerImpl <em>Boiler</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.BoilerImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getBoiler()
* @generated
*/
EClass BOILER = eINSTANCE.getBoiler();
/**
* The meta object literal for the '<em><b>Boiler Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute BOILER__BOILER_TYPE = eINSTANCE.getBoiler_BoilerType();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.CombinedHeatPowerImpl <em>Combined Heat Power</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.CombinedHeatPowerImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getCombinedHeatPower()
* @generated
*/
EClass COMBINED_HEAT_POWER = eINSTANCE.getCombinedHeatPower();
/**
* The meta object literal for the '<em><b>Thermal Efficiency</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute COMBINED_HEAT_POWER__THERMAL_EFFICIENCY = eINSTANCE.getCombinedHeatPower_ThermalEfficiency();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.SolarPanelImpl <em>Solar Panel</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.SolarPanelImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getSolarPanel()
* @generated
*/
EClass SOLAR_PANEL = eINSTANCE.getSolarPanel();
/**
* The meta object literal for the '<em><b>Nominal Power</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SOLAR_PANEL__NOMINAL_POWER = eINSTANCE.getSolarPanel_NominalPower();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.InverterImpl <em>Inverter</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.InverterImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getInverter()
* @generated
*/
EClass INVERTER = eINSTANCE.getInverter();
/**
* The meta object literal for the '<em><b>Nominal Power</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute INVERTER__NOMINAL_POWER = eINSTANCE.getInverter_NominalPower();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.ManufacturerImpl <em>Manufacturer</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ManufacturerImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getManufacturer()
* @generated
*/
EClass MANUFACTURER = eINSTANCE.getManufacturer();
/**
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute MANUFACTURER__NAME = eINSTANCE.getManufacturer_Name();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl <em>Chemical Energy Device</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getChemicalEnergyDevice()
* @generated
*/
EClass CHEMICAL_ENERGY_DEVICE = eINSTANCE.getChemicalEnergyDevice();
/**
* The meta object literal for the '<em><b>Installed Thermal Power</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER = eINSTANCE
.getChemicalEnergyDevice_InstalledThermalPower();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.impl.EnergyComponentImpl <em>Energy Component</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.impl.EnergyComponentImpl
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getEnergyComponent()
* @generated
*/
EClass ENERGY_COMPONENT = eINSTANCE.getEnergyComponent();
/**
* The meta object literal for the '<em><b>Model Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENERGY_COMPONENT__MODEL_NAME = eINSTANCE.getEnergyComponent_ModelName();
/**
* The meta object literal for the '<em><b>Revision Year</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ENERGY_COMPONENT__REVISION_YEAR = eINSTANCE.getEnergyComponent_RevisionYear();
/**
* The meta object literal for the '<em><b>Produced By</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference ENERGY_COMPONENT__PRODUCED_BY = eINSTANCE.getEnergyComponent_ProducedBy();
/**
* The meta object literal for the '{@link demo.catalog.democatalog.BoilerType <em>Boiler Type</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see demo.catalog.democatalog.BoilerType
* @see demo.catalog.democatalog.impl.democatalogPackageImpl#getBoilerType()
* @generated
*/
EEnum BOILER_TYPE = eINSTANCE.getBoilerType();
}
} //democatalogPackage
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.Boiler;
import demo.catalog.democatalog.BoilerType;
import demo.catalog.democatalog.democatalogPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Boiler</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.impl.BoilerImpl#getBoilerType <em>Boiler Type</em>}</li>
* </ul>
*
* @generated
*/
public class BoilerImpl extends ChemicalEnergyDeviceImpl implements Boiler {
/**
* The default value of the '{@link #getBoilerType() <em>Boiler Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBoilerType()
* @generated
* @ordered
*/
protected static final BoilerType BOILER_TYPE_EDEFAULT = BoilerType.LOW_TEMPERATURE;
/**
* The cached value of the '{@link #getBoilerType() <em>Boiler Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBoilerType()
* @generated
* @ordered
*/
protected BoilerType boilerType = BOILER_TYPE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected BoilerImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.BOILER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BoilerType getBoilerType() {
return boilerType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBoilerType(BoilerType newBoilerType) {
BoilerType oldBoilerType = boilerType;
boilerType = newBoilerType == null ? BOILER_TYPE_EDEFAULT : newBoilerType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.BOILER__BOILER_TYPE, oldBoilerType,
boilerType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case democatalogPackage.BOILER__BOILER_TYPE:
return getBoilerType();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case democatalogPackage.BOILER__BOILER_TYPE:
setBoilerType((BoilerType) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case democatalogPackage.BOILER__BOILER_TYPE:
setBoilerType(BOILER_TYPE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.BOILER__BOILER_TYPE:
return boilerType != BOILER_TYPE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (boilerType: ");
result.append(boilerType);
result.append(')');
return result.toString();
}
} //BoilerImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.ChemicalEnergyDevice;
import demo.catalog.democatalog.democatalogPackage;
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>Chemical Energy Device</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.impl.ChemicalEnergyDeviceImpl#getInstalledThermalPower <em>Installed Thermal Power</em>}</li>
* </ul>
*
* @generated
*/
public abstract class ChemicalEnergyDeviceImpl extends EnergyComponentImpl implements ChemicalEnergyDevice {
/**
* 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 double INSTALLED_THERMAL_POWER_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getInstalledThermalPower() <em>Installed Thermal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstalledThermalPower()
* @generated
* @ordered
*/
protected double installedThermalPower = INSTALLED_THERMAL_POWER_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ChemicalEnergyDeviceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.CHEMICAL_ENERGY_DEVICE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public double getInstalledThermalPower() {
return installedThermalPower;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setInstalledThermalPower(double newInstalledThermalPower) {
double oldInstalledThermalPower = installedThermalPower;
installedThermalPower = newInstalledThermalPower;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
democatalogPackage.CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER, oldInstalledThermalPower,
installedThermalPower));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case democatalogPackage.CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
return getInstalledThermalPower();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case democatalogPackage.CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
setInstalledThermalPower((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case democatalogPackage.CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
setInstalledThermalPower(INSTALLED_THERMAL_POWER_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER:
return installedThermalPower != INSTALLED_THERMAL_POWER_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(')');
return result.toString();
}
} //ChemicalEnergyDeviceImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.CombinedHeatPower;
import demo.catalog.democatalog.democatalogPackage;
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>Combined Heat Power</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.impl.CombinedHeatPowerImpl#getThermalEfficiency <em>Thermal Efficiency</em>}</li>
* </ul>
*
* @generated
*/
public class CombinedHeatPowerImpl extends ChemicalEnergyDeviceImpl implements CombinedHeatPower {
/**
* The default value of the '{@link #getThermalEfficiency() <em>Thermal Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalEfficiency()
* @generated
* @ordered
*/
protected static final double THERMAL_EFFICIENCY_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getThermalEfficiency() <em>Thermal Efficiency</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThermalEfficiency()
* @generated
* @ordered
*/
protected double thermalEfficiency = THERMAL_EFFICIENCY_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CombinedHeatPowerImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.COMBINED_HEAT_POWER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public double getThermalEfficiency() {
return thermalEfficiency;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setThermalEfficiency(double newThermalEfficiency) {
double oldThermalEfficiency = thermalEfficiency;
thermalEfficiency = newThermalEfficiency;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
democatalogPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY, oldThermalEfficiency,
thermalEfficiency));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case democatalogPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
return getThermalEfficiency();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case democatalogPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
setThermalEfficiency((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case democatalogPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
setThermalEfficiency(THERMAL_EFFICIENCY_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.COMBINED_HEAT_POWER__THERMAL_EFFICIENCY:
return thermalEfficiency != THERMAL_EFFICIENCY_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(" (thermalEfficiency: ");
result.append(thermalEfficiency);
result.append(')');
return result.toString();
}
} //CombinedHeatPowerImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.EnergyComponent;
import demo.catalog.democatalog.Manufacturer;
import demo.catalog.democatalog.democatalogPackage;
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;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Energy Component</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentImpl#getModelName <em>Model Name</em>}</li>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentImpl#getRevisionYear <em>Revision Year</em>}</li>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentImpl#getProducedBy <em>Produced By</em>}</li>
* </ul>
*
* @generated
*/
public abstract class EnergyComponentImpl extends MinimalEObjectImpl.Container implements EnergyComponent {
/**
* The default value of the '{@link #getModelName() <em>Model Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModelName()
* @generated
* @ordered
*/
protected static final String MODEL_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getModelName() <em>Model Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModelName()
* @generated
* @ordered
*/
protected String modelName = MODEL_NAME_EDEFAULT;
/**
* The default value of the '{@link #getRevisionYear() <em>Revision Year</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRevisionYear()
* @generated
* @ordered
*/
protected static final int REVISION_YEAR_EDEFAULT = 0;
/**
* The cached value of the '{@link #getRevisionYear() <em>Revision Year</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRevisionYear()
* @generated
* @ordered
*/
protected int revisionYear = REVISION_YEAR_EDEFAULT;
/**
* The cached value of the '{@link #getProducedBy() <em>Produced By</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getProducedBy()
* @generated
* @ordered
*/
protected Manufacturer producedBy;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EnergyComponentImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.ENERGY_COMPONENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getModelName() {
return modelName;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setModelName(String newModelName) {
String oldModelName = modelName;
modelName = newModelName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.ENERGY_COMPONENT__MODEL_NAME,
oldModelName, modelName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getRevisionYear() {
return revisionYear;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRevisionYear(int newRevisionYear) {
int oldRevisionYear = revisionYear;
revisionYear = newRevisionYear;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.ENERGY_COMPONENT__REVISION_YEAR,
oldRevisionYear, revisionYear));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Manufacturer getProducedBy() {
if (producedBy != null && producedBy.eIsProxy()) {
InternalEObject oldProducedBy = (InternalEObject) producedBy;
producedBy = (Manufacturer) eResolveProxy(oldProducedBy);
if (producedBy != oldProducedBy) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
democatalogPackage.ENERGY_COMPONENT__PRODUCED_BY, oldProducedBy, producedBy));
}
}
return producedBy;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Manufacturer basicGetProducedBy() {
return producedBy;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setProducedBy(Manufacturer newProducedBy) {
Manufacturer oldProducedBy = producedBy;
producedBy = newProducedBy;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.ENERGY_COMPONENT__PRODUCED_BY,
oldProducedBy, producedBy));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case democatalogPackage.ENERGY_COMPONENT__MODEL_NAME:
return getModelName();
case democatalogPackage.ENERGY_COMPONENT__REVISION_YEAR:
return getRevisionYear();
case democatalogPackage.ENERGY_COMPONENT__PRODUCED_BY:
if (resolve)
return getProducedBy();
return basicGetProducedBy();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case democatalogPackage.ENERGY_COMPONENT__MODEL_NAME:
setModelName((String) newValue);
return;
case democatalogPackage.ENERGY_COMPONENT__REVISION_YEAR:
setRevisionYear((Integer) newValue);
return;
case democatalogPackage.ENERGY_COMPONENT__PRODUCED_BY:
setProducedBy((Manufacturer) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case democatalogPackage.ENERGY_COMPONENT__MODEL_NAME:
setModelName(MODEL_NAME_EDEFAULT);
return;
case democatalogPackage.ENERGY_COMPONENT__REVISION_YEAR:
setRevisionYear(REVISION_YEAR_EDEFAULT);
return;
case democatalogPackage.ENERGY_COMPONENT__PRODUCED_BY:
setProducedBy((Manufacturer) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.ENERGY_COMPONENT__MODEL_NAME:
return MODEL_NAME_EDEFAULT == null ? modelName != null : !MODEL_NAME_EDEFAULT.equals(modelName);
case democatalogPackage.ENERGY_COMPONENT__REVISION_YEAR:
return revisionYear != REVISION_YEAR_EDEFAULT;
case democatalogPackage.ENERGY_COMPONENT__PRODUCED_BY:
return producedBy != 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(" (modelName: ");
result.append(modelName);
result.append(", revisionYear: ");
result.append(revisionYear);
result.append(')');
return result.toString();
}
} //EnergyComponentImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.Boiler;
import demo.catalog.democatalog.CombinedHeatPower;
import demo.catalog.democatalog.EnergyComponentsCatalog;
import demo.catalog.democatalog.Inverter;
import demo.catalog.democatalog.Manufacturer;
import demo.catalog.democatalog.SolarPanel;
import demo.catalog.democatalog.democatalogPackage;
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>Energy Components Catalog</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl#getAuthor <em>Author</em>}</li>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl#getBoilers <em>Boilers</em>}</li>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl#getChps <em>Chps</em>}</li>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl#getSolarpanels <em>Solarpanels</em>}</li>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl#getInverters <em>Inverters</em>}</li>
* <li>{@link demo.catalog.democatalog.impl.EnergyComponentsCatalogImpl#getManufacturers <em>Manufacturers</em>}</li>
* </ul>
*
* @generated
*/
public class EnergyComponentsCatalogImpl extends MinimalEObjectImpl.Container implements EnergyComponentsCatalog {
/**
* The default value of the '{@link #getAuthor() <em>Author</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAuthor()
* @generated
* @ordered
*/
protected static final String AUTHOR_EDEFAULT = null;
/**
* The cached value of the '{@link #getAuthor() <em>Author</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAuthor()
* @generated
* @ordered
*/
protected String author = AUTHOR_EDEFAULT;
/**
* The cached value of the '{@link #getBoilers() <em>Boilers</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBoilers()
* @generated
* @ordered
*/
protected EList<Boiler> boilers;
/**
* The cached value of the '{@link #getChps() <em>Chps</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getChps()
* @generated
* @ordered
*/
protected EList<CombinedHeatPower> chps;
/**
* The cached value of the '{@link #getSolarpanels() <em>Solarpanels</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSolarpanels()
* @generated
* @ordered
*/
protected EList<SolarPanel> solarpanels;
/**
* The cached value of the '{@link #getInverters() <em>Inverters</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInverters()
* @generated
* @ordered
*/
protected EList<Inverter> inverters;
/**
* The cached value of the '{@link #getManufacturers() <em>Manufacturers</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getManufacturers()
* @generated
* @ordered
*/
protected EList<Manufacturer> manufacturers;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EnergyComponentsCatalogImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.ENERGY_COMPONENTS_CATALOG;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getAuthor() {
return author;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAuthor(String newAuthor) {
String oldAuthor = author;
author = newAuthor;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.ENERGY_COMPONENTS_CATALOG__AUTHOR,
oldAuthor, author));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Boiler> getBoilers() {
if (boilers == null) {
boilers = new EObjectContainmentEList<Boiler>(Boiler.class, this,
democatalogPackage.ENERGY_COMPONENTS_CATALOG__BOILERS);
}
return boilers;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<CombinedHeatPower> getChps() {
if (chps == null) {
chps = new EObjectContainmentEList<CombinedHeatPower>(CombinedHeatPower.class, this,
democatalogPackage.ENERGY_COMPONENTS_CATALOG__CHPS);
}
return chps;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<SolarPanel> getSolarpanels() {
if (solarpanels == null) {
solarpanels = new EObjectContainmentEList<SolarPanel>(SolarPanel.class, this,
democatalogPackage.ENERGY_COMPONENTS_CATALOG__SOLARPANELS);
}
return solarpanels;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Inverter> getInverters() {
if (inverters == null) {
inverters = new EObjectContainmentEList<Inverter>(Inverter.class, this,
democatalogPackage.ENERGY_COMPONENTS_CATALOG__INVERTERS);
}
return inverters;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Manufacturer> getManufacturers() {
if (manufacturers == null) {
manufacturers = new EObjectContainmentEList<Manufacturer>(Manufacturer.class, this,
democatalogPackage.ENERGY_COMPONENTS_CATALOG__MANUFACTURERS);
}
return manufacturers;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__BOILERS:
return ((InternalEList<?>) getBoilers()).basicRemove(otherEnd, msgs);
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__CHPS:
return ((InternalEList<?>) getChps()).basicRemove(otherEnd, msgs);
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__SOLARPANELS:
return ((InternalEList<?>) getSolarpanels()).basicRemove(otherEnd, msgs);
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__INVERTERS:
return ((InternalEList<?>) getInverters()).basicRemove(otherEnd, msgs);
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__MANUFACTURERS:
return ((InternalEList<?>) getManufacturers()).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 democatalogPackage.ENERGY_COMPONENTS_CATALOG__AUTHOR:
return getAuthor();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__BOILERS:
return getBoilers();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__CHPS:
return getChps();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__SOLARPANELS:
return getSolarpanels();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__INVERTERS:
return getInverters();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__MANUFACTURERS:
return getManufacturers();
}
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 democatalogPackage.ENERGY_COMPONENTS_CATALOG__AUTHOR:
setAuthor((String) newValue);
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__BOILERS:
getBoilers().clear();
getBoilers().addAll((Collection<? extends Boiler>) newValue);
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__CHPS:
getChps().clear();
getChps().addAll((Collection<? extends CombinedHeatPower>) newValue);
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__SOLARPANELS:
getSolarpanels().clear();
getSolarpanels().addAll((Collection<? extends SolarPanel>) newValue);
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__INVERTERS:
getInverters().clear();
getInverters().addAll((Collection<? extends Inverter>) newValue);
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__MANUFACTURERS:
getManufacturers().clear();
getManufacturers().addAll((Collection<? extends Manufacturer>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__AUTHOR:
setAuthor(AUTHOR_EDEFAULT);
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__BOILERS:
getBoilers().clear();
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__CHPS:
getChps().clear();
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__SOLARPANELS:
getSolarpanels().clear();
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__INVERTERS:
getInverters().clear();
return;
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__MANUFACTURERS:
getManufacturers().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__AUTHOR:
return AUTHOR_EDEFAULT == null ? author != null : !AUTHOR_EDEFAULT.equals(author);
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__BOILERS:
return boilers != null && !boilers.isEmpty();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__CHPS:
return chps != null && !chps.isEmpty();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__SOLARPANELS:
return solarpanels != null && !solarpanels.isEmpty();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__INVERTERS:
return inverters != null && !inverters.isEmpty();
case democatalogPackage.ENERGY_COMPONENTS_CATALOG__MANUFACTURERS:
return manufacturers != null && !manufacturers.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(" (author: ");
result.append(author);
result.append(')');
return result.toString();
}
} //EnergyComponentsCatalogImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.Inverter;
import demo.catalog.democatalog.democatalogPackage;
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>Inverter</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.impl.InverterImpl#getNominalPower <em>Nominal Power</em>}</li>
* </ul>
*
* @generated
*/
public class InverterImpl extends EnergyComponentImpl implements Inverter {
/**
* 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 double NOMINAL_POWER_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getNominalPower() <em>Nominal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNominalPower()
* @generated
* @ordered
*/
protected double nominalPower = NOMINAL_POWER_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InverterImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.INVERTER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public double getNominalPower() {
return nominalPower;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNominalPower(double newNominalPower) {
double oldNominalPower = nominalPower;
nominalPower = newNominalPower;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.INVERTER__NOMINAL_POWER,
oldNominalPower, nominalPower));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case democatalogPackage.INVERTER__NOMINAL_POWER:
return getNominalPower();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case democatalogPackage.INVERTER__NOMINAL_POWER:
setNominalPower((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case democatalogPackage.INVERTER__NOMINAL_POWER:
setNominalPower(NOMINAL_POWER_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.INVERTER__NOMINAL_POWER:
return nominalPower != NOMINAL_POWER_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(" (nominalPower: ");
result.append(nominalPower);
result.append(')');
return result.toString();
}
} //InverterImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.Manufacturer;
import demo.catalog.democatalog.democatalogPackage;
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 demo.catalog.democatalog.impl.ManufacturerImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public class ManufacturerImpl extends MinimalEObjectImpl.Container implements Manufacturer {
/**
* 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 ManufacturerImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.MANUFACTURER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.MANUFACTURER__NAME, oldName,
name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case democatalogPackage.MANUFACTURER__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 democatalogPackage.MANUFACTURER__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 democatalogPackage.MANUFACTURER__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.MANUFACTURER__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(" (name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //ManufacturerImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.SolarPanel;
import demo.catalog.democatalog.democatalogPackage;
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 Panel</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link demo.catalog.democatalog.impl.SolarPanelImpl#getNominalPower <em>Nominal Power</em>}</li>
* </ul>
*
* @generated
*/
public class SolarPanelImpl extends EnergyComponentImpl implements SolarPanel {
/**
* 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 double NOMINAL_POWER_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getNominalPower() <em>Nominal Power</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNominalPower()
* @generated
* @ordered
*/
protected double nominalPower = NOMINAL_POWER_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected SolarPanelImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return democatalogPackage.Literals.SOLAR_PANEL;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public double getNominalPower() {
return nominalPower;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNominalPower(double newNominalPower) {
double oldNominalPower = nominalPower;
nominalPower = newNominalPower;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, democatalogPackage.SOLAR_PANEL__NOMINAL_POWER,
oldNominalPower, nominalPower));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case democatalogPackage.SOLAR_PANEL__NOMINAL_POWER:
return getNominalPower();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case democatalogPackage.SOLAR_PANEL__NOMINAL_POWER:
setNominalPower((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case democatalogPackage.SOLAR_PANEL__NOMINAL_POWER:
setNominalPower(NOMINAL_POWER_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case democatalogPackage.SOLAR_PANEL__NOMINAL_POWER:
return nominalPower != NOMINAL_POWER_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(" (nominalPower: ");
result.append(nominalPower);
result.append(')');
return result.toString();
}
} //SolarPanelImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class democatalogFactoryImpl extends EFactoryImpl implements democatalogFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static democatalogFactory init() {
try {
democatalogFactory thedemocatalogFactory = (democatalogFactory) EPackage.Registry.INSTANCE
.getEFactory(democatalogPackage.eNS_URI);
if (thedemocatalogFactory != null) {
return thedemocatalogFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new democatalogFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public democatalogFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case democatalogPackage.ENERGY_COMPONENTS_CATALOG:
return createEnergyComponentsCatalog();
case democatalogPackage.BOILER:
return createBoiler();
case democatalogPackage.COMBINED_HEAT_POWER:
return createCombinedHeatPower();
case democatalogPackage.SOLAR_PANEL:
return createSolarPanel();
case democatalogPackage.INVERTER:
return createInverter();
case democatalogPackage.MANUFACTURER:
return createManufacturer();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
case democatalogPackage.BOILER_TYPE:
return createBoilerTypeFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
case democatalogPackage.BOILER_TYPE:
return convertBoilerTypeToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EnergyComponentsCatalog createEnergyComponentsCatalog() {
EnergyComponentsCatalogImpl energyComponentsCatalog = new EnergyComponentsCatalogImpl();
return energyComponentsCatalog;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Boiler createBoiler() {
BoilerImpl boiler = new BoilerImpl();
return boiler;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CombinedHeatPower createCombinedHeatPower() {
CombinedHeatPowerImpl combinedHeatPower = new CombinedHeatPowerImpl();
return combinedHeatPower;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SolarPanel createSolarPanel() {
SolarPanelImpl solarPanel = new SolarPanelImpl();
return solarPanel;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Inverter createInverter() {
InverterImpl inverter = new InverterImpl();
return inverter;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Manufacturer createManufacturer() {
ManufacturerImpl manufacturer = new ManufacturerImpl();
return manufacturer;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BoilerType createBoilerTypeFromString(EDataType eDataType, String initialValue) {
BoilerType result = BoilerType.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertBoilerTypeToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public democatalogPackage getdemocatalogPackage() {
return (democatalogPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static democatalogPackage getPackage() {
return democatalogPackage.eINSTANCE;
}
} //democatalogFactoryImpl
/**
*/
package demo.catalog.democatalog.impl;
import demo.catalog.democatalog.Boiler;
import demo.catalog.democatalog.BoilerType;
import demo.catalog.democatalog.ChemicalEnergyDevice;
import demo.catalog.democatalog.CombinedHeatPower;
import demo.catalog.democatalog.EnergyComponent;
import demo.catalog.democatalog.EnergyComponentsCatalog;
import demo.catalog.democatalog.Inverter;
import demo.catalog.democatalog.Manufacturer;
import demo.catalog.democatalog.SolarPanel;
import demo.catalog.democatalog.democatalogFactory;
import demo.catalog.democatalog.democatalogPackage;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
* @generated
*/
public class democatalogPackageImpl extends EPackageImpl implements democatalogPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass energyComponentsCatalogEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass boilerEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass combinedHeatPowerEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass solarPanelEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass inverterEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass manufacturerEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass chemicalEnergyDeviceEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass energyComponentEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EEnum boilerTypeEEnum = null;
/**
* Creates an instance of the model <b>Package</b>, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
* <p>Note: the correct way to create the package is via the static
* factory method {@link #init init()}, which also performs
* initialization of the package, or returns the registered package,
* if one already exists.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see demo.catalog.democatalog.democatalogPackage#eNS_URI
* @see #init()
* @generated
*/
private democatalogPackageImpl() {
super(eNS_URI, democatalogFactory.eINSTANCE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link democatalogPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static democatalogPackage init() {
if (isInited)
return (democatalogPackage) EPackage.Registry.INSTANCE.getEPackage(democatalogPackage.eNS_URI);
// Obtain or create and register package
Object registereddemocatalogPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
democatalogPackageImpl thedemocatalogPackage = registereddemocatalogPackage instanceof democatalogPackageImpl
? (democatalogPackageImpl) registereddemocatalogPackage
: new democatalogPackageImpl();
isInited = true;
// Create package meta-data objects
thedemocatalogPackage.createPackageContents();
// Initialize created meta-data
thedemocatalogPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
thedemocatalogPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(democatalogPackage.eNS_URI, thedemocatalogPackage);
return thedemocatalogPackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getEnergyComponentsCatalog() {
return energyComponentsCatalogEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getEnergyComponentsCatalog_Author() {
return (EAttribute) energyComponentsCatalogEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getEnergyComponentsCatalog_Boilers() {
return (EReference) energyComponentsCatalogEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getEnergyComponentsCatalog_Chps() {
return (EReference) energyComponentsCatalogEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getEnergyComponentsCatalog_Solarpanels() {
return (EReference) energyComponentsCatalogEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getEnergyComponentsCatalog_Inverters() {
return (EReference) energyComponentsCatalogEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getEnergyComponentsCatalog_Manufacturers() {
return (EReference) energyComponentsCatalogEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getBoiler() {
return boilerEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getBoiler_BoilerType() {
return (EAttribute) boilerEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getCombinedHeatPower() {
return combinedHeatPowerEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getCombinedHeatPower_ThermalEfficiency() {
return (EAttribute) combinedHeatPowerEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getSolarPanel() {
return solarPanelEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getSolarPanel_NominalPower() {
return (EAttribute) solarPanelEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getInverter() {
return inverterEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getInverter_NominalPower() {
return (EAttribute) inverterEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getManufacturer() {
return manufacturerEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getManufacturer_Name() {
return (EAttribute) manufacturerEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getChemicalEnergyDevice() {
return chemicalEnergyDeviceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getChemicalEnergyDevice_InstalledThermalPower() {
return (EAttribute) chemicalEnergyDeviceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getEnergyComponent() {
return energyComponentEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getEnergyComponent_ModelName() {
return (EAttribute) energyComponentEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getEnergyComponent_RevisionYear() {
return (EAttribute) energyComponentEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getEnergyComponent_ProducedBy() {
return (EReference) energyComponentEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EEnum getBoilerType() {
return boilerTypeEEnum;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public democatalogFactory getdemocatalogFactory() {
return (democatalogFactory) getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isCreated = false;
/**
* Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createPackageContents() {
if (isCreated)
return;
isCreated = true;
// Create classes and their features
energyComponentsCatalogEClass = createEClass(ENERGY_COMPONENTS_CATALOG);
createEAttribute(energyComponentsCatalogEClass, ENERGY_COMPONENTS_CATALOG__AUTHOR);
createEReference(energyComponentsCatalogEClass, ENERGY_COMPONENTS_CATALOG__BOILERS);
createEReference(energyComponentsCatalogEClass, ENERGY_COMPONENTS_CATALOG__CHPS);
createEReference(energyComponentsCatalogEClass, ENERGY_COMPONENTS_CATALOG__SOLARPANELS);
createEReference(energyComponentsCatalogEClass, ENERGY_COMPONENTS_CATALOG__INVERTERS);
createEReference(energyComponentsCatalogEClass, ENERGY_COMPONENTS_CATALOG__MANUFACTURERS);
boilerEClass = createEClass(BOILER);
createEAttribute(boilerEClass, BOILER__BOILER_TYPE);
combinedHeatPowerEClass = createEClass(COMBINED_HEAT_POWER);
createEAttribute(combinedHeatPowerEClass, COMBINED_HEAT_POWER__THERMAL_EFFICIENCY);
solarPanelEClass = createEClass(SOLAR_PANEL);
createEAttribute(solarPanelEClass, SOLAR_PANEL__NOMINAL_POWER);
inverterEClass = createEClass(INVERTER);
createEAttribute(inverterEClass, INVERTER__NOMINAL_POWER);
manufacturerEClass = createEClass(MANUFACTURER);
createEAttribute(manufacturerEClass, MANUFACTURER__NAME);
chemicalEnergyDeviceEClass = createEClass(CHEMICAL_ENERGY_DEVICE);
createEAttribute(chemicalEnergyDeviceEClass, CHEMICAL_ENERGY_DEVICE__INSTALLED_THERMAL_POWER);
energyComponentEClass = createEClass(ENERGY_COMPONENT);
createEAttribute(energyComponentEClass, ENERGY_COMPONENT__MODEL_NAME);
createEAttribute(energyComponentEClass, ENERGY_COMPONENT__REVISION_YEAR);
createEReference(energyComponentEClass, ENERGY_COMPONENT__PRODUCED_BY);
// Create enums
boilerTypeEEnum = createEEnum(BOILER_TYPE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isInitialized = false;
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized)
return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
boilerEClass.getESuperTypes().add(this.getChemicalEnergyDevice());
combinedHeatPowerEClass.getESuperTypes().add(this.getChemicalEnergyDevice());
solarPanelEClass.getESuperTypes().add(this.getEnergyComponent());
inverterEClass.getESuperTypes().add(this.getEnergyComponent());
chemicalEnergyDeviceEClass.getESuperTypes().add(this.getEnergyComponent());
// Initialize classes, features, and operations; add parameters
initEClass(energyComponentsCatalogEClass, EnergyComponentsCatalog.class, "EnergyComponentsCatalog",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getEnergyComponentsCatalog_Author(), ecorePackage.getEString(), "author", null, 1, 1,
EnergyComponentsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEnergyComponentsCatalog_Boilers(), this.getBoiler(), null, "boilers", null, 0, -1,
EnergyComponentsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEnergyComponentsCatalog_Chps(), this.getCombinedHeatPower(), null, "chps", null, 0, -1,
EnergyComponentsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEnergyComponentsCatalog_Solarpanels(), this.getSolarPanel(), null, "solarpanels", null, 0, -1,
EnergyComponentsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEnergyComponentsCatalog_Inverters(), this.getInverter(), null, "inverters", null, 0, -1,
EnergyComponentsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEnergyComponentsCatalog_Manufacturers(), this.getManufacturer(), null, "manufacturers", null,
0, -1, EnergyComponentsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(boilerEClass, Boiler.class, "Boiler", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getBoiler_BoilerType(), this.getBoilerType(), "boilerType", null, 1, 1, Boiler.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(combinedHeatPowerEClass, CombinedHeatPower.class, "CombinedHeatPower", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getCombinedHeatPower_ThermalEfficiency(), ecorePackage.getEDouble(), "thermalEfficiency", null,
1, 1, CombinedHeatPower.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(solarPanelEClass, SolarPanel.class, "SolarPanel", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getSolarPanel_NominalPower(), ecorePackage.getEDouble(), "nominalPower", null, 1, 1,
SolarPanel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
initEClass(inverterEClass, Inverter.class, "Inverter", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getInverter_NominalPower(), ecorePackage.getEDouble(), "nominalPower", null, 1, 1,
Inverter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
initEClass(manufacturerEClass, Manufacturer.class, "Manufacturer", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getManufacturer_Name(), ecorePackage.getEString(), "name", null, 1, 1, Manufacturer.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(chemicalEnergyDeviceEClass, ChemicalEnergyDevice.class, "ChemicalEnergyDevice", IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getChemicalEnergyDevice_InstalledThermalPower(), ecorePackage.getEDouble(),
"installedThermalPower", null, 1, 1, ChemicalEnergyDevice.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(energyComponentEClass, EnergyComponent.class, "EnergyComponent", IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getEnergyComponent_ModelName(), ecorePackage.getEString(), "modelName", null, 1, 1,
EnergyComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
initEAttribute(getEnergyComponent_RevisionYear(), ecorePackage.getEInt(), "revisionYear", null, 0, 1,
EnergyComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
initEReference(getEnergyComponent_ProducedBy(), this.getManufacturer(), null, "producedBy", null, 1, 1,
EnergyComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
initEEnum(boilerTypeEEnum, BoilerType.class, "BoilerType");
addEEnumLiteral(boilerTypeEEnum, BoilerType.LOW_TEMPERATURE);
addEEnumLiteral(boilerTypeEEnum, BoilerType.CONDENSING);
// Create resource
createResource(eNS_URI);
}
} //democatalogPackageImpl
/**
*/
package demo.catalog.democatalog.util;
import demo.catalog.democatalog.*;
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 demo.catalog.democatalog.democatalogPackage
* @generated
*/
public class democatalogAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static democatalogPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public democatalogAdapterFactory() {
if (modelPackage == null) {
modelPackage = democatalogPackage.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 democatalogSwitch<Adapter> modelSwitch = new democatalogSwitch<Adapter>() {
@Override
public Adapter caseEnergyComponentsCatalog(EnergyComponentsCatalog object) {
return createEnergyComponentsCatalogAdapter();
}
@Override
public Adapter caseBoiler(Boiler object) {
return createBoilerAdapter();
}
@Override
public Adapter caseCombinedHeatPower(CombinedHeatPower object) {
return createCombinedHeatPowerAdapter();
}
@Override
public Adapter caseSolarPanel(SolarPanel object) {
return createSolarPanelAdapter();
}
@Override
public Adapter caseInverter(Inverter object) {
return createInverterAdapter();
}
@Override
public Adapter caseManufacturer(Manufacturer object) {
return createManufacturerAdapter();
}
@Override
public Adapter caseChemicalEnergyDevice(ChemicalEnergyDevice object) {
return createChemicalEnergyDeviceAdapter();
}
@Override
public Adapter caseEnergyComponent(EnergyComponent object) {
return createEnergyComponentAdapter();
}
@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 demo.catalog.democatalog.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 demo.catalog.democatalog.EnergyComponentsCatalog
* @generated
*/
public Adapter createEnergyComponentsCatalogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link demo.catalog.democatalog.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 demo.catalog.democatalog.Boiler
* @generated
*/
public Adapter createBoilerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link demo.catalog.democatalog.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 demo.catalog.democatalog.CombinedHeatPower
* @generated
*/
public Adapter createCombinedHeatPowerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link demo.catalog.democatalog.SolarPanel <em>Solar Panel</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 demo.catalog.democatalog.SolarPanel
* @generated
*/
public Adapter createSolarPanelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link demo.catalog.democatalog.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 demo.catalog.democatalog.Inverter
* @generated
*/
public Adapter createInverterAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link demo.catalog.democatalog.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 demo.catalog.democatalog.Manufacturer
* @generated
*/
public Adapter createManufacturerAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link demo.catalog.democatalog.ChemicalEnergyDevice <em>Chemical 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 demo.catalog.democatalog.ChemicalEnergyDevice
* @generated
*/
public Adapter createChemicalEnergyDeviceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link demo.catalog.democatalog.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 demo.catalog.democatalog.EnergyComponent
* @generated
*/
public Adapter createEnergyComponentAdapter() {
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;
}
} //democatalogAdapterFactory
/**
*/
package demo.catalog.democatalog.util;
import demo.catalog.democatalog.*;
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 demo.catalog.democatalog.democatalogPackage
* @generated
*/
public class democatalogSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static democatalogPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public democatalogSwitch() {
if (modelPackage == null) {
modelPackage = democatalogPackage.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 democatalogPackage.ENERGY_COMPONENTS_CATALOG: {
EnergyComponentsCatalog energyComponentsCatalog = (EnergyComponentsCatalog) theEObject;
T result = caseEnergyComponentsCatalog(energyComponentsCatalog);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case democatalogPackage.BOILER: {
Boiler boiler = (Boiler) theEObject;
T result = caseBoiler(boiler);
if (result == null)
result = caseChemicalEnergyDevice(boiler);
if (result == null)
result = caseEnergyComponent(boiler);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case democatalogPackage.COMBINED_HEAT_POWER: {
CombinedHeatPower combinedHeatPower = (CombinedHeatPower) theEObject;
T result = caseCombinedHeatPower(combinedHeatPower);
if (result == null)
result = caseChemicalEnergyDevice(combinedHeatPower);
if (result == null)
result = caseEnergyComponent(combinedHeatPower);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case democatalogPackage.SOLAR_PANEL: {
SolarPanel solarPanel = (SolarPanel) theEObject;
T result = caseSolarPanel(solarPanel);
if (result == null)
result = caseEnergyComponent(solarPanel);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case democatalogPackage.INVERTER: {
Inverter inverter = (Inverter) theEObject;
T result = caseInverter(inverter);
if (result == null)
result = caseEnergyComponent(inverter);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case democatalogPackage.MANUFACTURER: {
Manufacturer manufacturer = (Manufacturer) theEObject;
T result = caseManufacturer(manufacturer);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case democatalogPackage.CHEMICAL_ENERGY_DEVICE: {
ChemicalEnergyDevice chemicalEnergyDevice = (ChemicalEnergyDevice) theEObject;
T result = caseChemicalEnergyDevice(chemicalEnergyDevice);
if (result == null)
result = caseEnergyComponent(chemicalEnergyDevice);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case democatalogPackage.ENERGY_COMPONENT: {
EnergyComponent energyComponent = (EnergyComponent) theEObject;
T result = caseEnergyComponent(energyComponent);
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 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>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>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>Solar Panel</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 Panel</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSolarPanel(SolarPanel 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>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>Chemical 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>Chemical Energy Device</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseChemicalEnergyDevice(ChemicalEnergyDevice object) {
return null;
}
/**
* 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>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;
}
} //democatalogSwitch
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