Commit 17bd2bcb authored by Kai-Holger Brassel's avatar Kai-Holger Brassel
Browse files

Add life cycle info data type and minor changes in models

parent b9833df4
......@@ -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 -->
......
......@@ -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 -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment