getWindowTypes();
} // WindowCatalog
WindowType.java 0000664 0000000 0000000 00000012170 13753464163 0045731 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics /**
*/
package de.hftstuttgart.buildingphysics;
import org.eclipse.emf.ecore.EObject;
/**
*
* A representation of the model object 'Window Type'.
*
*
*
* The following features are supported:
*
*
* - {@link de.hftstuttgart.buildingphysics.WindowType#getId Id}
* - {@link de.hftstuttgart.buildingphysics.WindowType#getName Name}
* - {@link de.hftstuttgart.buildingphysics.WindowType#getUValue UValue}
* - {@link de.hftstuttgart.buildingphysics.WindowType#getGValue GValue}
* - {@link de.hftstuttgart.buildingphysics.WindowType#getGlazingNumber Glazing Number}
* - {@link de.hftstuttgart.buildingphysics.WindowType#getFrameRatio Frame Ratio}
*
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType()
* @model
* @generated
*/
public interface WindowType extends EObject {
/**
* Returns the value of the 'Id' attribute.
*
*
* @return the value of the 'Id' attribute.
* @see #setId(int)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_Id()
* @model id="true" required="true"
* @generated
*/
int getId();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#getId Id}' attribute.
*
*
* @param value the new value of the 'Id' attribute.
* @see #getId()
* @generated
*/
void setId(int value);
/**
* Returns the value of the 'Name' attribute.
*
*
* @return the value of the 'Name' attribute.
* @see #setName(String)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_Name()
* @model required="true"
* @generated
*/
String getName();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#getName Name}' attribute.
*
*
* @param value the new value of the 'Name' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the 'UValue' attribute.
*
*
* @return the value of the 'UValue' attribute.
* @see #setUValue(double)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_UValue()
* @model required="true"
* @generated
*/
double getUValue();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#getUValue UValue}' attribute.
*
*
* @param value the new value of the 'UValue' attribute.
* @see #getUValue()
* @generated
*/
void setUValue(double value);
/**
* Returns the value of the 'GValue' attribute.
*
*
* @return the value of the 'GValue' attribute.
* @see #setGValue(double)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_GValue()
* @model required="true"
* @generated
*/
double getGValue();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#getGValue GValue}' attribute.
*
*
* @param value the new value of the 'GValue' attribute.
* @see #getGValue()
* @generated
*/
void setGValue(double value);
/**
* Returns the value of the 'Glazing Number' attribute.
*
*
* @return the value of the 'Glazing Number' attribute.
* @see #setGlazingNumber(int)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_GlazingNumber()
* @model required="true"
* @generated
*/
int getGlazingNumber();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#getGlazingNumber Glazing Number}' attribute.
*
*
* @param value the new value of the 'Glazing Number' attribute.
* @see #getGlazingNumber()
* @generated
*/
void setGlazingNumber(int value);
/**
* Returns the value of the 'Frame Ratio' attribute.
*
*
*
* In % (between 0 and 100)
*
* @return the value of the 'Frame Ratio' attribute.
* @see #setFrameRatio(int)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_FrameRatio()
* @model required="true"
* @generated
*/
int getFrameRatio();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#getFrameRatio Frame Ratio}' attribute.
*
*
* @param value the new value of the 'Frame Ratio' attribute.
* @see #getFrameRatio()
* @generated
*/
void setFrameRatio(int value);
} // WindowType
impl/ 0000775 0000000 0000000 00000000000 13753464163 0043715 5 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics BuildingPhysicsCatalogImpl.java 0000664 0000000 0000000 00000023044 13753464163 0052000 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsCatalog;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.MaterialCatalog;
import de.hftstuttgart.buildingphysics.WindowCatalog;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
*
* An implementation of the model object 'Catalog'.
*
*
* The following features are implemented:
*
*
* - {@link de.hftstuttgart.buildingphysics.impl.BuildingPhysicsCatalogImpl#getAuthor Author}
* - {@link de.hftstuttgart.buildingphysics.impl.BuildingPhysicsCatalogImpl#getWindowCatalog Window Catalog}
* - {@link de.hftstuttgart.buildingphysics.impl.BuildingPhysicsCatalogImpl#getMaterialCatalog Material Catalog}
*
*
* @generated
*/
public class BuildingPhysicsCatalogImpl extends MinimalEObjectImpl.Container implements BuildingPhysicsCatalog {
/**
* The default value of the '{@link #getAuthor() Author}' attribute.
*
*
* @see #getAuthor()
* @generated
* @ordered
*/
protected static final String AUTHOR_EDEFAULT = null;
/**
* The cached value of the '{@link #getAuthor() Author}' attribute.
*
*
* @see #getAuthor()
* @generated
* @ordered
*/
protected String author = AUTHOR_EDEFAULT;
/**
* The cached value of the '{@link #getWindowCatalog() Window Catalog}' containment reference.
*
*
* @see #getWindowCatalog()
* @generated
* @ordered
*/
protected WindowCatalog windowCatalog;
/**
* The cached value of the '{@link #getMaterialCatalog() Material Catalog}' containment reference.
*
*
* @see #getMaterialCatalog()
* @generated
* @ordered
*/
protected MaterialCatalog materialCatalog;
/**
*
*
* @generated
*/
protected BuildingPhysicsCatalogImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BuildingPhysicsPackage.Literals.BUILDING_PHYSICS_CATALOG;
}
/**
*
*
* @generated
*/
public String getAuthor() {
return author;
}
/**
*
*
* @generated
*/
public void setAuthor(String newAuthor) {
String oldAuthor = author;
author = newAuthor;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__AUTHOR, oldAuthor, author));
}
/**
*
*
* @generated
*/
public WindowCatalog getWindowCatalog() {
return windowCatalog;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetWindowCatalog(WindowCatalog newWindowCatalog, NotificationChain msgs) {
WindowCatalog oldWindowCatalog = windowCatalog;
windowCatalog = newWindowCatalog;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG, oldWindowCatalog,
newWindowCatalog);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setWindowCatalog(WindowCatalog newWindowCatalog) {
if (newWindowCatalog != windowCatalog) {
NotificationChain msgs = null;
if (windowCatalog != null)
msgs = ((InternalEObject) windowCatalog).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG, null,
msgs);
if (newWindowCatalog != null)
msgs = ((InternalEObject) newWindowCatalog).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG, null,
msgs);
msgs = basicSetWindowCatalog(newWindowCatalog, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG, newWindowCatalog,
newWindowCatalog));
}
/**
*
*
* @generated
*/
public MaterialCatalog getMaterialCatalog() {
return materialCatalog;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetMaterialCatalog(MaterialCatalog newMaterialCatalog, NotificationChain msgs) {
MaterialCatalog oldMaterialCatalog = materialCatalog;
materialCatalog = newMaterialCatalog;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG, oldMaterialCatalog,
newMaterialCatalog);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setMaterialCatalog(MaterialCatalog newMaterialCatalog) {
if (newMaterialCatalog != materialCatalog) {
NotificationChain msgs = null;
if (materialCatalog != null)
msgs = ((InternalEObject) materialCatalog).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG,
null, msgs);
if (newMaterialCatalog != null)
msgs = ((InternalEObject) newMaterialCatalog).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG,
null, msgs);
msgs = basicSetMaterialCatalog(newMaterialCatalog, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG, newMaterialCatalog,
newMaterialCatalog));
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG:
return basicSetWindowCatalog(null, msgs);
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG:
return basicSetMaterialCatalog(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__AUTHOR:
return getAuthor();
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG:
return getWindowCatalog();
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG:
return getMaterialCatalog();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__AUTHOR:
setAuthor((String) newValue);
return;
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG:
setWindowCatalog((WindowCatalog) newValue);
return;
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG:
setMaterialCatalog((MaterialCatalog) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__AUTHOR:
setAuthor(AUTHOR_EDEFAULT);
return;
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG:
setWindowCatalog((WindowCatalog) null);
return;
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG:
setMaterialCatalog((MaterialCatalog) null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__AUTHOR:
return AUTHOR_EDEFAULT == null ? author != null : !AUTHOR_EDEFAULT.equals(author);
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG:
return windowCatalog != null;
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG:
return materialCatalog != null;
}
return super.eIsSet(featureID);
}
/**
*
*
* @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();
}
} //BuildingPhysicsCatalogImpl
BuildingPhysicsFactoryImpl.java 0000664 0000000 0000000 00000007313 13753464163 0052036 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.*;
import org.eclipse.emf.ecore.EClass;
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;
/**
*
* An implementation of the model Factory.
*
* @generated
*/
public class BuildingPhysicsFactoryImpl extends EFactoryImpl implements BuildingPhysicsFactory {
/**
* Creates the default factory implementation.
*
*
* @generated
*/
public static BuildingPhysicsFactory init() {
try {
BuildingPhysicsFactory theBuildingPhysicsFactory = (BuildingPhysicsFactory) EPackage.Registry.INSTANCE
.getEFactory(BuildingPhysicsPackage.eNS_URI);
if (theBuildingPhysicsFactory != null) {
return theBuildingPhysicsFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new BuildingPhysicsFactoryImpl();
}
/**
* Creates an instance of the factory.
*
*
* @generated
*/
public BuildingPhysicsFactoryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG:
return createBuildingPhysicsCatalog();
case BuildingPhysicsPackage.WINDOW_TYPE:
return createWindowType();
case BuildingPhysicsPackage.WINDOW_CATALOG:
return createWindowCatalog();
case BuildingPhysicsPackage.MATERIAL_CATALOG:
return createMaterialCatalog();
case BuildingPhysicsPackage.MATERIAL_CATEGORY:
return createMaterialCategory();
case BuildingPhysicsPackage.MATERIAL:
return createMaterial();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
*
*
* @generated
*/
public BuildingPhysicsCatalog createBuildingPhysicsCatalog() {
BuildingPhysicsCatalogImpl buildingPhysicsCatalog = new BuildingPhysicsCatalogImpl();
return buildingPhysicsCatalog;
}
/**
*
*
* @generated
*/
public WindowType createWindowType() {
WindowTypeImpl windowType = new WindowTypeImpl();
return windowType;
}
/**
*
*
* @generated
*/
public WindowCatalog createWindowCatalog() {
WindowCatalogImpl windowCatalog = new WindowCatalogImpl();
return windowCatalog;
}
/**
*
*
* @generated
*/
public MaterialCatalog createMaterialCatalog() {
MaterialCatalogImpl materialCatalog = new MaterialCatalogImpl();
return materialCatalog;
}
/**
*
*
* @generated
*/
public MaterialCategory createMaterialCategory() {
MaterialCategoryImpl materialCategory = new MaterialCategoryImpl();
return materialCategory;
}
/**
*
*
* @generated
*/
public Material createMaterial() {
MaterialImpl material = new MaterialImpl();
return material;
}
/**
*
*
* @generated
*/
public BuildingPhysicsPackage getBuildingPhysicsPackage() {
return (BuildingPhysicsPackage) getEPackage();
}
/**
*
*
* @deprecated
* @generated
*/
@Deprecated
public static BuildingPhysicsPackage getPackage() {
return BuildingPhysicsPackage.eINSTANCE;
}
} //BuildingPhysicsFactoryImpl
BuildingPhysicsPackageImpl.java 0000664 0000000 0000000 00000044457 13753464163 0051774 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsCatalog;
import de.hftstuttgart.buildingphysics.BuildingPhysicsFactory;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.Catalog;
import de.hftstuttgart.buildingphysics.Material;
import de.hftstuttgart.buildingphysics.MaterialCatalog;
import de.hftstuttgart.buildingphysics.MaterialCategory;
import de.hftstuttgart.buildingphysics.WindowCatalog;
import de.hftstuttgart.buildingphysics.WindowType;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
/**
*
* An implementation of the model Package.
*
* @generated
*/
public class BuildingPhysicsPackageImpl extends EPackageImpl implements BuildingPhysicsPackage {
/**
*
*
* @generated
*/
private EClass buildingPhysicsCatalogEClass = null;
/**
*
*
* @generated
*/
private EClass windowTypeEClass = null;
/**
*
*
* @generated
*/
private EClass catalogEClass = null;
/**
*
*
* @generated
*/
private EClass windowCatalogEClass = null;
/**
*
*
* @generated
*/
private EClass materialCatalogEClass = null;
/**
*
*
* @generated
*/
private EClass materialCategoryEClass = null;
/**
*
*
* @generated
*/
private EClass materialEClass = null;
/**
* Creates an instance of the model Package, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
* 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.
*
*
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#eNS_URI
* @see #init()
* @generated
*/
private BuildingPhysicsPackageImpl() {
super(eNS_URI, BuildingPhysicsFactory.eINSTANCE);
}
/**
*
*
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
*
*
This method is used to initialize {@link BuildingPhysicsPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
*
*
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static BuildingPhysicsPackage init() {
if (isInited)
return (BuildingPhysicsPackage) EPackage.Registry.INSTANCE.getEPackage(BuildingPhysicsPackage.eNS_URI);
// Obtain or create and register package
Object registeredBuildingPhysicsPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
BuildingPhysicsPackageImpl theBuildingPhysicsPackage = registeredBuildingPhysicsPackage instanceof BuildingPhysicsPackageImpl
? (BuildingPhysicsPackageImpl) registeredBuildingPhysicsPackage
: new BuildingPhysicsPackageImpl();
isInited = true;
// Create package meta-data objects
theBuildingPhysicsPackage.createPackageContents();
// Initialize created meta-data
theBuildingPhysicsPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theBuildingPhysicsPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(BuildingPhysicsPackage.eNS_URI, theBuildingPhysicsPackage);
return theBuildingPhysicsPackage;
}
/**
*
*
* @generated
*/
public EClass getBuildingPhysicsCatalog() {
return buildingPhysicsCatalogEClass;
}
/**
*
*
* @generated
*/
public EAttribute getBuildingPhysicsCatalog_Author() {
return (EAttribute) buildingPhysicsCatalogEClass.getEStructuralFeatures().get(0);
}
/**
*
*
* @generated
*/
public EReference getBuildingPhysicsCatalog_WindowCatalog() {
return (EReference) buildingPhysicsCatalogEClass.getEStructuralFeatures().get(1);
}
/**
*
*
* @generated
*/
public EReference getBuildingPhysicsCatalog_MaterialCatalog() {
return (EReference) buildingPhysicsCatalogEClass.getEStructuralFeatures().get(2);
}
/**
*
*
* @generated
*/
public EClass getWindowType() {
return windowTypeEClass;
}
/**
*
*
* @generated
*/
public EAttribute getWindowType_Id() {
return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(0);
}
/**
*
*
* @generated
*/
public EAttribute getWindowType_Name() {
return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(1);
}
/**
*
*
* @generated
*/
public EAttribute getWindowType_UValue() {
return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(2);
}
/**
*
*
* @generated
*/
public EAttribute getWindowType_GValue() {
return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(3);
}
/**
*
*
* @generated
*/
public EAttribute getWindowType_GlazingNumber() {
return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(4);
}
/**
*
*
* @generated
*/
public EAttribute getWindowType_FrameRatio() {
return (EAttribute) windowTypeEClass.getEStructuralFeatures().get(5);
}
/**
*
*
* @generated
*/
public EClass getCatalog() {
return catalogEClass;
}
/**
*
*
* @generated
*/
public EAttribute getCatalog_Name() {
return (EAttribute) catalogEClass.getEStructuralFeatures().get(0);
}
/**
*
*
* @generated
*/
public EAttribute getCatalog_Description() {
return (EAttribute) catalogEClass.getEStructuralFeatures().get(1);
}
/**
*
*
* @generated
*/
public EAttribute getCatalog_Source() {
return (EAttribute) catalogEClass.getEStructuralFeatures().get(2);
}
/**
*
*
* @generated
*/
public EClass getWindowCatalog() {
return windowCatalogEClass;
}
/**
*
*
* @generated
*/
public EReference getWindowCatalog_WindowTypes() {
return (EReference) windowCatalogEClass.getEStructuralFeatures().get(0);
}
/**
*
*
* @generated
*/
public EClass getMaterialCatalog() {
return materialCatalogEClass;
}
/**
*
*
* @generated
*/
public EReference getMaterialCatalog_MaterialCategories() {
return (EReference) materialCatalogEClass.getEStructuralFeatures().get(0);
}
/**
*
*
* @generated
*/
public EClass getMaterialCategory() {
return materialCategoryEClass;
}
/**
*
*
* @generated
*/
public EReference getMaterialCategory_Material() {
return (EReference) materialCategoryEClass.getEStructuralFeatures().get(0);
}
/**
*
*
* @generated
*/
public EAttribute getMaterialCategory_Name() {
return (EAttribute) materialCategoryEClass.getEStructuralFeatures().get(1);
}
/**
*
*
* @generated
*/
public EClass getMaterial() {
return materialEClass;
}
/**
*
*
* @generated
*/
public EAttribute getMaterial_Id() {
return (EAttribute) materialEClass.getEStructuralFeatures().get(0);
}
/**
*
*
* @generated
*/
public EAttribute getMaterial_Name() {
return (EAttribute) materialEClass.getEStructuralFeatures().get(1);
}
/**
*
*
* @generated
*/
public EAttribute getMaterial_Density() {
return (EAttribute) materialEClass.getEStructuralFeatures().get(2);
}
/**
*
*
* @generated
*/
public EAttribute getMaterial_HeatCapacity() {
return (EAttribute) materialEClass.getEStructuralFeatures().get(3);
}
/**
*
*
* @generated
*/
public EAttribute getMaterial_Conductivity() {
return (EAttribute) materialEClass.getEStructuralFeatures().get(4);
}
/**
*
*
* @generated
*/
public BuildingPhysicsFactory getBuildingPhysicsFactory() {
return (BuildingPhysicsFactory) getEFactoryInstance();
}
/**
*
*
* @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.
*
*
* @generated
*/
public void createPackageContents() {
if (isCreated)
return;
isCreated = true;
// Create classes and their features
buildingPhysicsCatalogEClass = createEClass(BUILDING_PHYSICS_CATALOG);
createEAttribute(buildingPhysicsCatalogEClass, BUILDING_PHYSICS_CATALOG__AUTHOR);
createEReference(buildingPhysicsCatalogEClass, BUILDING_PHYSICS_CATALOG__WINDOW_CATALOG);
createEReference(buildingPhysicsCatalogEClass, BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG);
windowTypeEClass = createEClass(WINDOW_TYPE);
createEAttribute(windowTypeEClass, WINDOW_TYPE__ID);
createEAttribute(windowTypeEClass, WINDOW_TYPE__NAME);
createEAttribute(windowTypeEClass, WINDOW_TYPE__UVALUE);
createEAttribute(windowTypeEClass, WINDOW_TYPE__GVALUE);
createEAttribute(windowTypeEClass, WINDOW_TYPE__GLAZING_NUMBER);
createEAttribute(windowTypeEClass, WINDOW_TYPE__FRAME_RATIO);
catalogEClass = createEClass(CATALOG);
createEAttribute(catalogEClass, CATALOG__NAME);
createEAttribute(catalogEClass, CATALOG__DESCRIPTION);
createEAttribute(catalogEClass, CATALOG__SOURCE);
windowCatalogEClass = createEClass(WINDOW_CATALOG);
createEReference(windowCatalogEClass, WINDOW_CATALOG__WINDOW_TYPES);
materialCatalogEClass = createEClass(MATERIAL_CATALOG);
createEReference(materialCatalogEClass, MATERIAL_CATALOG__MATERIAL_CATEGORIES);
materialCategoryEClass = createEClass(MATERIAL_CATEGORY);
createEReference(materialCategoryEClass, MATERIAL_CATEGORY__MATERIAL);
createEAttribute(materialCategoryEClass, MATERIAL_CATEGORY__NAME);
materialEClass = createEClass(MATERIAL);
createEAttribute(materialEClass, MATERIAL__ID);
createEAttribute(materialEClass, MATERIAL__NAME);
createEAttribute(materialEClass, MATERIAL__DENSITY);
createEAttribute(materialEClass, MATERIAL__HEAT_CAPACITY);
createEAttribute(materialEClass, MATERIAL__CONDUCTIVITY);
}
/**
*
*
* @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.
*
*
* @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
windowCatalogEClass.getESuperTypes().add(this.getCatalog());
materialCatalogEClass.getESuperTypes().add(this.getCatalog());
// Initialize classes, features, and operations; add parameters
initEClass(buildingPhysicsCatalogEClass, BuildingPhysicsCatalog.class, "BuildingPhysicsCatalog", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getBuildingPhysicsCatalog_Author(), ecorePackage.getEString(), "author", null, 1, 1,
BuildingPhysicsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getBuildingPhysicsCatalog_WindowCatalog(), this.getWindowCatalog(), null, "windowCatalog", null,
1, 1, BuildingPhysicsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getBuildingPhysicsCatalog_MaterialCatalog(), this.getMaterialCatalog(), null, "materialCatalog",
null, 1, 1, BuildingPhysicsCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(windowTypeEClass, WindowType.class, "WindowType", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getWindowType_Id(), ecorePackage.getEInt(), "id", null, 1, 1, WindowType.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWindowType_Name(), ecorePackage.getEString(), "name", null, 1, 1, WindowType.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWindowType_UValue(), ecorePackage.getEDouble(), "uValue", null, 1, 1, WindowType.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWindowType_GValue(), ecorePackage.getEDouble(), "gValue", null, 1, 1, WindowType.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWindowType_GlazingNumber(), ecorePackage.getEInt(), "glazingNumber", null, 1, 1,
WindowType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
initEAttribute(getWindowType_FrameRatio(), ecorePackage.getEInt(), "frameRatio", null, 1, 1, WindowType.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(catalogEClass, Catalog.class, "Catalog", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getCatalog_Name(), ecorePackage.getEString(), "name", null, 1, 1, Catalog.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getCatalog_Description(), ecorePackage.getEString(), "description", null, 0, 1, Catalog.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getCatalog_Source(), ecorePackage.getEString(), "source", null, 0, 1, Catalog.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(windowCatalogEClass, WindowCatalog.class, "WindowCatalog", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEReference(getWindowCatalog_WindowTypes(), this.getWindowType(), null, "windowTypes", null, 0, -1,
WindowCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(materialCatalogEClass, MaterialCatalog.class, "MaterialCatalog", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEReference(getMaterialCatalog_MaterialCategories(), this.getMaterialCategory(), null, "materialCategories",
null, 0, -1, MaterialCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(materialCategoryEClass, MaterialCategory.class, "MaterialCategory", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEReference(getMaterialCategory_Material(), this.getMaterial(), null, "material", null, 0, -1,
MaterialCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getMaterialCategory_Name(), ecorePackage.getEString(), "name", null, 1, 1,
MaterialCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
initEClass(materialEClass, Material.class, "Material", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getMaterial_Id(), ecorePackage.getEInt(), "id", null, 1, 1, Material.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getMaterial_Name(), ecorePackage.getEString(), "name", null, 1, 1, Material.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getMaterial_Density(), ecorePackage.getEDouble(), "density", null, 1, 1, Material.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getMaterial_HeatCapacity(), ecorePackage.getEDouble(), "heatCapacity", null, 1, 1,
Material.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
initEAttribute(getMaterial_Conductivity(), ecorePackage.getEDouble(), "conductivity", null, 1, 1,
Material.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
} //BuildingPhysicsPackageImpl
CatalogImpl.java 0000664 0000000 0000000 00000014777 13753464163 0046774 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.Catalog;
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;
/**
*
* An implementation of the model object 'Catalog'.
*
*
* The following features are implemented:
*
*
* - {@link de.hftstuttgart.buildingphysics.impl.CatalogImpl#getName Name}
* - {@link de.hftstuttgart.buildingphysics.impl.CatalogImpl#getDescription Description}
* - {@link de.hftstuttgart.buildingphysics.impl.CatalogImpl#getSource Source}
*
*
* @generated
*/
public abstract class CatalogImpl extends MinimalEObjectImpl.Container implements Catalog {
/**
* The default value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getDescription() Description}' attribute.
*
*
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;
/**
* The cached value of the '{@link #getDescription() Description}' attribute.
*
*
* @see #getDescription()
* @generated
* @ordered
*/
protected String description = DESCRIPTION_EDEFAULT;
/**
* The default value of the '{@link #getSource() Source}' attribute.
*
*
* @see #getSource()
* @generated
* @ordered
*/
protected static final String SOURCE_EDEFAULT = null;
/**
* The cached value of the '{@link #getSource() Source}' attribute.
*
*
* @see #getSource()
* @generated
* @ordered
*/
protected String source = SOURCE_EDEFAULT;
/**
*
*
* @generated
*/
protected CatalogImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BuildingPhysicsPackage.Literals.CATALOG;
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.CATALOG__NAME, oldName, name));
}
/**
*
*
* @generated
*/
public String getDescription() {
return description;
}
/**
*
*
* @generated
*/
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.CATALOG__DESCRIPTION,
oldDescription, description));
}
/**
*
*
* @generated
*/
public String getSource() {
return source;
}
/**
*
*
* @generated
*/
public void setSource(String newSource) {
String oldSource = source;
source = newSource;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.CATALOG__SOURCE, oldSource,
source));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BuildingPhysicsPackage.CATALOG__NAME:
return getName();
case BuildingPhysicsPackage.CATALOG__DESCRIPTION:
return getDescription();
case BuildingPhysicsPackage.CATALOG__SOURCE:
return getSource();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BuildingPhysicsPackage.CATALOG__NAME:
setName((String) newValue);
return;
case BuildingPhysicsPackage.CATALOG__DESCRIPTION:
setDescription((String) newValue);
return;
case BuildingPhysicsPackage.CATALOG__SOURCE:
setSource((String) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.CATALOG__NAME:
setName(NAME_EDEFAULT);
return;
case BuildingPhysicsPackage.CATALOG__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case BuildingPhysicsPackage.CATALOG__SOURCE:
setSource(SOURCE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.CATALOG__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case BuildingPhysicsPackage.CATALOG__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
case BuildingPhysicsPackage.CATALOG__SOURCE:
return SOURCE_EDEFAULT == null ? source != null : !SOURCE_EDEFAULT.equals(source);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (name: ");
result.append(name);
result.append(", description: ");
result.append(description);
result.append(", source: ");
result.append(source);
result.append(')');
return result.toString();
}
} //CatalogImpl
MaterialCatalogImpl.java 0000664 0000000 0000000 00000007453 13753464163 0050444 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.MaterialCatalog;
import de.hftstuttgart.buildingphysics.MaterialCategory;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
*
* An implementation of the model object 'Material Catalog'.
*
*
* The following features are implemented:
*
*
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialCatalogImpl#getMaterialCategories Material Categories}
*
*
* @generated
*/
public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog {
/**
* The cached value of the '{@link #getMaterialCategories() Material Categories}' containment reference list.
*
*
* @see #getMaterialCategories()
* @generated
* @ordered
*/
protected EList materialCategories;
/**
*
*
* @generated
*/
protected MaterialCatalogImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BuildingPhysicsPackage.Literals.MATERIAL_CATALOG;
}
/**
*
*
* @generated
*/
public EList getMaterialCategories() {
if (materialCategories == null) {
materialCategories = new EObjectContainmentEList(MaterialCategory.class, this,
BuildingPhysicsPackage.MATERIAL_CATALOG__MATERIAL_CATEGORIES);
}
return materialCategories;
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATALOG__MATERIAL_CATEGORIES:
return ((InternalEList>) getMaterialCategories()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATALOG__MATERIAL_CATEGORIES:
return getMaterialCategories();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATALOG__MATERIAL_CATEGORIES:
getMaterialCategories().clear();
getMaterialCategories().addAll((Collection extends MaterialCategory>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATALOG__MATERIAL_CATEGORIES:
getMaterialCategories().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATALOG__MATERIAL_CATEGORIES:
return materialCategories != null && !materialCategories.isEmpty();
}
return super.eIsSet(featureID);
}
} //MaterialCatalogImpl
MaterialCategoryImpl.java 0000664 0000000 0000000 00000012641 13753464163 0050642 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.Material;
import de.hftstuttgart.buildingphysics.MaterialCategory;
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;
/**
*
* An implementation of the model object 'Material Category'.
*
*
* The following features are implemented:
*
*
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialCategoryImpl#getMaterial Material}
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialCategoryImpl#getName Name}
*
*
* @generated
*/
public class MaterialCategoryImpl extends MinimalEObjectImpl.Container implements MaterialCategory {
/**
* The cached value of the '{@link #getMaterial() Material}' containment reference list.
*
*
* @see #getMaterial()
* @generated
* @ordered
*/
protected EList material;
/**
* The default value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
*
*
* @generated
*/
protected MaterialCategoryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BuildingPhysicsPackage.Literals.MATERIAL_CATEGORY;
}
/**
*
*
* @generated
*/
public EList getMaterial() {
if (material == null) {
material = new EObjectContainmentEList(Material.class, this,
BuildingPhysicsPackage.MATERIAL_CATEGORY__MATERIAL);
}
return material;
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.MATERIAL_CATEGORY__NAME,
oldName, name));
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATEGORY__MATERIAL:
return ((InternalEList>) getMaterial()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATEGORY__MATERIAL:
return getMaterial();
case BuildingPhysicsPackage.MATERIAL_CATEGORY__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATEGORY__MATERIAL:
getMaterial().clear();
getMaterial().addAll((Collection extends Material>) newValue);
return;
case BuildingPhysicsPackage.MATERIAL_CATEGORY__NAME:
setName((String) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATEGORY__MATERIAL:
getMaterial().clear();
return;
case BuildingPhysicsPackage.MATERIAL_CATEGORY__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL_CATEGORY__MATERIAL:
return material != null && !material.isEmpty();
case BuildingPhysicsPackage.MATERIAL_CATEGORY__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
return super.eIsSet(featureID);
}
/**
*
*
* @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();
}
} //MaterialCategoryImpl
MaterialImpl.java 0000664 0000000 0000000 00000022541 13753464163 0047144 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.Material;
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;
/**
*
* An implementation of the model object 'Material'.
*
*
* The following features are implemented:
*
*
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getId Id}
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getName Name}
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getDensity Density}
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getHeatCapacity Heat Capacity}
* - {@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getConductivity Conductivity}
*
*
* @generated
*/
public class MaterialImpl extends MinimalEObjectImpl.Container implements Material {
/**
* The default value of the '{@link #getId() Id}' attribute.
*
*
* @see #getId()
* @generated
* @ordered
*/
protected static final int ID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getId() Id}' attribute.
*
*
* @see #getId()
* @generated
* @ordered
*/
protected int id = ID_EDEFAULT;
/**
* The default value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getDensity() Density}' attribute.
*
*
* @see #getDensity()
* @generated
* @ordered
*/
protected static final double DENSITY_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getDensity() Density}' attribute.
*
*
* @see #getDensity()
* @generated
* @ordered
*/
protected double density = DENSITY_EDEFAULT;
/**
* The default value of the '{@link #getHeatCapacity() Heat Capacity}' attribute.
*
*
* @see #getHeatCapacity()
* @generated
* @ordered
*/
protected static final double HEAT_CAPACITY_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getHeatCapacity() Heat Capacity}' attribute.
*
*
* @see #getHeatCapacity()
* @generated
* @ordered
*/
protected double heatCapacity = HEAT_CAPACITY_EDEFAULT;
/**
* The default value of the '{@link #getConductivity() Conductivity}' attribute.
*
*
* @see #getConductivity()
* @generated
* @ordered
*/
protected static final double CONDUCTIVITY_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getConductivity() Conductivity}' attribute.
*
*
* @see #getConductivity()
* @generated
* @ordered
*/
protected double conductivity = CONDUCTIVITY_EDEFAULT;
/**
*
*
* @generated
*/
protected MaterialImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BuildingPhysicsPackage.Literals.MATERIAL;
}
/**
*
*
* @generated
*/
public int getId() {
return id;
}
/**
*
*
* @generated
*/
public void setId(int newId) {
int oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.MATERIAL__ID, oldId, id));
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.MATERIAL__NAME, oldName,
name));
}
/**
*
*
* @generated
*/
public double getDensity() {
return density;
}
/**
*
*
* @generated
*/
public void setDensity(double newDensity) {
double oldDensity = density;
density = newDensity;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.MATERIAL__DENSITY, oldDensity,
density));
}
/**
*
*
* @generated
*/
public double getHeatCapacity() {
return heatCapacity;
}
/**
*
*
* @generated
*/
public void setHeatCapacity(double newHeatCapacity) {
double oldHeatCapacity = heatCapacity;
heatCapacity = newHeatCapacity;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.MATERIAL__HEAT_CAPACITY,
oldHeatCapacity, heatCapacity));
}
/**
*
*
* @generated
*/
public double getConductivity() {
return conductivity;
}
/**
*
*
* @generated
*/
public void setConductivity(double newConductivity) {
double oldConductivity = conductivity;
conductivity = newConductivity;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.MATERIAL__CONDUCTIVITY,
oldConductivity, conductivity));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL__ID:
return getId();
case BuildingPhysicsPackage.MATERIAL__NAME:
return getName();
case BuildingPhysicsPackage.MATERIAL__DENSITY:
return getDensity();
case BuildingPhysicsPackage.MATERIAL__HEAT_CAPACITY:
return getHeatCapacity();
case BuildingPhysicsPackage.MATERIAL__CONDUCTIVITY:
return getConductivity();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL__ID:
setId((Integer) newValue);
return;
case BuildingPhysicsPackage.MATERIAL__NAME:
setName((String) newValue);
return;
case BuildingPhysicsPackage.MATERIAL__DENSITY:
setDensity((Double) newValue);
return;
case BuildingPhysicsPackage.MATERIAL__HEAT_CAPACITY:
setHeatCapacity((Double) newValue);
return;
case BuildingPhysicsPackage.MATERIAL__CONDUCTIVITY:
setConductivity((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL__ID:
setId(ID_EDEFAULT);
return;
case BuildingPhysicsPackage.MATERIAL__NAME:
setName(NAME_EDEFAULT);
return;
case BuildingPhysicsPackage.MATERIAL__DENSITY:
setDensity(DENSITY_EDEFAULT);
return;
case BuildingPhysicsPackage.MATERIAL__HEAT_CAPACITY:
setHeatCapacity(HEAT_CAPACITY_EDEFAULT);
return;
case BuildingPhysicsPackage.MATERIAL__CONDUCTIVITY:
setConductivity(CONDUCTIVITY_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.MATERIAL__ID:
return id != ID_EDEFAULT;
case BuildingPhysicsPackage.MATERIAL__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case BuildingPhysicsPackage.MATERIAL__DENSITY:
return density != DENSITY_EDEFAULT;
case BuildingPhysicsPackage.MATERIAL__HEAT_CAPACITY:
return heatCapacity != HEAT_CAPACITY_EDEFAULT;
case BuildingPhysicsPackage.MATERIAL__CONDUCTIVITY:
return conductivity != CONDUCTIVITY_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (id: ");
result.append(id);
result.append(", name: ");
result.append(name);
result.append(", density: ");
result.append(density);
result.append(", heatCapacity: ");
result.append(heatCapacity);
result.append(", conductivity: ");
result.append(conductivity);
result.append(')');
return result.toString();
}
} //MaterialImpl
WindowCatalogImpl.java 0000664 0000000 0000000 00000007112 13753464163 0050145 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.WindowCatalog;
import de.hftstuttgart.buildingphysics.WindowType;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
*
* An implementation of the model object 'Window Catalog'.
*
*
* The following features are implemented:
*
*
* - {@link de.hftstuttgart.buildingphysics.impl.WindowCatalogImpl#getWindowTypes Window Types}
*
*
* @generated
*/
public class WindowCatalogImpl extends CatalogImpl implements WindowCatalog {
/**
* The cached value of the '{@link #getWindowTypes() Window Types}' containment reference list.
*
*
* @see #getWindowTypes()
* @generated
* @ordered
*/
protected EList windowTypes;
/**
*
*
* @generated
*/
protected WindowCatalogImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BuildingPhysicsPackage.Literals.WINDOW_CATALOG;
}
/**
*
*
* @generated
*/
public EList getWindowTypes() {
if (windowTypes == null) {
windowTypes = new EObjectContainmentEList(WindowType.class, this,
BuildingPhysicsPackage.WINDOW_CATALOG__WINDOW_TYPES);
}
return windowTypes;
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_CATALOG__WINDOW_TYPES:
return ((InternalEList>) getWindowTypes()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_CATALOG__WINDOW_TYPES:
return getWindowTypes();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_CATALOG__WINDOW_TYPES:
getWindowTypes().clear();
getWindowTypes().addAll((Collection extends WindowType>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_CATALOG__WINDOW_TYPES:
getWindowTypes().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_CATALOG__WINDOW_TYPES:
return windowTypes != null && !windowTypes.isEmpty();
}
return super.eIsSet(featureID);
}
} //WindowCatalogImpl
WindowTypeImpl.java 0000664 0000000 0000000 00000025421 13753464163 0047517 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/impl /**
*/
package de.hftstuttgart.buildingphysics.impl;
import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.WindowType;
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;
/**
*
* An implementation of the model object 'Window Type'.
*
*
* The following features are implemented:
*
*
* - {@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getId Id}
* - {@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getName Name}
* - {@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getUValue UValue}
* - {@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getGValue GValue}
* - {@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getGlazingNumber Glazing Number}
* - {@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getFrameRatio Frame Ratio}
*
*
* @generated
*/
public class WindowTypeImpl extends MinimalEObjectImpl.Container implements WindowType {
/**
* The default value of the '{@link #getId() Id}' attribute.
*
*
* @see #getId()
* @generated
* @ordered
*/
protected static final int ID_EDEFAULT = 0;
/**
* The cached value of the '{@link #getId() Id}' attribute.
*
*
* @see #getId()
* @generated
* @ordered
*/
protected int id = ID_EDEFAULT;
/**
* The default value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() Name}' attribute.
*
*
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getUValue() UValue}' attribute.
*
*
* @see #getUValue()
* @generated
* @ordered
*/
protected static final double UVALUE_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getUValue() UValue}' attribute.
*
*
* @see #getUValue()
* @generated
* @ordered
*/
protected double uValue = UVALUE_EDEFAULT;
/**
* The default value of the '{@link #getGValue() GValue}' attribute.
*
*
* @see #getGValue()
* @generated
* @ordered
*/
protected static final double GVALUE_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getGValue() GValue}' attribute.
*
*
* @see #getGValue()
* @generated
* @ordered
*/
protected double gValue = GVALUE_EDEFAULT;
/**
* The default value of the '{@link #getGlazingNumber() Glazing Number}' attribute.
*
*
* @see #getGlazingNumber()
* @generated
* @ordered
*/
protected static final int GLAZING_NUMBER_EDEFAULT = 0;
/**
* The cached value of the '{@link #getGlazingNumber() Glazing Number}' attribute.
*
*
* @see #getGlazingNumber()
* @generated
* @ordered
*/
protected int glazingNumber = GLAZING_NUMBER_EDEFAULT;
/**
* The default value of the '{@link #getFrameRatio() Frame Ratio}' attribute.
*
*
* @see #getFrameRatio()
* @generated
* @ordered
*/
protected static final int FRAME_RATIO_EDEFAULT = 0;
/**
* The cached value of the '{@link #getFrameRatio() Frame Ratio}' attribute.
*
*
* @see #getFrameRatio()
* @generated
* @ordered
*/
protected int frameRatio = FRAME_RATIO_EDEFAULT;
/**
*
*
* @generated
*/
protected WindowTypeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BuildingPhysicsPackage.Literals.WINDOW_TYPE;
}
/**
*
*
* @generated
*/
public int getId() {
return id;
}
/**
*
*
* @generated
*/
public void setId(int newId) {
int oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__ID, oldId, id));
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__NAME, oldName,
name));
}
/**
*
*
* @generated
*/
public double getUValue() {
return uValue;
}
/**
*
*
* @generated
*/
public void setUValue(double newUValue) {
double oldUValue = uValue;
uValue = newUValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__UVALUE, oldUValue,
uValue));
}
/**
*
*
* @generated
*/
public double getGValue() {
return gValue;
}
/**
*
*
* @generated
*/
public void setGValue(double newGValue) {
double oldGValue = gValue;
gValue = newGValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__GVALUE, oldGValue,
gValue));
}
/**
*
*
* @generated
*/
public int getGlazingNumber() {
return glazingNumber;
}
/**
*
*
* @generated
*/
public void setGlazingNumber(int newGlazingNumber) {
int oldGlazingNumber = glazingNumber;
glazingNumber = newGlazingNumber;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER,
oldGlazingNumber, glazingNumber));
}
/**
*
*
* @generated
*/
public int getFrameRatio() {
return frameRatio;
}
/**
*
*
* @generated
*/
public void setFrameRatio(int newFrameRatio) {
int oldFrameRatio = frameRatio;
frameRatio = newFrameRatio;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO,
oldFrameRatio, frameRatio));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_TYPE__ID:
return getId();
case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
return getName();
case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
return getUValue();
case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
return getGValue();
case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
return getGlazingNumber();
case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
return getFrameRatio();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_TYPE__ID:
setId((Integer) newValue);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
setName((String) newValue);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
setUValue((Double) newValue);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
setGValue((Double) newValue);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
setGlazingNumber((Integer) newValue);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
setFrameRatio((Integer) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_TYPE__ID:
setId(ID_EDEFAULT);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
setName(NAME_EDEFAULT);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
setUValue(UVALUE_EDEFAULT);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
setGValue(GVALUE_EDEFAULT);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
setGlazingNumber(GLAZING_NUMBER_EDEFAULT);
return;
case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
setFrameRatio(FRAME_RATIO_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BuildingPhysicsPackage.WINDOW_TYPE__ID:
return id != ID_EDEFAULT;
case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
return uValue != UVALUE_EDEFAULT;
case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
return gValue != GVALUE_EDEFAULT;
case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
return glazingNumber != GLAZING_NUMBER_EDEFAULT;
case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
return frameRatio != FRAME_RATIO_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (id: ");
result.append(id);
result.append(", name: ");
result.append(name);
result.append(", uValue: ");
result.append(uValue);
result.append(", gValue: ");
result.append(gValue);
result.append(", glazingNumber: ");
result.append(glazingNumber);
result.append(", frameRatio: ");
result.append(frameRatio);
result.append(')');
return result.toString();
}
} //WindowTypeImpl
util/ 0000775 0000000 0000000 00000000000 13753464163 0043731 5 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics BuildingPhysicsAdapterFactory.java 0000664 0000000 0000000 00000015664 13753464163 0052541 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/util /**
*/
package de.hftstuttgart.buildingphysics.util;
import de.hftstuttgart.buildingphysics.*;
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;
/**
*
* The Adapter Factory for the model.
* It provides an adapter createXXX
method for each class of the model.
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
* @generated
*/
public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
*
*
* @generated
*/
protected static BuildingPhysicsPackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public BuildingPhysicsAdapterFactory() {
if (modelPackage == null) {
modelPackage = BuildingPhysicsPackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
*
* This implementation returns true
if the object is either the model's package or is an instance object of the model.
*
* @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 createXXX
methods.
*
*
* @generated
*/
protected BuildingPhysicsSwitch modelSwitch = new BuildingPhysicsSwitch() {
@Override
public Adapter caseBuildingPhysicsCatalog(BuildingPhysicsCatalog object) {
return createBuildingPhysicsCatalogAdapter();
}
@Override
public Adapter caseWindowType(WindowType object) {
return createWindowTypeAdapter();
}
@Override
public Adapter caseCatalog(Catalog object) {
return createCatalogAdapter();
}
@Override
public Adapter caseWindowCatalog(WindowCatalog object) {
return createWindowCatalogAdapter();
}
@Override
public Adapter caseMaterialCatalog(MaterialCatalog object) {
return createMaterialCatalogAdapter();
}
@Override
public Adapter caseMaterialCategory(MaterialCategory object) {
return createMaterialCategoryAdapter();
}
@Override
public Adapter caseMaterial(Material object) {
return createMaterialAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the target
.
*
*
* @param target the object to adapt.
* @return the adapter for the target
.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject) target);
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.BuildingPhysicsCatalog Catalog}'.
*
* 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.
*
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsCatalog
* @generated
*/
public Adapter createBuildingPhysicsCatalogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.WindowType Window Type}'.
*
* 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.
*
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.WindowType
* @generated
*/
public Adapter createWindowTypeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.Catalog Catalog}'.
*
* 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.
*
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.Catalog
* @generated
*/
public Adapter createCatalogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.WindowCatalog Window Catalog}'.
*
* 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.
*
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.WindowCatalog
* @generated
*/
public Adapter createWindowCatalogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.MaterialCatalog Material Catalog}'.
*
* 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.
*
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.MaterialCatalog
* @generated
*/
public Adapter createMaterialCatalogAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.MaterialCategory Material Category}'.
*
* 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.
*
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.MaterialCategory
* @generated
*/
public Adapter createMaterialCategoryAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.Material Material}'.
*
* 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.
*
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.Material
* @generated
*/
public Adapter createMaterialAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
*
* This default implementation returns null.
*
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //BuildingPhysicsAdapterFactory
BuildingPhysicsSwitch.java 0000664 0000000 0000000 00000017742 13753464163 0051071 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src-gen/de/hftstuttgart/buildingphysics/util /**
*/
package de.hftstuttgart.buildingphysics.util;
import de.hftstuttgart.buildingphysics.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
*
* The Switch for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the caseXXX
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.
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
* @generated
*/
public class BuildingPhysicsSwitch extends Switch {
/**
* The cached model package
*
*
* @generated
*/
protected static BuildingPhysicsPackage modelPackage;
/**
* Creates an instance of the switch.
*
*
* @generated
*/
public BuildingPhysicsSwitch() {
if (modelPackage == null) {
modelPackage = BuildingPhysicsPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
*
*
* @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 caseXXX
for each class of the model until one returns a non null result; it yields that result.
*
*
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case BuildingPhysicsPackage.BUILDING_PHYSICS_CATALOG: {
BuildingPhysicsCatalog buildingPhysicsCatalog = (BuildingPhysicsCatalog) theEObject;
T result = caseBuildingPhysicsCatalog(buildingPhysicsCatalog);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case BuildingPhysicsPackage.WINDOW_TYPE: {
WindowType windowType = (WindowType) theEObject;
T result = caseWindowType(windowType);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case BuildingPhysicsPackage.CATALOG: {
Catalog catalog = (Catalog) theEObject;
T result = caseCatalog(catalog);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case BuildingPhysicsPackage.WINDOW_CATALOG: {
WindowCatalog windowCatalog = (WindowCatalog) theEObject;
T result = caseWindowCatalog(windowCatalog);
if (result == null)
result = caseCatalog(windowCatalog);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case BuildingPhysicsPackage.MATERIAL_CATALOG: {
MaterialCatalog materialCatalog = (MaterialCatalog) theEObject;
T result = caseMaterialCatalog(materialCatalog);
if (result == null)
result = caseCatalog(materialCatalog);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case BuildingPhysicsPackage.MATERIAL_CATEGORY: {
MaterialCategory materialCategory = (MaterialCategory) theEObject;
T result = caseMaterialCategory(materialCategory);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case BuildingPhysicsPackage.MATERIAL: {
Material material = (Material) theEObject;
T result = caseMaterial(material);
if (result == null)
result = defaultCase(theEObject);
return result;
}
default:
return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of 'Catalog'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Catalog'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBuildingPhysicsCatalog(BuildingPhysicsCatalog object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Window Type'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Window Type'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWindowType(WindowType object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Catalog'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Catalog'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCatalog(Catalog object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Window Catalog'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Window Catalog'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseWindowCatalog(WindowCatalog object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Material Catalog'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Material Catalog'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMaterialCatalog(MaterialCatalog object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Material Category'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Material Category'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMaterialCategory(MaterialCategory object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Material'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Material'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMaterial(Material object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'EObject'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'EObject'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //BuildingPhysicsSwitch
src/ 0000775 0000000 0000000 00000000000 13753464163 0033652 5 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics .gitkeep 0000664 0000000 0000000 00000000000 13753464163 0035271 0 ustar 00root root 0000000 0000000 building-physics-catalog-editor-a00f97a21f2381806e0bf6e291e6bdea3001f878/de.hftstuttgart.buildingphysics/src