Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java')
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java252
1 files changed, 0 insertions, 252 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java
deleted file mode 100644
index 7e25e328cf2..00000000000
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/Time/impl/TimedConstraintImpl.java
+++ /dev/null
@@ -1,252 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.NfpConstraintImpl;
-
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.Clock;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimePackage;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedConstraint;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.TimedElement;
-
-import org.eclipse.papyrus.MARTE_Library.TimeTypesLibrary.TimeInterpretationKind;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Timed Constraint</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl#getOn <em>On</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.Time.impl.TimedConstraintImpl#getInterpretation <em>Interpretation</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TimedConstraintImpl extends NfpConstraintImpl implements TimedConstraint {
- /**
- * The cached value of the '{@link #getOn() <em>On</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOn()
- * @generated
- * @ordered
- */
- protected EList<Clock> on;
-
- /**
- * The default value of the '{@link #getInterpretation() <em>Interpretation</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getInterpretation()
- * @generated
- * @ordered
- */
- protected static final TimeInterpretationKind INTERPRETATION_EDEFAULT = TimeInterpretationKind.DURATION;
-
- /**
- * The cached value of the '{@link #getInterpretation() <em>Interpretation</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getInterpretation()
- * @generated
- * @ordered
- */
- protected TimeInterpretationKind interpretation = INTERPRETATION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TimedConstraintImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return TimePackage.Literals.TIMED_CONSTRAINT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Clock> getOn() {
- if (on == null) {
- on = new EObjectResolvingEList<Clock>(Clock.class, this, TimePackage.TIMED_CONSTRAINT__ON);
- }
- return on;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TimeInterpretationKind getInterpretation() {
- return interpretation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setInterpretation(TimeInterpretationKind newInterpretation) {
- TimeInterpretationKind oldInterpretation = interpretation;
- interpretation = newInterpretation == null ? INTERPRETATION_EDEFAULT : newInterpretation;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, TimePackage.TIMED_CONSTRAINT__INTERPRETATION, oldInterpretation, interpretation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case TimePackage.TIMED_CONSTRAINT__ON:
- return getOn();
- case TimePackage.TIMED_CONSTRAINT__INTERPRETATION:
- return getInterpretation();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case TimePackage.TIMED_CONSTRAINT__ON:
- getOn().clear();
- getOn().addAll((Collection<? extends Clock>)newValue);
- return;
- case TimePackage.TIMED_CONSTRAINT__INTERPRETATION:
- setInterpretation((TimeInterpretationKind)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case TimePackage.TIMED_CONSTRAINT__ON:
- getOn().clear();
- return;
- case TimePackage.TIMED_CONSTRAINT__INTERPRETATION:
- setInterpretation(INTERPRETATION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case TimePackage.TIMED_CONSTRAINT__ON:
- return on != null && !on.isEmpty();
- case TimePackage.TIMED_CONSTRAINT__INTERPRETATION:
- return interpretation != INTERPRETATION_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == TimedElement.class) {
- switch (derivedFeatureID) {
- case TimePackage.TIMED_CONSTRAINT__ON: return TimePackage.TIMED_ELEMENT__ON;
- default: return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == TimedElement.class) {
- switch (baseFeatureID) {
- case TimePackage.TIMED_ELEMENT__ON: return TimePackage.TIMED_CONSTRAINT__ON;
- default: return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (interpretation: ");
- result.append(interpretation);
- result.append(')');
- return result.toString();
- }
-
-} //TimedConstraintImpl

Back to the top