...@@ -62,10 +62,12 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements ...@@ -62,10 +62,12 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements
@Override @Override
public Boolean conformsTo(String n) public Boolean conformsTo(String n)
{ {
try { try
{
return (Boolean)CONFORMS_TO_STRING__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[]{n})); return (Boolean)CONFORMS_TO_STRING__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[]{n}));
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -88,10 +90,12 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements ...@@ -88,10 +90,12 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements
@Override @Override
public PackageableElement getElementNamed(String n) public PackageableElement getElementNamed(String n)
{ {
try { try
{
return (PackageableElement)GET_ELEMENT_NAMED_STRING__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[]{n})); return (PackageableElement)GET_ELEMENT_NAMED_STRING__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[]{n}));
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -114,10 +118,12 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements ...@@ -114,10 +118,12 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements
@Override @Override
public Boolean conformsTo(PackageableElement n) public Boolean conformsTo(PackageableElement n)
{ {
try { try
{
return (Boolean)CONFORMS_TO_PACKAGEABLE_ELEMENT__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[]{n})); return (Boolean)CONFORMS_TO_PACKAGEABLE_ELEMENT__EINVOCATION_DELEGATE.dynamicInvoke(this, new BasicEList.UnmodifiableEList<Object>(1, new Object[]{n}));
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -130,7 +136,8 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements ...@@ -130,7 +136,8 @@ public abstract class PackageableElementImpl extends NamedElementImpl implements
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.PACKAGEABLE_ELEMENT___CONFORMS_TO__STRING: case tdlPackage.PACKAGEABLE_ELEMENT___CONFORMS_TO__STRING:
return conformsTo((String)arguments.get(0)); return conformsTo((String)arguments.get(0));
case tdlPackage.PACKAGEABLE_ELEMENT___GET_ELEMENT_NAMED__STRING: case tdlPackage.PACKAGEABLE_ELEMENT___GET_ELEMENT_NAMED__STRING:
......
...@@ -3,14 +3,15 @@ ...@@ -3,14 +3,15 @@
package org.etsi.mts.tdl.impl; package org.etsi.mts.tdl.impl;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.util.Collection; import java.util.Collection;
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList; import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.WrappedException; import org.eclipse.emf.common.util.WrappedException;
import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EOperation; import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.InternalEObject;
...@@ -115,7 +116,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -115,7 +116,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
{ {
DataUse oldDataUse = dataUse; DataUse oldDataUse = dataUse;
dataUse = newDataUse; dataUse = newDataUse;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.PARAMETER_BINDING__DATA_USE, oldDataUse, newDataUse); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.PARAMETER_BINDING__DATA_USE, oldDataUse, newDataUse);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -130,7 +132,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -130,7 +132,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public void setDataUse(DataUse newDataUse) public void setDataUse(DataUse newDataUse)
{ {
if (newDataUse != dataUse) { if (newDataUse != dataUse)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (dataUse != null) if (dataUse != null)
msgs = ((InternalEObject)dataUse).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.PARAMETER_BINDING__DATA_USE, null, msgs); msgs = ((InternalEObject)dataUse).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.PARAMETER_BINDING__DATA_USE, null, msgs);
...@@ -151,10 +154,12 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -151,10 +154,12 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public Parameter getParameter() public Parameter getParameter()
{ {
if (parameter != null && parameter.eIsProxy()) { if (parameter != null && parameter.eIsProxy())
{
InternalEObject oldParameter = (InternalEObject)parameter; InternalEObject oldParameter = (InternalEObject)parameter;
parameter = (Parameter)eResolveProxy(oldParameter); parameter = (Parameter)eResolveProxy(oldParameter);
if (parameter != oldParameter) { if (parameter != oldParameter)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PARAMETER_BINDING__PARAMETER, oldParameter, parameter)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PARAMETER_BINDING__PARAMETER, oldParameter, parameter));
} }
...@@ -194,7 +199,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -194,7 +199,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public EList<MemberReference> getReduction() public EList<MemberReference> getReduction()
{ {
if (reduction == null) { if (reduction == null)
{
reduction = new EObjectContainmentEList<MemberReference>(MemberReference.class, this, tdlPackage.PARAMETER_BINDING__REDUCTION); reduction = new EObjectContainmentEList<MemberReference>(MemberReference.class, this, tdlPackage.PARAMETER_BINDING__REDUCTION);
} }
return reduction; return reduction;
...@@ -216,11 +222,14 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -216,11 +222,14 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
* @generated * @generated
*/ */
@Override @Override
public DataType resolveParameterType() { public DataType resolveParameterType()
try { {
try
{
return (DataType)RESOLVE_PARAMETER_TYPE__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (DataType)RESOLVE_PARAMETER_TYPE__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -233,7 +242,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -233,7 +242,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_BINDING__DATA_USE: case tdlPackage.PARAMETER_BINDING__DATA_USE:
return basicSetDataUse(null, msgs); return basicSetDataUse(null, msgs);
case tdlPackage.PARAMETER_BINDING__REDUCTION: case tdlPackage.PARAMETER_BINDING__REDUCTION:
...@@ -250,7 +260,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -250,7 +260,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_BINDING__DATA_USE: case tdlPackage.PARAMETER_BINDING__DATA_USE:
return getDataUse(); return getDataUse();
case tdlPackage.PARAMETER_BINDING__PARAMETER: case tdlPackage.PARAMETER_BINDING__PARAMETER:
...@@ -271,7 +282,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -271,7 +282,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_BINDING__DATA_USE: case tdlPackage.PARAMETER_BINDING__DATA_USE:
setDataUse((DataUse)newValue); setDataUse((DataUse)newValue);
return; return;
...@@ -294,7 +306,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -294,7 +306,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_BINDING__DATA_USE: case tdlPackage.PARAMETER_BINDING__DATA_USE:
setDataUse((DataUse)null); setDataUse((DataUse)null);
return; return;
...@@ -316,7 +329,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -316,7 +329,8 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_BINDING__DATA_USE: case tdlPackage.PARAMETER_BINDING__DATA_USE:
return dataUse != null; return dataUse != null;
case tdlPackage.PARAMETER_BINDING__PARAMETER: case tdlPackage.PARAMETER_BINDING__PARAMETER:
...@@ -333,8 +347,10 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin ...@@ -333,8 +347,10 @@ public class ParameterBindingImpl extends ElementImpl implements ParameterBindin
* @generated * @generated
*/ */
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
switch (operationID) { {
switch (operationID)
{
case tdlPackage.PARAMETER_BINDING___RESOLVE_PARAMETER_TYPE: case tdlPackage.PARAMETER_BINDING___RESOLVE_PARAMETER_TYPE:
return resolveParameterType(); return resolveParameterType();
} }
......
...@@ -67,10 +67,12 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete ...@@ -67,10 +67,12 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete
@Override @Override
public DataType getDataType() public DataType getDataType()
{ {
if (dataType != null && dataType.eIsProxy()) { if (dataType != null && dataType.eIsProxy())
{
InternalEObject oldDataType = (InternalEObject)dataType; InternalEObject oldDataType = (InternalEObject)dataType;
dataType = (DataType)eResolveProxy(oldDataType); dataType = (DataType)eResolveProxy(oldDataType);
if (dataType != oldDataType) { if (dataType != oldDataType)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PARAMETER__DATA_TYPE, oldDataType, dataType)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PARAMETER__DATA_TYPE, oldDataType, dataType));
} }
...@@ -110,7 +112,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete ...@@ -110,7 +112,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER__DATA_TYPE: case tdlPackage.PARAMETER__DATA_TYPE:
if (resolve) return getDataType(); if (resolve) return getDataType();
return basicGetDataType(); return basicGetDataType();
...@@ -126,7 +129,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete ...@@ -126,7 +129,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER__DATA_TYPE: case tdlPackage.PARAMETER__DATA_TYPE:
setDataType((DataType)newValue); setDataType((DataType)newValue);
return; return;
...@@ -142,7 +146,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete ...@@ -142,7 +146,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER__DATA_TYPE: case tdlPackage.PARAMETER__DATA_TYPE:
setDataType((DataType)null); setDataType((DataType)null);
return; return;
...@@ -158,7 +163,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete ...@@ -158,7 +163,8 @@ public abstract class ParameterImpl extends NamedElementImpl implements Paramete
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER__DATA_TYPE: case tdlPackage.PARAMETER__DATA_TYPE:
return dataType != null; return dataType != null;
} }
......
...@@ -113,10 +113,12 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin ...@@ -113,10 +113,12 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin
@Override @Override
public Parameter getParameter() public Parameter getParameter()
{ {
if (parameter != null && parameter.eIsProxy()) { if (parameter != null && parameter.eIsProxy())
{
InternalEObject oldParameter = (InternalEObject)parameter; InternalEObject oldParameter = (InternalEObject)parameter;
parameter = (Parameter)eResolveProxy(oldParameter); parameter = (Parameter)eResolveProxy(oldParameter);
if (parameter != oldParameter) { if (parameter != oldParameter)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PARAMETER_MAPPING__PARAMETER, oldParameter, parameter)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PARAMETER_MAPPING__PARAMETER, oldParameter, parameter));
} }
...@@ -156,7 +158,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin ...@@ -156,7 +158,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI: case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI:
return getParameterURI(); return getParameterURI();
case tdlPackage.PARAMETER_MAPPING__PARAMETER: case tdlPackage.PARAMETER_MAPPING__PARAMETER:
...@@ -174,7 +177,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin ...@@ -174,7 +177,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI: case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI:
setParameterURI((String)newValue); setParameterURI((String)newValue);
return; return;
...@@ -193,7 +197,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin ...@@ -193,7 +197,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI: case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI:
setParameterURI(PARAMETER_URI_EDEFAULT); setParameterURI(PARAMETER_URI_EDEFAULT);
return; return;
...@@ -212,7 +217,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin ...@@ -212,7 +217,8 @@ public class ParameterMappingImpl extends ElementImpl implements ParameterMappin
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI: case tdlPackage.PARAMETER_MAPPING__PARAMETER_URI:
return PARAMETER_URI_EDEFAULT == null ? parameterURI != null : !PARAMETER_URI_EDEFAULT.equals(parameterURI); return PARAMETER_URI_EDEFAULT == null ? parameterURI != null : !PARAMETER_URI_EDEFAULT.equals(parameterURI);
case tdlPackage.PARAMETER_MAPPING__PARAMETER: case tdlPackage.PARAMETER_MAPPING__PARAMETER:
......
...@@ -105,7 +105,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -105,7 +105,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
{ {
Block oldBlock = block; Block oldBlock = block;
block = newBlock; block = newBlock;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.PERIODIC_BEHAVIOUR__BLOCK, oldBlock, newBlock); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.PERIODIC_BEHAVIOUR__BLOCK, oldBlock, newBlock);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -120,7 +121,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -120,7 +121,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public void setBlock(Block newBlock) public void setBlock(Block newBlock)
{ {
if (newBlock != block) { if (newBlock != block)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (block != null) if (block != null)
msgs = ((InternalEObject)block).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.PERIODIC_BEHAVIOUR__BLOCK, null, msgs); msgs = ((InternalEObject)block).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.PERIODIC_BEHAVIOUR__BLOCK, null, msgs);
...@@ -141,7 +143,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -141,7 +143,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public EList<LocalExpression> getPeriod() public EList<LocalExpression> getPeriod()
{ {
if (period == null) { if (period == null)
{
period = new EObjectContainmentEList<LocalExpression>(LocalExpression.class, this, tdlPackage.PERIODIC_BEHAVIOUR__PERIOD); period = new EObjectContainmentEList<LocalExpression>(LocalExpression.class, this, tdlPackage.PERIODIC_BEHAVIOUR__PERIOD);
} }
return period; return period;
...@@ -166,10 +169,12 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -166,10 +169,12 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public EList<ComponentInstance> getParticipatingComponents() public EList<ComponentInstance> getParticipatingComponents()
{ {
try { try
{
return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -182,7 +187,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -182,7 +187,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK: case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK:
return basicSetBlock(null, msgs); return basicSetBlock(null, msgs);
case tdlPackage.PERIODIC_BEHAVIOUR__PERIOD: case tdlPackage.PERIODIC_BEHAVIOUR__PERIOD:
...@@ -199,7 +205,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -199,7 +205,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK: case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK:
return getBlock(); return getBlock();
case tdlPackage.PERIODIC_BEHAVIOUR__PERIOD: case tdlPackage.PERIODIC_BEHAVIOUR__PERIOD:
...@@ -217,7 +224,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -217,7 +224,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK: case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK:
setBlock((Block)newValue); setBlock((Block)newValue);
return; return;
...@@ -237,7 +245,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -237,7 +245,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK: case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK:
setBlock((Block)null); setBlock((Block)null);
return; return;
...@@ -256,7 +265,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -256,7 +265,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK: case tdlPackage.PERIODIC_BEHAVIOUR__BLOCK:
return block != null; return block != null;
case tdlPackage.PERIODIC_BEHAVIOUR__PERIOD: case tdlPackage.PERIODIC_BEHAVIOUR__PERIOD:
...@@ -273,8 +283,10 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -273,8 +283,10 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
{ {
if (baseClass == Behaviour.class) { if (baseClass == Behaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.PERIODIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS; case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.PERIODIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
...@@ -290,7 +302,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha ...@@ -290,7 +302,8 @@ public class PeriodicBehaviourImpl extends BehaviourImpl implements PeriodicBeha
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.PERIODIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: case tdlPackage.PERIODIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS:
return getParticipatingComponents(); return getParticipatingComponents();
} }
......
...@@ -92,10 +92,12 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -92,10 +92,12 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public PredefinedFunction getFunction() public PredefinedFunction getFunction()
{ {
if (function != null && function.eIsProxy()) { if (function != null && function.eIsProxy())
{
InternalEObject oldFunction = (InternalEObject)function; InternalEObject oldFunction = (InternalEObject)function;
function = (PredefinedFunction)eResolveProxy(oldFunction); function = (PredefinedFunction)eResolveProxy(oldFunction);
if (function != oldFunction) { if (function != oldFunction)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION, oldFunction, function)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION, oldFunction, function));
} }
...@@ -135,7 +137,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -135,7 +137,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public EList<DataUse> getActualParameters() public EList<DataUse> getActualParameters()
{ {
if (actualParameters == null) { if (actualParameters == null)
{
actualParameters = new EObjectContainmentEList<DataUse>(DataUse.class, this, tdlPackage.PREDEFINED_FUNCTION_CALL__ACTUAL_PARAMETERS); actualParameters = new EObjectContainmentEList<DataUse>(DataUse.class, this, tdlPackage.PREDEFINED_FUNCTION_CALL__ACTUAL_PARAMETERS);
} }
return actualParameters; return actualParameters;
...@@ -159,10 +162,12 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -159,10 +162,12 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public DataType resolveDataType() public DataType resolveDataType()
{ {
try { try
{
return (DataType)RESOLVE_DATA_TYPE__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (DataType)RESOLVE_DATA_TYPE__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -175,7 +180,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -175,7 +180,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION_CALL__ACTUAL_PARAMETERS: case tdlPackage.PREDEFINED_FUNCTION_CALL__ACTUAL_PARAMETERS:
return ((InternalEList<?>)getActualParameters()).basicRemove(otherEnd, msgs); return ((InternalEList<?>)getActualParameters()).basicRemove(otherEnd, msgs);
} }
...@@ -190,7 +196,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -190,7 +196,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION: case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION:
if (resolve) return getFunction(); if (resolve) return getFunction();
return basicGetFunction(); return basicGetFunction();
...@@ -209,7 +216,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -209,7 +216,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION: case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION:
setFunction((PredefinedFunction)newValue); setFunction((PredefinedFunction)newValue);
return; return;
...@@ -229,7 +237,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -229,7 +237,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION: case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION:
setFunction((PredefinedFunction)null); setFunction((PredefinedFunction)null);
return; return;
...@@ -248,7 +257,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -248,7 +257,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION: case tdlPackage.PREDEFINED_FUNCTION_CALL__FUNCTION:
return function != null; return function != null;
case tdlPackage.PREDEFINED_FUNCTION_CALL__ACTUAL_PARAMETERS: case tdlPackage.PREDEFINED_FUNCTION_CALL__ACTUAL_PARAMETERS:
...@@ -265,8 +275,10 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -265,8 +275,10 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
{ {
if (baseClass == DataUse.class) { if (baseClass == DataUse.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.DATA_USE___RESOLVE_DATA_TYPE: return tdlPackage.PREDEFINED_FUNCTION_CALL___RESOLVE_DATA_TYPE; case tdlPackage.DATA_USE___RESOLVE_DATA_TYPE: return tdlPackage.PREDEFINED_FUNCTION_CALL___RESOLVE_DATA_TYPE;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
...@@ -282,7 +294,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr ...@@ -282,7 +294,8 @@ public class PredefinedFunctionCallImpl extends DynamicDataUseImpl implements Pr
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.PREDEFINED_FUNCTION_CALL___RESOLVE_DATA_TYPE: case tdlPackage.PREDEFINED_FUNCTION_CALL___RESOLVE_DATA_TYPE:
return resolveDataType(); return resolveDataType();
} }
......
...@@ -67,10 +67,12 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr ...@@ -67,10 +67,12 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr
@Override @Override
public DataType getReturnType() public DataType getReturnType()
{ {
if (returnType != null && returnType.eIsProxy()) { if (returnType != null && returnType.eIsProxy())
{
InternalEObject oldReturnType = (InternalEObject)returnType; InternalEObject oldReturnType = (InternalEObject)returnType;
returnType = (DataType)eResolveProxy(oldReturnType); returnType = (DataType)eResolveProxy(oldReturnType);
if (returnType != oldReturnType) { if (returnType != oldReturnType)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE, oldReturnType, returnType)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE, oldReturnType, returnType));
} }
...@@ -110,7 +112,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr ...@@ -110,7 +112,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE: case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE:
if (resolve) return getReturnType(); if (resolve) return getReturnType();
return basicGetReturnType(); return basicGetReturnType();
...@@ -126,7 +129,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr ...@@ -126,7 +129,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE: case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE:
setReturnType((DataType)newValue); setReturnType((DataType)newValue);
return; return;
...@@ -142,7 +146,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr ...@@ -142,7 +146,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE: case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE:
setReturnType((DataType)null); setReturnType((DataType)null);
return; return;
...@@ -158,7 +163,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr ...@@ -158,7 +163,8 @@ public class PredefinedFunctionImpl extends PackageableElementImpl implements Pr
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE: case tdlPackage.PREDEFINED_FUNCTION__RETURN_TYPE:
return returnType != null; return returnType != null;
} }
......
...@@ -98,10 +98,12 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -98,10 +98,12 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public ProcedureSignature getSignature() public ProcedureSignature getSignature()
{ {
if (signature != null && signature.eIsProxy()) { if (signature != null && signature.eIsProxy())
{
InternalEObject oldSignature = (InternalEObject)signature; InternalEObject oldSignature = (InternalEObject)signature;
signature = (ProcedureSignature)eResolveProxy(oldSignature); signature = (ProcedureSignature)eResolveProxy(oldSignature);
if (signature != oldSignature) { if (signature != oldSignature)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PROCEDURE_CALL__SIGNATURE, oldSignature, signature)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PROCEDURE_CALL__SIGNATURE, oldSignature, signature));
} }
...@@ -141,7 +143,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -141,7 +143,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public EList<ParameterBinding> getArgument() public EList<ParameterBinding> getArgument()
{ {
if (argument == null) { if (argument == null)
{
argument = new EObjectContainmentEList<ParameterBinding>(ParameterBinding.class, this, tdlPackage.PROCEDURE_CALL__ARGUMENT); argument = new EObjectContainmentEList<ParameterBinding>(ParameterBinding.class, this, tdlPackage.PROCEDURE_CALL__ARGUMENT);
} }
return argument; return argument;
...@@ -155,10 +158,12 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -155,10 +158,12 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public ProcedureCall getReplyTo() public ProcedureCall getReplyTo()
{ {
if (replyTo != null && replyTo.eIsProxy()) { if (replyTo != null && replyTo.eIsProxy())
{
InternalEObject oldReplyTo = (InternalEObject)replyTo; InternalEObject oldReplyTo = (InternalEObject)replyTo;
replyTo = (ProcedureCall)eResolveProxy(oldReplyTo); replyTo = (ProcedureCall)eResolveProxy(oldReplyTo);
if (replyTo != oldReplyTo) { if (replyTo != oldReplyTo)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PROCEDURE_CALL__REPLY_TO, oldReplyTo, replyTo)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.PROCEDURE_CALL__REPLY_TO, oldReplyTo, replyTo));
} }
...@@ -198,7 +203,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -198,7 +203,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_CALL__ARGUMENT: case tdlPackage.PROCEDURE_CALL__ARGUMENT:
return ((InternalEList<?>)getArgument()).basicRemove(otherEnd, msgs); return ((InternalEList<?>)getArgument()).basicRemove(otherEnd, msgs);
} }
...@@ -213,7 +219,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -213,7 +219,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_CALL__SIGNATURE: case tdlPackage.PROCEDURE_CALL__SIGNATURE:
if (resolve) return getSignature(); if (resolve) return getSignature();
return basicGetSignature(); return basicGetSignature();
...@@ -235,7 +242,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -235,7 +242,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_CALL__SIGNATURE: case tdlPackage.PROCEDURE_CALL__SIGNATURE:
setSignature((ProcedureSignature)newValue); setSignature((ProcedureSignature)newValue);
return; return;
...@@ -258,7 +266,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -258,7 +266,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_CALL__SIGNATURE: case tdlPackage.PROCEDURE_CALL__SIGNATURE:
setSignature((ProcedureSignature)null); setSignature((ProcedureSignature)null);
return; return;
...@@ -280,7 +289,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall ...@@ -280,7 +289,8 @@ public class ProcedureCallImpl extends InteractionImpl implements ProcedureCall
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_CALL__SIGNATURE: case tdlPackage.PROCEDURE_CALL__SIGNATURE:
return signature != null; return signature != null;
case tdlPackage.PROCEDURE_CALL__ARGUMENT: case tdlPackage.PROCEDURE_CALL__ARGUMENT:
......
...@@ -101,7 +101,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa ...@@ -101,7 +101,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_PARAMETER__KIND: case tdlPackage.PROCEDURE_PARAMETER__KIND:
return getKind(); return getKind();
} }
...@@ -116,7 +117,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa ...@@ -116,7 +117,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_PARAMETER__KIND: case tdlPackage.PROCEDURE_PARAMETER__KIND:
setKind((ParameterKind)newValue); setKind((ParameterKind)newValue);
return; return;
...@@ -132,7 +134,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa ...@@ -132,7 +134,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_PARAMETER__KIND: case tdlPackage.PROCEDURE_PARAMETER__KIND:
setKind(KIND_EDEFAULT); setKind(KIND_EDEFAULT);
return; return;
...@@ -148,7 +151,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa ...@@ -148,7 +151,8 @@ public class ProcedureParameterImpl extends ParameterImpl implements ProcedurePa
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_PARAMETER__KIND: case tdlPackage.PROCEDURE_PARAMETER__KIND:
return kind != KIND_EDEFAULT; return kind != KIND_EDEFAULT;
} }
......
...@@ -72,7 +72,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig ...@@ -72,7 +72,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig
@Override @Override
public EList<ProcedureParameter> getParameter() public EList<ProcedureParameter> getParameter()
{ {
if (parameter == null) { if (parameter == null)
{
parameter = new EObjectContainmentEList<ProcedureParameter>(ProcedureParameter.class, this, tdlPackage.PROCEDURE_SIGNATURE__PARAMETER); parameter = new EObjectContainmentEList<ProcedureParameter>(ProcedureParameter.class, this, tdlPackage.PROCEDURE_SIGNATURE__PARAMETER);
} }
return parameter; return parameter;
...@@ -86,7 +87,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig ...@@ -86,7 +87,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER: case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER:
return ((InternalEList<?>)getParameter()).basicRemove(otherEnd, msgs); return ((InternalEList<?>)getParameter()).basicRemove(otherEnd, msgs);
} }
...@@ -101,7 +103,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig ...@@ -101,7 +103,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER: case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER:
return getParameter(); return getParameter();
} }
...@@ -117,7 +120,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig ...@@ -117,7 +120,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER: case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER:
getParameter().clear(); getParameter().clear();
getParameter().addAll((Collection<? extends ProcedureParameter>)newValue); getParameter().addAll((Collection<? extends ProcedureParameter>)newValue);
...@@ -134,7 +138,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig ...@@ -134,7 +138,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER: case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER:
getParameter().clear(); getParameter().clear();
return; return;
...@@ -150,7 +155,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig ...@@ -150,7 +155,8 @@ public class ProcedureSignatureImpl extends DataTypeImpl implements ProcedureSig
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER: case tdlPackage.PROCEDURE_SIGNATURE__PARAMETER:
return parameter != null && !parameter.isEmpty(); return parameter != null && !parameter.isEmpty();
} }
......
...@@ -77,10 +77,12 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -77,10 +77,12 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public GateReference getGateReference() public GateReference getGateReference()
{ {
if (gateReference != null && gateReference.eIsProxy()) { if (gateReference != null && gateReference.eIsProxy())
{
InternalEObject oldGateReference = (InternalEObject)gateReference; InternalEObject oldGateReference = (InternalEObject)gateReference;
gateReference = (GateReference)eResolveProxy(oldGateReference); gateReference = (GateReference)eResolveProxy(oldGateReference);
if (gateReference != oldGateReference) { if (gateReference != oldGateReference)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.QUIESCENCE__GATE_REFERENCE, oldGateReference, gateReference)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.QUIESCENCE__GATE_REFERENCE, oldGateReference, gateReference));
} }
...@@ -131,10 +133,12 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -131,10 +133,12 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public EList<ComponentInstance> getParticipatingComponents() public EList<ComponentInstance> getParticipatingComponents()
{ {
try { try
{
return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -147,7 +151,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -147,7 +151,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.QUIESCENCE__GATE_REFERENCE: case tdlPackage.QUIESCENCE__GATE_REFERENCE:
if (resolve) return getGateReference(); if (resolve) return getGateReference();
return basicGetGateReference(); return basicGetGateReference();
...@@ -163,7 +168,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -163,7 +168,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.QUIESCENCE__GATE_REFERENCE: case tdlPackage.QUIESCENCE__GATE_REFERENCE:
setGateReference((GateReference)newValue); setGateReference((GateReference)newValue);
return; return;
...@@ -179,7 +185,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -179,7 +185,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.QUIESCENCE__GATE_REFERENCE: case tdlPackage.QUIESCENCE__GATE_REFERENCE:
setGateReference((GateReference)null); setGateReference((GateReference)null);
return; return;
...@@ -195,7 +202,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -195,7 +202,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.QUIESCENCE__GATE_REFERENCE: case tdlPackage.QUIESCENCE__GATE_REFERENCE:
return gateReference != null; return gateReference != null;
} }
...@@ -210,20 +218,26 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -210,20 +218,26 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
{ {
if (baseClass == Behaviour.class) { if (baseClass == Behaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS; case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
} }
if (baseClass == AtomicBehaviour.class) { if (baseClass == AtomicBehaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS; case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
} }
if (baseClass == TimeOperation.class) { if (baseClass == TimeOperation.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.TIME_OPERATION___GET_PARTICIPATING_COMPONENTS: return tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS; case tdlPackage.TIME_OPERATION___GET_PARTICIPATING_COMPONENTS: return tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
...@@ -239,7 +253,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence ...@@ -239,7 +253,8 @@ public class QuiescenceImpl extends TimeOperationImpl implements Quiescence
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS: case tdlPackage.QUIESCENCE___GET_PARTICIPATING_COMPONENTS:
return getParticipatingComponents(); return getParticipatingComponents();
} }
......