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
17bd2bcb
Commit
17bd2bcb
authored
3 years ago
by
Kai-Holger Brassel
Browse files
Options
Download
Email Patches
Plain Diff
Add life cycle info data type and minor changes in models
parent
b9833df4
master
No related merge requests found
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsAdapterFactory.java
+19
-0
...t/buildingphysics/util/BuildingPhysicsAdapterFactory.java
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
+22
-0
...stuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
with
41 additions
and
0 deletions
+41
-0
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsAdapterFactory.java
+
19
-
0
View file @
17bd2bcb
...
@@ -101,6 +101,11 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
...
@@ -101,6 +101,11 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
return
createMaterialAdapter
();
return
createMaterialAdapter
();
}
}
@Override
public
Adapter
caseLifeCycle
(
LifeCycle
object
)
{
return
createLifeCycleAdapter
();
}
@Override
@Override
public
Adapter
defaultCase
(
EObject
object
)
{
public
Adapter
defaultCase
(
EObject
object
)
{
return
createEObjectAdapter
();
return
createEObjectAdapter
();
...
@@ -218,6 +223,20 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
...
@@ -218,6 +223,20 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
return
null
;
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.
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* <!-- begin-user-doc -->
...
...
This diff is collapsed.
Click to expand it.
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
+
22
-
0
View file @
17bd2bcb
...
@@ -119,6 +119,13 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
...
@@ -119,6 +119,13 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
result
=
defaultCase
(
theEObject
);
result
=
defaultCase
(
theEObject
);
return
result
;
return
result
;
}
}
case
BuildingPhysicsPackage
.
LIFE_CYCLE
:
{
LifeCycle
lifeCycle
=
(
LifeCycle
)
theEObject
;
T
result
=
caseLifeCycle
(
lifeCycle
);
if
(
result
==
null
)
result
=
defaultCase
(
theEObject
);
return
result
;
}
default
:
default
:
return
defaultCase
(
theEObject
);
return
defaultCase
(
theEObject
);
}
}
...
@@ -229,6 +236,21 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
...
@@ -229,6 +236,21 @@ public class BuildingPhysicsSwitch<T> extends Switch<T> {
return
null
;
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>'.
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* <!-- 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