Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NeqModPlus
Building Physics
Building Physics Catalog Editor
Commits
e2400453
Commit
e2400453
authored
May 13, 2021
by
Kai-Holger Brassel
Browse files
Wall mountings consisting of several layers of materials added
parent
cdf9e894
Changes
39
Show whitespace changes
Inline
Side-by-side
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/ConstructionCategory.java
0 → 100644
View file @
e2400453
/**
*/
package
de.hftstuttgart.buildingphysics
;
import
org.eclipse.emf.common.util.EList
;
import
org.eclipse.emf.ecore.EObject
;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Construction Category</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.ConstructionCategory#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.ConstructionCategory#getMountings <em>Mountings</em>}</li>
* </ul>
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getConstructionCategory()
* @model
* @generated
*/
public
interface
ConstructionCategory
extends
EObject
{
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getConstructionCategory_Name()
* @model required="true"
* @generated
*/
String
getName
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.ConstructionCategory#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void
setName
(
String
value
);
/**
* Returns the value of the '<em><b>Mountings</b></em>' containment reference list.
* The list contents are of type {@link de.hftstuttgart.buildingphysics.Mounting}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Mountings</em>' containment reference list.
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getConstructionCategory_Mountings()
* @model containment="true"
* @generated
*/
EList
<
Mounting
>
getMountings
();
}
// ConstructionCategory
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/Layer.java
0 → 100644
View file @
e2400453
/**
*/
package
de.hftstuttgart.buildingphysics
;
import
de.hftstuttgart.cityunits.model.NullableQuantity
;
import
org.eclipse.emf.ecore.EObject
;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Layer</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.Layer#getMaterial <em>Material</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Layer#getThickness <em>Thickness</em>}</li>
* </ul>
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLayer()
* @model
* @generated
*/
public
interface
Layer
extends
EObject
{
/**
* Returns the value of the '<em><b>Material</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Material</em>' reference.
* @see #setMaterial(Material)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLayer_Material()
* @model keys="materialId" required="true"
* @generated
*/
Material
getMaterial
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Layer#getMaterial <em>Material</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Material</em>' reference.
* @see #getMaterial()
* @generated
*/
void
setMaterial
(
Material
value
);
/**
* Returns the value of the '<em><b>Thickness</b></em>' attribute.
* The default value is <code>"m"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Thickness</em>' attribute.
* @see #setThickness(NullableQuantity)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLayer_Thickness()
* @model default="m" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getThickness
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Layer#getThickness <em>Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Thickness</em>' attribute.
* @see #getThickness()
* @generated
*/
void
setThickness
(
NullableQuantity
value
);
}
// Layer
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/LifeCycle.java
deleted
100644 → 0
View file @
cdf9e894
/**
*/
package
de.hftstuttgart.buildingphysics
;
import
de.hftstuttgart.cityunits.model.NullableQuantity
;
import
org.eclipse.emf.ecore.EObject
;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Life Cycle</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.LifeCycle#getEmbodiedEnergy <em>Embodied Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.LifeCycle#getEmbodiedCarbon <em>Embodied Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.LifeCycle#getConstructionDescription <em>Construction Description</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.LifeCycle#getDisposalEnergy <em>Disposal Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.LifeCycle#getDisposalCarbon <em>Disposal Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.LifeCycle#getDisposalDescription <em>Disposal Description</em>}</li>
* </ul>
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLifeCycle()
* @model
* @generated
*/
public
interface
LifeCycle
extends
EObject
{
/**
* Returns the value of the '<em><b>Embodied Energy</b></em>' attribute.
* The default value is <code>"kW*h"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Embodied Energy</em>' attribute.
* @see #setEmbodiedEnergy(NullableQuantity)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLifeCycle_EmbodiedEnergy()
* @model default="kW*h" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getEmbodiedEnergy
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.LifeCycle#getEmbodiedEnergy <em>Embodied Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Embodied Energy</em>' attribute.
* @see #getEmbodiedEnergy()
* @generated
*/
void
setEmbodiedEnergy
(
NullableQuantity
value
);
/**
* Returns the value of the '<em><b>Embodied Carbon</b></em>' attribute.
* The default value is <code>"kg"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Embodied Carbon</em>' attribute.
* @see #setEmbodiedCarbon(NullableQuantity)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLifeCycle_EmbodiedCarbon()
* @model default="kg" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getEmbodiedCarbon
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.LifeCycle#getEmbodiedCarbon <em>Embodied Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Embodied Carbon</em>' attribute.
* @see #getEmbodiedCarbon()
* @generated
*/
void
setEmbodiedCarbon
(
NullableQuantity
value
);
/**
* Returns the value of the '<em><b>Construction Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Construction Description</em>' attribute.
* @see #setConstructionDescription(String)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLifeCycle_ConstructionDescription()
* @model required="true"
* @generated
*/
String
getConstructionDescription
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.LifeCycle#getConstructionDescription <em>Construction Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Construction Description</em>' attribute.
* @see #getConstructionDescription()
* @generated
*/
void
setConstructionDescription
(
String
value
);
/**
* Returns the value of the '<em><b>Disposal Energy</b></em>' attribute.
* The default value is <code>"kW*h"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Disposal Energy</em>' attribute.
* @see #setDisposalEnergy(NullableQuantity)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLifeCycle_DisposalEnergy()
* @model default="kW*h" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getDisposalEnergy
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.LifeCycle#getDisposalEnergy <em>Disposal Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Disposal Energy</em>' attribute.
* @see #getDisposalEnergy()
* @generated
*/
void
setDisposalEnergy
(
NullableQuantity
value
);
/**
* Returns the value of the '<em><b>Disposal Carbon</b></em>' attribute.
* The default value is <code>"kg"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Disposal Carbon</em>' attribute.
* @see #setDisposalCarbon(NullableQuantity)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLifeCycle_DisposalCarbon()
* @model default="kg" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getDisposalCarbon
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.LifeCycle#getDisposalCarbon <em>Disposal Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Disposal Carbon</em>' attribute.
* @see #getDisposalCarbon()
* @generated
*/
void
setDisposalCarbon
(
NullableQuantity
value
);
/**
* Returns the value of the '<em><b>Disposal Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Disposal Description</em>' attribute.
* @see #setDisposalDescription(String)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getLifeCycle_DisposalDescription()
* @model required="true"
* @generated
*/
String
getDisposalDescription
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.LifeCycle#getDisposalDescription <em>Disposal Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Disposal Description</em>' attribute.
* @see #getDisposalDescription()
* @generated
*/
void
setDisposalDescription
(
String
value
);
}
// LifeCycle
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/Material.java
View file @
e2400453
...
...
@@ -15,7 +15,7 @@ import org.eclipse.emf.ecore.EObject;
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.Material#get
Id <em>
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#get
MaterialId <em>Material
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getDensity <em>Density</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getHeatCapacity <em>Heat Capacity</em>}</li>
...
...
@@ -34,26 +34,26 @@ import org.eclipse.emf.ecore.EObject;
*/
public
interface
Material
extends
EObject
{
/**
* Returns the value of the '<em><b>Id</b></em>' attribute.
* Returns the value of the '<em><b>
Material
Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Id</em>' attribute.
* @see #set
Id(lo
ng)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMaterial_Id()
* @return the value of the '<em>
Material
Id</em>' attribute.
* @see #set
MaterialId(Stri
ng)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMaterial_
Material
Id()
* @model id="true" required="true"
* @generated
*/
lo
ng
getId
();
Stri
ng
get
Material
Id
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Material#get
Id <em>
Id</em>}' attribute.
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Material#get
MaterialId <em>Material
Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Id</em>' attribute.
* @see #getId()
* @param value the new value of the '<em>
Material
Id</em>' attribute.
* @see #get
Material
Id()
* @generated
*/
void
set
Id
(
lo
ng
value
);
void
set
MaterialId
(
Stri
ng
value
);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/MaterialCatalog.java
View file @
e2400453
...
...
@@ -14,6 +14,7 @@ import org.eclipse.emf.common.util.EList;
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.MaterialCatalog#getMaterialCategories <em>Material Categories</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.MaterialCatalog#getConstructionCategories <em>Construction Categories</em>}</li>
* </ul>
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMaterialCatalog()
...
...
@@ -33,4 +34,16 @@ public interface MaterialCatalog extends Catalog {
*/
EList
<
MaterialCategory
>
getMaterialCategories
();
/**
* Returns the value of the '<em><b>Construction Categories</b></em>' containment reference list.
* The list contents are of type {@link de.hftstuttgart.buildingphysics.ConstructionCategory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Construction Categories</em>' containment reference list.
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMaterialCatalog_ConstructionCategories()
* @model containment="true" required="true"
* @generated
*/
EList
<
ConstructionCategory
>
getConstructionCategories
();
}
// MaterialCatalog
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/MaterialCategory.java
View file @
e2400453
...
...
@@ -15,7 +15,7 @@ import org.eclipse.emf.ecore.EObject;
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.MaterialCategory#getMaterial <em>Material</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.MaterialCategory#getMaterial
s
<em>Material
s
</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.MaterialCategory#getName <em>Name</em>}</li>
* </ul>
*
...
...
@@ -25,16 +25,16 @@ import org.eclipse.emf.ecore.EObject;
*/
public
interface
MaterialCategory
extends
EObject
{
/**
* Returns the value of the '<em><b>Material</b></em>' containment reference list.
* Returns the value of the '<em><b>Material
s
</b></em>' containment reference list.
* The list contents are of type {@link de.hftstuttgart.buildingphysics.Material}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Material</em>' containment reference list.
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMaterialCategory_Material()
* @return the value of the '<em>Material
s
</em>' containment reference list.
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMaterialCategory_Material
s
()
* @model containment="true"
* @generated
*/
EList
<
Material
>
getMaterial
();
EList
<
Material
>
getMaterial
s
();
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/Mounting.java
0 → 100644
View file @
e2400453
/**
*/
package
de.hftstuttgart.buildingphysics
;
import
org.eclipse.emf.common.util.EList
;
import
org.eclipse.emf.ecore.EObject
;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Mounting</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.Mounting#getMountingId <em>Mounting Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Mounting#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Mounting#getLayers <em>Layers</em>}</li>
* </ul>
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMounting()
* @model
* @generated
*/
public
interface
Mounting
extends
EObject
{
/**
* Returns the value of the '<em><b>Mounting Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Mounting Id</em>' attribute.
* @see #setMountingId(String)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMounting_MountingId()
* @model required="true"
* @generated
*/
String
getMountingId
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Mounting#getMountingId <em>Mounting Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Mounting Id</em>' attribute.
* @see #getMountingId()
* @generated
*/
void
setMountingId
(
String
value
);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMounting_Name()
* @model required="true"
* @generated
*/
String
getName
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Mounting#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void
setName
(
String
value
);
/**
* Returns the value of the '<em><b>Layers</b></em>' containment reference list.
* The list contents are of type {@link de.hftstuttgart.buildingphysics.Layer}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Layers</em>' containment reference list.
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMounting_Layers()
* @model containment="true" required="true"
* @generated
*/
EList
<
Layer
>
getLayers
();
}
// Mounting
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/WindowType.java
View file @
e2400453
...
...
@@ -3,6 +3,7 @@
package
de.hftstuttgart.buildingphysics
;
import
de.hftstuttgart.cityunits.model.NullableQuantity
;
import
org.eclipse.emf.ecore.EObject
;
/**
...
...
@@ -14,7 +15,7 @@ import org.eclipse.emf.ecore.EObject;
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#get
Id <em>
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#get
WindowTypeId <em>Window Type
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getUValue <em>UValue</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getGValue <em>GValue</em>}</li>
...
...
@@ -34,26 +35,26 @@ import org.eclipse.emf.ecore.EObject;
*/
public
interface
WindowType
extends
EObject
{
/**
* Returns the value of the '<em><b>Id</b></em>' attribute.
* Returns the value of the '<em><b>
Window Type
Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Id</em>' attribute.
* @see #set
Id(
in
t
)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_Id()
* @model
id="true"
required="true"
* @return the value of the '<em>
Window Type
Id</em>' attribute.
* @see #set
WindowTypeId(Str
in
g
)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_
WindowType
Id()
* @model required="true"
* @generated
*/
in
t
getId
();
Str
in
g
get
WindowType
Id
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#get
Id <em>
Id</em>}' attribute.
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#get
WindowTypeId <em>Window Type
Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Id</em>' attribute.
* @see #getId()
* @param value the new value of the '<em>
Window Type
Id</em>' attribute.
* @see #get
WindowType
Id()
* @generated
*/
void
set
Id
(
in
t
value
);
void
set
WindowTypeId
(
Str
in
g
value
);
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/BuildingPhysicsFactoryImpl.java
View file @
e2400453
...
...
@@ -68,6 +68,12 @@ public class BuildingPhysicsFactoryImpl extends EFactoryImpl implements Building
return
createMaterialCategory
();
case
BuildingPhysicsPackage
.
MATERIAL
:
return
createMaterial
();
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY
:
return
createConstructionCategory
();
case
BuildingPhysicsPackage
.
MOUNTING
:
return
createMounting
();
case
BuildingPhysicsPackage
.
LAYER
:
return
createLayer
();
default
:
throw
new
IllegalArgumentException
(
"The class '"
+
eClass
.
getName
()
+
"' is not a valid classifier"
);
}
...
...
@@ -139,6 +145,39 @@ public class BuildingPhysicsFactoryImpl extends EFactoryImpl implements Building
return
material
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
ConstructionCategory
createConstructionCategory
()
{
ConstructionCategoryImpl
constructionCategory
=
new
ConstructionCategoryImpl
();
return
constructionCategory
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
Mounting
createMounting
()
{
MountingImpl
mounting
=
new
MountingImpl
();
return
mounting
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
Layer
createLayer
()
{
LayerImpl
layer
=
new
LayerImpl
();
return
layer
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/BuildingPhysicsPackageImpl.java
View file @
e2400453
...
...
@@ -6,9 +6,12 @@ import de.hftstuttgart.buildingphysics.BuildingPhysicsCatalog;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsFactory
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.Catalog
;
import
de.hftstuttgart.buildingphysics.ConstructionCategory
;
import
de.hftstuttgart.buildingphysics.Layer
;
import
de.hftstuttgart.buildingphysics.Material
;
import
de.hftstuttgart.buildingphysics.MaterialCatalog
;
import
de.hftstuttgart.buildingphysics.MaterialCategory
;
import
de.hftstuttgart.buildingphysics.Mounting
;
import
de.hftstuttgart.buildingphysics.WindowCatalog
;
import
de.hftstuttgart.buildingphysics.WindowType
;
...
...
@@ -77,6 +80,27 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
*/
private
EClass
materialEClass
=
null
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private
EClass
constructionCategoryEClass
=
null
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private
EClass
mountingEClass
=
null
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private
EClass
layerEClass
=
null
;
/**
* Creates an instance of the model <b>Package</b>, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
...
...
@@ -200,7 +224,7 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EAttribute
getWindowType_Id
()
{
public
EAttribute
getWindowType_
WindowType
Id
()
{
return
(
EAttribute
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
0
);
}
...
...
@@ -394,6 +418,16 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
return
(
EReference
)
materialCatalogEClass
.
getEStructuralFeatures
().
get
(
0
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EReference
getMaterialCatalog_ConstructionCategories
()
{
return
(
EReference
)
materialCatalogEClass
.
getEStructuralFeatures
().
get
(
1
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
@@ -410,7 +444,7 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EReference
getMaterialCategory_Material
()
{
public
EReference
getMaterialCategory_Material
s
()
{
return
(
EReference
)
materialCategoryEClass
.
getEStructuralFeatures
().
get
(
0
);
}
...
...
@@ -440,7 +474,7 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EAttribute
getMaterial_Id
()
{
public
EAttribute
getMaterial_
Material
Id
()
{
return
(
EAttribute
)
materialEClass
.
getEStructuralFeatures
().
get
(
0
);
}
...
...
@@ -544,6 +578,106 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
return
(
EAttribute
)
materialEClass
.
getEStructuralFeatures
().
get
(
10
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EClass
getConstructionCategory
()
{
return
constructionCategoryEClass
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getConstructionCategory_Name
()
{
return
(
EAttribute
)
constructionCategoryEClass
.
getEStructuralFeatures
().
get
(
0
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EReference
getConstructionCategory_Mountings
()
{
return
(
EReference
)
constructionCategoryEClass
.
getEStructuralFeatures
().
get
(
1
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EClass
getMounting
()
{
return
mountingEClass
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getMounting_MountingId
()
{
return
(
EAttribute
)
mountingEClass
.
getEStructuralFeatures
().
get
(
0
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getMounting_Name
()
{
return
(
EAttribute
)
mountingEClass
.
getEStructuralFeatures
().
get
(
1
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EReference
getMounting_Layers
()
{
return
(
EReference
)
mountingEClass
.
getEStructuralFeatures
().
get
(
2
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EClass
getLayer
()
{
return
layerEClass
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EReference
getLayer_Material
()
{
return
(
EReference
)
layerEClass
.
getEStructuralFeatures
().
get
(
0
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getLayer_Thickness
()
{
return
(
EAttribute
)
layerEClass
.
getEStructuralFeatures
().
get
(
1
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
@@ -580,7 +714,7 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
createEReference
(
buildingPhysicsCatalogEClass
,
BUILDING_PHYSICS_CATALOG__MATERIAL_CATALOG
);
windowTypeEClass
=
createEClass
(
WINDOW_TYPE
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__ID
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__
WINDOW_TYPE_
ID
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__NAME
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__UVALUE
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__GVALUE
);
...
...
@@ -603,13 +737,14 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
materialCatalogEClass
=
createEClass
(
MATERIAL_CATALOG
);
createEReference
(
materialCatalogEClass
,
MATERIAL_CATALOG__MATERIAL_CATEGORIES
);
createEReference
(
materialCatalogEClass
,
MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES
);
materialCategoryEClass
=
createEClass
(
MATERIAL_CATEGORY
);
createEReference
(
materialCategoryEClass
,
MATERIAL_CATEGORY__MATERIAL
);
createEReference
(
materialCategoryEClass
,
MATERIAL_CATEGORY__MATERIAL
S
);
createEAttribute
(
materialCategoryEClass
,
MATERIAL_CATEGORY__NAME
);
materialEClass
=
createEClass
(
MATERIAL
);
createEAttribute
(
materialEClass
,
MATERIAL__ID
);
createEAttribute
(
materialEClass
,
MATERIAL__
MATERIAL_
ID
);
createEAttribute
(
materialEClass
,
MATERIAL__NAME
);
createEAttribute
(
materialEClass
,
MATERIAL__DENSITY
);
createEAttribute
(
materialEClass
,
MATERIAL__HEAT_CAPACITY
);
...
...
@@ -620,6 +755,19 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
createEAttribute
(
materialEClass
,
MATERIAL__DISPOSAL_ENERGY
);
createEAttribute
(
materialEClass
,
MATERIAL__DISPOSAL_CARBON
);
createEAttribute
(
materialEClass
,
MATERIAL__DISPOSAL_DESCRIPTION
);
constructionCategoryEClass
=
createEClass
(
CONSTRUCTION_CATEGORY
);
createEAttribute
(
constructionCategoryEClass
,
CONSTRUCTION_CATEGORY__NAME
);
createEReference
(
constructionCategoryEClass
,
CONSTRUCTION_CATEGORY__MOUNTINGS
);
mountingEClass
=
createEClass
(
MOUNTING
);
createEAttribute
(
mountingEClass
,
MOUNTING__MOUNTING_ID
);
createEAttribute
(
mountingEClass
,
MOUNTING__NAME
);
createEReference
(
mountingEClass
,
MOUNTING__LAYERS
);
layerEClass
=
createEClass
(
LAYER
);
createEReference
(
layerEClass
,
LAYER__MATERIAL
);
createEAttribute
(
layerEClass
,
LAYER__THICKNESS
);
}
/**
...
...
@@ -673,8 +821,9 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
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_WindowTypeId
(),
ecorePackage
.
getEString
(),
"windowTypeId"
,
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
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"uValue"
,
"W/(m\u00b2*K)"
,
1
,
...
...
@@ -726,10 +875,13 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
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
);
initEReference
(
getMaterialCatalog_ConstructionCategories
(),
this
.
getConstructionCategory
(),
null
,
"constructionCategories"
,
null
,
1
,
-
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
,
initEReference
(
getMaterialCategory_Material
s
(),
this
.
getMaterial
(),
null
,
"material
s
"
,
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
,
...
...
@@ -738,8 +890,8 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
initEClass
(
materialEClass
,
Material
.
class
,
"Material"
,
!
IS_ABSTRACT
,
!
IS_INTERFACE
,
IS_GENERATED_INSTANCE_CLASS
);
initEAttribute
(
getMaterial_Id
(),
ecorePackage
.
getE
Lo
ng
(),
"
i
d"
,
null
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getMaterial_
Material
Id
(),
ecorePackage
.
getE
Stri
ng
(),
"
materialI
d"
,
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
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"density"
,
"kg/m\u00b3"
,
1
,
1
,
...
...
@@ -770,6 +922,34 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEClass
(
constructionCategoryEClass
,
ConstructionCategory
.
class
,
"ConstructionCategory"
,
!
IS_ABSTRACT
,
!
IS_INTERFACE
,
IS_GENERATED_INSTANCE_CLASS
);
initEAttribute
(
getConstructionCategory_Name
(),
ecorePackage
.
getEString
(),
"name"
,
null
,
1
,
1
,
ConstructionCategory
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEReference
(
getConstructionCategory_Mountings
(),
this
.
getMounting
(),
null
,
"mountings"
,
null
,
0
,
-
1
,
ConstructionCategory
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
IS_COMPOSITE
,
!
IS_RESOLVE_PROXIES
,
!
IS_UNSETTABLE
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEClass
(
mountingEClass
,
Mounting
.
class
,
"Mounting"
,
!
IS_ABSTRACT
,
!
IS_INTERFACE
,
IS_GENERATED_INSTANCE_CLASS
);
initEAttribute
(
getMounting_MountingId
(),
ecorePackage
.
getEString
(),
"mountingId"
,
null
,
1
,
1
,
Mounting
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getMounting_Name
(),
ecorePackage
.
getEString
(),
"name"
,
null
,
1
,
1
,
Mounting
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEReference
(
getMounting_Layers
(),
this
.
getLayer
(),
null
,
"layers"
,
null
,
1
,
-
1
,
Mounting
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
IS_COMPOSITE
,
!
IS_RESOLVE_PROXIES
,
!
IS_UNSETTABLE
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEClass
(
layerEClass
,
Layer
.
class
,
"Layer"
,
!
IS_ABSTRACT
,
!
IS_INTERFACE
,
IS_GENERATED_INSTANCE_CLASS
);
initEReference
(
getLayer_Material
(),
this
.
getMaterial
(),
null
,
"material"
,
null
,
1
,
1
,
Layer
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_COMPOSITE
,
IS_RESOLVE_PROXIES
,
!
IS_UNSETTABLE
,
!
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
getLayer_Material
().
getEKeys
().
add
(
this
.
getMaterial_MaterialId
());
initEAttribute
(
getLayer_Thickness
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"thickness"
,
"m"
,
1
,
1
,
Layer
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
// Create resource
createResource
(
eNS_URI
);
}
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/ConstructionCategoryImpl.java
0 → 100644
View file @
e2400453
/**
*/
package
de.hftstuttgart.buildingphysics.impl
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.ConstructionCategory
;
import
de.hftstuttgart.buildingphysics.Mounting
;
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>Construction Category</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.ConstructionCategoryImpl#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.ConstructionCategoryImpl#getMountings <em>Mountings</em>}</li>
* </ul>
*
* @generated
*/
public
class
ConstructionCategoryImpl
extends
MinimalEObjectImpl
.
Container
implements
ConstructionCategory
{
/**
* 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
;
/**
* The cached value of the '{@link #getMountings() <em>Mountings</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMountings()
* @generated
* @ordered
*/
protected
EList
<
Mounting
>
mountings
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected
ConstructionCategoryImpl
()
{
super
();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected
EClass
eStaticClass
()
{
return
BuildingPhysicsPackage
.
Literals
.
CONSTRUCTION_CATEGORY
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getName
()
{
return
name
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setName
(
String
newName
)
{
String
oldName
=
name
;
name
=
newName
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__NAME
,
oldName
,
name
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EList
<
Mounting
>
getMountings
()
{
if
(
mountings
==
null
)
{
mountings
=
new
EObjectContainmentEList
<
Mounting
>(
Mounting
.
class
,
this
,
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__MOUNTINGS
);
}
return
mountings
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NotificationChain
eInverseRemove
(
InternalEObject
otherEnd
,
int
featureID
,
NotificationChain
msgs
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__MOUNTINGS
:
return
((
InternalEList
<?>)
getMountings
()).
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
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__NAME
:
return
getName
();
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__MOUNTINGS
:
return
getMountings
();
}
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
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__NAME
:
setName
((
String
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__MOUNTINGS
:
getMountings
().
clear
();
getMountings
().
addAll
((
Collection
<?
extends
Mounting
>)
newValue
);
return
;
}
super
.
eSet
(
featureID
,
newValue
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__NAME
:
setName
(
NAME_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__MOUNTINGS
:
getMountings
().
clear
();
return
;
}
super
.
eUnset
(
featureID
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__NAME
:
return
NAME_EDEFAULT
==
null
?
name
!=
null
:
!
NAME_EDEFAULT
.
equals
(
name
);
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY__MOUNTINGS
:
return
mountings
!=
null
&&
!
mountings
.
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
(
" (name: "
);
result
.
append
(
name
);
result
.
append
(
')'
);
return
result
.
toString
();
}
}
//ConstructionCategoryImpl
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/LayerImpl.java
0 → 100644
View file @
e2400453
/**
*/
package
de.hftstuttgart.buildingphysics.impl
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.Layer
;
import
de.hftstuttgart.buildingphysics.Material
;
import
de.hftstuttgart.cityunits.model.NullableQuantity
;
import
de.hftstuttgart.cityunits.model.quantities.QuantitiesFactory
;
import
de.hftstuttgart.cityunits.model.quantities.QuantitiesPackage
;
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>Layer</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LayerImpl#getMaterial <em>Material</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LayerImpl#getThickness <em>Thickness</em>}</li>
* </ul>
*
* @generated
*/
public
class
LayerImpl
extends
MinimalEObjectImpl
.
Container
implements
Layer
{
/**
* The cached value of the '{@link #getMaterial() <em>Material</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaterial()
* @generated
* @ordered
*/
protected
Material
material
;
/**
* The default value of the '{@link #getThickness() <em>Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThickness()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
THICKNESS_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"m"
);
/**
* The cached value of the '{@link #getThickness() <em>Thickness</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getThickness()
* @generated
* @ordered
*/
protected
NullableQuantity
thickness
=
THICKNESS_EDEFAULT
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected
LayerImpl
()
{
super
();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected
EClass
eStaticClass
()
{
return
BuildingPhysicsPackage
.
Literals
.
LAYER
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
Material
getMaterial
()
{
if
(
material
!=
null
&&
material
.
eIsProxy
())
{
InternalEObject
oldMaterial
=
(
InternalEObject
)
material
;
material
=
(
Material
)
eResolveProxy
(
oldMaterial
);
if
(
material
!=
oldMaterial
)
{
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
RESOLVE
,
BuildingPhysicsPackage
.
LAYER__MATERIAL
,
oldMaterial
,
material
));
}
}
return
material
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public
Material
basicGetMaterial
()
{
return
material
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setMaterial
(
Material
newMaterial
)
{
Material
oldMaterial
=
material
;
material
=
newMaterial
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LAYER__MATERIAL
,
oldMaterial
,
material
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getThickness
()
{
return
thickness
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setThickness
(
NullableQuantity
newThickness
)
{
NullableQuantity
oldThickness
=
thickness
;
thickness
=
newThickness
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LAYER__THICKNESS
,
oldThickness
,
thickness
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
LAYER__MATERIAL
:
if
(
resolve
)
return
getMaterial
();
return
basicGetMaterial
();
case
BuildingPhysicsPackage
.
LAYER__THICKNESS
:
return
getThickness
();
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
LAYER__MATERIAL
:
setMaterial
((
Material
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
LAYER__THICKNESS
:
setThickness
((
NullableQuantity
)
newValue
);
return
;
}
super
.
eSet
(
featureID
,
newValue
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
LAYER__MATERIAL
:
setMaterial
((
Material
)
null
);
return
;
case
BuildingPhysicsPackage
.
LAYER__THICKNESS
:
setThickness
(
THICKNESS_EDEFAULT
);
return
;
}
super
.
eUnset
(
featureID
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
LAYER__MATERIAL
:
return
material
!=
null
;
case
BuildingPhysicsPackage
.
LAYER__THICKNESS
:
return
THICKNESS_EDEFAULT
==
null
?
thickness
!=
null
:
!
THICKNESS_EDEFAULT
.
equals
(
thickness
);
}
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
(
" (thickness: "
);
result
.
append
(
thickness
);
result
.
append
(
')'
);
return
result
.
toString
();
}
}
//LayerImpl
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/MaterialCatalogImpl.java
View file @
e2400453
...
...
@@ -3,6 +3,7 @@
package
de.hftstuttgart.buildingphysics.impl
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.ConstructionCategory
;
import
de.hftstuttgart.buildingphysics.MaterialCatalog
;
import
de.hftstuttgart.buildingphysics.MaterialCategory
;
...
...
@@ -27,6 +28,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialCatalogImpl#getMaterialCategories <em>Material Categories</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialCatalogImpl#getConstructionCategories <em>Construction Categories</em>}</li>
* </ul>
*
* @generated
...
...
@@ -42,6 +44,16 @@ public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog
*/
protected
EList
<
MaterialCategory
>
materialCategories
;
/**
* The cached value of the '{@link #getConstructionCategories() <em>Construction Categories</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConstructionCategories()
* @generated
* @ordered
*/
protected
EList
<
ConstructionCategory
>
constructionCategories
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
@@ -75,6 +87,20 @@ public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog
return
materialCategories
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EList
<
ConstructionCategory
>
getConstructionCategories
()
{
if
(
constructionCategories
==
null
)
{
constructionCategories
=
new
EObjectContainmentEList
<
ConstructionCategory
>(
ConstructionCategory
.
class
,
this
,
BuildingPhysicsPackage
.
MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES
);
}
return
constructionCategories
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
@@ -85,6 +111,8 @@ public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__MATERIAL_CATEGORIES
:
return
((
InternalEList
<?>)
getMaterialCategories
()).
basicRemove
(
otherEnd
,
msgs
);
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES
:
return
((
InternalEList
<?>)
getConstructionCategories
()).
basicRemove
(
otherEnd
,
msgs
);
}
return
super
.
eInverseRemove
(
otherEnd
,
featureID
,
msgs
);
}
...
...
@@ -99,6 +127,8 @@ public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__MATERIAL_CATEGORIES
:
return
getMaterialCategories
();
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES
:
return
getConstructionCategories
();
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
}
...
...
@@ -116,6 +146,10 @@ public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog
getMaterialCategories
().
clear
();
getMaterialCategories
().
addAll
((
Collection
<?
extends
MaterialCategory
>)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES
:
getConstructionCategories
().
clear
();
getConstructionCategories
().
addAll
((
Collection
<?
extends
ConstructionCategory
>)
newValue
);
return
;
}
super
.
eSet
(
featureID
,
newValue
);
}
...
...
@@ -131,6 +165,9 @@ public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__MATERIAL_CATEGORIES
:
getMaterialCategories
().
clear
();
return
;
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES
:
getConstructionCategories
().
clear
();
return
;
}
super
.
eUnset
(
featureID
);
}
...
...
@@ -145,6 +182,8 @@ public class MaterialCatalogImpl extends CatalogImpl implements MaterialCatalog
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__MATERIAL_CATEGORIES
:
return
materialCategories
!=
null
&&
!
materialCategories
.
isEmpty
();
case
BuildingPhysicsPackage
.
MATERIAL_CATALOG__CONSTRUCTION_CATEGORIES
:
return
constructionCategories
!=
null
&&
!
constructionCategories
.
isEmpty
();
}
return
super
.
eIsSet
(
featureID
);
}
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/MaterialCategoryImpl.java
View file @
e2400453
...
...
@@ -30,7 +30,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialCategoryImpl#getMaterial <em>Material</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialCategoryImpl#getMaterial
s
<em>Material
s
</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialCategoryImpl#getName <em>Name</em>}</li>
* </ul>
*
...
...
@@ -38,14 +38,14 @@ import org.eclipse.emf.ecore.util.InternalEList;
*/
public
class
MaterialCategoryImpl
extends
MinimalEObjectImpl
.
Container
implements
MaterialCategory
{
/**
* The cached value of the '{@link #getMaterial() <em>Material</em>}' containment reference list.
* The cached value of the '{@link #getMaterial
s
() <em>Material
s
</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMaterial()
* @see #getMaterial
s
()
* @generated
* @ordered
*/
protected
EList
<
Material
>
material
;
protected
EList
<
Material
>
material
s
;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
...
...
@@ -92,12 +92,12 @@ public class MaterialCategoryImpl extends MinimalEObjectImpl.Container implement
* @generated
*/
@Override
public
EList
<
Material
>
getMaterial
()
{
if
(
material
==
null
)
{
material
=
new
EObjectContainmentEList
<
Material
>(
Material
.
class
,
this
,
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
);
public
EList
<
Material
>
getMaterial
s
()
{
if
(
material
s
==
null
)
{
material
s
=
new
EObjectContainmentEList
<
Material
>(
Material
.
class
,
this
,
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
S
);
}
return
material
;
return
material
s
;
}
/**
...
...
@@ -132,8 +132,8 @@ public class MaterialCategoryImpl extends MinimalEObjectImpl.Container implement
@Override
public
NotificationChain
eInverseRemove
(
InternalEObject
otherEnd
,
int
featureID
,
NotificationChain
msgs
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
:
return
((
InternalEList
<?>)
getMaterial
()).
basicRemove
(
otherEnd
,
msgs
);
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
S
:
return
((
InternalEList
<?>)
getMaterial
s
()).
basicRemove
(
otherEnd
,
msgs
);
}
return
super
.
eInverseRemove
(
otherEnd
,
featureID
,
msgs
);
}
...
...
@@ -146,8 +146,8 @@ public class MaterialCategoryImpl extends MinimalEObjectImpl.Container implement
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
:
return
getMaterial
();
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
S
:
return
getMaterial
s
();
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__NAME
:
return
getName
();
}
...
...
@@ -163,9 +163,9 @@ public class MaterialCategoryImpl extends MinimalEObjectImpl.Container implement
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
:
getMaterial
().
clear
();
getMaterial
().
addAll
((
Collection
<?
extends
Material
>)
newValue
);
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
S
:
getMaterial
s
().
clear
();
getMaterial
s
().
addAll
((
Collection
<?
extends
Material
>)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__NAME
:
setName
((
String
)
newValue
);
...
...
@@ -182,8 +182,8 @@ public class MaterialCategoryImpl extends MinimalEObjectImpl.Container implement
@Override
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
:
getMaterial
().
clear
();
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
S
:
getMaterial
s
().
clear
();
return
;
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__NAME
:
setName
(
NAME_EDEFAULT
);
...
...
@@ -200,8 +200,8 @@ public class MaterialCategoryImpl extends MinimalEObjectImpl.Container implement
@Override
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
:
return
material
!=
null
&&
!
material
.
isEmpty
();
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__MATERIAL
S
:
return
material
s
!=
null
&&
!
material
s
.
isEmpty
();
case
BuildingPhysicsPackage
.
MATERIAL_CATEGORY__NAME
:
return
NAME_EDEFAULT
==
null
?
name
!=
null
:
!
NAME_EDEFAULT
.
equals
(
name
);
}
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/MaterialImpl.java
View file @
e2400453
...
...
@@ -25,7 +25,7 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#get
Id <em>
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#get
MaterialId <em>Material
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getDensity <em>Density</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getHeatCapacity <em>Heat Capacity</em>}</li>
...
...
@@ -42,24 +42,24 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
*/
public
class
MaterialImpl
extends
MinimalEObjectImpl
.
Container
implements
Material
{
/**
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* The default value of the '{@link #get
Material
Id() <em>
Material
Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @see #get
Material
Id()
* @generated
* @ordered
*/
protected
static
final
long
ID_EDEFAULT
=
0L
;
protected
static
final
String
MATERIAL_
ID_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* The cached value of the '{@link #get
Material
Id() <em>
Material
Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @see #get
Material
Id()
* @generated
* @ordered
*/
protected
long
id
=
ID_EDEFAULT
;
protected
String
materialId
=
MATERIAL_
ID_EDEFAULT
;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
...
...
@@ -293,8 +293,8 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
* @generated
*/
@Override
public
lo
ng
getId
()
{
return
i
d
;
public
Stri
ng
get
Material
Id
()
{
return
materialI
d
;
}
/**
...
...
@@ -303,11 +303,12 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
* @generated
*/
@Override
public
void
set
Id
(
long
new
Id
)
{
lo
ng
old
Id
=
i
d
;
id
=
new
Id
;
public
void
set
MaterialId
(
String
newMaterial
Id
)
{
Stri
ng
old
MaterialId
=
materialI
d
;
materialId
=
newMaterial
Id
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__ID
,
oldId
,
id
));
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__MATERIAL_ID
,
oldMaterialId
,
materialId
));
}
/**
...
...
@@ -559,8 +560,8 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL__ID
:
return
getId
();
case
BuildingPhysicsPackage
.
MATERIAL__
MATERIAL_
ID
:
return
get
Material
Id
();
case
BuildingPhysicsPackage
.
MATERIAL__NAME
:
return
getName
();
case
BuildingPhysicsPackage
.
MATERIAL__DENSITY
:
...
...
@@ -593,8 +594,8 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL__ID
:
set
Id
((
Lo
ng
)
newValue
);
case
BuildingPhysicsPackage
.
MATERIAL__
MATERIAL_
ID
:
set
MaterialId
((
Stri
ng
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__NAME
:
setName
((
String
)
newValue
);
...
...
@@ -638,8 +639,8 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
@Override
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL__ID
:
set
Id
(
ID_EDEFAULT
);
case
BuildingPhysicsPackage
.
MATERIAL__
MATERIAL_
ID
:
set
MaterialId
(
MATERIAL_
ID_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__NAME
:
setName
(
NAME_EDEFAULT
);
...
...
@@ -683,8 +684,8 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
@Override
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MATERIAL__ID
:
return
id
!=
ID_EDEFAULT
;
case
BuildingPhysicsPackage
.
MATERIAL__
MATERIAL_
ID
:
return
MATERIAL_ID_EDEFAULT
==
null
?
materialId
!=
null
:
!
MATERIAL_ID_EDEFAULT
.
equals
(
materialId
)
;
case
BuildingPhysicsPackage
.
MATERIAL__NAME
:
return
NAME_EDEFAULT
==
null
?
name
!=
null
:
!
NAME_EDEFAULT
.
equals
(
name
);
case
BuildingPhysicsPackage
.
MATERIAL__DENSITY
:
...
...
@@ -726,8 +727,8 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
return
super
.
toString
();
StringBuilder
result
=
new
StringBuilder
(
super
.
toString
());
result
.
append
(
" (
i
d: "
);
result
.
append
(
i
d
);
result
.
append
(
" (
materialI
d: "
);
result
.
append
(
materialI
d
);
result
.
append
(
", name: "
);
result
.
append
(
name
);
result
.
append
(
", density: "
);
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/MountingImpl.java
0 → 100644
View file @
e2400453
/**
*/
package
de.hftstuttgart.buildingphysics.impl
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.Layer
;
import
de.hftstuttgart.buildingphysics.Mounting
;
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>Mounting</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MountingImpl#getMountingId <em>Mounting Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MountingImpl#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MountingImpl#getLayers <em>Layers</em>}</li>
* </ul>
*
* @generated
*/
public
class
MountingImpl
extends
MinimalEObjectImpl
.
Container
implements
Mounting
{
/**
* The default value of the '{@link #getMountingId() <em>Mounting Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMountingId()
* @generated
* @ordered
*/
protected
static
final
String
MOUNTING_ID_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getMountingId() <em>Mounting Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMountingId()
* @generated
* @ordered
*/
protected
String
mountingId
=
MOUNTING_ID_EDEFAULT
;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected
static
final
String
NAME_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected
String
name
=
NAME_EDEFAULT
;
/**
* The cached value of the '{@link #getLayers() <em>Layers</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLayers()
* @generated
* @ordered
*/
protected
EList
<
Layer
>
layers
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected
MountingImpl
()
{
super
();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected
EClass
eStaticClass
()
{
return
BuildingPhysicsPackage
.
Literals
.
MOUNTING
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getMountingId
()
{
return
mountingId
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setMountingId
(
String
newMountingId
)
{
String
oldMountingId
=
mountingId
;
mountingId
=
newMountingId
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MOUNTING__MOUNTING_ID
,
oldMountingId
,
mountingId
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getName
()
{
return
name
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setName
(
String
newName
)
{
String
oldName
=
name
;
name
=
newName
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MOUNTING__NAME
,
oldName
,
name
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EList
<
Layer
>
getLayers
()
{
if
(
layers
==
null
)
{
layers
=
new
EObjectContainmentEList
<
Layer
>(
Layer
.
class
,
this
,
BuildingPhysicsPackage
.
MOUNTING__LAYERS
);
}
return
layers
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NotificationChain
eInverseRemove
(
InternalEObject
otherEnd
,
int
featureID
,
NotificationChain
msgs
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MOUNTING__LAYERS
:
return
((
InternalEList
<?>)
getLayers
()).
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
BuildingPhysicsPackage
.
MOUNTING__MOUNTING_ID
:
return
getMountingId
();
case
BuildingPhysicsPackage
.
MOUNTING__NAME
:
return
getName
();
case
BuildingPhysicsPackage
.
MOUNTING__LAYERS
:
return
getLayers
();
}
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
BuildingPhysicsPackage
.
MOUNTING__MOUNTING_ID
:
setMountingId
((
String
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MOUNTING__NAME
:
setName
((
String
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MOUNTING__LAYERS
:
getLayers
().
clear
();
getLayers
().
addAll
((
Collection
<?
extends
Layer
>)
newValue
);
return
;
}
super
.
eSet
(
featureID
,
newValue
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MOUNTING__MOUNTING_ID
:
setMountingId
(
MOUNTING_ID_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MOUNTING__NAME
:
setName
(
NAME_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MOUNTING__LAYERS
:
getLayers
().
clear
();
return
;
}
super
.
eUnset
(
featureID
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
MOUNTING__MOUNTING_ID
:
return
MOUNTING_ID_EDEFAULT
==
null
?
mountingId
!=
null
:
!
MOUNTING_ID_EDEFAULT
.
equals
(
mountingId
);
case
BuildingPhysicsPackage
.
MOUNTING__NAME
:
return
NAME_EDEFAULT
==
null
?
name
!=
null
:
!
NAME_EDEFAULT
.
equals
(
name
);
case
BuildingPhysicsPackage
.
MOUNTING__LAYERS
:
return
layers
!=
null
&&
!
layers
.
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
(
" (mountingId: "
);
result
.
append
(
mountingId
);
result
.
append
(
", name: "
);
result
.
append
(
name
);
result
.
append
(
')'
);
return
result
.
toString
();
}
}
//MountingImpl
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/WindowTypeImpl.java
View file @
e2400453
...
...
@@ -25,7 +25,7 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#get
Id <em>
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#get
WindowTypeId <em>Window Type
Id</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getName <em>Name</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getUValue <em>UValue</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getGValue <em>GValue</em>}</li>
...
...
@@ -43,24 +43,24 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
*/
public
class
WindowTypeImpl
extends
MinimalEObjectImpl
.
Container
implements
WindowType
{
/**
* The default value of the '{@link #get
Id() <em>
Id</em>}' attribute.
* The default value of the '{@link #get
WindowTypeId() <em>Window Type
Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @see #get
WindowType
Id()
* @generated
* @ordered
*/
protected
static
final
int
ID_EDEFAULT
=
0
;
protected
static
final
String
WINDOW_TYPE_
ID_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #get
Id() <em>
Id</em>}' attribute.
* The cached value of the '{@link #get
WindowTypeId() <em>Window Type
Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @see #get
WindowType
Id()
* @generated
* @ordered
*/
protected
int
id
=
ID_EDEFAULT
;
protected
String
windowTypeId
=
WINDOW_TYPE_
ID_EDEFAULT
;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
...
...
@@ -312,8 +312,8 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
* @generated
*/
@Override
public
in
t
getId
()
{
return
i
d
;
public
Str
in
g
get
WindowType
Id
()
{
return
windowTypeI
d
;
}
/**
...
...
@@ -322,11 +322,12 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
* @generated
*/
@Override
public
void
set
Id
(
in
t
newId
)
{
in
t
old
Id
=
i
d
;
id
=
new
Id
;
public
void
set
WindowTypeId
(
Str
in
g
new
WindowType
Id
)
{
Str
in
g
old
WindowTypeId
=
windowTypeI
d
;
windowTypeId
=
newWindowType
Id
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__ID
,
oldId
,
id
));
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__WINDOW_TYPE_ID
,
oldWindowTypeId
,
windowTypeId
));
}
/**
...
...
@@ -603,8 +604,8 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
WINDOW_TYPE__ID
:
return
getId
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__
WINDOW_TYPE_
ID
:
return
get
WindowType
Id
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__NAME
:
return
getName
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__UVALUE
:
...
...
@@ -639,8 +640,8 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
@Override
public
void
eSet
(
int
featureID
,
Object
newValue
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
WINDOW_TYPE__ID
:
set
Id
((
Integer
)
newValue
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__
WINDOW_TYPE_
ID
:
set
WindowTypeId
((
String
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__NAME
:
setName
((
String
)
newValue
);
...
...
@@ -687,8 +688,8 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
@Override
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
WINDOW_TYPE__ID
:
set
Id
(
ID_EDEFAULT
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__
WINDOW_TYPE_
ID
:
set
WindowTypeId
(
WINDOW_TYPE_
ID_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__NAME
:
setName
(
NAME_EDEFAULT
);
...
...
@@ -735,8 +736,9 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
@Override
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
WINDOW_TYPE__ID
:
return
id
!=
ID_EDEFAULT
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__WINDOW_TYPE_ID
:
return
WINDOW_TYPE_ID_EDEFAULT
==
null
?
windowTypeId
!=
null
:
!
WINDOW_TYPE_ID_EDEFAULT
.
equals
(
windowTypeId
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__NAME
:
return
NAME_EDEFAULT
==
null
?
name
!=
null
:
!
NAME_EDEFAULT
.
equals
(
name
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__UVALUE
:
...
...
@@ -780,8 +782,8 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
return
super
.
toString
();
StringBuilder
result
=
new
StringBuilder
(
super
.
toString
());
result
.
append
(
" (
i
d: "
);
result
.
append
(
i
d
);
result
.
append
(
" (
windowTypeI
d: "
);
result
.
append
(
windowTypeI
d
);
result
.
append
(
", name: "
);
result
.
append
(
name
);
result
.
append
(
", uValue: "
);
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsAdapterFactory.java
View file @
e2400453
...
...
@@ -101,6 +101,21 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
return
createMaterialAdapter
();
}
@Override
public
Adapter
caseConstructionCategory
(
ConstructionCategory
object
)
{
return
createConstructionCategoryAdapter
();
}
@Override
public
Adapter
caseMounting
(
Mounting
object
)
{
return
createMountingAdapter
();
}
@Override
public
Adapter
caseLayer
(
Layer
object
)
{
return
createLayerAdapter
();
}
@Override
public
Adapter
defaultCase
(
EObject
object
)
{
return
createEObjectAdapter
();
...
...
@@ -218,6 +233,48 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
return
null
;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.ConstructionCategory <em>Construction Category</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.ConstructionCategory
* @generated
*/
public
Adapter
createConstructionCategoryAdapter
()
{
return
null
;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.Mounting <em>Mounting</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.Mounting
* @generated
*/
public
Adapter
createMountingAdapter
()
{
return
null
;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.Layer <em>Layer</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see de.hftstuttgart.buildingphysics.Layer
* @generated
*/
public
Adapter
createLayerAdapter
()
{
return
null
;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
View file @
e2400453
...
...
@@ -119,6 +119,27 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
return
result
;
}
case
BuildingPhysicsPackage
.
CONSTRUCTION_CATEGORY
:
{
ConstructionCategory
constructionCategory
=
(
ConstructionCategory
)
theEObject
;
T
result
=
caseConstructionCategory
(
constructionCategory
);
if
(
result
==
null
)
result
=
defaultCase
(
theEObject
);
return
result
;
}
case
BuildingPhysicsPackage
.
MOUNTING
:
{
Mounting
mounting
=
(
Mounting
)
theEObject
;
T
result
=
caseMounting
(
mounting
);
if
(
result
==
null
)
result
=
defaultCase
(
theEObject
);
return
result
;
}
case
BuildingPhysicsPackage
.
LAYER
:
{
Layer
layer
=
(
Layer
)
theEObject
;
T
result
=
caseLayer
(
layer
);
if
(
result
==
null
)
result
=
defaultCase
(
theEObject
);
return
result
;
}
default
:
return
defaultCase
(
theEObject
);
}
...
...
@@ -229,6 +250,51 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
return
null
;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Construction Category</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>Construction Category</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public
T
caseConstructionCategory
(
ConstructionCategory
object
)
{
return
null
;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Mounting</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>Mounting</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public
T
caseMounting
(
Mounting
object
)
{
return
null
;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Layer</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>Layer</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public
T
caseLayer
(
Layer
object
)
{
return
null
;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment