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
17bd2bcb
Commit
17bd2bcb
authored
Apr 29, 2021
by
Kai-Holger Brassel
Browse files
Add life cycle info data type and minor changes in models
parent
b9833df4
Changes
22
Hide whitespace changes
Inline
Side-by-side
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsAdapterFactory.java
View file @
17bd2bcb
...
...
@@ -101,6 +101,11 @@ public class BuildingPhysicsAdapterFactory extends AdapterFactoryImpl {
return
createMaterialAdapter
();
}
@Override
public
Adapter
caseLifeCycle
(
LifeCycle
object
)
{
return
createLifeCycleAdapter
();
}
@Override
public
Adapter
defaultCase
(
EObject
object
)
{
return
createEObjectAdapter
();
...
...
@@ -218,6 +223,20 @@ 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 -->
...
...
de.hftstuttgart.buildingphysics/src/de/hftstuttgart/buildingphysics/util/BuildingPhysicsSwitch.java
View file @
17bd2bcb
...
...
@@ -119,6 +119,13 @@ 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
);
}
...
...
@@ -229,6 +236,21 @@ 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 -->
...
...
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