Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
cdf9e894
Commit
cdf9e894
authored
3 years ago
by
Kai-Holger Brassel
Browse files
Options
Download
Email Patches
Plain Diff
Generic master detail UI
parent
25674a38
master
No related merge requests found
Changes
29
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/Material.java
+142
-0
...physics/src/de/hftstuttgart/buildingphysics/Material.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/WindowType.java
+130
-11
...ysics/src/de/hftstuttgart/buildingphysics/WindowType.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/BuildingPhysicsFactoryImpl.java
+0
-13
...gart/buildingphysics/impl/BuildingPhysicsFactoryImpl.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/BuildingPhysicsPackageImpl.java
+106
-59
...gart/buildingphysics/impl/BuildingPhysicsPackageImpl.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/LifeCycleImpl.java
+0
-466
...c/de/hftstuttgart/buildingphysics/impl/LifeCycleImpl.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/MaterialImpl.java
+353
-0
...rc/de/hftstuttgart/buildingphysics/impl/MaterialImpl.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/WindowTypeImpl.java
+318
-50
.../de/hftstuttgart/buildingphysics/impl/WindowTypeImpl.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsAdapterFactory.java
+0
-19
...t/buildingphysics/util/BuildingPhysicsAdapterFactory.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
+0
-22
...stuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
with
1049 additions
and
640 deletions
+1049
-640
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/Material.java
+
142
-
0
View file @
cdf9e894
...
...
@@ -20,6 +20,12 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link de.hftstuttgart.buildingphysics.Material#getDensity <em>Density</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getHeatCapacity <em>Heat Capacity</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getConductivity <em>Conductivity</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getEmbodiedEnergy <em>Embodied Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getEmbodiedCarbon <em>Embodied Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getConstructionDescription <em>Construction Description</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getDisposalEnergy <em>Disposal Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getDisposalCarbon <em>Disposal Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.Material#getDisposalDescription <em>Disposal Description</em>}</li>
* </ul>
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getMaterial()
...
...
@@ -140,4 +146,140 @@ public interface Material extends EObject {
*/
void
setConductivity
(
NullableQuantity
value
);
/**
* Returns the value of the '<em><b>Embodied Energy</b></em>' attribute.
* The default value is <code>"kW*h/kg"</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#getMaterial_EmbodiedEnergy()
* @model default="kW*h/kg" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getEmbodiedEnergy
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Material#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#getMaterial_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.Material#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#getMaterial_ConstructionDescription()
* @model required="true"
* @generated
*/
String
getConstructionDescription
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Material#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/kg"</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#getMaterial_DisposalEnergy()
* @model default="kW*h/kg" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getDisposalEnergy
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Material#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#getMaterial_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.Material#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#getMaterial_DisposalDescription()
* @model required="true"
* @generated
*/
String
getDisposalDescription
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.Material#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
);
}
// Material
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/WindowType.java
+
130
-
11
View file @
cdf9e894
...
...
@@ -20,7 +20,12 @@ import org.eclipse.emf.ecore.EObject;
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getGValue <em>GValue</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getGlazingNumber <em>Glazing Number</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getFrameRatio <em>Frame Ratio</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getLifeCycle <em>Life Cycle</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getEmbodiedEnergy <em>Embodied Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getEmbodiedCarbon <em>Embodied Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getConstructionDescription <em>Construction Description</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getDisposalEnergy <em>Disposal Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getDisposalCarbon <em>Disposal Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.WindowType#getDisposalDescription <em>Disposal Description</em>}</li>
* </ul>
*
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType()
...
...
@@ -169,25 +174,139 @@ public interface WindowType extends EObject {
void
setFrameRatio
(
double
value
);
/**
* Returns the value of the '<em><b>Life Cycle</b></em>' containment reference.
* Returns the value of the '<em><b>Embodied Energy</b></em>' attribute.
* The default value is <code>"kW*h/m\u00b2"</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>
Life Cycle</em>' containment referenc
e.
* @see #set
LifeCycle(LifeCycle
)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_
LifeCycle
()
* @model
containment="true" required="true" suppressedUnsetVisibility
="true"
* @return the value of the '<em>
Embodied Energy</em>' attribut
e.
* @see #set
EmbodiedEnergy(NullableQuantity
)
* @see de.hftstuttgart.buildingphysics.BuildingPhysicsPackage#getWindowType_
EmbodiedEnergy
()
* @model
default="kW*h/m\u00b2" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required
="true"
* @generated
*/
LifeCycle
getLifeCycle
();
NullableQuantity
getEmbodiedEnergy
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#get
LifeCycle <em>Life Cycle</em>}' containment referenc
e.
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#get
EmbodiedEnergy <em>Embodied Energy</em>}' attribut
e.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>
Life Cycle</em>' containment referenc
e.
* @see #get
LifeCycle
()
* @param value the new value of the '<em>
Embodied Energy</em>' attribut
e.
* @see #get
EmbodiedEnergy
()
* @generated
*/
void
setLifeCycle
(
LifeCycle
value
);
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#getWindowType_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.WindowType#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#getWindowType_ConstructionDescription()
* @model required="true"
* @generated
*/
String
getConstructionDescription
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#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/m\u00b2"</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#getWindowType_DisposalEnergy()
* @model default="kW*h/m\u00b2" dataType="de.hftstuttgart.cityunits.model.quantities.QuantityDouble" required="true"
* @generated
*/
NullableQuantity
getDisposalEnergy
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#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#getWindowType_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.WindowType#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#getWindowType_DisposalDescription()
* @model required="true"
* @generated
*/
String
getDisposalDescription
();
/**
* Sets the value of the '{@link de.hftstuttgart.buildingphysics.WindowType#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
);
}
// WindowType
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/BuildingPhysicsFactoryImpl.java
+
0
-
13
View file @
cdf9e894
...
...
@@ -68,8 +68,6 @@ public class BuildingPhysicsFactoryImpl extends EFactoryImpl implements Building
return
createMaterialCategory
();
case
BuildingPhysicsPackage
.
MATERIAL
:
return
createMaterial
();
case
BuildingPhysicsPackage
.
LIFE_CYCLE
:
return
createLifeCycle
();
default
:
throw
new
IllegalArgumentException
(
"The class '"
+
eClass
.
getName
()
+
"' is not a valid classifier"
);
}
...
...
@@ -141,17 +139,6 @@ public class BuildingPhysicsFactoryImpl extends EFactoryImpl implements Building
return
material
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
LifeCycle
createLifeCycle
()
{
LifeCycleImpl
lifeCycle
=
new
LifeCycleImpl
();
return
lifeCycle
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/BuildingPhysicsPackageImpl.java
+
106
-
59
View file @
cdf9e894
...
...
@@ -6,7 +6,6 @@ import de.hftstuttgart.buildingphysics.BuildingPhysicsCatalog;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsFactory
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.Catalog
;
import
de.hftstuttgart.buildingphysics.LifeCycle
;
import
de.hftstuttgart.buildingphysics.Material
;
import
de.hftstuttgart.buildingphysics.MaterialCatalog
;
import
de.hftstuttgart.buildingphysics.MaterialCategory
;
...
...
@@ -78,13 +77,6 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
*/
private
EClass
materialEClass
=
null
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private
EClass
lifeCycleEClass
=
null
;
/**
* Creates an instance of the model <b>Package</b>, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
...
...
@@ -268,8 +260,58 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EReference
getWindowType_LifeCycle
()
{
return
(
EReference
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
6
);
public
EAttribute
getWindowType_EmbodiedEnergy
()
{
return
(
EAttribute
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
6
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getWindowType_EmbodiedCarbon
()
{
return
(
EAttribute
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
7
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getWindowType_ConstructionDescription
()
{
return
(
EAttribute
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
8
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getWindowType_DisposalEnergy
()
{
return
(
EAttribute
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
9
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getWindowType_DisposalCarbon
()
{
return
(
EAttribute
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
10
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getWindowType_DisposalDescription
()
{
return
(
EAttribute
)
windowTypeEClass
.
getEStructuralFeatures
().
get
(
11
);
}
/**
...
...
@@ -448,18 +490,8 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EClass
getLifeCycle
()
{
return
lifeCycleEClass
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
EAttribute
getLifeCycle_EmbodiedEnergy
()
{
return
(
EAttribute
)
lifeCycleEClass
.
getEStructuralFeatures
().
get
(
0
);
public
EAttribute
getMaterial_EmbodiedEnergy
()
{
return
(
EAttribute
)
materialEClass
.
getEStructuralFeatures
().
get
(
5
);
}
/**
...
...
@@ -468,8 +500,8 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EAttribute
get
LifeCycle
_EmbodiedCarbon
()
{
return
(
EAttribute
)
lifeCycle
EClass
.
getEStructuralFeatures
().
get
(
1
);
public
EAttribute
get
Material
_EmbodiedCarbon
()
{
return
(
EAttribute
)
material
EClass
.
getEStructuralFeatures
().
get
(
6
);
}
/**
...
...
@@ -478,8 +510,8 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EAttribute
get
LifeCycle
_ConstructionDescription
()
{
return
(
EAttribute
)
lifeCycle
EClass
.
getEStructuralFeatures
().
get
(
2
);
public
EAttribute
get
Material
_ConstructionDescription
()
{
return
(
EAttribute
)
material
EClass
.
getEStructuralFeatures
().
get
(
7
);
}
/**
...
...
@@ -488,8 +520,8 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EAttribute
get
LifeCycle
_DisposalEnergy
()
{
return
(
EAttribute
)
lifeCycle
EClass
.
getEStructuralFeatures
().
get
(
3
);
public
EAttribute
get
Material
_DisposalEnergy
()
{
return
(
EAttribute
)
material
EClass
.
getEStructuralFeatures
().
get
(
8
);
}
/**
...
...
@@ -498,8 +530,8 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EAttribute
get
LifeCycle
_DisposalCarbon
()
{
return
(
EAttribute
)
lifeCycle
EClass
.
getEStructuralFeatures
().
get
(
4
);
public
EAttribute
get
Material
_DisposalCarbon
()
{
return
(
EAttribute
)
material
EClass
.
getEStructuralFeatures
().
get
(
9
);
}
/**
...
...
@@ -508,8 +540,8 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
* @generated
*/
@Override
public
EAttribute
get
LifeCycle
_DisposalDescription
()
{
return
(
EAttribute
)
lifeCycle
EClass
.
getEStructuralFeatures
().
get
(
5
);
public
EAttribute
get
Material
_DisposalDescription
()
{
return
(
EAttribute
)
material
EClass
.
getEStructuralFeatures
().
get
(
10
);
}
/**
...
...
@@ -554,7 +586,12 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__GVALUE
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__GLAZING_NUMBER
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__FRAME_RATIO
);
createEReference
(
windowTypeEClass
,
WINDOW_TYPE__LIFE_CYCLE
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__EMBODIED_ENERGY
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__EMBODIED_CARBON
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__CONSTRUCTION_DESCRIPTION
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__DISPOSAL_ENERGY
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__DISPOSAL_CARBON
);
createEAttribute
(
windowTypeEClass
,
WINDOW_TYPE__DISPOSAL_DESCRIPTION
);
catalogEClass
=
createEClass
(
CATALOG
);
createEAttribute
(
catalogEClass
,
CATALOG__NAME
);
...
...
@@ -577,14 +614,12 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
createEAttribute
(
materialEClass
,
MATERIAL__DENSITY
);
createEAttribute
(
materialEClass
,
MATERIAL__HEAT_CAPACITY
);
createEAttribute
(
materialEClass
,
MATERIAL__CONDUCTIVITY
);
lifeCycleEClass
=
createEClass
(
LIFE_CYCLE
);
createEAttribute
(
lifeCycleEClass
,
LIFE_CYCLE__EMBODIED_ENERGY
);
createEAttribute
(
lifeCycleEClass
,
LIFE_CYCLE__EMBODIED_CARBON
);
createEAttribute
(
lifeCycleEClass
,
LIFE_CYCLE__CONSTRUCTION_DESCRIPTION
);
createEAttribute
(
lifeCycleEClass
,
LIFE_CYCLE__DISPOSAL_ENERGY
);
createEAttribute
(
lifeCycleEClass
,
LIFE_CYCLE__DISPOSAL_CARBON
);
createEAttribute
(
lifeCycleEClass
,
LIFE_CYCLE__DISPOSAL_DESCRIPTION
);
createEAttribute
(
materialEClass
,
MATERIAL__EMBODIED_ENERGY
);
createEAttribute
(
materialEClass
,
MATERIAL__EMBODIED_CARBON
);
createEAttribute
(
materialEClass
,
MATERIAL__CONSTRUCTION_DESCRIPTION
);
createEAttribute
(
materialEClass
,
MATERIAL__DISPOSAL_ENERGY
);
createEAttribute
(
materialEClass
,
MATERIAL__DISPOSAL_CARBON
);
createEAttribute
(
materialEClass
,
MATERIAL__DISPOSAL_DESCRIPTION
);
}
/**
...
...
@@ -653,9 +688,24 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
initEAttribute
(
getWindowType_FrameRatio
(),
ecorePackage
.
getEDouble
(),
"frameRatio"
,
null
,
1
,
1
,
WindowType
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEReference
(
getWindowType_LifeCycle
(),
this
.
getLifeCycle
(),
null
,
"lifeCycle"
,
null
,
1
,
1
,
WindowType
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
IS_COMPOSITE
,
!
IS_RESOLVE_PROXIES
,
!
IS_UNSETTABLE
,
!
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getWindowType_EmbodiedEnergy
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"embodiedEnergy"
,
"kW*h/m\u00b2"
,
1
,
1
,
WindowType
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getWindowType_EmbodiedCarbon
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"embodiedCarbon"
,
"kg"
,
1
,
1
,
WindowType
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getWindowType_ConstructionDescription
(),
ecorePackage
.
getEString
(),
"constructionDescription"
,
null
,
1
,
1
,
WindowType
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getWindowType_DisposalEnergy
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"disposalEnergy"
,
"kW*h/m\u00b2"
,
1
,
1
,
WindowType
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getWindowType_DisposalCarbon
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"disposalCarbon"
,
"kg"
,
1
,
1
,
WindowType
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
getWindowType_DisposalDescription
(),
ecorePackage
.
getEString
(),
"disposalDescription"
,
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
,
...
...
@@ -701,26 +751,23 @@ public class BuildingPhysicsPackageImpl extends EPackageImpl implements Building
initEAttribute
(
getMaterial_Conductivity
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"conductivity"
,
"W/(m*K)"
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEClass
(
lifeCycleEClass
,
LifeCycle
.
class
,
"LifeCycle"
,
!
IS_ABSTRACT
,
!
IS_INTERFACE
,
IS_GENERATED_INSTANCE_CLASS
);
initEAttribute
(
getLifeCycle_EmbodiedEnergy
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"embodiedEnergy"
,
"kW*h"
,
1
,
1
,
LifeCycle
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
initEAttribute
(
getMaterial_EmbodiedEnergy
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"embodiedEnergy"
,
"kW*h/kg"
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
get
LifeCycle
_EmbodiedCarbon
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"embodiedCarbon"
,
"kg"
,
1
,
1
,
LifeCycle
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
initEAttribute
(
get
Material
_EmbodiedCarbon
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"embodiedCarbon"
,
"kg"
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
get
LifeCycle
_ConstructionDescription
(),
ecorePackage
.
getEString
(),
"constructionDescription"
,
null
,
1
,
1
,
LifeCycle
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
initEAttribute
(
get
Material
_ConstructionDescription
(),
ecorePackage
.
getEString
(),
"constructionDescription"
,
null
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
get
LifeCycle
_DisposalEnergy
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"disposalEnergy"
,
"kW*h"
,
1
,
1
,
LifeCycle
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
initEAttribute
(
get
Material
_DisposalEnergy
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"disposalEnergy"
,
"kW*h
/kg
"
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
get
LifeCycle
_DisposalCarbon
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"disposalCarbon"
,
"kg"
,
1
,
1
,
LifeCycle
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
initEAttribute
(
get
Material
_DisposalCarbon
(),
theQuantitiesPackage
.
getQuantityDouble
(),
"disposalCarbon"
,
"kg"
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
initEAttribute
(
get
LifeCycle
_DisposalDescription
(),
ecorePackage
.
getEString
(),
"disposalDescription"
,
null
,
1
,
1
,
LifeCycle
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
initEAttribute
(
get
Material
_DisposalDescription
(),
ecorePackage
.
getEString
(),
"disposalDescription"
,
null
,
1
,
1
,
Material
.
class
,
!
IS_TRANSIENT
,
!
IS_VOLATILE
,
IS_CHANGEABLE
,
!
IS_UNSETTABLE
,
!
IS_ID
,
IS_UNIQUE
,
!
IS_DERIVED
,
IS_ORDERED
);
// Create resource
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/LifeCycleImpl.java
deleted
100644 → 0
+
0
-
466
View file @
25674a38
/**
*/
package
de.hftstuttgart.buildingphysics.impl
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.LifeCycle
;
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.impl.ENotificationImpl
;
import
org.eclipse.emf.ecore.impl.MinimalEObjectImpl
;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Life Cycle</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LifeCycleImpl#getEmbodiedEnergy <em>Embodied Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LifeCycleImpl#getEmbodiedCarbon <em>Embodied Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LifeCycleImpl#getConstructionDescription <em>Construction Description</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LifeCycleImpl#getDisposalEnergy <em>Disposal Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LifeCycleImpl#getDisposalCarbon <em>Disposal Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.LifeCycleImpl#getDisposalDescription <em>Disposal Description</em>}</li>
* </ul>
*
* @generated
*/
public
class
LifeCycleImpl
extends
MinimalEObjectImpl
.
Container
implements
LifeCycle
{
/**
* The default value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedEnergy()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
EMBODIED_ENERGY_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kW*h"
);
/**
* The cached value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedEnergy()
* @generated
* @ordered
*/
protected
NullableQuantity
embodiedEnergy
=
EMBODIED_ENERGY_EDEFAULT
;
/**
* The default value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedCarbon()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
EMBODIED_CARBON_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kg"
);
/**
* The cached value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedCarbon()
* @generated
* @ordered
*/
protected
NullableQuantity
embodiedCarbon
=
EMBODIED_CARBON_EDEFAULT
;
/**
* The default value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConstructionDescription()
* @generated
* @ordered
*/
protected
static
final
String
CONSTRUCTION_DESCRIPTION_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConstructionDescription()
* @generated
* @ordered
*/
protected
String
constructionDescription
=
CONSTRUCTION_DESCRIPTION_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalEnergy()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
DISPOSAL_ENERGY_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kW*h"
);
/**
* The cached value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalEnergy()
* @generated
* @ordered
*/
protected
NullableQuantity
disposalEnergy
=
DISPOSAL_ENERGY_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalCarbon()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
DISPOSAL_CARBON_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kg"
);
/**
* The cached value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalCarbon()
* @generated
* @ordered
*/
protected
NullableQuantity
disposalCarbon
=
DISPOSAL_CARBON_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalDescription()
* @generated
* @ordered
*/
protected
static
final
String
DISPOSAL_DESCRIPTION_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalDescription()
* @generated
* @ordered
*/
protected
String
disposalDescription
=
DISPOSAL_DESCRIPTION_EDEFAULT
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected
LifeCycleImpl
()
{
super
();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected
EClass
eStaticClass
()
{
return
BuildingPhysicsPackage
.
Literals
.
LIFE_CYCLE
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getEmbodiedEnergy
()
{
return
embodiedEnergy
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setEmbodiedEnergy
(
NullableQuantity
newEmbodiedEnergy
)
{
NullableQuantity
oldEmbodiedEnergy
=
embodiedEnergy
;
embodiedEnergy
=
newEmbodiedEnergy
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_ENERGY
,
oldEmbodiedEnergy
,
embodiedEnergy
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getEmbodiedCarbon
()
{
return
embodiedCarbon
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setEmbodiedCarbon
(
NullableQuantity
newEmbodiedCarbon
)
{
NullableQuantity
oldEmbodiedCarbon
=
embodiedCarbon
;
embodiedCarbon
=
newEmbodiedCarbon
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_CARBON
,
oldEmbodiedCarbon
,
embodiedCarbon
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getConstructionDescription
()
{
return
constructionDescription
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setConstructionDescription
(
String
newConstructionDescription
)
{
String
oldConstructionDescription
=
constructionDescription
;
constructionDescription
=
newConstructionDescription
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LIFE_CYCLE__CONSTRUCTION_DESCRIPTION
,
oldConstructionDescription
,
constructionDescription
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getDisposalEnergy
()
{
return
disposalEnergy
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalEnergy
(
NullableQuantity
newDisposalEnergy
)
{
NullableQuantity
oldDisposalEnergy
=
disposalEnergy
;
disposalEnergy
=
newDisposalEnergy
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_ENERGY
,
oldDisposalEnergy
,
disposalEnergy
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getDisposalCarbon
()
{
return
disposalCarbon
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalCarbon
(
NullableQuantity
newDisposalCarbon
)
{
NullableQuantity
oldDisposalCarbon
=
disposalCarbon
;
disposalCarbon
=
newDisposalCarbon
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_CARBON
,
oldDisposalCarbon
,
disposalCarbon
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getDisposalDescription
()
{
return
disposalDescription
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalDescription
(
String
newDisposalDescription
)
{
String
oldDisposalDescription
=
disposalDescription
;
disposalDescription
=
newDisposalDescription
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_DESCRIPTION
,
oldDisposalDescription
,
disposalDescription
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
Object
eGet
(
int
featureID
,
boolean
resolve
,
boolean
coreType
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_ENERGY
:
return
getEmbodiedEnergy
();
case
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_CARBON
:
return
getEmbodiedCarbon
();
case
BuildingPhysicsPackage
.
LIFE_CYCLE__CONSTRUCTION_DESCRIPTION
:
return
getConstructionDescription
();
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_ENERGY
:
return
getDisposalEnergy
();
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_CARBON
:
return
getDisposalCarbon
();
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_DESCRIPTION
:
return
getDisposalDescription
();
}
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
.
LIFE_CYCLE__EMBODIED_ENERGY
:
setEmbodiedEnergy
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_CARBON
:
setEmbodiedCarbon
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__CONSTRUCTION_DESCRIPTION
:
setConstructionDescription
((
String
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_ENERGY
:
setDisposalEnergy
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_CARBON
:
setDisposalCarbon
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_DESCRIPTION
:
setDisposalDescription
((
String
)
newValue
);
return
;
}
super
.
eSet
(
featureID
,
newValue
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
eUnset
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_ENERGY
:
setEmbodiedEnergy
(
EMBODIED_ENERGY_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_CARBON
:
setEmbodiedCarbon
(
EMBODIED_CARBON_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__CONSTRUCTION_DESCRIPTION
:
setConstructionDescription
(
CONSTRUCTION_DESCRIPTION_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_ENERGY
:
setDisposalEnergy
(
DISPOSAL_ENERGY_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_CARBON
:
setDisposalCarbon
(
DISPOSAL_CARBON_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_DESCRIPTION
:
setDisposalDescription
(
DISPOSAL_DESCRIPTION_EDEFAULT
);
return
;
}
super
.
eUnset
(
featureID
);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
boolean
eIsSet
(
int
featureID
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_ENERGY
:
return
EMBODIED_ENERGY_EDEFAULT
==
null
?
embodiedEnergy
!=
null
:
!
EMBODIED_ENERGY_EDEFAULT
.
equals
(
embodiedEnergy
);
case
BuildingPhysicsPackage
.
LIFE_CYCLE__EMBODIED_CARBON
:
return
EMBODIED_CARBON_EDEFAULT
==
null
?
embodiedCarbon
!=
null
:
!
EMBODIED_CARBON_EDEFAULT
.
equals
(
embodiedCarbon
);
case
BuildingPhysicsPackage
.
LIFE_CYCLE__CONSTRUCTION_DESCRIPTION
:
return
CONSTRUCTION_DESCRIPTION_EDEFAULT
==
null
?
constructionDescription
!=
null
:
!
CONSTRUCTION_DESCRIPTION_EDEFAULT
.
equals
(
constructionDescription
);
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_ENERGY
:
return
DISPOSAL_ENERGY_EDEFAULT
==
null
?
disposalEnergy
!=
null
:
!
DISPOSAL_ENERGY_EDEFAULT
.
equals
(
disposalEnergy
);
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_CARBON
:
return
DISPOSAL_CARBON_EDEFAULT
==
null
?
disposalCarbon
!=
null
:
!
DISPOSAL_CARBON_EDEFAULT
.
equals
(
disposalCarbon
);
case
BuildingPhysicsPackage
.
LIFE_CYCLE__DISPOSAL_DESCRIPTION
:
return
DISPOSAL_DESCRIPTION_EDEFAULT
==
null
?
disposalDescription
!=
null
:
!
DISPOSAL_DESCRIPTION_EDEFAULT
.
equals
(
disposalDescription
);
}
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
(
" (embodiedEnergy: "
);
result
.
append
(
embodiedEnergy
);
result
.
append
(
", embodiedCarbon: "
);
result
.
append
(
embodiedCarbon
);
result
.
append
(
", constructionDescription: "
);
result
.
append
(
constructionDescription
);
result
.
append
(
", disposalEnergy: "
);
result
.
append
(
disposalEnergy
);
result
.
append
(
", disposalCarbon: "
);
result
.
append
(
disposalCarbon
);
result
.
append
(
", disposalDescription: "
);
result
.
append
(
disposalDescription
);
result
.
append
(
')'
);
return
result
.
toString
();
}
}
//LifeCycleImpl
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/MaterialImpl.java
+
353
-
0
View file @
cdf9e894
...
...
@@ -30,6 +30,12 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
* <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>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getConductivity <em>Conductivity</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getEmbodiedEnergy <em>Embodied Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getEmbodiedCarbon <em>Embodied Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getConstructionDescription <em>Construction Description</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getDisposalEnergy <em>Disposal Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getDisposalCarbon <em>Disposal Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.MaterialImpl#getDisposalDescription <em>Disposal Description</em>}</li>
* </ul>
*
* @generated
...
...
@@ -138,6 +144,130 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
*/
protected
NullableQuantity
conductivity
=
CONDUCTIVITY_EDEFAULT
;
/**
* The default value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedEnergy()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
EMBODIED_ENERGY_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kW*h/kg"
);
/**
* The cached value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedEnergy()
* @generated
* @ordered
*/
protected
NullableQuantity
embodiedEnergy
=
EMBODIED_ENERGY_EDEFAULT
;
/**
* The default value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedCarbon()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
EMBODIED_CARBON_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kg"
);
/**
* The cached value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedCarbon()
* @generated
* @ordered
*/
protected
NullableQuantity
embodiedCarbon
=
EMBODIED_CARBON_EDEFAULT
;
/**
* The default value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConstructionDescription()
* @generated
* @ordered
*/
protected
static
final
String
CONSTRUCTION_DESCRIPTION_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConstructionDescription()
* @generated
* @ordered
*/
protected
String
constructionDescription
=
CONSTRUCTION_DESCRIPTION_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalEnergy()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
DISPOSAL_ENERGY_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kW*h/kg"
);
/**
* The cached value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalEnergy()
* @generated
* @ordered
*/
protected
NullableQuantity
disposalEnergy
=
DISPOSAL_ENERGY_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalCarbon()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
DISPOSAL_CARBON_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kg"
);
/**
* The cached value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalCarbon()
* @generated
* @ordered
*/
protected
NullableQuantity
disposalCarbon
=
DISPOSAL_CARBON_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalDescription()
* @generated
* @ordered
*/
protected
static
final
String
DISPOSAL_DESCRIPTION_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalDescription()
* @generated
* @ordered
*/
protected
String
disposalDescription
=
DISPOSAL_DESCRIPTION_EDEFAULT
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
@@ -276,6 +406,151 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
oldConductivity
,
conductivity
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getEmbodiedEnergy
()
{
return
embodiedEnergy
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setEmbodiedEnergy
(
NullableQuantity
newEmbodiedEnergy
)
{
NullableQuantity
oldEmbodiedEnergy
=
embodiedEnergy
;
embodiedEnergy
=
newEmbodiedEnergy
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_ENERGY
,
oldEmbodiedEnergy
,
embodiedEnergy
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getEmbodiedCarbon
()
{
return
embodiedCarbon
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setEmbodiedCarbon
(
NullableQuantity
newEmbodiedCarbon
)
{
NullableQuantity
oldEmbodiedCarbon
=
embodiedCarbon
;
embodiedCarbon
=
newEmbodiedCarbon
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_CARBON
,
oldEmbodiedCarbon
,
embodiedCarbon
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getConstructionDescription
()
{
return
constructionDescription
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setConstructionDescription
(
String
newConstructionDescription
)
{
String
oldConstructionDescription
=
constructionDescription
;
constructionDescription
=
newConstructionDescription
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__CONSTRUCTION_DESCRIPTION
,
oldConstructionDescription
,
constructionDescription
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getDisposalEnergy
()
{
return
disposalEnergy
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalEnergy
(
NullableQuantity
newDisposalEnergy
)
{
NullableQuantity
oldDisposalEnergy
=
disposalEnergy
;
disposalEnergy
=
newDisposalEnergy
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_ENERGY
,
oldDisposalEnergy
,
disposalEnergy
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getDisposalCarbon
()
{
return
disposalCarbon
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalCarbon
(
NullableQuantity
newDisposalCarbon
)
{
NullableQuantity
oldDisposalCarbon
=
disposalCarbon
;
disposalCarbon
=
newDisposalCarbon
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_CARBON
,
oldDisposalCarbon
,
disposalCarbon
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getDisposalDescription
()
{
return
disposalDescription
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalDescription
(
String
newDisposalDescription
)
{
String
oldDisposalDescription
=
disposalDescription
;
disposalDescription
=
newDisposalDescription
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_DESCRIPTION
,
oldDisposalDescription
,
disposalDescription
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
...
...
@@ -294,6 +569,18 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
return
getHeatCapacity
();
case
BuildingPhysicsPackage
.
MATERIAL__CONDUCTIVITY
:
return
getConductivity
();
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_ENERGY
:
return
getEmbodiedEnergy
();
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_CARBON
:
return
getEmbodiedCarbon
();
case
BuildingPhysicsPackage
.
MATERIAL__CONSTRUCTION_DESCRIPTION
:
return
getConstructionDescription
();
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_ENERGY
:
return
getDisposalEnergy
();
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_CARBON
:
return
getDisposalCarbon
();
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_DESCRIPTION
:
return
getDisposalDescription
();
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
}
...
...
@@ -321,6 +608,24 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
case
BuildingPhysicsPackage
.
MATERIAL__CONDUCTIVITY
:
setConductivity
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_ENERGY
:
setEmbodiedEnergy
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_CARBON
:
setEmbodiedCarbon
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__CONSTRUCTION_DESCRIPTION
:
setConstructionDescription
((
String
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_ENERGY
:
setDisposalEnergy
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_CARBON
:
setDisposalCarbon
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_DESCRIPTION
:
setDisposalDescription
((
String
)
newValue
);
return
;
}
super
.
eSet
(
featureID
,
newValue
);
}
...
...
@@ -348,6 +653,24 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
case
BuildingPhysicsPackage
.
MATERIAL__CONDUCTIVITY
:
setConductivity
(
CONDUCTIVITY_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_ENERGY
:
setEmbodiedEnergy
(
EMBODIED_ENERGY_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_CARBON
:
setEmbodiedCarbon
(
EMBODIED_CARBON_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__CONSTRUCTION_DESCRIPTION
:
setConstructionDescription
(
CONSTRUCTION_DESCRIPTION_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_ENERGY
:
setDisposalEnergy
(
DISPOSAL_ENERGY_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_CARBON
:
setDisposalCarbon
(
DISPOSAL_CARBON_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_DESCRIPTION
:
setDisposalDescription
(
DISPOSAL_DESCRIPTION_EDEFAULT
);
return
;
}
super
.
eUnset
(
featureID
);
}
...
...
@@ -370,6 +693,24 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
return
HEAT_CAPACITY_EDEFAULT
==
null
?
heatCapacity
!=
null
:
!
HEAT_CAPACITY_EDEFAULT
.
equals
(
heatCapacity
);
case
BuildingPhysicsPackage
.
MATERIAL__CONDUCTIVITY
:
return
CONDUCTIVITY_EDEFAULT
==
null
?
conductivity
!=
null
:
!
CONDUCTIVITY_EDEFAULT
.
equals
(
conductivity
);
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_ENERGY
:
return
EMBODIED_ENERGY_EDEFAULT
==
null
?
embodiedEnergy
!=
null
:
!
EMBODIED_ENERGY_EDEFAULT
.
equals
(
embodiedEnergy
);
case
BuildingPhysicsPackage
.
MATERIAL__EMBODIED_CARBON
:
return
EMBODIED_CARBON_EDEFAULT
==
null
?
embodiedCarbon
!=
null
:
!
EMBODIED_CARBON_EDEFAULT
.
equals
(
embodiedCarbon
);
case
BuildingPhysicsPackage
.
MATERIAL__CONSTRUCTION_DESCRIPTION
:
return
CONSTRUCTION_DESCRIPTION_EDEFAULT
==
null
?
constructionDescription
!=
null
:
!
CONSTRUCTION_DESCRIPTION_EDEFAULT
.
equals
(
constructionDescription
);
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_ENERGY
:
return
DISPOSAL_ENERGY_EDEFAULT
==
null
?
disposalEnergy
!=
null
:
!
DISPOSAL_ENERGY_EDEFAULT
.
equals
(
disposalEnergy
);
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_CARBON
:
return
DISPOSAL_CARBON_EDEFAULT
==
null
?
disposalCarbon
!=
null
:
!
DISPOSAL_CARBON_EDEFAULT
.
equals
(
disposalCarbon
);
case
BuildingPhysicsPackage
.
MATERIAL__DISPOSAL_DESCRIPTION
:
return
DISPOSAL_DESCRIPTION_EDEFAULT
==
null
?
disposalDescription
!=
null
:
!
DISPOSAL_DESCRIPTION_EDEFAULT
.
equals
(
disposalDescription
);
}
return
super
.
eIsSet
(
featureID
);
}
...
...
@@ -395,6 +736,18 @@ public class MaterialImpl extends MinimalEObjectImpl.Container implements Materi
result
.
append
(
heatCapacity
);
result
.
append
(
", conductivity: "
);
result
.
append
(
conductivity
);
result
.
append
(
", embodiedEnergy: "
);
result
.
append
(
embodiedEnergy
);
result
.
append
(
", embodiedCarbon: "
);
result
.
append
(
embodiedCarbon
);
result
.
append
(
", constructionDescription: "
);
result
.
append
(
constructionDescription
);
result
.
append
(
", disposalEnergy: "
);
result
.
append
(
disposalEnergy
);
result
.
append
(
", disposalCarbon: "
);
result
.
append
(
disposalCarbon
);
result
.
append
(
", disposalDescription: "
);
result
.
append
(
disposalDescription
);
result
.
append
(
')'
);
return
result
.
toString
();
}
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/impl/WindowTypeImpl.java
+
318
-
50
View file @
cdf9e894
...
...
@@ -3,16 +3,17 @@
package
de.hftstuttgart.buildingphysics.impl
;
import
de.hftstuttgart.buildingphysics.BuildingPhysicsPackage
;
import
de.hftstuttgart.buildingphysics.LifeCycle
;
import
de.hftstuttgart.buildingphysics.WindowType
;
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.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
;
...
...
@@ -30,7 +31,12 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getGValue <em>GValue</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getGlazingNumber <em>Glazing Number</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getFrameRatio <em>Frame Ratio</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getLifeCycle <em>Life Cycle</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getEmbodiedEnergy <em>Embodied Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getEmbodiedCarbon <em>Embodied Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getConstructionDescription <em>Construction Description</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getDisposalEnergy <em>Disposal Energy</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getDisposalCarbon <em>Disposal Carbon</em>}</li>
* <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getDisposalDescription <em>Disposal Description</em>}</li>
* </ul>
*
* @generated
...
...
@@ -158,14 +164,128 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
protected
double
frameRatio
=
FRAME_RATIO_EDEFAULT
;
/**
* The cached value of the '{@link #getLifeCycle() <em>Life Cycle</em>}' containment reference.
* The default value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedEnergy()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
EMBODIED_ENERGY_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kW*h/m\u00b2"
);
/**
* The cached value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedEnergy()
* @generated
* @ordered
*/
protected
NullableQuantity
embodiedEnergy
=
EMBODIED_ENERGY_EDEFAULT
;
/**
* The default value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedCarbon()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
EMBODIED_CARBON_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kg"
);
/**
* The cached value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEmbodiedCarbon()
* @generated
* @ordered
*/
protected
NullableQuantity
embodiedCarbon
=
EMBODIED_CARBON_EDEFAULT
;
/**
* The default value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConstructionDescription()
* @generated
* @ordered
*/
protected
static
final
String
CONSTRUCTION_DESCRIPTION_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getConstructionDescription()
* @generated
* @ordered
*/
protected
String
constructionDescription
=
CONSTRUCTION_DESCRIPTION_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalEnergy()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
DISPOSAL_ENERGY_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kW*h/m\u00b2"
);
/**
* The cached value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalEnergy()
* @generated
* @ordered
*/
protected
NullableQuantity
disposalEnergy
=
DISPOSAL_ENERGY_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalCarbon()
* @generated
* @ordered
*/
protected
static
final
NullableQuantity
DISPOSAL_CARBON_EDEFAULT
=
(
NullableQuantity
)
QuantitiesFactory
.
eINSTANCE
.
createFromString
(
QuantitiesPackage
.
eINSTANCE
.
getQuantityDouble
(),
"kg"
);
/**
* The cached value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalCarbon()
* @generated
* @ordered
*/
protected
NullableQuantity
disposalCarbon
=
DISPOSAL_CARBON_EDEFAULT
;
/**
* The default value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposalDescription()
* @generated
* @ordered
*/
protected
static
final
String
DISPOSAL_DESCRIPTION_EDEFAULT
=
null
;
/**
* The cached value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get
LifeCycle
()
* @see #get
DisposalDescription
()
* @generated
* @ordered
*/
protected
LifeCycle
lifeCycle
;
protected
String
disposalDescription
=
DISPOSAL_DESCRIPTION_EDEFAULT
;
/**
* <!-- begin-user-doc -->
...
...
@@ -335,8 +455,8 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
* @generated
*/
@Override
public
LifeCycle
getLifeCycle
()
{
return
lifeCycle
;
public
NullableQuantity
getEmbodiedEnergy
()
{
return
embodiedEnergy
;
}
/**
...
...
@@ -344,18 +464,37 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
* <!-- end-user-doc -->
* @generated
*/
public
NotificationChain
basicSetLifeCycle
(
LifeCycle
newLifeCycle
,
NotificationChain
msgs
)
{
LifeCycle
oldLifeCycle
=
lifeCycle
;
lifeCycle
=
newLifeCycle
;
if
(
eNotificationRequired
())
{
ENotificationImpl
notification
=
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
,
oldLifeCycle
,
newLifeCycle
);
if
(
msgs
==
null
)
msgs
=
notification
;
else
msgs
.
add
(
notification
);
@Override
public
void
setEmbodiedEnergy
(
NullableQuantity
newEmbodiedEnergy
)
{
NullableQuantity
oldEmbodiedEnergy
=
embodiedEnergy
;
embodiedEnergy
=
newEmbodiedEnergy
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_ENERGY
,
oldEmbodiedEnergy
,
embodiedEnergy
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getEmbodiedCarbon
()
{
return
embodiedCarbon
;
}
return
msgs
;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setEmbodiedCarbon
(
NullableQuantity
newEmbodiedCarbon
)
{
NullableQuantity
oldEmbodiedCarbon
=
embodiedCarbon
;
embodiedCarbon
=
newEmbodiedCarbon
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_CARBON
,
oldEmbodiedCarbon
,
embodiedCarbon
));
}
/**
...
...
@@ -364,21 +503,8 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
* @generated
*/
@Override
public
void
setLifeCycle
(
LifeCycle
newLifeCycle
)
{
if
(
newLifeCycle
!=
lifeCycle
)
{
NotificationChain
msgs
=
null
;
if
(
lifeCycle
!=
null
)
msgs
=
((
InternalEObject
)
lifeCycle
).
eInverseRemove
(
this
,
EOPPOSITE_FEATURE_BASE
-
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
,
null
,
msgs
);
if
(
newLifeCycle
!=
null
)
msgs
=
((
InternalEObject
)
newLifeCycle
).
eInverseAdd
(
this
,
EOPPOSITE_FEATURE_BASE
-
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
,
null
,
msgs
);
msgs
=
basicSetLifeCycle
(
newLifeCycle
,
msgs
);
if
(
msgs
!=
null
)
msgs
.
dispatch
();
}
else
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
,
newLifeCycle
,
newLifeCycle
));
public
String
getConstructionDescription
()
{
return
constructionDescription
;
}
/**
...
...
@@ -387,12 +513,86 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
* @generated
*/
@Override
public
NotificationChain
eInverseRemove
(
InternalEObject
otherEnd
,
int
featureID
,
NotificationChain
msgs
)
{
switch
(
featureID
)
{
case
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
:
return
basicSetLifeCycle
(
null
,
msgs
);
public
void
setConstructionDescription
(
String
newConstructionDescription
)
{
String
oldConstructionDescription
=
constructionDescription
;
constructionDescription
=
newConstructionDescription
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__CONSTRUCTION_DESCRIPTION
,
oldConstructionDescription
,
constructionDescription
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getDisposalEnergy
()
{
return
disposalEnergy
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalEnergy
(
NullableQuantity
newDisposalEnergy
)
{
NullableQuantity
oldDisposalEnergy
=
disposalEnergy
;
disposalEnergy
=
newDisposalEnergy
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_ENERGY
,
oldDisposalEnergy
,
disposalEnergy
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
NullableQuantity
getDisposalCarbon
()
{
return
disposalCarbon
;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalCarbon
(
NullableQuantity
newDisposalCarbon
)
{
NullableQuantity
oldDisposalCarbon
=
disposalCarbon
;
disposalCarbon
=
newDisposalCarbon
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_CARBON
,
oldDisposalCarbon
,
disposalCarbon
));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
String
getDisposalDescription
()
{
return
disposalDescription
;
}
return
super
.
eInverseRemove
(
otherEnd
,
featureID
,
msgs
);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public
void
setDisposalDescription
(
String
newDisposalDescription
)
{
String
oldDisposalDescription
=
disposalDescription
;
disposalDescription
=
newDisposalDescription
;
if
(
eNotificationRequired
())
eNotify
(
new
ENotificationImpl
(
this
,
Notification
.
SET
,
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_DESCRIPTION
,
oldDisposalDescription
,
disposalDescription
));
}
/**
...
...
@@ -415,8 +615,18 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
return
getGlazingNumber
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__FRAME_RATIO
:
return
getFrameRatio
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
:
return
getLifeCycle
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_ENERGY
:
return
getEmbodiedEnergy
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_CARBON
:
return
getEmbodiedCarbon
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__CONSTRUCTION_DESCRIPTION
:
return
getConstructionDescription
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_ENERGY
:
return
getDisposalEnergy
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_CARBON
:
return
getDisposalCarbon
();
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_DESCRIPTION
:
return
getDisposalDescription
();
}
return
super
.
eGet
(
featureID
,
resolve
,
coreType
);
}
...
...
@@ -447,8 +657,23 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
case
BuildingPhysicsPackage
.
WINDOW_TYPE__FRAME_RATIO
:
setFrameRatio
((
Double
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
:
setLifeCycle
((
LifeCycle
)
newValue
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_ENERGY
:
setEmbodiedEnergy
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_CARBON
:
setEmbodiedCarbon
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__CONSTRUCTION_DESCRIPTION
:
setConstructionDescription
((
String
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_ENERGY
:
setDisposalEnergy
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_CARBON
:
setDisposalCarbon
((
NullableQuantity
)
newValue
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_DESCRIPTION
:
setDisposalDescription
((
String
)
newValue
);
return
;
}
super
.
eSet
(
featureID
,
newValue
);
...
...
@@ -480,8 +705,23 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
case
BuildingPhysicsPackage
.
WINDOW_TYPE__FRAME_RATIO
:
setFrameRatio
(
FRAME_RATIO_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
:
setLifeCycle
((
LifeCycle
)
null
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_ENERGY
:
setEmbodiedEnergy
(
EMBODIED_ENERGY_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_CARBON
:
setEmbodiedCarbon
(
EMBODIED_CARBON_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__CONSTRUCTION_DESCRIPTION
:
setConstructionDescription
(
CONSTRUCTION_DESCRIPTION_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_ENERGY
:
setDisposalEnergy
(
DISPOSAL_ENERGY_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_CARBON
:
setDisposalCarbon
(
DISPOSAL_CARBON_EDEFAULT
);
return
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_DESCRIPTION
:
setDisposalDescription
(
DISPOSAL_DESCRIPTION_EDEFAULT
);
return
;
}
super
.
eUnset
(
featureID
);
...
...
@@ -507,8 +747,24 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
return
glazingNumber
!=
GLAZING_NUMBER_EDEFAULT
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__FRAME_RATIO
:
return
frameRatio
!=
FRAME_RATIO_EDEFAULT
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__LIFE_CYCLE
:
return
lifeCycle
!=
null
;
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_ENERGY
:
return
EMBODIED_ENERGY_EDEFAULT
==
null
?
embodiedEnergy
!=
null
:
!
EMBODIED_ENERGY_EDEFAULT
.
equals
(
embodiedEnergy
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__EMBODIED_CARBON
:
return
EMBODIED_CARBON_EDEFAULT
==
null
?
embodiedCarbon
!=
null
:
!
EMBODIED_CARBON_EDEFAULT
.
equals
(
embodiedCarbon
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__CONSTRUCTION_DESCRIPTION
:
return
CONSTRUCTION_DESCRIPTION_EDEFAULT
==
null
?
constructionDescription
!=
null
:
!
CONSTRUCTION_DESCRIPTION_EDEFAULT
.
equals
(
constructionDescription
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_ENERGY
:
return
DISPOSAL_ENERGY_EDEFAULT
==
null
?
disposalEnergy
!=
null
:
!
DISPOSAL_ENERGY_EDEFAULT
.
equals
(
disposalEnergy
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_CARBON
:
return
DISPOSAL_CARBON_EDEFAULT
==
null
?
disposalCarbon
!=
null
:
!
DISPOSAL_CARBON_EDEFAULT
.
equals
(
disposalCarbon
);
case
BuildingPhysicsPackage
.
WINDOW_TYPE__DISPOSAL_DESCRIPTION
:
return
DISPOSAL_DESCRIPTION_EDEFAULT
==
null
?
disposalDescription
!=
null
:
!
DISPOSAL_DESCRIPTION_EDEFAULT
.
equals
(
disposalDescription
);
}
return
super
.
eIsSet
(
featureID
);
}
...
...
@@ -536,6 +792,18 @@ public class WindowTypeImpl extends MinimalEObjectImpl.Container implements Wind
result
.
append
(
glazingNumber
);
result
.
append
(
", frameRatio: "
);
result
.
append
(
frameRatio
);
result
.
append
(
", embodiedEnergy: "
);
result
.
append
(
embodiedEnergy
);
result
.
append
(
", embodiedCarbon: "
);
result
.
append
(
embodiedCarbon
);
result
.
append
(
", constructionDescription: "
);
result
.
append
(
constructionDescription
);
result
.
append
(
", disposalEnergy: "
);
result
.
append
(
disposalEnergy
);
result
.
append
(
", disposalCarbon: "
);
result
.
append
(
disposalCarbon
);
result
.
append
(
", disposalDescription: "
);
result
.
append
(
disposalDescription
);
result
.
append
(
')'
);
return
result
.
toString
();
}
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsAdapterFactory.java
+
0
-
19
View file @
cdf9e894
...
...
@@ -101,11 +101,6 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
return
createMaterialAdapter
();
}
@Override
public
Adapter
caseLifeCycle
(
LifeCycle
object
)
{
return
createLifeCycleAdapter
();
}
@Override
public
Adapter
defaultCase
(
EObject
object
)
{
return
createEObjectAdapter
();
...
...
@@ -223,20 +218,6 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
return
null
;
}
/**
* Creates a new adapter for an object of class '{@link de.hftstuttgart.buildingphysics.LifeCycle <em>Life Cycle</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.LifeCycle
* @generated
*/
public
Adapter
createLifeCycleAdapter
()
{
return
null
;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
+
0
-
22
View file @
cdf9e894
...
...
@@ -119,13 +119,6 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
return
result
;
}
case
BuildingPhysicsPackage
.
LIFE_CYCLE
:
{
LifeCycle
lifeCycle
=
(
LifeCycle
)
theEObject
;
T
result
=
caseLifeCycle
(
lifeCycle
);
if
(
result
==
null
)
result
=
defaultCase
(
theEObject
);
return
result
;
}
default
:
return
defaultCase
(
theEObject
);
}
...
...
@@ -236,21 +229,6 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
return
null
;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Life Cycle</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>Life Cycle</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public
T
caseLifeCycle
(
LifeCycle
object
)
{
return
null
;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets