| author | kwilk | 2012-05-22 13:24:32 (EDT) |
|---|---|---|
| committer | Roberto E. Escobar | 2012-05-22 13:24:32 (EDT) |
| commit | a2f3766af6324adadb3679e1e08be580b207757a (patch) (side-by-side diff) | |
| tree | 5b3af77a67e5cde9fabbc281494d7aa40fa192ed | |
| parent | 679377b03b6a4c98060c1bdf2215935691a9fdd9 (diff) | |
| download | org.eclipse.osee-a2f3766af6324adadb3679e1e08be580b207757a.zip org.eclipse.osee-a2f3766af6324adadb3679e1e08be580b207757a.tar.gz org.eclipse.osee-a2f3766af6324adadb3679e1e08be580b207757a.tar.bz2 | |
feature: Add parallel configuration to AtsDsl
3 files changed, 277 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/ProgramParallelConfiguration.java b/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/ProgramParallelConfiguration.java index 899eef4..97dca14 100644 --- a/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/ProgramParallelConfiguration.java +++ b/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/ProgramParallelConfiguration.java @@ -17,6 +17,8 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * <ul> * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.ProgramParallelConfiguration#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.ProgramParallelConfiguration#getProgram <em>Program</em>}</li> + * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.ProgramParallelConfiguration#getVersion <em>Version</em>}</li> * </ul> * </p> * @@ -52,4 +54,56 @@ public interface ProgramParallelConfiguration extends EObject */ void setName(String value); + /** + * Returns the value of the '<em><b>Program</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Program</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Program</em>' containment reference. + * @see #setProgram(Program) + * @see org.eclipse.osee.ats.dsl.atsDsl.AtsDslPackage#getProgramParallelConfiguration_Program() + * @model containment="true" + * @generated + */ + Program getProgram(); + + /** + * Sets the value of the '{@link org.eclipse.osee.ats.dsl.atsDsl.ProgramParallelConfiguration#getProgram <em>Program</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Program</em>' containment reference. + * @see #getProgram() + * @generated + */ + void setProgram(Program value); + + /** + * Returns the value of the '<em><b>Version</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Version</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Version</em>' containment reference. + * @see #setVersion(Version) + * @see org.eclipse.osee.ats.dsl.atsDsl.AtsDslPackage#getProgramParallelConfiguration_Version() + * @model containment="true" + * @generated + */ + Version getVersion(); + + /** + * Sets the value of the '{@link org.eclipse.osee.ats.dsl.atsDsl.ProgramParallelConfiguration#getVersion <em>Version</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Version</em>' containment reference. + * @see #getVersion() + * @generated + */ + void setVersion(Version value); + } // ProgramParallelConfiguration diff --git a/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramImpl.java b/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramImpl.java index 1a8d57f..326553a 100644 --- a/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramImpl.java +++ b/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramImpl.java @@ -6,15 +6,25 @@ */ package org.eclipse.osee.ats.dsl.atsDsl.impl; +import java.util.Collection; + import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + import org.eclipse.osee.ats.dsl.atsDsl.AtsDslPackage; import org.eclipse.osee.ats.dsl.atsDsl.Program; +import org.eclipse.osee.ats.dsl.atsDsl.Version; /** * <!-- begin-user-doc --> @@ -24,6 +34,7 @@ import org.eclipse.osee.ats.dsl.atsDsl.Program; * The following features are implemented: * <ul> * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.impl.ProgramImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.impl.ProgramImpl#getVersion <em>Version</em>}</li> * </ul> * </p> * @@ -52,6 +63,16 @@ public class ProgramImpl extends MinimalEObjectImpl.Container implements Program protected String name = NAME_EDEFAULT; /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected EList<Version> version; + + /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated @@ -100,6 +121,36 @@ public class ProgramImpl extends MinimalEObjectImpl.Container implements Program * <!-- end-user-doc --> * @generated */ + public EList<Version> getVersion() + { + if (version == null) + { + version = new EObjectContainmentEList<Version>(Version.class, this, AtsDslPackage.PROGRAM__VERSION); + } + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case AtsDslPackage.PROGRAM__VERSION: + return ((InternalEList<?>)getVersion()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { @@ -107,6 +158,8 @@ public class ProgramImpl extends MinimalEObjectImpl.Container implements Program { case AtsDslPackage.PROGRAM__NAME: return getName(); + case AtsDslPackage.PROGRAM__VERSION: + return getVersion(); } return super.eGet(featureID, resolve, coreType); } @@ -116,6 +169,7 @@ public class ProgramImpl extends MinimalEObjectImpl.Container implements Program * <!-- end-user-doc --> * @generated */ + @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { @@ -124,6 +178,10 @@ public class ProgramImpl extends MinimalEObjectImpl.Container implements Program case AtsDslPackage.PROGRAM__NAME: setName((String)newValue); return; + case AtsDslPackage.PROGRAM__VERSION: + getVersion().clear(); + getVersion().addAll((Collection<? extends Version>)newValue); + return; } super.eSet(featureID, newValue); } @@ -141,6 +199,9 @@ public class ProgramImpl extends MinimalEObjectImpl.Container implements Program case AtsDslPackage.PROGRAM__NAME: setName(NAME_EDEFAULT); return; + case AtsDslPackage.PROGRAM__VERSION: + getVersion().clear(); + return; } super.eUnset(featureID); } @@ -157,6 +218,8 @@ public class ProgramImpl extends MinimalEObjectImpl.Container implements Program { case AtsDslPackage.PROGRAM__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case AtsDslPackage.PROGRAM__VERSION: + return version != null && !version.isEmpty(); } return super.eIsSet(featureID); } diff --git a/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramParallelConfigurationImpl.java b/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramParallelConfigurationImpl.java index 3181129..9b1829a 100644 --- a/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramParallelConfigurationImpl.java +++ b/plugins/org.eclipse.osee.ats.dsl/src-gen/org/eclipse/osee/ats/dsl/atsDsl/impl/ProgramParallelConfigurationImpl.java @@ -7,14 +7,18 @@ package org.eclipse.osee.ats.dsl.atsDsl.impl; import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; import org.eclipse.osee.ats.dsl.atsDsl.AtsDslPackage; +import org.eclipse.osee.ats.dsl.atsDsl.Program; import org.eclipse.osee.ats.dsl.atsDsl.ProgramParallelConfiguration; +import org.eclipse.osee.ats.dsl.atsDsl.Version; /** * <!-- begin-user-doc --> @@ -24,6 +28,8 @@ import org.eclipse.osee.ats.dsl.atsDsl.ProgramParallelConfiguration; * The following features are implemented: * <ul> * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.impl.ProgramParallelConfigurationImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.impl.ProgramParallelConfigurationImpl#getProgram <em>Program</em>}</li> + * <li>{@link org.eclipse.osee.ats.dsl.atsDsl.impl.ProgramParallelConfigurationImpl#getVersion <em>Version</em>}</li> * </ul> * </p> * @@ -52,6 +58,26 @@ public class ProgramParallelConfigurationImpl extends MinimalEObjectImpl.Contain protected String name = NAME_EDEFAULT; /** + * The cached value of the '{@link #getProgram() <em>Program</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProgram() + * @generated + * @ordered + */ + protected Program program; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected Version version; + + /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated @@ -100,6 +126,120 @@ public class ProgramParallelConfigurationImpl extends MinimalEObjectImpl.Contain * <!-- end-user-doc --> * @generated */ + public Program getProgram() + { + return program; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetProgram(Program newProgram, NotificationChain msgs) + { + Program oldProgram = program; + program = newProgram; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM, oldProgram, newProgram); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setProgram(Program newProgram) + { + if (newProgram != program) + { + NotificationChain msgs = null; + if (program != null) + msgs = ((InternalEObject)program).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM, null, msgs); + if (newProgram != null) + msgs = ((InternalEObject)newProgram).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM, null, msgs); + msgs = basicSetProgram(newProgram, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM, newProgram, newProgram)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Version getVersion() + { + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetVersion(Version newVersion, NotificationChain msgs) + { + Version oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION, oldVersion, newVersion); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVersion(Version newVersion) + { + if (newVersion != version) + { + NotificationChain msgs = null; + if (version != null) + msgs = ((InternalEObject)version).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION, null, msgs); + if (newVersion != null) + msgs = ((InternalEObject)newVersion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION, null, msgs); + msgs = basicSetVersion(newVersion, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION, newVersion, newVersion)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM: + return basicSetProgram(null, msgs); + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION: + return basicSetVersion(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { @@ -107,6 +247,10 @@ public class ProgramParallelConfigurationImpl extends MinimalEObjectImpl.Contain { case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__NAME: return getName(); + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM: + return getProgram(); + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION: + return getVersion(); } return super.eGet(featureID, resolve, coreType); } @@ -124,6 +268,12 @@ public class ProgramParallelConfigurationImpl extends MinimalEObjectImpl.Contain case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__NAME: setName((String)newValue); return; + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM: + setProgram((Program)newValue); + return; + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION: + setVersion((Version)newValue); + return; } super.eSet(featureID, newValue); } @@ -141,6 +291,12 @@ public class ProgramParallelConfigurationImpl extends MinimalEObjectImpl.Contain case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__NAME: setName(NAME_EDEFAULT); return; + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM: + setProgram((Program)null); + return; + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION: + setVersion((Version)null); + return; } super.eUnset(featureID); } @@ -157,6 +313,10 @@ public class ProgramParallelConfigurationImpl extends MinimalEObjectImpl.Contain { case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__PROGRAM: + return program != null; + case AtsDslPackage.PROGRAM_PARALLEL_CONFIGURATION__VERSION: + return version != null; } return super.eIsSet(featureID); } |

