diff --git a/.gitignore b/.gitignore index 547a4353..c170b8c1 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ hs_err_pid* #Folder target/ bin/ +src-gen/ +xtend-gen/ +xtext-gen/ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/.classpath b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/.classpath index c3ba59e4..d837b662 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/.classpath +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/.classpath @@ -1,7 +1,11 @@ - - + + + + + + diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/build.properties b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/build.properties index 6e3e902e..a3c4e32a 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/build.properties +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/build.properties @@ -6,5 +6,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin/ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimuComConfigurationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimuComConfigurationItemProvider.java deleted file mode 100644 index e8a8540e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimuComConfigurationItemProvider.java +++ /dev/null @@ -1,107 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.palladiosimulator.experimentautomation.abstractsimulation.provider.AbstractSimulationConfigurationItemProvider; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration} - * object. - * - * @generated - */ -public class SimuComConfigurationItemProvider extends AbstractSimulationConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public SimuComConfigurationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns SimuComConfiguration.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/SimuComConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((SimuComConfiguration) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_SimuComConfiguration_type") - : this.getString("_UI_SimuComConfiguration_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SimucomtooladapterEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimucomtooladapterEditPlugin.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimucomtooladapterEditPlugin.java deleted file mode 100644 index d3c4ebf8..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimucomtooladapterEditPlugin.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.provider; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; -import org.palladiosimulator.edp2.models.ExperimentData.provider.EDP2EditPlugin; -import org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin; -import org.palladiosimulator.metricspec.provider.MetricSpecEditPlugin; -import org.palladiosimulator.monitorrepository.provider.MonitorrepositoryEditPlugin; -import org.palladiosimulator.pcm.core.provider.PalladioComponentModelEditPlugin; -import org.palladiosimulator.servicelevelobjective.provider.ServiceLevelObjectiveEditPlugin; -import org.scaledl.usageevolution.provider.UsageevolutionEditPlugin; - -import de.uka.ipd.sdq.identifier.provider.IdentifierEditPlugin; -import de.uka.ipd.sdq.probfunction.provider.ProbabilityFunctionEditPlugin; -import de.uka.ipd.sdq.stoex.provider.StoexEditPlugin; -import de.uka.ipd.sdq.units.provider.UnitsEditPlugin; -import tools.descartes.dlim.provider.DlimEditPlugin; - -/** - * This is the central singleton for the Simucomtooladapter edit plugin. - * - * - * @generated - */ -public final class SimucomtooladapterEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * @generated - */ - public static final SimucomtooladapterEditPlugin INSTANCE = new SimucomtooladapterEditPlugin(); - - /** - * Keep track of the singleton. - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * @generated - */ - public SimucomtooladapterEditPlugin() { - super(new ResourceLocator[] { EDP2EditPlugin.INSTANCE, ExperimentAutomationEditPlugin.INSTANCE, - IdentifierEditPlugin.INSTANCE, MetricSpecEditPlugin.INSTANCE, PalladioComponentModelEditPlugin.INSTANCE, - MonitorrepositoryEditPlugin.INSTANCE, ProbabilityFunctionEditPlugin.INSTANCE, StoexEditPlugin.INSTANCE, - UnitsEditPlugin.INSTANCE, ServiceLevelObjectiveEditPlugin.INSTANCE, UsageevolutionEditPlugin.INSTANCE, - DlimEditPlugin.INSTANCE, EcoreEditPlugin.INSTANCE, }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimucomtooladapterItemProviderAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimucomtooladapterItemProviderAdapterFactory.java deleted file mode 100644 index 5c628cd1..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/provider/SimucomtooladapterItemProviderAdapterFactory.java +++ /dev/null @@ -1,303 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.edit.command.CommandParameter; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterFactory; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util.SimucomtooladapterAdapterFactory; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.util.ExperimentsSwitch; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. The - * adapters generated by this factory convert EMF adapter notifications into calls to - * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * @generated - */ -public class SimucomtooladapterItemProviderAdapterFactory extends SimucomtooladapterAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType - * isFactoryForType}. - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * @generated - */ - public SimucomtooladapterItemProviderAdapterFactory() { - this.supportedTypes.add(IEditingDomainItemProvider.class); - this.supportedTypes.add(IStructuredItemContentProvider.class); - this.supportedTypes.add(ITreeItemContentProvider.class); - this.supportedTypes.add(IItemLabelProvider.class); - this.supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration} - * instances. - * - * @generated - */ - protected SimuComConfigurationItemProvider simuComConfigurationItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createSimuComConfigurationAdapter() { - if (this.simuComConfigurationItemProvider == null) { - this.simuComConfigurationItemProvider = new SimuComConfigurationItemProvider(this); - } - - return this.simuComConfigurationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return this.parentAdapterFactory == null ? this : this.parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(final ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(final Object type) { - return this.supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * @generated - */ - @Override - public Adapter adapt(final Notifier notifier, final Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(final Object object, final Object type) { - if (this.isFactoryForType(type)) { - final Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * @generated - */ - @Override - public void addListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * @generated - */ - @Override - public void removeListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * @generated - */ - @Override - public void fireNotifyChanged(final Notification notification) { - this.changeNotifier.fireNotifyChanged(notification); - - if (this.parentAdapterFactory != null) { - this.parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * @generated - */ - @Override - public void dispose() { - if (this.simuComConfigurationItemProvider != null) { - this.simuComConfigurationItemProvider.dispose(); - } - } - - /** - * A child creation extender for the {@link ExperimentsPackage}. - * - * @generated - */ - public static class ExperimentsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * @generated - */ - protected static class CreationSwitch extends ExperimentsSwitch { - /** - * The child descriptors being populated. - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * @generated - */ - CreationSwitch(final List newChildDescriptors, final EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - - /** - * - * - * @generated - */ - @Override - public Object caseExperiment(final Experiment object) { - this.newChildDescriptors - .add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__TOOL_CONFIGURATION, - SimucomtooladapterFactory.eINSTANCE.createSimuComConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(final Object feature, final Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(final Object object, final EditingDomain editingDomain) { - final ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject) object); - return result; - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SimucomtooladapterEditPlugin.INSTANCE; - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/.classpath b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/.classpath index ca3785c4..03a57df9 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/.classpath +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/.classpath @@ -1,7 +1,11 @@ - + + + + + + - diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/build.properties b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/build.properties index 4d3b1827..0e10ab4f 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/build.properties +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/build.properties @@ -6,5 +6,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin/ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel index 3020af9a..3adb54a5 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel @@ -1,10 +1,13 @@ simucomtooladapter.ecore A representation of the model object ' Simu Com - * Configuration'. - * - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage#getSimuComConfiguration() - * @model - * @generated - */ -public interface SimuComConfiguration extends EObject, AbstractSimulationConfiguration { -} // SimuComConfiguration diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/SimucomtooladapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/SimucomtooladapterFactory.java deleted file mode 100644 index d4402456..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/SimucomtooladapterFactory.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model; - -import org.eclipse.emf.ecore.EFactory; - -/** - * The Factory for the model. It provides a create method for each - * non-abstract class of the model. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage - * @generated - */ -public interface SimucomtooladapterFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * @generated - */ - SimucomtooladapterFactory eINSTANCE = org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimucomtooladapterFactoryImpl - .init(); - - /** - * Returns a new object of class 'Simu Com Configuration'. - * - * @return a new object of class 'Simu Com Configuration'. - * @generated - */ - SimuComConfiguration createSimuComConfiguration(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - SimucomtooladapterPackage getSimucomtooladapterPackage(); - -} // SimucomtooladapterFactory diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/SimucomtooladapterPackage.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/SimucomtooladapterPackage.java deleted file mode 100644 index 93334d45..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/SimucomtooladapterPackage.java +++ /dev/null @@ -1,197 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; - -/** - * The Package for the model. It contains accessors for the meta - * objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterFactory - * @model kind="package" - * @generated - */ -public interface SimucomtooladapterPackage extends EPackage { - /** - * The package name. - * - * @generated - */ - String eNAME = "model"; - - /** - * The package namespace URI. - * - * @generated - */ - String eNS_URI = "http://palladiosimulator.org/ExperimentAutomation/ToolAdapter/SimuCom/1.0"; - - /** - * The package namespace name. - * - * @generated - */ - String eNS_PREFIX = "simucomtooladapter"; - - /** - * The singleton instance of the package. - * - * @generated - */ - SimucomtooladapterPackage eINSTANCE = org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimucomtooladapterPackageImpl - .init(); - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimuComConfigurationImpl - * Simu Com Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimuComConfigurationImpl - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimucomtooladapterPackageImpl#getSimuComConfiguration() - * @generated - */ - int SIMU_COM_CONFIGURATION = 0; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int SIMU_COM_CONFIGURATION__NAME = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__NAME; - - /** - * The feature id for the 'Stop Conditions' containment reference list. - * - * @generated - * @ordered - */ - int SIMU_COM_CONFIGURATION__STOP_CONDITIONS = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS; - - /** - * The feature id for the 'Random Number Generator Seed' containment reference. - * - * - * @generated - * @ordered - */ - int SIMU_COM_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED; - - /** - * The feature id for the 'Simulate Linking Resources' attribute. - * - * @generated - * @ordered - */ - int SIMU_COM_CONFIGURATION__SIMULATE_LINKING_RESOURCES = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES; - - /** - * The feature id for the 'Simulate Failures' attribute. - * - * - * @generated - * @ordered - */ - int SIMU_COM_CONFIGURATION__SIMULATE_FAILURES = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES; - - /** - * The feature id for the 'Datasource' containment reference. - * - * @generated - * @ordered - */ - int SIMU_COM_CONFIGURATION__DATASOURCE = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE; - - /** - * The number of structural features of the 'Simu Com Configuration' class. - * - * @generated - * @ordered - */ - int SIMU_COM_CONFIGURATION_FEATURE_COUNT = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION_FEATURE_COUNT - + 0; - - /** - * The number of operations of the 'Simu Com Configuration' class. - * - * @generated - * @ordered - */ - // int SIMU_COM_CONFIGURATION_OPERATION_COUNT = - // AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * The number of operations of the 'Simu Com Configuration' class. - * - * @generated - * @ordered - */ - // int SIMU_COM_CONFIGURATION_OPERATION_COUNT = - // AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION_OPERATION_COUNT + 0; - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration - * Simu Com Configuration}'. - * - * @return the meta object for class 'Simu Com Configuration'. - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration - * @generated - */ - EClass getSimuComConfiguration(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - SimucomtooladapterFactory getSimucomtooladapterFactory(); - - /** - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimuComConfigurationImpl - * Simu Com Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimuComConfigurationImpl - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl.SimucomtooladapterPackageImpl#getSimuComConfiguration() - * @generated - */ - EClass SIMU_COM_CONFIGURATION = eINSTANCE.getSimuComConfiguration(); - - } - -} // SimucomtooladapterPackage diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimuComConfigurationImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimuComConfigurationImpl.java deleted file mode 100644 index 5bcc01ce..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimuComConfigurationImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage; - -/** - * An implementation of the model object ' Simu Com - * Configuration'. - * - * @generated - */ -public class SimuComConfigurationImpl extends AbstractSimulationConfigurationImpl implements SimuComConfiguration { - /** - * - * - * @generated - */ - protected SimuComConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SimucomtooladapterPackage.Literals.SIMU_COM_CONFIGURATION; - } - -} // SimuComConfigurationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimucomtooladapterFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimucomtooladapterFactoryImpl.java deleted file mode 100644 index fae0e6cc..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimucomtooladapterFactoryImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterFactory; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage; - -/** - * An implementation of the model Factory. - * - * @generated - */ -public class SimucomtooladapterFactoryImpl extends EFactoryImpl implements SimucomtooladapterFactory { - /** - * Creates the default factory implementation. - * - * @generated - */ - public static SimucomtooladapterFactory init() { - try { - final SimucomtooladapterFactory theSimucomtooladapterFactory = (SimucomtooladapterFactory) EPackage.Registry.INSTANCE - .getEFactory(SimucomtooladapterPackage.eNS_URI); - if (theSimucomtooladapterFactory != null) { - return theSimucomtooladapterFactory; - } - } catch (final Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new SimucomtooladapterFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public SimucomtooladapterFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(final EClass eClass) { - switch (eClass.getClassifierID()) { - case SimucomtooladapterPackage.SIMU_COM_CONFIGURATION: - return this.createSimuComConfiguration(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public SimuComConfiguration createSimuComConfiguration() { - final SimuComConfigurationImpl simuComConfiguration = new SimuComConfigurationImpl(); - return simuComConfiguration; - } - - /** - * - * - * @generated - */ - @Override - public SimucomtooladapterPackage getSimucomtooladapterPackage() { - return (SimucomtooladapterPackage) this.getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static SimucomtooladapterPackage getPackage() { - return SimucomtooladapterPackage.eINSTANCE; - } - -} // SimucomtooladapterFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimucomtooladapterPackageImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimucomtooladapterPackageImpl.java deleted file mode 100644 index cf30c34e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/impl/SimucomtooladapterPackageImpl.java +++ /dev/null @@ -1,216 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.palladiosimulator.edp2.models.ExperimentData.ExperimentDataPackage; -import org.palladiosimulator.edp2.models.Repository.RepositoryPackage; -import org.palladiosimulator.edp2.models.measuringpoint.MeasuringpointPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterFactory; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.metricspec.MetricSpecPackage; -import org.palladiosimulator.monitorrepository.MonitorRepositoryPackage; -import org.palladiosimulator.pcm.PcmPackage; -import org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage; -import org.scaledl.usageevolution.UsageevolutionPackage; - -import de.uka.ipd.sdq.identifier.IdentifierPackage; -import de.uka.ipd.sdq.probfunction.ProbfunctionPackage; -import de.uka.ipd.sdq.stoex.StoexPackage; -import de.uka.ipd.sdq.units.UnitsPackage; -import tools.descartes.dlim.DlimPackage; - -/** - * An implementation of the model Package. - * - * @generated - */ -public class SimucomtooladapterPackageImpl extends EPackageImpl implements SimucomtooladapterPackage { - /** - * - * - * @generated - */ - private EClass simuComConfigurationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI - * value. - *

- * Note: the correct way to create the package is via the static factory method {@link #init - * init()}, which also performs initialization of the package, or returns the registered - * package, if one already exists. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage#eNS_URI - * @see #init() - * @generated - */ - private SimucomtooladapterPackageImpl() { - super(eNS_URI, SimucomtooladapterFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others - * upon which it depends. - * - *

- * This method is used to initialize {@link SimucomtooladapterPackage#eINSTANCE} when that field - * is accessed. Clients should not invoke it directly. Instead, they should simply access that - * field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static SimucomtooladapterPackage init() { - if (isInited) { - return (SimucomtooladapterPackage) EPackage.Registry.INSTANCE - .getEPackage(SimucomtooladapterPackage.eNS_URI); - } - - // Obtain or create and register package - final Object registeredSimucomtooladapterPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - final SimucomtooladapterPackageImpl theSimucomtooladapterPackage = registeredSimucomtooladapterPackage instanceof SimucomtooladapterPackageImpl - ? (SimucomtooladapterPackageImpl) registeredSimucomtooladapterPackage - : new SimucomtooladapterPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - ExperimentDataPackage.eINSTANCE.eClass(); - RepositoryPackage.eINSTANCE.eClass(); - MeasuringpointPackage.eINSTANCE.eClass(); - VariationPackage.eINSTANCE.eClass(); - ExperimentsPackage.eINSTANCE.eClass(); - AbstractsimulationPackage.eINSTANCE.eClass(); - IdentifierPackage.eINSTANCE.eClass(); - MetricSpecPackage.eINSTANCE.eClass(); - PcmPackage.eINSTANCE.eClass(); - MonitorRepositoryPackage.eINSTANCE.eClass(); - ProbfunctionPackage.eINSTANCE.eClass(); - StoexPackage.eINSTANCE.eClass(); - UnitsPackage.eINSTANCE.eClass(); - ServicelevelObjectivePackage.eINSTANCE.eClass(); - UsageevolutionPackage.eINSTANCE.eClass(); - DlimPackage.eINSTANCE.eClass(); - EcorePackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theSimucomtooladapterPackage.createPackageContents(); - - // Initialize created meta-data - theSimucomtooladapterPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theSimucomtooladapterPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(SimucomtooladapterPackage.eNS_URI, theSimucomtooladapterPackage); - return theSimucomtooladapterPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getSimuComConfiguration() { - return this.simuComConfigurationEClass; - } - - /** - * - * - * @generated - */ - @Override - public SimucomtooladapterFactory getSimucomtooladapterFactory() { - return (SimucomtooladapterFactory) this.getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on - * any invocation but its first. - * - * @generated - */ - public void createPackageContents() { - if (this.isCreated) { - return; - } - this.isCreated = true; - - // Create classes and their features - this.simuComConfigurationEClass = this.createEClass(SIMU_COM_CONFIGURATION); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have - * no affect on any invocation but its first. - * - * @generated - */ - public void initializePackageContents() { - if (this.isInitialized) { - return; - } - this.isInitialized = true; - - // Initialize package - this.setName(eNAME); - this.setNsPrefix(eNS_PREFIX); - this.setNsURI(eNS_URI); - - // Obtain other dependent packages - final AbstractsimulationPackage theAbstractsimulationPackage = (AbstractsimulationPackage) EPackage.Registry.INSTANCE - .getEPackage(AbstractsimulationPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - this.simuComConfigurationEClass.getESuperTypes() - .add(theAbstractsimulationPackage.getAbstractSimulationConfiguration()); - - // Initialize classes and features; add operations and parameters - this.initEClass(this.simuComConfigurationEClass, SimuComConfiguration.class, "SimuComConfiguration", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - this.createResource(eNS_URI); - } - -} // SimucomtooladapterPackageImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterAdapterFactory.java deleted file mode 100644 index 4372e813..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterAdapterFactory.java +++ /dev/null @@ -1,157 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * The Adapter Factory for the model. It provides an adapter - * createXXX method for each class of the model. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage - * @generated - */ -public class SimucomtooladapterAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * @generated - */ - protected static SimucomtooladapterPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * @generated - */ - public SimucomtooladapterAdapterFactory() { - if (modelPackage == null) { - modelPackage = SimucomtooladapterPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package - * or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(final Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass() - .getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * @generated - */ - protected SimucomtooladapterSwitch modelSwitch = new SimucomtooladapterSwitch() { - @Override - public Adapter caseSimuComConfiguration(final SimuComConfiguration object) { - return SimucomtooladapterAdapterFactory.this.createSimuComConfigurationAdapter(); - } - - @Override - public Adapter caseToolConfiguration(final ToolConfiguration object) { - return SimucomtooladapterAdapterFactory.this.createToolConfigurationAdapter(); - } - - @Override - public Adapter caseAbstractSimulationConfiguration(final AbstractSimulationConfiguration object) { - return SimucomtooladapterAdapterFactory.this.createAbstractSimulationConfigurationAdapter(); - } - - @Override - public Adapter defaultCase(final EObject object) { - return SimucomtooladapterAdapterFactory.this.createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(final Notifier target) { - return this.modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration - * Simu Com Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration - * @generated - */ - public Adapter createSimuComConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration Tool - * Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ToolConfiguration - * @generated - */ - public Adapter createToolConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * Abstract Simulation Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * @generated - */ - public Adapter createAbstractSimulationConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. This default - * implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // SimucomtooladapterAdapterFactory diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterResourceFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterResourceFactoryImpl.java deleted file mode 100644 index e66b19e3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterResourceFactoryImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * The Resource Factory associated with the package. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util.SimucomtooladapterResourceImpl - * @generated - */ -public class SimucomtooladapterResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * @generated - */ - public SimucomtooladapterResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * @generated - */ - @Override - public Resource createResource(final URI uri) { - final Resource result = new SimucomtooladapterResourceImpl(uri); - return result; - } - -} // SimucomtooladapterResourceFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterResourceImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterResourceImpl.java deleted file mode 100644 index 3c2ad3a3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterResourceImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * The Resource associated with the package. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util.SimucomtooladapterResourceFactoryImpl - * @generated - */ -public class SimucomtooladapterResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * @param uri - * the URI of the new resource. - * @generated - */ - public SimucomtooladapterResourceImpl(final URI uri) { - super(uri); - } - -} // SimucomtooladapterResourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterSwitch.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterSwitch.java deleted file mode 100644 index fe5328d0..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterSwitch.java +++ /dev/null @@ -1,149 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimuComConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * The Switch for the model's inheritance hierarchy. It supports the - * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for - * each class of the model, starting with the actual class of the object and proceeding up the - * inheritance hierarchy until a non-null result is returned, which is the result of the switch. - * - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage - * @generated - */ -public class SimucomtooladapterSwitch extends Switch { - /** - * The cached model package - * - * @generated - */ - protected static SimucomtooladapterPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * @generated - */ - public SimucomtooladapterSwitch() { - if (modelPackage == null) { - modelPackage = SimucomtooladapterPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * @param ePackage - * the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(final EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; - * it yields that result. - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(final int classifierID, final EObject theEObject) { - switch (classifierID) { - case SimucomtooladapterPackage.SIMU_COM_CONFIGURATION: { - final SimuComConfiguration simuComConfiguration = (SimuComConfiguration) theEObject; - T result = this.caseSimuComConfiguration(simuComConfiguration); - if (result == null) { - result = this.caseAbstractSimulationConfiguration(simuComConfiguration); - } - if (result == null) { - result = this.caseToolConfiguration(simuComConfiguration); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - default: - return this.defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Simu Com - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Simu Com - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSimuComConfiguration(final SimuComConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Tool - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Tool - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseToolConfiguration(final ToolConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Simulation - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Simulation - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractSimulationConfiguration(final AbstractSimulationConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will - * terminate the switch, but this is the last case anyway. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(final EObject object) { - return null; - } - -} // SimucomtooladapterSwitch diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterXMLProcessor.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterXMLProcessor.java deleted file mode 100644 index c4eec591..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simucom/model/util/SimucomtooladapterXMLProcessor.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.SimucomtooladapterPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * @generated - */ -public class SimucomtooladapterXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * @generated - */ - public SimucomtooladapterXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - SimucomtooladapterPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the SimucomtooladapterResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (this.registrations == null) { - super.getRegistrations(); - this.registrations.put(XML_EXTENSION, new SimucomtooladapterResourceFactoryImpl()); - this.registrations.put(STAR_EXTENSION, new SimucomtooladapterResourceFactoryImpl()); - } - return this.registrations; - } - -} // SimucomtooladapterXMLProcessor diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/.classpath b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/.classpath index c3ba59e4..d837b662 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/.classpath +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/.classpath @@ -1,7 +1,11 @@ - - + + + + + + diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/build.properties b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/build.properties index 6e3e902e..a3c4e32a 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/build.properties +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/build.properties @@ -6,5 +6,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin/ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_datasource_FileDatasource.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_datasource_FileDatasource.gif new file mode 100644 index 00000000..f6c63167 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_datasource_FileDatasource.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_datasource_MemoryDatasource.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_datasource_MemoryDatasource.gif new file mode 100644 index 00000000..e2066510 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_datasource_MemoryDatasource.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_randomNumberGeneratorSeed_RandomNumberGeneratorSeed.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_randomNumberGeneratorSeed_RandomNumberGeneratorSeed.gif new file mode 100644 index 00000000..d7c5af79 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_randomNumberGeneratorSeed_RandomNumberGeneratorSeed.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_stopConditions_MeasurementCountStopCondition.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_stopConditions_MeasurementCountStopCondition.gif new file mode 100644 index 00000000..6b0229f0 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_stopConditions_MeasurementCountStopCondition.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_stopConditions_SimTimeStopCondition.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_stopConditions_SimTimeStopCondition.gif new file mode 100644 index 00000000..f08baac4 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateAbstractSimulationConfiguration_stopConditions_SimTimeStopCondition.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperimentRepository_experiments_Experiment.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperimentRepository_experiments_Experiment.gif new file mode 100644 index 00000000..decea7ba Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperimentRepository_experiments_Experiment.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_experimentDesign_FullFactorialDesign.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_experimentDesign_FullFactorialDesign.gif new file mode 100644 index 00000000..5f2cec76 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_experimentDesign_FullFactorialDesign.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_experimentDesign_OneFactorAtATime.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_experimentDesign_OneFactorAtATime.gif new file mode 100644 index 00000000..2f9f86f0 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_experimentDesign_OneFactorAtATime.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_initialModel_InitialModel.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_initialModel_InitialModel.gif new file mode 100644 index 00000000..9d6e42e4 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_initialModel_InitialModel.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_modifications_ObjectModification.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_modifications_ObjectModification.gif new file mode 100644 index 00000000..3cc3c1b0 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_modifications_ObjectModification.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_modifications_SchedulingPolicy2DelayModification.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_modifications_SchedulingPolicy2DelayModification.gif new file mode 100644 index 00000000..6fc892d0 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_modifications_SchedulingPolicy2DelayModification.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_JMXMeasurement.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_JMXMeasurement.gif new file mode 100644 index 00000000..9d6e42e4 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_JMXMeasurement.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_ProfilingMeasurement.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_ProfilingMeasurement.gif new file mode 100644 index 00000000..d0066efa Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_ProfilingMeasurement.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_SimulationDurationMeasurement.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_SimulationDurationMeasurement.gif new file mode 100644 index 00000000..29daffe9 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_responseMeasurement_SimulationDurationMeasurement.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_stopConditions_MeasurementCountStopCondition.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_stopConditions_MeasurementCountStopCondition.gif new file mode 100644 index 00000000..9d6e42e4 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_stopConditions_MeasurementCountStopCondition.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_stopConditions_SimTimeStopCondition.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_stopConditions_SimTimeStopCondition.gif new file mode 100644 index 00000000..19ae1446 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_stopConditions_SimTimeStopCondition.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_variations_Variation.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_variations_Variation.gif new file mode 100644 index 00000000..8f7d7ca6 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateExperiment_variations_Variation.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_ExponentialValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_ExponentialValueProvider.gif new file mode 100644 index 00000000..fb796c94 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_ExponentialValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_LinearValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_LinearValueProvider.gif new file mode 100644 index 00000000..db9d0e3f Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_LinearValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_NestedIntervalsDoubleValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_NestedIntervalsDoubleValueProvider.gif new file mode 100644 index 00000000..01fd9b72 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_NestedIntervalsDoubleValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_NestedIntervalsLongValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_NestedIntervalsLongValueProvider.gif new file mode 100644 index 00000000..3b7df1a6 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_NestedIntervalsLongValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_PolynomialValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_PolynomialValueProvider.gif new file mode 100644 index 00000000..a9aaa510 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_PolynomialValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_SetValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_SetValueProvider.gif new file mode 100644 index 00000000..78987b08 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/ctool16/CreateVariation_valueProvider_SetValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/Experiment.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/Experiment.gif new file mode 100644 index 00000000..d3dc5a9a Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/Experiment.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ExperimentRepository.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ExperimentRepository.gif new file mode 100644 index 00000000..ed874747 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ExperimentRepository.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ExponentialValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ExponentialValueProvider.gif new file mode 100644 index 00000000..338fb8d9 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ExponentialValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FileDatasource.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FileDatasource.gif new file mode 100644 index 00000000..c414fe9f Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FileDatasource.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FractionalFactorialDesign.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FractionalFactorialDesign.gif new file mode 100644 index 00000000..a17dc7d8 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FractionalFactorialDesign.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FullFactorialDesign.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FullFactorialDesign.gif new file mode 100644 index 00000000..c00aedf4 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/FullFactorialDesign.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/InitialModel.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/InitialModel.gif new file mode 100644 index 00000000..5a9bc751 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/InitialModel.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/JMXMeasurement.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/JMXMeasurement.gif new file mode 100644 index 00000000..5a9bc751 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/JMXMeasurement.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/LinearValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/LinearValueProvider.gif new file mode 100644 index 00000000..d3dc5a9a Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/LinearValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/MeasurementCountStopCondition.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/MeasurementCountStopCondition.gif new file mode 100644 index 00000000..5a9bc751 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/MeasurementCountStopCondition.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/MemoryDatasource.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/MemoryDatasource.gif new file mode 100644 index 00000000..05dc74ad Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/MemoryDatasource.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/NestedIntervalsDoubleValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/NestedIntervalsDoubleValueProvider.gif new file mode 100644 index 00000000..134551bf Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/NestedIntervalsDoubleValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/NestedIntervalsLongValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/NestedIntervalsLongValueProvider.gif new file mode 100644 index 00000000..5a9bc751 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/NestedIntervalsLongValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ObjectModification.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ObjectModification.gif new file mode 100644 index 00000000..ed874747 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ObjectModification.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/OneFactorAtATime.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/OneFactorAtATime.gif new file mode 100644 index 00000000..4365960a Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/OneFactorAtATime.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/PlacketBurmanDesign.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/PlacketBurmanDesign.gif new file mode 100644 index 00000000..5a9bc751 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/PlacketBurmanDesign.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/PolynomialValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/PolynomialValueProvider.gif new file mode 100644 index 00000000..badaab06 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/PolynomialValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ProfilingMeasurement.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ProfilingMeasurement.gif new file mode 100644 index 00000000..c4fb30e9 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ProfilingMeasurement.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/RandomNumberGeneratorSeed.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/RandomNumberGeneratorSeed.gif new file mode 100644 index 00000000..a17dc7d8 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/RandomNumberGeneratorSeed.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ReconfigurationRulesFolder.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ReconfigurationRulesFolder.gif new file mode 100644 index 00000000..cb1755a7 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/ReconfigurationRulesFolder.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SchedulingPolicy2DelayModification.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SchedulingPolicy2DelayModification.gif new file mode 100644 index 00000000..a3908bcf Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SchedulingPolicy2DelayModification.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SetValueProvider.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SetValueProvider.gif new file mode 100644 index 00000000..c4a8af41 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SetValueProvider.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SimTimeStopCondition.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SimTimeStopCondition.gif new file mode 100644 index 00000000..afb82ea4 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SimTimeStopCondition.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SimulationDurationMeasurement.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SimulationDurationMeasurement.gif new file mode 100644 index 00000000..c8d381f0 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/SimulationDurationMeasurement.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/Variation.gif b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/Variation.gif new file mode 100644 index 00000000..48e3cf22 Binary files /dev/null and b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/icons/full/obj16/Variation.gif differ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/plugin.properties b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/plugin.properties index d159b064..c5f7a8d1 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/plugin.properties +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/plugin.properties @@ -19,3 +19,101 @@ _UI_Unknown_datatype= Value _UI_Unknown_feature = Unspecified +_UI_AbstractSimulationConfiguration_type = Abstract Simulation Configuration +_UI_RandomNumberGeneratorSeed_type = Random Number Generator Seed +_UI_EDP2Datasource_type = EDP2 Datasource +_UI_MemoryDatasource_type = Memory Datasource +_UI_FileDatasource_type = File Datasource +_UI_MeasurementCountStopCondition_type = Measurement Count Stop Condition +_UI_SimTimeStopCondition_type = Sim Time Stop Condition +_UI_StopCondition_type = Stop Condition +_UI_ExperimentRepository_type = Experiment Repository +_UI_Experiment_type = Experiment +_UI_Variation_type = Variation +_UI_ValueProvider_type = Value Provider +_UI_ToolConfiguration_type = Tool Configuration +_UI_ExperimentDesign_type = Experiment Design +_UI_ResponseMeasurement_type = Response Measurement +_UI_PolynomialValueProvider_type = Polynomial Value Provider +_UI_ExponentialValueProvider_type = Exponential Value Provider +_UI_SetValueProvider_type = Set Value Provider +_UI_PlacketBurmanDesign_type = Placket Burman Design +_UI_FullFactorialDesign_type = Full Factorial Design +_UI_FractionalFactorialDesign_type = Fractional Factorial Design +_UI_OneFactorAtATime_type = One Factor At ATime +_UI_SimulationDurationMeasurement_type = Simulation Duration Measurement +_UI_ProfilingMeasurement_type = Profiling Measurement +_UI_JMXMeasurement_type = JMX Measurement +_UI_LinearValueProvider_type = Linear Value Provider +_UI_ObjectModification_type = Object Modification +_UI_InitialModel_type = Initial Model +_UI_ReconfigurationRulesFolder_type = Reconfiguration Rules Folder +_UI_NestedIntervalsDoubleValueProvider_type = Nested Intervals Double Value Provider +_UI_NestedIntervalsLongValueProvider_type = Nested Intervals Long Value Provider +_UI_Modification_type = Modification +_UI_SchedulingPolicy2DelayModification_type = Scheduling Policy2 Delay Modification +_UI_AbstractSimulationConfiguration_stopConditions_feature = Stop Conditions +_UI_AbstractSimulationConfiguration_randomNumberGeneratorSeed_feature = Random Number Generator Seed +_UI_AbstractSimulationConfiguration_simulateLinkingResources_feature = Simulate Linking Resources +_UI_AbstractSimulationConfiguration_simulateFailures_feature = Simulate Failures +_UI_AbstractSimulationConfiguration_datasource_feature = Datasource +_UI_RandomNumberGeneratorSeed_seed0_feature = Seed0 +_UI_RandomNumberGeneratorSeed_seed1_feature = Seed1 +_UI_RandomNumberGeneratorSeed_seed2_feature = Seed2 +_UI_RandomNumberGeneratorSeed_seed3_feature = Seed3 +_UI_RandomNumberGeneratorSeed_seed4_feature = Seed4 +_UI_RandomNumberGeneratorSeed_seed5_feature = Seed5 +_UI_EDP2Datasource_id_feature = Id +_UI_FileDatasource_location_feature = Location +_UI_FileDatasource_exportOption_feature = Export Option +_UI_MeasurementCountStopCondition_measurementCount_feature = Measurement Count +_UI_SimTimeStopCondition_simulationTime_feature = Simulation Time +_UI_ExperimentRepository_experiments_feature = Experiments +_UI_Experiment_variations_feature = Variations +_UI_Experiment_modifications_feature = Modifications +_UI_Experiment_id_feature = Id +_UI_Experiment_name_feature = Name +_UI_Experiment_toolConfiguration_feature = Tool Configuration +_UI_Experiment_stopConditions_feature = Stop Conditions +_UI_Experiment_description_feature = Description +_UI_Experiment_experimentDesign_feature = Experiment Design +_UI_Experiment_responseMeasurement_feature = Response Measurement +_UI_Experiment_initialModel_feature = Initial Model +_UI_Experiment_repetitions_feature = Repetitions +_UI_Variation_type_feature = Type +_UI_Variation_valueProvider_feature = Value Provider +_UI_Variation_minValue_feature = Min Value +_UI_Variation_maxValue_feature = Max Value +_UI_Variation_maxVariations_feature = Max Variations +_UI_Variation_variedObjectId_feature = Varied Object Id +_UI_Variation_name_feature = Name +_UI_ToolConfiguration_name_feature = Name +_UI_PolynomialValueProvider_exponent_feature = Exponent +_UI_PolynomialValueProvider_factor_feature = Factor +_UI_ExponentialValueProvider_base_feature = Base +_UI_SetValueProvider_values_feature = Values +_UI_JMXMeasurement_pollingPeriod_feature = Polling Period +_UI_LinearValueProvider_summand_feature = Summand +_UI_LinearValueProvider_factor_feature = Factor +_UI_ObjectModification_type_feature = Type +_UI_ObjectModification_name_feature = Name +_UI_ObjectModification_variedObjectId_feature = Varied Object Id +_UI_ObjectModification_value_feature = Value +_UI_InitialModel_usageModel_feature = Usage Model +_UI_InitialModel_allocation_feature = Allocation +_UI_InitialModel_middlewareRepository_feature = Middleware Repository +_UI_InitialModel_eventMiddleWareRepository_feature = Event Middle Ware Repository +_UI_InitialModel_reconfigurationRules_feature = Reconfiguration Rules +_UI_InitialModel_monitorRepository_feature = Monitor Repository +_UI_InitialModel_serviceLevelObjectives_feature = Service Level Objectives +_UI_InitialModel_repository_feature = Repository +_UI_InitialModel_system_feature = System +_UI_InitialModel_resourceEnvironment_feature = Resource Environment +_UI_InitialModel_usageEvolution_feature = Usage Evolution +_UI_ReconfigurationRulesFolder_folderUri_feature = Folder Uri +_UI_NestedIntervalsDoubleValueProvider_minValue_feature = Min Value +_UI_NestedIntervalsDoubleValueProvider_maxValue_feature = Max Value +_UI_NestedIntervalsLongValueProvider_minValue_feature = Min Value +_UI_NestedIntervalsLongValueProvider_maxValue_feature = Max Value +_UI_ExportOption_EDP2_literal = EDP2 +_UI_ExportOption_CSV_literal = CSV diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimuLizarConfigurationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimuLizarConfigurationItemProvider.java deleted file mode 100644 index 8a109e20..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimuLizarConfigurationItemProvider.java +++ /dev/null @@ -1,107 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.palladiosimulator.experimentautomation.abstractsimulation.provider.AbstractSimulationConfigurationItemProvider; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration} - * object. - * - * @generated - */ -public class SimuLizarConfigurationItemProvider extends AbstractSimulationConfigurationItemProvider { - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public SimuLizarConfigurationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns SimuLizarConfiguration.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/SimuLizarConfiguration")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((SimuLizarConfiguration) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_SimuLizarConfiguration_type") - : this.getString("_UI_SimuLizarConfiguration_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SimulizartooladapterEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimulizartooladapterEditPlugin.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimulizartooladapterEditPlugin.java deleted file mode 100644 index 6cc6d242..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimulizartooladapterEditPlugin.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.provider; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; -import org.palladiosimulator.edp2.models.ExperimentData.provider.EDP2EditPlugin; -import org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin; -import org.palladiosimulator.metricspec.provider.MetricSpecEditPlugin; -import org.palladiosimulator.monitorrepository.provider.MonitorrepositoryEditPlugin; -import org.palladiosimulator.pcm.core.provider.PalladioComponentModelEditPlugin; -import org.palladiosimulator.servicelevelobjective.provider.ServiceLevelObjectiveEditPlugin; -import org.scaledl.usageevolution.provider.UsageevolutionEditPlugin; - -import de.uka.ipd.sdq.identifier.provider.IdentifierEditPlugin; -import de.uka.ipd.sdq.probfunction.provider.ProbabilityFunctionEditPlugin; -import de.uka.ipd.sdq.stoex.provider.StoexEditPlugin; -import de.uka.ipd.sdq.units.provider.UnitsEditPlugin; -import tools.descartes.dlim.provider.DlimEditPlugin; - -/** - * This is the central singleton for the Simulizartooladapter edit plugin. - * - * - * @generated - */ -public final class SimulizartooladapterEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * @generated - */ - public static final SimulizartooladapterEditPlugin INSTANCE = new SimulizartooladapterEditPlugin(); - - /** - * Keep track of the singleton. - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * @generated - */ - public SimulizartooladapterEditPlugin() { - super(new ResourceLocator[] { EDP2EditPlugin.INSTANCE, ExperimentAutomationEditPlugin.INSTANCE, - IdentifierEditPlugin.INSTANCE, MetricSpecEditPlugin.INSTANCE, PalladioComponentModelEditPlugin.INSTANCE, - MonitorrepositoryEditPlugin.INSTANCE, ProbabilityFunctionEditPlugin.INSTANCE, StoexEditPlugin.INSTANCE, - UnitsEditPlugin.INSTANCE, ServiceLevelObjectiveEditPlugin.INSTANCE, UsageevolutionEditPlugin.INSTANCE, - DlimEditPlugin.INSTANCE, EcoreEditPlugin.INSTANCE, }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimulizartooladapterItemProviderAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimulizartooladapterItemProviderAdapterFactory.java deleted file mode 100644 index 3e2adcb5..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/provider/SimulizartooladapterItemProviderAdapterFactory.java +++ /dev/null @@ -1,303 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.edit.command.CommandParameter; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterFactory; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util.SimulizartooladapterAdapterFactory; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.util.ExperimentsSwitch; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. The - * adapters generated by this factory convert EMF adapter notifications into calls to - * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * @generated - */ -public class SimulizartooladapterItemProviderAdapterFactory extends SimulizartooladapterAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType - * isFactoryForType}. - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * @generated - */ - public SimulizartooladapterItemProviderAdapterFactory() { - this.supportedTypes.add(IEditingDomainItemProvider.class); - this.supportedTypes.add(IStructuredItemContentProvider.class); - this.supportedTypes.add(ITreeItemContentProvider.class); - this.supportedTypes.add(IItemLabelProvider.class); - this.supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration} - * instances. - * - * @generated - */ - protected SimuLizarConfigurationItemProvider simuLizarConfigurationItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration}. - * - * - * @generated - */ - @Override - public Adapter createSimuLizarConfigurationAdapter() { - if (this.simuLizarConfigurationItemProvider == null) { - this.simuLizarConfigurationItemProvider = new SimuLizarConfigurationItemProvider(this); - } - - return this.simuLizarConfigurationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return this.parentAdapterFactory == null ? this : this.parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(final ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(final Object type) { - return this.supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * @generated - */ - @Override - public Adapter adapt(final Notifier notifier, final Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(final Object object, final Object type) { - if (this.isFactoryForType(type)) { - final Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * @generated - */ - @Override - public void addListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * @generated - */ - @Override - public void removeListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * @generated - */ - @Override - public void fireNotifyChanged(final Notification notification) { - this.changeNotifier.fireNotifyChanged(notification); - - if (this.parentAdapterFactory != null) { - this.parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * @generated - */ - @Override - public void dispose() { - if (this.simuLizarConfigurationItemProvider != null) { - this.simuLizarConfigurationItemProvider.dispose(); - } - } - - /** - * A child creation extender for the {@link ExperimentsPackage}. - * - * @generated - */ - public static class ExperimentsChildCreationExtender implements IChildCreationExtender { - /** - * The switch for creating child descriptors specific to each extended class. - * - * @generated - */ - protected static class CreationSwitch extends ExperimentsSwitch { - /** - * The child descriptors being populated. - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * @generated - */ - CreationSwitch(final List newChildDescriptors, final EditingDomain editingDomain) { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - - /** - * - * - * @generated - */ - @Override - public Object caseExperiment(final Experiment object) { - this.newChildDescriptors - .add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__TOOL_CONFIGURATION, - SimulizartooladapterFactory.eINSTANCE.createSimuLizarConfiguration())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(final Object feature, final Object child) { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(final Object object, final EditingDomain editingDomain) { - final ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject) object); - return result; - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return SimulizartooladapterEditPlugin.INSTANCE; - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/.classpath b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/.classpath index ca3785c4..03a57df9 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/.classpath +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/.classpath @@ -1,7 +1,11 @@ - + + + + + + - diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/build.properties b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/build.properties index 4d3b1827..0e10ab4f 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/build.properties +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/build.properties @@ -6,5 +6,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin/ diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel index a320db19..c58ba3cb 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel @@ -1,15 +1,16 @@ simulizartooladapter.ecore + disposableProviderFactory="true" childCreationExtenders="true" ecorePackage="simulizartooladapter.ecore#/"> diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/plugin.xml b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/plugin.xml index 8a27565f..6f0d83e8 100644 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/plugin.xml +++ b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/plugin.xml @@ -14,10 +14,4 @@ genModel="model/simulizartooladapter.genmodel"/> - - - - diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimuLizarConfiguration.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimuLizarConfiguration.java deleted file mode 100644 index 2b7a3a43..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimuLizarConfiguration.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model; - -import org.eclipse.emf.ecore.EObject; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; - -/** - * A representation of the model object ' Simu Lizar - * Configuration'. - * - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage#getSimuLizarConfiguration() - * @model - * @generated - */ -public interface SimuLizarConfiguration extends EObject, AbstractSimulationConfiguration { -} // SimuLizarConfiguration diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimulizartooladapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimulizartooladapterFactory.java deleted file mode 100644 index 3f993b5b..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimulizartooladapterFactory.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model; - -import org.eclipse.emf.ecore.EFactory; - -/** - * The Factory for the model. It provides a create method for each - * non-abstract class of the model. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage - * @generated - */ -public interface SimulizartooladapterFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * @generated - */ - SimulizartooladapterFactory eINSTANCE = org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimulizartooladapterFactoryImpl - .init(); - - /** - * Returns a new object of class 'Simu Lizar Configuration'. - * - * - * @return a new object of class 'Simu Lizar Configuration'. - * @generated - */ - SimuLizarConfiguration createSimuLizarConfiguration(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - SimulizartooladapterPackage getSimulizartooladapterPackage(); - -} // SimulizartooladapterFactory diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimulizartooladapterPackage.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimulizartooladapterPackage.java deleted file mode 100644 index cc32af5a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/SimulizartooladapterPackage.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; - -/** - * The Package for the model. It contains accessors for the meta - * objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterFactory - * @model kind="package" - * @generated - */ -public interface SimulizartooladapterPackage extends EPackage { - /** - * The package name. - * - * @generated - */ - String eNAME = "model"; - - /** - * The package namespace URI. - * - * @generated - */ - String eNS_URI = "http://palladiosimulator.org/ExperimentAutomation/ToolAdapter/SimuLizar/1.0"; - - /** - * The package namespace name. - * - * @generated - */ - String eNS_PREFIX = "simulizartooladapter"; - - /** - * The singleton instance of the package. - * - * @generated - */ - SimulizartooladapterPackage eINSTANCE = org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimulizartooladapterPackageImpl - .init(); - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimuLizarConfigurationImpl - * Simu Lizar Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimuLizarConfigurationImpl - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimulizartooladapterPackageImpl#getSimuLizarConfiguration() - * @generated - */ - int SIMU_LIZAR_CONFIGURATION = 0; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int SIMU_LIZAR_CONFIGURATION__NAME = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__NAME; - - /** - * The feature id for the 'Stop Conditions' containment reference list. - * - * @generated - * @ordered - */ - int SIMU_LIZAR_CONFIGURATION__STOP_CONDITIONS = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS; - - /** - * The feature id for the 'Random Number Generator Seed' containment reference. - * - * - * @generated - * @ordered - */ - int SIMU_LIZAR_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED; - - /** - * The feature id for the 'Simulate Linking Resources' attribute. - * - * @generated - * @ordered - */ - int SIMU_LIZAR_CONFIGURATION__SIMULATE_LINKING_RESOURCES = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES; - - /** - * The feature id for the 'Simulate Failures' attribute. - * - * - * @generated - * @ordered - */ - int SIMU_LIZAR_CONFIGURATION__SIMULATE_FAILURES = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES; - - /** - * The feature id for the 'Datasource' containment reference. - * - * @generated - * @ordered - */ - int SIMU_LIZAR_CONFIGURATION__DATASOURCE = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE; - - /** - * The number of structural features of the 'Simu Lizar Configuration' class. - * - * @generated - * @ordered - */ - int SIMU_LIZAR_CONFIGURATION_FEATURE_COUNT = AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION_FEATURE_COUNT - + 0; - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration - * Simu Lizar Configuration}'. - * - * @return the meta object for class 'Simu Lizar Configuration'. - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration - * @generated - */ - EClass getSimuLizarConfiguration(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - SimulizartooladapterFactory getSimulizartooladapterFactory(); - - /** - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimuLizarConfigurationImpl - * Simu Lizar Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimuLizarConfigurationImpl - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl.SimulizartooladapterPackageImpl#getSimuLizarConfiguration() - * @generated - */ - EClass SIMU_LIZAR_CONFIGURATION = eINSTANCE.getSimuLizarConfiguration(); - - } - -} // SimulizartooladapterPackage diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimuLizarConfigurationImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimuLizarConfigurationImpl.java deleted file mode 100644 index dca54ecc..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimuLizarConfigurationImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage; - -/** - * An implementation of the model object ' Simu Lizar - * Configuration'. - * - * @generated - */ -public class SimuLizarConfigurationImpl extends AbstractSimulationConfigurationImpl implements SimuLizarConfiguration { - /** - * - * - * @generated - */ - protected SimuLizarConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return SimulizartooladapterPackage.Literals.SIMU_LIZAR_CONFIGURATION; - } - -} // SimuLizarConfigurationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimulizartooladapterFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimulizartooladapterFactoryImpl.java deleted file mode 100644 index 8192604d..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimulizartooladapterFactoryImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterFactory; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage; - -/** - * An implementation of the model Factory. - * - * @generated - */ -public class SimulizartooladapterFactoryImpl extends EFactoryImpl implements SimulizartooladapterFactory { - /** - * Creates the default factory implementation. - * - * @generated - */ - public static SimulizartooladapterFactory init() { - try { - final SimulizartooladapterFactory theSimulizartooladapterFactory = (SimulizartooladapterFactory) EPackage.Registry.INSTANCE - .getEFactory(SimulizartooladapterPackage.eNS_URI); - if (theSimulizartooladapterFactory != null) { - return theSimulizartooladapterFactory; - } - } catch (final Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new SimulizartooladapterFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public SimulizartooladapterFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(final EClass eClass) { - switch (eClass.getClassifierID()) { - case SimulizartooladapterPackage.SIMU_LIZAR_CONFIGURATION: - return this.createSimuLizarConfiguration(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public SimuLizarConfiguration createSimuLizarConfiguration() { - final SimuLizarConfigurationImpl simuLizarConfiguration = new SimuLizarConfigurationImpl(); - return simuLizarConfiguration; - } - - /** - * - * - * @generated - */ - @Override - public SimulizartooladapterPackage getSimulizartooladapterPackage() { - return (SimulizartooladapterPackage) this.getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static SimulizartooladapterPackage getPackage() { - return SimulizartooladapterPackage.eINSTANCE; - } - -} // SimulizartooladapterFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimulizartooladapterPackageImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimulizartooladapterPackageImpl.java deleted file mode 100644 index 5297fd83..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/impl/SimulizartooladapterPackageImpl.java +++ /dev/null @@ -1,216 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.palladiosimulator.edp2.models.ExperimentData.ExperimentDataPackage; -import org.palladiosimulator.edp2.models.Repository.RepositoryPackage; -import org.palladiosimulator.edp2.models.measuringpoint.MeasuringpointPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterFactory; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.metricspec.MetricSpecPackage; -import org.palladiosimulator.monitorrepository.MonitorRepositoryPackage; -import org.palladiosimulator.pcm.PcmPackage; -import org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage; -import org.scaledl.usageevolution.UsageevolutionPackage; - -import de.uka.ipd.sdq.identifier.IdentifierPackage; -import de.uka.ipd.sdq.probfunction.ProbfunctionPackage; -import de.uka.ipd.sdq.stoex.StoexPackage; -import de.uka.ipd.sdq.units.UnitsPackage; -import tools.descartes.dlim.DlimPackage; - -/** - * An implementation of the model Package. - * - * @generated - */ -public class SimulizartooladapterPackageImpl extends EPackageImpl implements SimulizartooladapterPackage { - /** - * - * - * @generated - */ - private EClass simuLizarConfigurationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI - * value. - *

- * Note: the correct way to create the package is via the static factory method {@link #init - * init()}, which also performs initialization of the package, or returns the registered - * package, if one already exists. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage#eNS_URI - * @see #init() - * @generated - */ - private SimulizartooladapterPackageImpl() { - super(eNS_URI, SimulizartooladapterFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others - * upon which it depends. - * - *

- * This method is used to initialize {@link SimulizartooladapterPackage#eINSTANCE} when that - * field is accessed. Clients should not invoke it directly. Instead, they should simply access - * that field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static SimulizartooladapterPackage init() { - if (isInited) { - return (SimulizartooladapterPackage) EPackage.Registry.INSTANCE - .getEPackage(SimulizartooladapterPackage.eNS_URI); - } - - // Obtain or create and register package - final Object registeredSimulizartooladapterPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - final SimulizartooladapterPackageImpl theSimulizartooladapterPackage = registeredSimulizartooladapterPackage instanceof SimulizartooladapterPackageImpl - ? (SimulizartooladapterPackageImpl) registeredSimulizartooladapterPackage - : new SimulizartooladapterPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - ExperimentDataPackage.eINSTANCE.eClass(); - RepositoryPackage.eINSTANCE.eClass(); - MeasuringpointPackage.eINSTANCE.eClass(); - VariationPackage.eINSTANCE.eClass(); - ExperimentsPackage.eINSTANCE.eClass(); - AbstractsimulationPackage.eINSTANCE.eClass(); - IdentifierPackage.eINSTANCE.eClass(); - MetricSpecPackage.eINSTANCE.eClass(); - PcmPackage.eINSTANCE.eClass(); - MonitorRepositoryPackage.eINSTANCE.eClass(); - ProbfunctionPackage.eINSTANCE.eClass(); - StoexPackage.eINSTANCE.eClass(); - UnitsPackage.eINSTANCE.eClass(); - ServicelevelObjectivePackage.eINSTANCE.eClass(); - UsageevolutionPackage.eINSTANCE.eClass(); - DlimPackage.eINSTANCE.eClass(); - EcorePackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theSimulizartooladapterPackage.createPackageContents(); - - // Initialize created meta-data - theSimulizartooladapterPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theSimulizartooladapterPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(SimulizartooladapterPackage.eNS_URI, theSimulizartooladapterPackage); - return theSimulizartooladapterPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getSimuLizarConfiguration() { - return this.simuLizarConfigurationEClass; - } - - /** - * - * - * @generated - */ - @Override - public SimulizartooladapterFactory getSimulizartooladapterFactory() { - return (SimulizartooladapterFactory) this.getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on - * any invocation but its first. - * - * @generated - */ - public void createPackageContents() { - if (this.isCreated) { - return; - } - this.isCreated = true; - - // Create classes and their features - this.simuLizarConfigurationEClass = this.createEClass(SIMU_LIZAR_CONFIGURATION); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have - * no affect on any invocation but its first. - * - * @generated - */ - public void initializePackageContents() { - if (this.isInitialized) { - return; - } - this.isInitialized = true; - - // Initialize package - this.setName(eNAME); - this.setNsPrefix(eNS_PREFIX); - this.setNsURI(eNS_URI); - - // Obtain other dependent packages - final AbstractsimulationPackage theAbstractsimulationPackage = (AbstractsimulationPackage) EPackage.Registry.INSTANCE - .getEPackage(AbstractsimulationPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - this.simuLizarConfigurationEClass.getESuperTypes() - .add(theAbstractsimulationPackage.getAbstractSimulationConfiguration()); - - // Initialize classes and features; add operations and parameters - this.initEClass(this.simuLizarConfigurationEClass, SimuLizarConfiguration.class, "SimuLizarConfiguration", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - this.createResource(eNS_URI); - } - -} // SimulizartooladapterPackageImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterAdapterFactory.java deleted file mode 100644 index 21763833..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterAdapterFactory.java +++ /dev/null @@ -1,157 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * The Adapter Factory for the model. It provides an adapter - * createXXX method for each class of the model. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage - * @generated - */ -public class SimulizartooladapterAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * @generated - */ - protected static SimulizartooladapterPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * @generated - */ - public SimulizartooladapterAdapterFactory() { - if (modelPackage == null) { - modelPackage = SimulizartooladapterPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package - * or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(final Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass() - .getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * @generated - */ - protected SimulizartooladapterSwitch modelSwitch = new SimulizartooladapterSwitch() { - @Override - public Adapter caseSimuLizarConfiguration(final SimuLizarConfiguration object) { - return SimulizartooladapterAdapterFactory.this.createSimuLizarConfigurationAdapter(); - } - - @Override - public Adapter caseToolConfiguration(final ToolConfiguration object) { - return SimulizartooladapterAdapterFactory.this.createToolConfigurationAdapter(); - } - - @Override - public Adapter caseAbstractSimulationConfiguration(final AbstractSimulationConfiguration object) { - return SimulizartooladapterAdapterFactory.this.createAbstractSimulationConfigurationAdapter(); - } - - @Override - public Adapter defaultCase(final EObject object) { - return SimulizartooladapterAdapterFactory.this.createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(final Notifier target) { - return this.modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration - * Simu Lizar Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration - * @generated - */ - public Adapter createSimuLizarConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration Tool - * Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ToolConfiguration - * @generated - */ - public Adapter createToolConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * Abstract Simulation Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * @generated - */ - public Adapter createAbstractSimulationConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. This default - * implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // SimulizartooladapterAdapterFactory diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterResourceFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterResourceFactoryImpl.java deleted file mode 100644 index 106f64c2..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterResourceFactoryImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -/** - * The Resource Factory associated with the package. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util.SimulizartooladapterResourceImpl - * @generated - */ -public class SimulizartooladapterResourceFactoryImpl extends ResourceFactoryImpl { - /** - * Creates an instance of the resource factory. - * - * @generated - */ - public SimulizartooladapterResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * @generated - */ - @Override - public Resource createResource(final URI uri) { - final Resource result = new SimulizartooladapterResourceImpl(uri); - return result; - } - -} // SimulizartooladapterResourceFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterResourceImpl.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterResourceImpl.java deleted file mode 100644 index 5494559b..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterResourceImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * The Resource associated with the package. - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util.SimulizartooladapterResourceFactoryImpl - * @generated - */ -public class SimulizartooladapterResourceImpl extends XMLResourceImpl { - /** - * Creates an instance of the resource. - * - * @param uri - * the URI of the new resource. - * @generated - */ - public SimulizartooladapterResourceImpl(final URI uri) { - super(uri); - } - -} // SimulizartooladapterResourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterSwitch.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterSwitch.java deleted file mode 100644 index ba29df2d..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterSwitch.java +++ /dev/null @@ -1,149 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimuLizarConfiguration; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * The Switch for the model's inheritance hierarchy. It supports the - * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for - * each class of the model, starting with the actual class of the object and proceeding up the - * inheritance hierarchy until a non-null result is returned, which is the result of the switch. - * - * - * @see org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage - * @generated - */ -public class SimulizartooladapterSwitch extends Switch { - /** - * The cached model package - * - * @generated - */ - protected static SimulizartooladapterPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * @generated - */ - public SimulizartooladapterSwitch() { - if (modelPackage == null) { - modelPackage = SimulizartooladapterPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * @param ePackage - * the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(final EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; - * it yields that result. - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(final int classifierID, final EObject theEObject) { - switch (classifierID) { - case SimulizartooladapterPackage.SIMU_LIZAR_CONFIGURATION: { - final SimuLizarConfiguration simuLizarConfiguration = (SimuLizarConfiguration) theEObject; - T result = this.caseSimuLizarConfiguration(simuLizarConfiguration); - if (result == null) { - result = this.caseAbstractSimulationConfiguration(simuLizarConfiguration); - } - if (result == null) { - result = this.caseToolConfiguration(simuLizarConfiguration); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - default: - return this.defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Simu Lizar - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Simu Lizar - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSimuLizarConfiguration(final SimuLizarConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Tool - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Tool - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseToolConfiguration(final ToolConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Simulation - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Simulation - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractSimulationConfiguration(final AbstractSimulationConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will - * terminate the switch, but this is the last case anyway. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(final EObject object) { - return null; - } - -} // SimulizartooladapterSwitch diff --git a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterXMLProcessor.java b/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterXMLProcessor.java deleted file mode 100644 index 0ccee54a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src/org/palladiosimulator/experimentautomation/application/tooladapter/simulizar/model/util/SimulizartooladapterXMLProcessor.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.SimulizartooladapterPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * @generated - */ -public class SimulizartooladapterXMLProcessor extends XMLProcessor { - - /** - * Public constructor to instantiate the helper. - * - * @generated - */ - public SimulizartooladapterXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - SimulizartooladapterPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the SimulizartooladapterResourceFactoryImpl - * factory. - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (this.registrations == null) { - super.getRegistrations(); - this.registrations.put(XML_EXTENSION, new SimulizartooladapterResourceFactoryImpl()); - this.registrations.put(STAR_EXTENSION, new SimulizartooladapterResourceFactoryImpl()); - } - return this.registrations; - } - -} // SimulizartooladapterXMLProcessor diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/.classpath b/bundles/org.palladiosimulator.experimentautomation.edit/.classpath index e801ebfb..d837b662 100644 --- a/bundles/org.palladiosimulator.experimentautomation.edit/.classpath +++ b/bundles/org.palladiosimulator.experimentautomation.edit/.classpath @@ -1,7 +1,11 @@ - + + + + + + - diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/META-INF/MANIFEST.MF b/bundles/org.palladiosimulator.experimentautomation.edit/META-INF/MANIFEST.MF index 8a0fe9df..9426fc38 100644 --- a/bundles/org.palladiosimulator.experimentautomation.edit/META-INF/MANIFEST.MF +++ b/bundles/org.palladiosimulator.experimentautomation.edit/META-INF/MANIFEST.MF @@ -5,7 +5,7 @@ Bundle-SymbolicName: org.palladiosimulator.experimentautomation.edit;singleton:= Automatic-Module-Name: org.palladiosimulator.experimentautomation.edit Bundle-Version: 5.0.0.qualifier Bundle-ClassPath: . -Bundle-Activator: org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin$Implementation +Bundle-Activator: org.palladiosimulator.experimentautomation.variation.provider.ExperimentautomationEditPlugin$Implementation Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: JavaSE-11 diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/build.properties b/bundles/org.palladiosimulator.experimentautomation.edit/build.properties index 061672eb..764cd959 100644 --- a/bundles/org.palladiosimulator.experimentautomation.edit/build.properties +++ b/bundles/org.palladiosimulator.experimentautomation.edit/build.properties @@ -6,5 +6,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin/ diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/AbstractSimulationConfigurationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/AbstractSimulationConfigurationItemProvider.java deleted file mode 100644 index 033951e9..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/AbstractSimulationConfigurationItemProvider.java +++ /dev/null @@ -1,201 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationFactory; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.experiments.provider.ToolConfigurationItemProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration} - * object. - * - * @generated - */ -public class AbstractSimulationConfigurationItemProvider extends ToolConfigurationItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public AbstractSimulationConfigurationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addSimulateLinkingResourcesPropertyDescriptor(object); - this.addSimulateFailuresPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Simulate Linking Resources feature. - * - * @generated - */ - protected void addSimulateLinkingResourcesPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_AbstractSimulationConfiguration_simulateLinkingResources_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_AbstractSimulationConfiguration_simulateLinkingResources_feature", - "_UI_AbstractSimulationConfiguration_type"), - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES, true, - false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Simulate Failures feature. - * - * - * @generated - */ - protected void addSimulateFailuresPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_AbstractSimulationConfiguration_simulateFailures_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_AbstractSimulationConfiguration_simulateFailures_feature", - "_UI_AbstractSimulationConfiguration_type"), - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES, true, false, - false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate - * feature for an {@link org.eclipse.emf.edit.command.AddCommand}, - * {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * @generated - */ - @Override - public Collection getChildrenFeatures(final Object object) { - if (this.childrenFeatures == null) { - super.getChildrenFeatures(object); - this.childrenFeatures - .add(AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS); - this.childrenFeatures.add( - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED); - this.childrenFeatures.add(AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE); - } - return this.childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(final Object object, final Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((AbstractSimulationConfiguration) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_AbstractSimulationConfiguration_type") - : this.getString("_UI_AbstractSimulationConfiguration_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(AbstractSimulationConfiguration.class)) { - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES: - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS: - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED: - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(this.createChildParameter( - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS, - AbstractsimulationFactory.eINSTANCE.createMeasurementCountStopCondition())); - - newChildDescriptors.add(this.createChildParameter( - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS, - AbstractsimulationFactory.eINSTANCE.createSimTimeStopCondition())); - - newChildDescriptors.add(this.createChildParameter( - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED, - AbstractsimulationFactory.eINSTANCE.createRandomNumberGeneratorSeed())); - - newChildDescriptors.add(this.createChildParameter( - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE, - AbstractsimulationFactory.eINSTANCE.createMemoryDatasource())); - - newChildDescriptors.add(this.createChildParameter( - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE, - AbstractsimulationFactory.eINSTANCE.createFileDatasource())); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/AbstractsimulationItemProviderAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/AbstractsimulationItemProviderAdapterFactory.java deleted file mode 100644 index 6b339608..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/AbstractsimulationItemProviderAdapterFactory.java +++ /dev/null @@ -1,369 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.util.AbstractsimulationAdapterFactory; -import org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. The - * adapters generated by this factory convert EMF adapter notifications into calls to - * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * @generated - */ -public class AbstractsimulationItemProviderAdapterFactory extends AbstractsimulationAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This helps manage the child creation extenders. - * - * @generated - */ - protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager( - ExperimentAutomationEditPlugin.INSTANCE, AbstractsimulationPackage.eNS_URI); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType - * isFactoryForType}. - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * @generated - */ - public AbstractsimulationItemProviderAdapterFactory() { - this.supportedTypes.add(IEditingDomainItemProvider.class); - this.supportedTypes.add(IStructuredItemContentProvider.class); - this.supportedTypes.add(ITreeItemContentProvider.class); - this.supportedTypes.add(IItemLabelProvider.class); - this.supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed} - * instances. - * - * @generated - */ - protected RandomNumberGeneratorSeedItemProvider randomNumberGeneratorSeedItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed}. - * - * - * @generated - */ - @Override - public Adapter createRandomNumberGeneratorSeedAdapter() { - if (this.randomNumberGeneratorSeedItemProvider == null) { - this.randomNumberGeneratorSeedItemProvider = new RandomNumberGeneratorSeedItemProvider(this); - } - - return this.randomNumberGeneratorSeedItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource} - * instances. - * - * @generated - */ - protected MemoryDatasourceItemProvider memoryDatasourceItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource}. - * - * @generated - */ - @Override - public Adapter createMemoryDatasourceAdapter() { - if (this.memoryDatasourceItemProvider == null) { - this.memoryDatasourceItemProvider = new MemoryDatasourceItemProvider(this); - } - - return this.memoryDatasourceItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource} - * instances. - * - * @generated - */ - protected FileDatasourceItemProvider fileDatasourceItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource}. - * - * @generated - */ - @Override - public Adapter createFileDatasourceAdapter() { - if (this.fileDatasourceItemProvider == null) { - this.fileDatasourceItemProvider = new FileDatasourceItemProvider(this); - } - - return this.fileDatasourceItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition} - * instances. - * - * @generated - */ - protected MeasurementCountStopConditionItemProvider measurementCountStopConditionItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition}. - * - * - * @generated - */ - @Override - public Adapter createMeasurementCountStopConditionAdapter() { - if (this.measurementCountStopConditionItemProvider == null) { - this.measurementCountStopConditionItemProvider = new MeasurementCountStopConditionItemProvider(this); - } - - return this.measurementCountStopConditionItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition} - * instances. - * - * @generated - */ - protected SimTimeStopConditionItemProvider simTimeStopConditionItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition}. - * - * - * @generated - */ - @Override - public Adapter createSimTimeStopConditionAdapter() { - if (this.simTimeStopConditionItemProvider == null) { - this.simTimeStopConditionItemProvider = new SimTimeStopConditionItemProvider(this); - } - - return this.simTimeStopConditionItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return this.parentAdapterFactory == null ? this : this.parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(final ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(final Object type) { - return this.supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * @generated - */ - @Override - public Adapter adapt(final Notifier notifier, final Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(final Object object, final Object type) { - if (this.isFactoryForType(type)) { - final Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * - * - * @generated - */ - public List getChildCreationExtenders() { - return this.childCreationExtenderManager.getChildCreationExtenders(); - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(final Object object, final EditingDomain editingDomain) { - return this.childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return this.childCreationExtenderManager; - } - - /** - * This adds a listener. - * - * @generated - */ - @Override - public void addListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * @generated - */ - @Override - public void removeListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * @generated - */ - @Override - public void fireNotifyChanged(final Notification notification) { - this.changeNotifier.fireNotifyChanged(notification); - - if (this.parentAdapterFactory != null) { - this.parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * @generated - */ - @Override - public void dispose() { - if (this.randomNumberGeneratorSeedItemProvider != null) { - this.randomNumberGeneratorSeedItemProvider.dispose(); - } - if (this.memoryDatasourceItemProvider != null) { - this.memoryDatasourceItemProvider.dispose(); - } - if (this.fileDatasourceItemProvider != null) { - this.fileDatasourceItemProvider.dispose(); - } - if (this.measurementCountStopConditionItemProvider != null) { - this.measurementCountStopConditionItemProvider.dispose(); - } - if (this.simTimeStopConditionItemProvider != null) { - this.simTimeStopConditionItemProvider.dispose(); - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/EDP2DatasourceItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/EDP2DatasourceItemProvider.java deleted file mode 100644 index 0f3093e9..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/EDP2DatasourceItemProvider.java +++ /dev/null @@ -1,138 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource} object. - * - * @generated - */ -public class EDP2DatasourceItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public EDP2DatasourceItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addIdPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Id feature. - * - * @generated - */ - protected void addIdPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_EDP2Datasource_id_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_EDP2Datasource_id_feature", - "_UI_EDP2Datasource_type"), - AbstractsimulationPackage.Literals.EDP2_DATASOURCE__ID, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((EDP2Datasource) object).getId(); - return label == null || label.length() == 0 ? this.getString("_UI_EDP2Datasource_type") - : this.getString("_UI_EDP2Datasource_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(EDP2Datasource.class)) { - case AbstractsimulationPackage.EDP2_DATASOURCE__ID: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/FileDatasourceItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/FileDatasourceItemProvider.java deleted file mode 100644 index 2cf9aa23..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/FileDatasourceItemProvider.java +++ /dev/null @@ -1,147 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource} object. - * - * @generated - */ -public class FileDatasourceItemProvider extends EDP2DatasourceItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public FileDatasourceItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addLocationPropertyDescriptor(object); - this.addExportOptionPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Location feature. - * - * @generated - */ - protected void addLocationPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_FileDatasource_location_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_FileDatasource_location_feature", - "_UI_FileDatasource_type"), - AbstractsimulationPackage.Literals.FILE_DATASOURCE__LOCATION, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Export Option feature. - * - * @generated - */ - protected void addExportOptionPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_FileDatasource_exportOption_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_FileDatasource_exportOption_feature", - "_UI_FileDatasource_type"), - AbstractsimulationPackage.Literals.FILE_DATASOURCE__EXPORT_OPTION, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns FileDatasource.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/FileDatasource")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((FileDatasource) object).getId(); - return label == null || label.length() == 0 ? this.getString("_UI_FileDatasource_type") - : this.getString("_UI_FileDatasource_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(FileDatasource.class)) { - case AbstractsimulationPackage.FILE_DATASOURCE__LOCATION: - case AbstractsimulationPackage.FILE_DATASOURCE__EXPORT_OPTION: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/MeasurementCountStopConditionItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/MeasurementCountStopConditionItemProvider.java deleted file mode 100644 index 85e44a22..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/MeasurementCountStopConditionItemProvider.java +++ /dev/null @@ -1,130 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition} - * object. - * - * @generated - */ -public class MeasurementCountStopConditionItemProvider extends StopConditionItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public MeasurementCountStopConditionItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addMeasurementCountPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Measurement Count feature. - * - * - * @generated - */ - protected void addMeasurementCountPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_MeasurementCountStopCondition_measurementCount_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_MeasurementCountStopCondition_measurementCount_feature", - "_UI_MeasurementCountStopCondition_type"), - AbstractsimulationPackage.Literals.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT, true, false, - false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns MeasurementCountStopCondition.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/MeasurementCountStopCondition")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final MeasurementCountStopCondition measurementCountStopCondition = (MeasurementCountStopCondition) object; - return this.getString("_UI_MeasurementCountStopCondition_type") + " " - + measurementCountStopCondition.getMeasurementCount(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(MeasurementCountStopCondition.class)) { - case AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/MemoryDatasourceItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/MemoryDatasourceItemProvider.java deleted file mode 100644 index e2c5f23f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/MemoryDatasourceItemProvider.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource} object. - * - * - * @generated - */ -public class MemoryDatasourceItemProvider extends EDP2DatasourceItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public MemoryDatasourceItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns MemoryDatasource.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/MemoryDatasource")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((MemoryDatasource) object).getId(); - return label == null || label.length() == 0 ? this.getString("_UI_MemoryDatasource_type") - : this.getString("_UI_MemoryDatasource_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/RandomNumberGeneratorSeedItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/RandomNumberGeneratorSeedItemProvider.java deleted file mode 100644 index 58e1dd65..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/RandomNumberGeneratorSeedItemProvider.java +++ /dev/null @@ -1,238 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed} - * object. - * - * @generated - */ -public class RandomNumberGeneratorSeedItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public RandomNumberGeneratorSeedItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addSeed0PropertyDescriptor(object); - this.addSeed1PropertyDescriptor(object); - this.addSeed2PropertyDescriptor(object); - this.addSeed3PropertyDescriptor(object); - this.addSeed4PropertyDescriptor(object); - this.addSeed5PropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Seed0 feature. - * - * @generated - */ - protected void addSeed0PropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_RandomNumberGeneratorSeed_seed0_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_RandomNumberGeneratorSeed_seed0_feature", - "_UI_RandomNumberGeneratorSeed_type"), - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED0, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Seed1 feature. - * - * @generated - */ - protected void addSeed1PropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_RandomNumberGeneratorSeed_seed1_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_RandomNumberGeneratorSeed_seed1_feature", - "_UI_RandomNumberGeneratorSeed_type"), - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED1, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Seed2 feature. - * - * @generated - */ - protected void addSeed2PropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_RandomNumberGeneratorSeed_seed2_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_RandomNumberGeneratorSeed_seed2_feature", - "_UI_RandomNumberGeneratorSeed_type"), - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED2, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Seed3 feature. - * - * @generated - */ - protected void addSeed3PropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_RandomNumberGeneratorSeed_seed3_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_RandomNumberGeneratorSeed_seed3_feature", - "_UI_RandomNumberGeneratorSeed_type"), - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED3, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Seed4 feature. - * - * @generated - */ - protected void addSeed4PropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_RandomNumberGeneratorSeed_seed4_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_RandomNumberGeneratorSeed_seed4_feature", - "_UI_RandomNumberGeneratorSeed_type"), - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED4, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Seed5 feature. - * - * @generated - */ - protected void addSeed5PropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_RandomNumberGeneratorSeed_seed5_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_RandomNumberGeneratorSeed_seed5_feature", - "_UI_RandomNumberGeneratorSeed_type"), - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED5, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns RandomNumberGeneratorSeed.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/RandomNumberGeneratorSeed")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final RandomNumberGeneratorSeed randomNumberGeneratorSeed = (RandomNumberGeneratorSeed) object; - return this.getString("_UI_RandomNumberGeneratorSeed_type") + " " + randomNumberGeneratorSeed.getSeed0(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(RandomNumberGeneratorSeed.class)) { - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED0: - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED1: - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED2: - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED3: - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED4: - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED5: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/SimTimeStopConditionItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/SimTimeStopConditionItemProvider.java deleted file mode 100644 index dcf24974..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/SimTimeStopConditionItemProvider.java +++ /dev/null @@ -1,128 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition} - * object. - * - * @generated - */ -public class SimTimeStopConditionItemProvider extends StopConditionItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public SimTimeStopConditionItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addSimulationTimePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Simulation Time feature. - * - * @generated - */ - protected void addSimulationTimePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_SimTimeStopCondition_simulationTime_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_SimTimeStopCondition_simulationTime_feature", - "_UI_SimTimeStopCondition_type"), - AbstractsimulationPackage.Literals.SIM_TIME_STOP_CONDITION__SIMULATION_TIME, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns SimTimeStopCondition.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/SimTimeStopCondition")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final SimTimeStopCondition simTimeStopCondition = (SimTimeStopCondition) object; - return this.getString("_UI_SimTimeStopCondition_type") + " " + simTimeStopCondition.getSimulationTime(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(SimTimeStopCondition.class)) { - case AbstractsimulationPackage.SIM_TIME_STOP_CONDITION__SIMULATION_TIME: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/StopConditionItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/StopConditionItemProvider.java deleted file mode 100644 index 3b3d6d4e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/abstractsimulation/provider/StopConditionItemProvider.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition} object. - * - * @generated - */ -public class StopConditionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public StopConditionItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_StopCondition_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentDesignItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentDesignItemProvider.java deleted file mode 100644 index 21055549..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentDesignItemProvider.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ExperimentDesign} object. - * - * @generated - */ -public class ExperimentDesignItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ExperimentDesignItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_ExperimentDesign_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentItemProvider.java deleted file mode 100644 index f417570c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentItemProvider.java +++ /dev/null @@ -1,285 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationFactory; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsFactory; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.Experiment} object. - * - * @generated - */ -public class ExperimentItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ExperimentItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addIdPropertyDescriptor(object); - this.addNamePropertyDescriptor(object); - this.addDescriptionPropertyDescriptor(object); - this.addRepetitionsPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Id feature. - * - * @generated - */ - protected void addIdPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Experiment_id_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Experiment_id_feature", - "_UI_Experiment_type"), - ExperimentsPackage.Literals.EXPERIMENT__ID, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * @generated - */ - protected void addNamePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Experiment_name_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Experiment_name_feature", - "_UI_Experiment_type"), - ExperimentsPackage.Literals.EXPERIMENT__NAME, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Experiment_description_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Experiment_description_feature", - "_UI_Experiment_type"), - ExperimentsPackage.Literals.EXPERIMENT__DESCRIPTION, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Repetitions feature. - * - * @generated - */ - protected void addRepetitionsPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Experiment_repetitions_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Experiment_repetitions_feature", - "_UI_Experiment_type"), - ExperimentsPackage.Literals.EXPERIMENT__REPETITIONS, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate - * feature for an {@link org.eclipse.emf.edit.command.AddCommand}, - * {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * @generated - */ - @Override - public Collection getChildrenFeatures(final Object object) { - if (this.childrenFeatures == null) { - super.getChildrenFeatures(object); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT__VARIATIONS); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT__MODIFICATIONS); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT__TOOL_CONFIGURATION); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT__STOP_CONDITIONS); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT__EXPERIMENT_DESIGN); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT__RESPONSE_MEASUREMENT); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT__INITIAL_MODEL); - } - return this.childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(final Object object, final Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Experiment.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/Experiment")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((Experiment) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_Experiment_type") - : this.getString("_UI_Experiment_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(Experiment.class)) { - case ExperimentsPackage.EXPERIMENT__ID: - case ExperimentsPackage.EXPERIMENT__NAME: - case ExperimentsPackage.EXPERIMENT__DESCRIPTION: - case ExperimentsPackage.EXPERIMENT__REPETITIONS: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ExperimentsPackage.EXPERIMENT__VARIATIONS: - case ExperimentsPackage.EXPERIMENT__MODIFICATIONS: - case ExperimentsPackage.EXPERIMENT__TOOL_CONFIGURATION: - case ExperimentsPackage.EXPERIMENT__STOP_CONDITIONS: - case ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN: - case ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT: - case ExperimentsPackage.EXPERIMENT__INITIAL_MODEL: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__VARIATIONS, - ExperimentsFactory.eINSTANCE.createVariation())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__MODIFICATIONS, - ExperimentsFactory.eINSTANCE.createObjectModification())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__MODIFICATIONS, - ExperimentsFactory.eINSTANCE.createSchedulingPolicy2DelayModification())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__STOP_CONDITIONS, - AbstractsimulationFactory.eINSTANCE.createMeasurementCountStopCondition())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__STOP_CONDITIONS, - AbstractsimulationFactory.eINSTANCE.createSimTimeStopCondition())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__EXPERIMENT_DESIGN, - ExperimentsFactory.eINSTANCE.createFullFactorialDesign())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__EXPERIMENT_DESIGN, - ExperimentsFactory.eINSTANCE.createOneFactorAtATime())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__RESPONSE_MEASUREMENT, - ExperimentsFactory.eINSTANCE.createSimulationDurationMeasurement())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__RESPONSE_MEASUREMENT, - ExperimentsFactory.eINSTANCE.createProfilingMeasurement())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__RESPONSE_MEASUREMENT, - ExperimentsFactory.eINSTANCE.createJMXMeasurement())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT__INITIAL_MODEL, - ExperimentsFactory.eINSTANCE.createInitialModel())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentRepositoryItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentRepositoryItemProvider.java deleted file mode 100644 index d7b94632..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentRepositoryItemProvider.java +++ /dev/null @@ -1,165 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentRepository; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsFactory; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ExperimentRepository} object. - * - * @generated - */ -public class ExperimentRepositoryItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ExperimentRepositoryItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate - * feature for an {@link org.eclipse.emf.edit.command.AddCommand}, - * {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * @generated - */ - @Override - public Collection getChildrenFeatures(final Object object) { - if (this.childrenFeatures == null) { - super.getChildrenFeatures(object); - this.childrenFeatures.add(ExperimentsPackage.Literals.EXPERIMENT_REPOSITORY__EXPERIMENTS); - } - return this.childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(final Object object, final Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns ExperimentRepository.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/ExperimentRepository")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_ExperimentRepository_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(ExperimentRepository.class)) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY__EXPERIMENTS: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors - .add(this.createChildParameter(ExperimentsPackage.Literals.EXPERIMENT_REPOSITORY__EXPERIMENTS, - ExperimentsFactory.eINSTANCE.createExperiment())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentsItemProviderAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentsItemProviderAdapterFactory.java deleted file mode 100644 index bc62c448..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExperimentsItemProviderAdapterFactory.java +++ /dev/null @@ -1,791 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.util.ExperimentsAdapterFactory; -import org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. The - * adapters generated by this factory convert EMF adapter notifications into calls to - * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * @generated - */ -public class ExperimentsItemProviderAdapterFactory extends ExperimentsAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This helps manage the child creation extenders. - * - * @generated - */ - protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager( - ExperimentAutomationEditPlugin.INSTANCE, ExperimentsPackage.eNS_URI); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType - * isFactoryForType}. - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * @generated - */ - public ExperimentsItemProviderAdapterFactory() { - this.supportedTypes.add(IEditingDomainItemProvider.class); - this.supportedTypes.add(IStructuredItemContentProvider.class); - this.supportedTypes.add(ITreeItemContentProvider.class); - this.supportedTypes.add(IItemLabelProvider.class); - this.supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.ExperimentRepository} - * instances. - * - * @generated - */ - protected ExperimentRepositoryItemProvider experimentRepositoryItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ExperimentRepository}. - * - * @generated - */ - @Override - public Adapter createExperimentRepositoryAdapter() { - if (this.experimentRepositoryItemProvider == null) { - this.experimentRepositoryItemProvider = new ExperimentRepositoryItemProvider(this); - } - - return this.experimentRepositoryItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.Experiment} instances. - * - * @generated - */ - protected ExperimentItemProvider experimentItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.Experiment}. - * - * @generated - */ - @Override - public Adapter createExperimentAdapter() { - if (this.experimentItemProvider == null) { - this.experimentItemProvider = new ExperimentItemProvider(this); - } - - return this.experimentItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.Variation} instances. - * - * @generated - */ - protected VariationItemProvider variationItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.Variation}. - * - * @generated - */ - @Override - public Adapter createVariationAdapter() { - if (this.variationItemProvider == null) { - this.variationItemProvider = new VariationItemProvider(this); - } - - return this.variationItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider} - * instances. - * - * @generated - */ - protected PolynomialValueProviderItemProvider polynomialValueProviderItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider}. - * - * @generated - */ - @Override - public Adapter createPolynomialValueProviderAdapter() { - if (this.polynomialValueProviderItemProvider == null) { - this.polynomialValueProviderItemProvider = new PolynomialValueProviderItemProvider(this); - } - - return this.polynomialValueProviderItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider} - * instances. - * - * @generated - */ - protected ExponentialValueProviderItemProvider exponentialValueProviderItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider}. - * - * @generated - */ - @Override - public Adapter createExponentialValueProviderAdapter() { - if (this.exponentialValueProviderItemProvider == null) { - this.exponentialValueProviderItemProvider = new ExponentialValueProviderItemProvider(this); - } - - return this.exponentialValueProviderItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider} instances. - * - * - * @generated - */ - protected SetValueProviderItemProvider setValueProviderItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider}. - * - * @generated - */ - @Override - public Adapter createSetValueProviderAdapter() { - if (this.setValueProviderItemProvider == null) { - this.setValueProviderItemProvider = new SetValueProviderItemProvider(this); - } - - return this.setValueProviderItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign} instances. - * - * - * @generated - */ - protected PlacketBurmanDesignItemProvider placketBurmanDesignItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign}. - * - * @generated - */ - @Override - public Adapter createPlacketBurmanDesignAdapter() { - if (this.placketBurmanDesignItemProvider == null) { - this.placketBurmanDesignItemProvider = new PlacketBurmanDesignItemProvider(this); - } - - return this.placketBurmanDesignItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign} instances. - * - * - * @generated - */ - protected FullFactorialDesignItemProvider fullFactorialDesignItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign}. - * - * @generated - */ - @Override - public Adapter createFullFactorialDesignAdapter() { - if (this.fullFactorialDesignItemProvider == null) { - this.fullFactorialDesignItemProvider = new FullFactorialDesignItemProvider(this); - } - - return this.fullFactorialDesignItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign} - * instances. - * - * @generated - */ - protected FractionalFactorialDesignItemProvider fractionalFactorialDesignItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign}. - * - * - * @generated - */ - @Override - public Adapter createFractionalFactorialDesignAdapter() { - if (this.fractionalFactorialDesignItemProvider == null) { - this.fractionalFactorialDesignItemProvider = new FractionalFactorialDesignItemProvider(this); - } - - return this.fractionalFactorialDesignItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime} instances. - * - * - * @generated - */ - protected OneFactorAtATimeItemProvider oneFactorAtATimeItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime}. - * - * @generated - */ - @Override - public Adapter createOneFactorAtATimeAdapter() { - if (this.oneFactorAtATimeItemProvider == null) { - this.oneFactorAtATimeItemProvider = new OneFactorAtATimeItemProvider(this); - } - - return this.oneFactorAtATimeItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement} - * instances. - * - * @generated - */ - protected SimulationDurationMeasurementItemProvider simulationDurationMeasurementItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement}. - * - * - * @generated - */ - @Override - public Adapter createSimulationDurationMeasurementAdapter() { - if (this.simulationDurationMeasurementItemProvider == null) { - this.simulationDurationMeasurementItemProvider = new SimulationDurationMeasurementItemProvider(this); - } - - return this.simulationDurationMeasurementItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement} - * instances. - * - * @generated - */ - protected ProfilingMeasurementItemProvider profilingMeasurementItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement}. - * - * @generated - */ - @Override - public Adapter createProfilingMeasurementAdapter() { - if (this.profilingMeasurementItemProvider == null) { - this.profilingMeasurementItemProvider = new ProfilingMeasurementItemProvider(this); - } - - return this.profilingMeasurementItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement} instances. - * - * @generated - */ - protected JMXMeasurementItemProvider jmxMeasurementItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement}. - * - * @generated - */ - @Override - public Adapter createJMXMeasurementAdapter() { - if (this.jmxMeasurementItemProvider == null) { - this.jmxMeasurementItemProvider = new JMXMeasurementItemProvider(this); - } - - return this.jmxMeasurementItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider} instances. - * - * - * @generated - */ - protected LinearValueProviderItemProvider linearValueProviderItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider}. - * - * @generated - */ - @Override - public Adapter createLinearValueProviderAdapter() { - if (this.linearValueProviderItemProvider == null) { - this.linearValueProviderItemProvider = new LinearValueProviderItemProvider(this); - } - - return this.linearValueProviderItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.ObjectModification} instances. - * - * - * @generated - */ - protected ObjectModificationItemProvider objectModificationItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ObjectModification}. - * - * @generated - */ - @Override - public Adapter createObjectModificationAdapter() { - if (this.objectModificationItemProvider == null) { - this.objectModificationItemProvider = new ObjectModificationItemProvider(this); - } - - return this.objectModificationItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.InitialModel} instances. - * - * @generated - */ - protected InitialModelItemProvider initialModelItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.InitialModel}. - * - * @generated - */ - @Override - public Adapter createInitialModelAdapter() { - if (this.initialModelItemProvider == null) { - this.initialModelItemProvider = new InitialModelItemProvider(this); - } - - return this.initialModelItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder} - * instances. - * - * @generated - */ - protected ReconfigurationRulesFolderItemProvider reconfigurationRulesFolderItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder}. - * - * - * @generated - */ - @Override - public Adapter createReconfigurationRulesFolderAdapter() { - if (this.reconfigurationRulesFolderItemProvider == null) { - this.reconfigurationRulesFolderItemProvider = new ReconfigurationRulesFolderItemProvider(this); - } - - return this.reconfigurationRulesFolderItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider} - * instances. - * - * @generated - */ - protected NestedIntervalsDoubleValueProviderItemProvider nestedIntervalsDoubleValueProviderItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider}. - * - * - * @generated - */ - @Override - public Adapter createNestedIntervalsDoubleValueProviderAdapter() { - if (this.nestedIntervalsDoubleValueProviderItemProvider == null) { - this.nestedIntervalsDoubleValueProviderItemProvider = new NestedIntervalsDoubleValueProviderItemProvider( - this); - } - - return this.nestedIntervalsDoubleValueProviderItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider} - * instances. - * - * @generated - */ - protected NestedIntervalsLongValueProviderItemProvider nestedIntervalsLongValueProviderItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider}. - * - * - * @generated - */ - @Override - public Adapter createNestedIntervalsLongValueProviderAdapter() { - if (this.nestedIntervalsLongValueProviderItemProvider == null) { - this.nestedIntervalsLongValueProviderItemProvider = new NestedIntervalsLongValueProviderItemProvider(this); - } - - return this.nestedIntervalsLongValueProviderItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification} - * instances. - * - * @generated - */ - protected SchedulingPolicy2DelayModificationItemProvider schedulingPolicy2DelayModificationItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification}. - * - * - * @generated - */ - @Override - public Adapter createSchedulingPolicy2DelayModificationAdapter() { - if (this.schedulingPolicy2DelayModificationItemProvider == null) { - this.schedulingPolicy2DelayModificationItemProvider = new SchedulingPolicy2DelayModificationItemProvider( - this); - } - - return this.schedulingPolicy2DelayModificationItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return this.parentAdapterFactory == null ? this : this.parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(final ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(final Object type) { - return this.supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * @generated - */ - @Override - public Adapter adapt(final Notifier notifier, final Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(final Object object, final Object type) { - if (this.isFactoryForType(type)) { - final Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * - * - * @generated - */ - public List getChildCreationExtenders() { - return this.childCreationExtenderManager.getChildCreationExtenders(); - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(final Object object, final EditingDomain editingDomain) { - return this.childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return this.childCreationExtenderManager; - } - - /** - * This adds a listener. - * - * @generated - */ - @Override - public void addListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * @generated - */ - @Override - public void removeListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * @generated - */ - @Override - public void fireNotifyChanged(final Notification notification) { - this.changeNotifier.fireNotifyChanged(notification); - - if (this.parentAdapterFactory != null) { - this.parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * @generated - */ - @Override - public void dispose() { - if (this.experimentRepositoryItemProvider != null) { - this.experimentRepositoryItemProvider.dispose(); - } - if (this.experimentItemProvider != null) { - this.experimentItemProvider.dispose(); - } - if (this.variationItemProvider != null) { - this.variationItemProvider.dispose(); - } - if (this.polynomialValueProviderItemProvider != null) { - this.polynomialValueProviderItemProvider.dispose(); - } - if (this.exponentialValueProviderItemProvider != null) { - this.exponentialValueProviderItemProvider.dispose(); - } - if (this.setValueProviderItemProvider != null) { - this.setValueProviderItemProvider.dispose(); - } - if (this.placketBurmanDesignItemProvider != null) { - this.placketBurmanDesignItemProvider.dispose(); - } - if (this.fullFactorialDesignItemProvider != null) { - this.fullFactorialDesignItemProvider.dispose(); - } - if (this.fractionalFactorialDesignItemProvider != null) { - this.fractionalFactorialDesignItemProvider.dispose(); - } - if (this.oneFactorAtATimeItemProvider != null) { - this.oneFactorAtATimeItemProvider.dispose(); - } - if (this.simulationDurationMeasurementItemProvider != null) { - this.simulationDurationMeasurementItemProvider.dispose(); - } - if (this.profilingMeasurementItemProvider != null) { - this.profilingMeasurementItemProvider.dispose(); - } - if (this.jmxMeasurementItemProvider != null) { - this.jmxMeasurementItemProvider.dispose(); - } - if (this.linearValueProviderItemProvider != null) { - this.linearValueProviderItemProvider.dispose(); - } - if (this.objectModificationItemProvider != null) { - this.objectModificationItemProvider.dispose(); - } - if (this.initialModelItemProvider != null) { - this.initialModelItemProvider.dispose(); - } - if (this.reconfigurationRulesFolderItemProvider != null) { - this.reconfigurationRulesFolderItemProvider.dispose(); - } - if (this.nestedIntervalsDoubleValueProviderItemProvider != null) { - this.nestedIntervalsDoubleValueProviderItemProvider.dispose(); - } - if (this.nestedIntervalsLongValueProviderItemProvider != null) { - this.nestedIntervalsLongValueProviderItemProvider.dispose(); - } - if (this.schedulingPolicy2DelayModificationItemProvider != null) { - this.schedulingPolicy2DelayModificationItemProvider.dispose(); - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExponentialValueProviderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExponentialValueProviderItemProvider.java deleted file mode 100644 index a8648523..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ExponentialValueProviderItemProvider.java +++ /dev/null @@ -1,128 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider} object. - * - * - * @generated - */ -public class ExponentialValueProviderItemProvider extends ValueProviderItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ExponentialValueProviderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addBasePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Base feature. - * - * @generated - */ - protected void addBasePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_ExponentialValueProvider_base_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_ExponentialValueProvider_base_feature", - "_UI_ExponentialValueProvider_type"), - ExperimentsPackage.Literals.EXPONENTIAL_VALUE_PROVIDER__BASE, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns ExponentialValueProvider.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/ExponentialValueProvider")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final ExponentialValueProvider exponentialValueProvider = (ExponentialValueProvider) object; - return this.getString("_UI_ExponentialValueProvider_type") + " " + exponentialValueProvider.getBase(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(ExponentialValueProvider.class)) { - case ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER__BASE: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/FractionalFactorialDesignItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/FractionalFactorialDesignItemProvider.java deleted file mode 100644 index f0b46912..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/FractionalFactorialDesignItemProvider.java +++ /dev/null @@ -1,119 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign} object. - * - * - * @generated - */ -public class FractionalFactorialDesignItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public FractionalFactorialDesignItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns FractionalFactorialDesign.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/FractionalFactorialDesign")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_FractionalFactorialDesign_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/FullFactorialDesignItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/FullFactorialDesignItemProvider.java deleted file mode 100644 index b22769b0..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/FullFactorialDesignItemProvider.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign} object. - * - * @generated - */ -public class FullFactorialDesignItemProvider extends ExperimentDesignItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public FullFactorialDesignItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns FullFactorialDesign.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/FullFactorialDesign")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_FullFactorialDesign_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/InitialModelItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/InitialModelItemProvider.java deleted file mode 100644 index 164ad741..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/InitialModelItemProvider.java +++ /dev/null @@ -1,299 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.InitialModel} object. - * - * @generated - */ -public class InitialModelItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public InitialModelItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addUsageModelPropertyDescriptor(object); - this.addAllocationPropertyDescriptor(object); - this.addMiddlewareRepositoryPropertyDescriptor(object); - this.addEventMiddleWareRepositoryPropertyDescriptor(object); - this.addReconfigurationRulesPropertyDescriptor(object); - this.addMonitorRepositoryPropertyDescriptor(object); - this.addServiceLevelObjectivesPropertyDescriptor(object); - this.addRepositoryPropertyDescriptor(object); - this.addSystemPropertyDescriptor(object); - this.addResourceEnvironmentPropertyDescriptor(object); - this.addUsageEvolutionPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Usage Model feature. - * - * @generated - */ - protected void addUsageModelPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_usageModel_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_usageModel_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_MODEL, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Allocation feature. - * - * @generated - */ - protected void addAllocationPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_allocation_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_allocation_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__ALLOCATION, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Middleware Repository feature. - * - * @generated - */ - protected void addMiddlewareRepositoryPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_middlewareRepository_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_middlewareRepository_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__MIDDLEWARE_REPOSITORY, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Event Middle Ware Repository feature. - * - * @generated - */ - protected void addEventMiddleWareRepositoryPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_eventMiddleWareRepository_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_InitialModel_eventMiddleWareRepository_feature", "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY, true, false, true, null, null, - null)); - } - - /** - * This adds a property descriptor for the Reconfiguration Rules feature. - * - * @generated - */ - protected void addReconfigurationRulesPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_reconfigurationRules_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_reconfigurationRules_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__RECONFIGURATION_RULES, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Monitor Repository feature. - * - * - * @generated - */ - protected void addMonitorRepositoryPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_monitorRepository_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_monitorRepository_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__MONITOR_REPOSITORY, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Service Level Objectives feature. - * - * @generated - */ - protected void addServiceLevelObjectivesPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_serviceLevelObjectives_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_serviceLevelObjectives_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES, true, false, true, null, null, - null)); - } - - /** - * This adds a property descriptor for the Repository feature. - * - * @generated - */ - protected void addRepositoryPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_repository_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_repository_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__REPOSITORY, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the System feature. - * - * @generated - */ - protected void addSystemPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_system_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_system_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__SYSTEM, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Resource Environment feature. - * - * - * @generated - */ - protected void addResourceEnvironmentPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_resourceEnvironment_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_resourceEnvironment_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__RESOURCE_ENVIRONMENT, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Usage Evolution feature. - * - * @generated - */ - protected void addUsageEvolutionPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_InitialModel_usageEvolution_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_InitialModel_usageEvolution_feature", - "_UI_InitialModel_type"), - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_EVOLUTION, true, false, true, null, null, null)); - } - - /** - * This returns InitialModel.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/InitialModel")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_InitialModel_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/JMXMeasurementItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/JMXMeasurementItemProvider.java deleted file mode 100644 index 27119b87..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/JMXMeasurementItemProvider.java +++ /dev/null @@ -1,130 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.JMXMeasurement; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement} object. - * - * @generated - */ -public class JMXMeasurementItemProvider extends ResponseMeasurementItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public JMXMeasurementItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addPollingPeriodPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Polling Period feature. - * - * @generated - */ - protected void addPollingPeriodPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_JMXMeasurement_pollingPeriod_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_JMXMeasurement_pollingPeriod_feature", - "_UI_JMXMeasurement_type"), - ExperimentsPackage.Literals.JMX_MEASUREMENT__POLLING_PERIOD, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns JMXMeasurement.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/JMXMeasurement")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final Integer labelValue = ((JMXMeasurement) object).getPollingPeriod(); - final String label = labelValue == null ? null : labelValue.toString(); - return label == null || label.length() == 0 ? this.getString("_UI_JMXMeasurement_type") - : this.getString("_UI_JMXMeasurement_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(JMXMeasurement.class)) { - case ExperimentsPackage.JMX_MEASUREMENT__POLLING_PERIOD: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/LinearValueProviderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/LinearValueProviderItemProvider.java deleted file mode 100644 index 6a1c0abc..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/LinearValueProviderItemProvider.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.LinearValueProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider} object. - * - * @generated - */ -public class LinearValueProviderItemProvider extends ValueProviderItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public LinearValueProviderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addSummandPropertyDescriptor(object); - this.addFactorPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Summand feature. - * - * @generated - */ - protected void addSummandPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_LinearValueProvider_summand_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_LinearValueProvider_summand_feature", - "_UI_LinearValueProvider_type"), - ExperimentsPackage.Literals.LINEAR_VALUE_PROVIDER__SUMMAND, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Factor feature. - * - * @generated - */ - protected void addFactorPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_LinearValueProvider_factor_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_LinearValueProvider_factor_feature", - "_UI_LinearValueProvider_type"), - ExperimentsPackage.Literals.LINEAR_VALUE_PROVIDER__FACTOR, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns LinearValueProvider.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/LinearValueProvider")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final LinearValueProvider linearValueProvider = (LinearValueProvider) object; - return this.getString("_UI_LinearValueProvider_type") + " " + linearValueProvider.getSummand(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(LinearValueProvider.class)) { - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__SUMMAND: - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__FACTOR: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ModificationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ModificationItemProvider.java deleted file mode 100644 index f252f35a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ModificationItemProvider.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.Modification} object. - * - * @generated - */ -public class ModificationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ModificationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_Modification_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/NestedIntervalsDoubleValueProviderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/NestedIntervalsDoubleValueProviderItemProvider.java deleted file mode 100644 index 18682795..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/NestedIntervalsDoubleValueProviderItemProvider.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider} - * object. - * - * @generated - */ -public class NestedIntervalsDoubleValueProviderItemProvider extends ValueProviderItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public NestedIntervalsDoubleValueProviderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addMinValuePropertyDescriptor(object); - this.addMaxValuePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Min Value feature. - * - * @generated - */ - protected void addMinValuePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_NestedIntervalsDoubleValueProvider_minValue_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_NestedIntervalsDoubleValueProvider_minValue_feature", - "_UI_NestedIntervalsDoubleValueProvider_type"), - ExperimentsPackage.Literals.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Max Value feature. - * - * @generated - */ - protected void addMaxValuePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_NestedIntervalsDoubleValueProvider_maxValue_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_NestedIntervalsDoubleValueProvider_maxValue_feature", - "_UI_NestedIntervalsDoubleValueProvider_type"), - ExperimentsPackage.Literals.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns NestedIntervalsDoubleValueProvider.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/NestedIntervalsDoubleValueProvider")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final NestedIntervalsDoubleValueProvider nestedIntervalsDoubleValueProvider = (NestedIntervalsDoubleValueProvider) object; - return this.getString("_UI_NestedIntervalsDoubleValueProvider_type") + " " - + nestedIntervalsDoubleValueProvider.getMinValue(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(NestedIntervalsDoubleValueProvider.class)) { - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE: - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/NestedIntervalsLongValueProviderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/NestedIntervalsLongValueProviderItemProvider.java deleted file mode 100644 index 5b19128e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/NestedIntervalsLongValueProviderItemProvider.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider} - * object. - * - * @generated - */ -public class NestedIntervalsLongValueProviderItemProvider extends ValueProviderItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public NestedIntervalsLongValueProviderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addMinValuePropertyDescriptor(object); - this.addMaxValuePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Min Value feature. - * - * @generated - */ - protected void addMinValuePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_NestedIntervalsLongValueProvider_minValue_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_NestedIntervalsLongValueProvider_minValue_feature", - "_UI_NestedIntervalsLongValueProvider_type"), - ExperimentsPackage.Literals.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Max Value feature. - * - * @generated - */ - protected void addMaxValuePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_NestedIntervalsLongValueProvider_maxValue_feature"), - this.getString("_UI_PropertyDescriptor_description", - "_UI_NestedIntervalsLongValueProvider_maxValue_feature", - "_UI_NestedIntervalsLongValueProvider_type"), - ExperimentsPackage.Literals.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns NestedIntervalsLongValueProvider.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/NestedIntervalsLongValueProvider")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final NestedIntervalsLongValueProvider nestedIntervalsLongValueProvider = (NestedIntervalsLongValueProvider) object; - return this.getString("_UI_NestedIntervalsLongValueProvider_type") + " " - + nestedIntervalsLongValueProvider.getMinValue(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(NestedIntervalsLongValueProvider.class)) { - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE: - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ObjectModificationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ObjectModificationItemProvider.java deleted file mode 100644 index a668ec2a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ObjectModificationItemProvider.java +++ /dev/null @@ -1,181 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ObjectModification; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ObjectModification} object. - * - * @generated - */ -public class ObjectModificationItemProvider extends ModificationItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ObjectModificationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addTypePropertyDescriptor(object); - this.addNamePropertyDescriptor(object); - this.addVariedObjectIdPropertyDescriptor(object); - this.addValuePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Type feature. - * - * @generated - */ - protected void addTypePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_ObjectModification_type_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_ObjectModification_type_feature", - "_UI_ObjectModification_type"), - ExperimentsPackage.Literals.OBJECT_MODIFICATION__TYPE, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * @generated - */ - protected void addNamePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_ObjectModification_name_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_ObjectModification_name_feature", - "_UI_ObjectModification_type"), - ExperimentsPackage.Literals.OBJECT_MODIFICATION__NAME, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Varied Object Id feature. - * - * - * @generated - */ - protected void addVariedObjectIdPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_ObjectModification_variedObjectId_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_ObjectModification_variedObjectId_feature", - "_UI_ObjectModification_type"), - ExperimentsPackage.Literals.OBJECT_MODIFICATION__VARIED_OBJECT_ID, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Value feature. - * - * @generated - */ - protected void addValuePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_ObjectModification_value_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_ObjectModification_value_feature", - "_UI_ObjectModification_type"), - ExperimentsPackage.Literals.OBJECT_MODIFICATION__VALUE, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns ObjectModification.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/ObjectModification")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((ObjectModification) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_ObjectModification_type") - : this.getString("_UI_ObjectModification_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(ObjectModification.class)) { - case ExperimentsPackage.OBJECT_MODIFICATION__NAME: - case ExperimentsPackage.OBJECT_MODIFICATION__VARIED_OBJECT_ID: - case ExperimentsPackage.OBJECT_MODIFICATION__VALUE: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/OneFactorAtATimeItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/OneFactorAtATimeItemProvider.java deleted file mode 100644 index ea90ad7f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/OneFactorAtATimeItemProvider.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime} object. - * - * @generated - */ -public class OneFactorAtATimeItemProvider extends ExperimentDesignItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public OneFactorAtATimeItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns OneFactorAtATime.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/OneFactorAtATime")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_OneFactorAtATime_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/PlacketBurmanDesignItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/PlacketBurmanDesignItemProvider.java deleted file mode 100644 index 8c6ba187..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/PlacketBurmanDesignItemProvider.java +++ /dev/null @@ -1,119 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign} object. - * - * @generated - */ -public class PlacketBurmanDesignItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public PlacketBurmanDesignItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns PlacketBurmanDesign.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/PlacketBurmanDesign")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_PlacketBurmanDesign_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/PolynomialValueProviderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/PolynomialValueProviderItemProvider.java deleted file mode 100644 index 604f6504..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/PolynomialValueProviderItemProvider.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider} object. - * - * - * @generated - */ -public class PolynomialValueProviderItemProvider extends ValueProviderItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public PolynomialValueProviderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addExponentPropertyDescriptor(object); - this.addFactorPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Exponent feature. - * - * @generated - */ - protected void addExponentPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_PolynomialValueProvider_exponent_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_PolynomialValueProvider_exponent_feature", - "_UI_PolynomialValueProvider_type"), - ExperimentsPackage.Literals.POLYNOMIAL_VALUE_PROVIDER__EXPONENT, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Factor feature. - * - * @generated - */ - protected void addFactorPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_PolynomialValueProvider_factor_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_PolynomialValueProvider_factor_feature", - "_UI_PolynomialValueProvider_type"), - ExperimentsPackage.Literals.POLYNOMIAL_VALUE_PROVIDER__FACTOR, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This returns PolynomialValueProvider.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/PolynomialValueProvider")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final PolynomialValueProvider polynomialValueProvider = (PolynomialValueProvider) object; - return this.getString("_UI_PolynomialValueProvider_type") + " " + polynomialValueProvider.getExponent(); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(PolynomialValueProvider.class)) { - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__EXPONENT: - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__FACTOR: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ProfilingMeasurementItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ProfilingMeasurementItemProvider.java deleted file mode 100644 index 3b606ad5..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ProfilingMeasurementItemProvider.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement} object. - * - * @generated - */ -public class ProfilingMeasurementItemProvider extends ResponseMeasurementItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ProfilingMeasurementItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns ProfilingMeasurement.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/ProfilingMeasurement")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_ProfilingMeasurement_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ReconfigurationRulesFolderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ReconfigurationRulesFolderItemProvider.java deleted file mode 100644 index d0489a80..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ReconfigurationRulesFolderItemProvider.java +++ /dev/null @@ -1,149 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder} object. - * - * - * @generated - */ -public class ReconfigurationRulesFolderItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ReconfigurationRulesFolderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addFolderUriPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Folder Uri feature. - * - * @generated - */ - protected void addFolderUriPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_ReconfigurationRulesFolder_folderUri_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_ReconfigurationRulesFolder_folderUri_feature", - "_UI_ReconfigurationRulesFolder_type"), - ExperimentsPackage.Literals.RECONFIGURATION_RULES_FOLDER__FOLDER_URI, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns ReconfigurationRulesFolder.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/ReconfigurationRulesFolder")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((ReconfigurationRulesFolder) object).getFolderUri(); - return label == null || label.length() == 0 ? this.getString("_UI_ReconfigurationRulesFolder_type") - : this.getString("_UI_ReconfigurationRulesFolder_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(ReconfigurationRulesFolder.class)) { - case ExperimentsPackage.RECONFIGURATION_RULES_FOLDER__FOLDER_URI: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ResponseMeasurementItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ResponseMeasurementItemProvider.java deleted file mode 100644 index 15fe25a1..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ResponseMeasurementItemProvider.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement} object. - * - * @generated - */ -public class ResponseMeasurementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ResponseMeasurementItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_ResponseMeasurement_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SchedulingPolicy2DelayModificationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SchedulingPolicy2DelayModificationItemProvider.java deleted file mode 100644 index f71dfea4..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SchedulingPolicy2DelayModificationItemProvider.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification} - * object. - * - * @generated - */ -public class SchedulingPolicy2DelayModificationItemProvider extends ModificationItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public SchedulingPolicy2DelayModificationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns SchedulingPolicy2DelayModification.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/SchedulingPolicy2DelayModification")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_SchedulingPolicy2DelayModification_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SetValueProviderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SetValueProviderItemProvider.java deleted file mode 100644 index cc40c107..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SetValueProviderItemProvider.java +++ /dev/null @@ -1,129 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.SetValueProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider} object. - * - * @generated - */ -public class SetValueProviderItemProvider extends ValueProviderItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public SetValueProviderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addValuesPropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Values feature. - * - * @generated - */ - protected void addValuesPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_SetValueProvider_values_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_SetValueProvider_values_feature", - "_UI_SetValueProvider_type"), - ExperimentsPackage.Literals.SET_VALUE_PROVIDER__VALUES, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns SetValueProvider.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/SetValueProvider")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((SetValueProvider) object).getValues(); - return label == null || label.length() == 0 ? this.getString("_UI_SetValueProvider_type") - : this.getString("_UI_SetValueProvider_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(SetValueProvider.class)) { - case ExperimentsPackage.SET_VALUE_PROVIDER__VALUES: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SimulationDurationMeasurementItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SimulationDurationMeasurementItemProvider.java deleted file mode 100644 index d247e517..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/SimulationDurationMeasurementItemProvider.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement} - * object. - * - * @generated - */ -public class SimulationDurationMeasurementItemProvider extends ResponseMeasurementItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public SimulationDurationMeasurementItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns SimulationDurationMeasurement.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/SimulationDurationMeasurement")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_SimulationDurationMeasurement_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ToolConfigurationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ToolConfigurationItemProvider.java deleted file mode 100644 index 20e15dfe..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ToolConfigurationItemProvider.java +++ /dev/null @@ -1,138 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration} object. - * - * @generated - */ -public class ToolConfigurationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ToolConfigurationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addNamePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * - * @generated - */ - protected void addNamePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_ToolConfiguration_name_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_ToolConfiguration_name_feature", - "_UI_ToolConfiguration_type"), - ExperimentsPackage.Literals.TOOL_CONFIGURATION__NAME, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((ToolConfiguration) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_ToolConfiguration_type") - : this.getString("_UI_ToolConfiguration_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(ToolConfiguration.class)) { - case ExperimentsPackage.TOOL_CONFIGURATION__NAME: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ValueProviderItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ValueProviderItemProvider.java deleted file mode 100644 index 911939d0..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/ValueProviderItemProvider.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.ValueProvider} object. - * - * @generated - */ -public class ValueProviderItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ValueProviderItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_ValueProvider_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/VariationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/VariationItemProvider.java deleted file mode 100644 index 295104b6..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/experiments/provider/VariationItemProvider.java +++ /dev/null @@ -1,291 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsFactory; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.Variation; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.experiments.Variation} object. - * - * @generated - */ -public class VariationItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public VariationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addTypePropertyDescriptor(object); - this.addMinValuePropertyDescriptor(object); - this.addMaxValuePropertyDescriptor(object); - this.addMaxVariationsPropertyDescriptor(object); - this.addVariedObjectIdPropertyDescriptor(object); - this.addNamePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Type feature. - * - * @generated - */ - protected void addTypePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Variation_type_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Variation_type_feature", - "_UI_Variation_type"), - ExperimentsPackage.Literals.VARIATION__TYPE, true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Min Value feature. - * - * @generated - */ - protected void addMinValuePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Variation_minValue_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Variation_minValue_feature", - "_UI_Variation_type"), - ExperimentsPackage.Literals.VARIATION__MIN_VALUE, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Max Value feature. - * - * @generated - */ - protected void addMaxValuePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Variation_maxValue_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Variation_maxValue_feature", - "_UI_Variation_type"), - ExperimentsPackage.Literals.VARIATION__MAX_VALUE, true, false, false, - ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Max Variations feature. - * - * @generated - */ - protected void addMaxVariationsPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Variation_maxVariations_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Variation_maxVariations_feature", - "_UI_Variation_type"), - ExperimentsPackage.Literals.VARIATION__MAX_VARIATIONS, true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Varied Object Id feature. - * - * - * @generated - */ - protected void addVariedObjectIdPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Variation_variedObjectId_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Variation_variedObjectId_feature", - "_UI_Variation_type"), - ExperimentsPackage.Literals.VARIATION__VARIED_OBJECT_ID, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * @generated - */ - protected void addNamePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_Variation_name_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_Variation_name_feature", - "_UI_Variation_type"), - ExperimentsPackage.Literals.VARIATION__NAME, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate - * feature for an {@link org.eclipse.emf.edit.command.AddCommand}, - * {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * @generated - */ - @Override - public Collection getChildrenFeatures(final Object object) { - if (this.childrenFeatures == null) { - super.getChildrenFeatures(object); - this.childrenFeatures.add(ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER); - } - return this.childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(final Object object, final Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Variation.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/Variation")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((Variation) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_Variation_type") - : this.getString("_UI_Variation_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(Variation.class)) { - case ExperimentsPackage.VARIATION__MIN_VALUE: - case ExperimentsPackage.VARIATION__MAX_VALUE: - case ExperimentsPackage.VARIATION__MAX_VARIATIONS: - case ExperimentsPackage.VARIATION__VARIED_OBJECT_ID: - case ExperimentsPackage.VARIATION__NAME: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ExperimentsPackage.VARIATION__VALUE_PROVIDER: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, - ExperimentsFactory.eINSTANCE.createPolynomialValueProvider())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, - ExperimentsFactory.eINSTANCE.createExponentialValueProvider())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, - ExperimentsFactory.eINSTANCE.createSetValueProvider())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, - ExperimentsFactory.eINSTANCE.createLinearValueProvider())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, - ExperimentsFactory.eINSTANCE.createNestedIntervalsDoubleValueProvider())); - - newChildDescriptors.add(this.createChildParameter(ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, - ExperimentsFactory.eINSTANCE.createNestedIntervalsLongValueProvider())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/ExperimentAutomationEditPlugin.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/ExperimentAutomationEditPlugin.java deleted file mode 100644 index cbf2ef8d..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/ExperimentAutomationEditPlugin.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.provider; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; -import org.palladiosimulator.edp2.models.ExperimentData.provider.EDP2EditPlugin; -import org.palladiosimulator.metricspec.provider.MetricSpecEditPlugin; -import org.palladiosimulator.monitorrepository.provider.MonitorrepositoryEditPlugin; -import org.palladiosimulator.pcm.core.provider.PalladioComponentModelEditPlugin; -import org.palladiosimulator.servicelevelobjective.provider.ServiceLevelObjectiveEditPlugin; -import org.scaledl.usageevolution.provider.UsageevolutionEditPlugin; - -import de.uka.ipd.sdq.identifier.provider.IdentifierEditPlugin; -import de.uka.ipd.sdq.probfunction.provider.ProbabilityFunctionEditPlugin; -import de.uka.ipd.sdq.stoex.provider.StoexEditPlugin; -import de.uka.ipd.sdq.units.provider.UnitsEditPlugin; -import tools.descartes.dlim.provider.DlimEditPlugin; - -/** - * This is the central singleton for the ExperimentAutomation edit plugin. - * - * - * @generated - */ -public final class ExperimentAutomationEditPlugin extends EMFPlugin { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Keep track of the singleton. - * - * @generated - */ - public static final ExperimentAutomationEditPlugin INSTANCE = new ExperimentAutomationEditPlugin(); - - /** - * Keep track of the singleton. - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * @generated - */ - public ExperimentAutomationEditPlugin() { - super(new ResourceLocator[] { DlimEditPlugin.INSTANCE, EDP2EditPlugin.INSTANCE, IdentifierEditPlugin.INSTANCE, - MetricSpecEditPlugin.INSTANCE, MonitorrepositoryEditPlugin.INSTANCE, - PalladioComponentModelEditPlugin.INSTANCE, ProbabilityFunctionEditPlugin.INSTANCE, - ServiceLevelObjectiveEditPlugin.INSTANCE, StoexEditPlugin.INSTANCE, UnitsEditPlugin.INSTANCE, - UsageevolutionEditPlugin.INSTANCE, EcoreEditPlugin.INSTANCE, }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - - /** - * Creates an instance. - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/StructuralVariationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/StructuralVariationItemProvider.java deleted file mode 100644 index d7b1bee3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/StructuralVariationItemProvider.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.palladiosimulator.experimentautomation.variation.StructuralVariation; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.variation.StructuralVariation} object. - * - * @generated - */ -public class StructuralVariationItemProvider extends VariationTypeItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public StructuralVariationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns StructuralVariation.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/StructuralVariation")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((StructuralVariation) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_StructuralVariation_type") - : this.getString("_UI_StructuralVariation_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/ValueVariationItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/ValueVariationItemProvider.java deleted file mode 100644 index daebc131..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/ValueVariationItemProvider.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.palladiosimulator.experimentautomation.variation.ValueVariation; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.variation.ValueVariation} object. - * - * @generated - */ -public class ValueVariationItemProvider extends VariationTypeItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public ValueVariationItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This returns ValueVariation.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/ValueVariation")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((ValueVariation) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_ValueVariation_type") - : this.getString("_UI_ValueVariation_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationItemProviderAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationItemProviderAdapterFactory.java deleted file mode 100644 index 2d9f80fc..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationItemProviderAdapterFactory.java +++ /dev/null @@ -1,312 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.util.VariationAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. The - * adapters generated by this factory convert EMF adapter notifications into calls to - * {@link #fireNotifyChanged fireNotifyChanged}. The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * @generated - */ -public class VariationItemProviderAdapterFactory extends VariationAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This helps manage the child creation extenders. - * - * @generated - */ - protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager( - ExperimentAutomationEditPlugin.INSTANCE, VariationPackage.eNS_URI); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType - * isFactoryForType}. - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * @generated - */ - public VariationItemProviderAdapterFactory() { - this.supportedTypes.add(IEditingDomainItemProvider.class); - this.supportedTypes.add(IStructuredItemContentProvider.class); - this.supportedTypes.add(ITreeItemContentProvider.class); - this.supportedTypes.add(IItemLabelProvider.class); - this.supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.variation.ValueVariation} instances. - * - * @generated - */ - protected ValueVariationItemProvider valueVariationItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.variation.ValueVariation}. - * - * @generated - */ - @Override - public Adapter createValueVariationAdapter() { - if (this.valueVariationItemProvider == null) { - this.valueVariationItemProvider = new ValueVariationItemProvider(this); - } - - return this.valueVariationItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.variation.StructuralVariation} instances. - * - * - * @generated - */ - protected StructuralVariationItemProvider structuralVariationItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.variation.StructuralVariation}. - * - * @generated - */ - @Override - public Adapter createStructuralVariationAdapter() { - if (this.structuralVariationItemProvider == null) { - this.structuralVariationItemProvider = new StructuralVariationItemProvider(this); - } - - return this.structuralVariationItemProvider; - } - - /** - * This keeps track of the one adapter used for all - * {@link org.palladiosimulator.experimentautomation.variation.VariationRepository} instances. - * - * - * @generated - */ - protected VariationRepositoryItemProvider variationRepositoryItemProvider; - - /** - * This creates an adapter for a - * {@link org.palladiosimulator.experimentautomation.variation.VariationRepository}. - * - * @generated - */ - @Override - public Adapter createVariationRepositoryAdapter() { - if (this.variationRepositoryItemProvider == null) { - this.variationRepositoryItemProvider = new VariationRepositoryItemProvider(this); - } - - return this.variationRepositoryItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return this.parentAdapterFactory == null ? this : this.parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(final ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(final Object type) { - return this.supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * @generated - */ - @Override - public Adapter adapt(final Notifier notifier, final Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(final Object object, final Object type) { - if (this.isFactoryForType(type)) { - final Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * - * - * @generated - */ - public List getChildCreationExtenders() { - return this.childCreationExtenderManager.getChildCreationExtenders(); - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(final Object object, final EditingDomain editingDomain) { - return this.childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return this.childCreationExtenderManager; - } - - /** - * This adds a listener. - * - * @generated - */ - @Override - public void addListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * @generated - */ - @Override - public void removeListener(final INotifyChangedListener notifyChangedListener) { - this.changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * @generated - */ - @Override - public void fireNotifyChanged(final Notification notification) { - this.changeNotifier.fireNotifyChanged(notification); - - if (this.parentAdapterFactory != null) { - this.parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * @generated - */ - @Override - public void dispose() { - if (this.valueVariationItemProvider != null) { - this.valueVariationItemProvider.dispose(); - } - if (this.structuralVariationItemProvider != null) { - this.structuralVariationItemProvider.dispose(); - } - if (this.variationRepositoryItemProvider != null) { - this.variationRepositoryItemProvider.dispose(); - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationRepositoryItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationRepositoryItemProvider.java deleted file mode 100644 index 5b293691..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationRepositoryItemProvider.java +++ /dev/null @@ -1,167 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.variation.VariationFactory; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationRepository; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.variation.VariationRepository} object. - * - * @generated - */ -public class VariationRepositoryItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public VariationRepositoryItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - } - return this.itemPropertyDescriptors; - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate - * feature for an {@link org.eclipse.emf.edit.command.AddCommand}, - * {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * @generated - */ - @Override - public Collection getChildrenFeatures(final Object object) { - if (this.childrenFeatures == null) { - super.getChildrenFeatures(object); - this.childrenFeatures.add(VariationPackage.Literals.VARIATION_REPOSITORY__VARIATION); - } - return this.childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(final Object object, final Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns VariationRepository.gif. - * - * @generated - */ - @Override - public Object getImage(final Object object) { - return this.overlayImage(object, this.getResourceLocator() - .getImage("full/obj16/VariationRepository")); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - return this.getString("_UI_VariationRepository_type"); - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(VariationRepository.class)) { - case VariationPackage.VARIATION_REPOSITORY__VARIATION: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(this.createChildParameter(VariationPackage.Literals.VARIATION_REPOSITORY__VARIATION, - VariationFactory.eINSTANCE.createValueVariation())); - - newChildDescriptors.add(this.createChildParameter(VariationPackage.Literals.VARIATION_REPOSITORY__VARIATION, - VariationFactory.eINSTANCE.createStructuralVariation())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationTypeItemProvider.java b/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationTypeItemProvider.java deleted file mode 100644 index d0315bfb..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.edit/src/org/palladiosimulator/experimentautomation/variation/provider/VariationTypeItemProvider.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.provider; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IChildCreationExtender; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -import de.uka.ipd.sdq.identifier.provider.IdentifierItemProvider; - -/** - * This is the item provider adapter for a - * {@link org.palladiosimulator.experimentautomation.variation.VariationType} object. - * - * @generated - */ -public class VariationTypeItemProvider extends IdentifierItemProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This constructs an instance from a factory and a notifier. - * - * @generated - */ - public VariationTypeItemProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * @generated - */ - @Override - public List getPropertyDescriptors(final Object object) { - if (this.itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - this.addNamePropertyDescriptor(object); - this.addStrategyClassPropertyDescriptor(object); - this.addVariedEntityInterfacePropertyDescriptor(object); - } - return this.itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * - * @generated - */ - protected void addNamePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_VariationType_name_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_VariationType_name_feature", - "_UI_VariationType_type"), - VariationPackage.Literals.VARIATION_TYPE__NAME, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Strategy Class feature. - * - * @generated - */ - protected void addStrategyClassPropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_VariationType_strategyClass_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_VariationType_strategyClass_feature", - "_UI_VariationType_type"), - VariationPackage.Literals.VARIATION_TYPE__STRATEGY_CLASS, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Varied Entity Interface feature. - * - * @generated - */ - protected void addVariedEntityInterfacePropertyDescriptor(final Object object) { - this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor( - ((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(), - this.getString("_UI_VariationType_variedEntityInterface_feature"), - this.getString("_UI_PropertyDescriptor_description", "_UI_VariationType_variedEntityInterface_feature", - "_UI_VariationType_type"), - VariationPackage.Literals.VARIATION_TYPE__VARIED_ENTITY_INTERFACE, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns the label text for the adapted class. - * - * @generated - */ - @Override - public String getText(final Object object) { - final String label = ((VariationType) object).getName(); - return label == null || label.length() == 0 ? this.getString("_UI_VariationType_type") - : this.getString("_UI_VariationType_type") + " " + label; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to - * {@link #fireNotifyChanged}. - * - * @generated - */ - @Override - public void notifyChanged(final Notification notification) { - this.updateChildren(notification); - - switch (notification.getFeatureID(VariationType.class)) { - case VariationPackage.VARIATION_TYPE__NAME: - case VariationPackage.VARIATION_TYPE__STRATEGY_CLASS: - case VariationPackage.VARIATION_TYPE__VARIED_ENTITY_INTERFACE: - this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that - * can be created under this object. - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(final Collection newChildDescriptors, final Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ((IChildCreationExtender) this.adapterFactory).getResourceLocator(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/.classpath b/bundles/org.palladiosimulator.experimentautomation.editor/.classpath index e801ebfb..8a51a5a5 100644 --- a/bundles/org.palladiosimulator.experimentautomation.editor/.classpath +++ b/bundles/org.palladiosimulator.experimentautomation.editor/.classpath @@ -1,7 +1,11 @@ - + + + + + - + diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/META-INF/MANIFEST.MF b/bundles/org.palladiosimulator.experimentautomation.editor/META-INF/MANIFEST.MF index 277a222b..6b6eea16 100644 --- a/bundles/org.palladiosimulator.experimentautomation.editor/META-INF/MANIFEST.MF +++ b/bundles/org.palladiosimulator.experimentautomation.editor/META-INF/MANIFEST.MF @@ -5,7 +5,7 @@ Bundle-SymbolicName: org.palladiosimulator.experimentautomation.editor;singleton Automatic-Module-Name: org.palladiosimulator.experimentautomation.editor Bundle-Version: 5.0.0.qualifier Bundle-ClassPath: . -Bundle-Activator: org.palladiosimulator.experimentautomation.variation.presentation.ExperimentAutomationEditorPlugin$Implementation +Bundle-Activator: org.palladiosimulator.experimentautomation.variation.presentation.ExperimentautomationEditorPlugin$Implementation Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: JavaSE-11 diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/build.properties b/bundles/org.palladiosimulator.experimentautomation.editor/build.properties index 0f81e49d..5be0bb24 100644 --- a/bundles/org.palladiosimulator.experimentautomation.editor/build.properties +++ b/bundles/org.palladiosimulator.experimentautomation.editor/build.properties @@ -6,5 +6,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationActionBarContributor.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationActionBarContributor.java deleted file mode 100644 index 4b432e80..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationActionBarContributor.java +++ /dev/null @@ -1,436 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.presentation; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.ui.action.ControlAction; -import org.eclipse.emf.edit.ui.action.CreateChildAction; -import org.eclipse.emf.edit.ui.action.CreateSiblingAction; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.action.LoadResourceAction; -import org.eclipse.emf.edit.ui.action.ValidateAction; -import org.eclipse.jface.action.Action; -import org.eclipse.jface.action.ActionContributionItem; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.action.IContributionItem; -import org.eclipse.jface.action.IContributionManager; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.action.SubContributionItem; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.PartInitException; -import org.palladiosimulator.experimentautomation.variation.presentation.ExperimentAutomationEditorPlugin; - -/** - * This is the action bar contributor for the Abstractsimulation model editor. - * - * @generated - */ -public class AbstractsimulationActionBarContributor extends EditingDomainActionBarContributor - implements ISelectionChangedListener { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the active editor. - * - * @generated - */ - protected IEditorPart activeEditorPart; - - /** - * This keeps track of the current selection provider. - * - * @generated - */ - protected ISelectionProvider selectionProvider; - - /** - * This action opens the Properties view. - * - * @generated - */ - protected IAction showPropertiesViewAction = new Action( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) { - @Override - public void run() { - try { - AbstractsimulationActionBarContributor.this.getPage() - .showView("org.eclipse.ui.views.PropertySheet"); - } catch (final PartInitException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * This action refreshes the viewer of the current editor if the editor implements - * {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}. - * - * @generated - */ - protected IAction refreshViewerAction = new Action( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) { - @Override - public boolean isEnabled() { - return AbstractsimulationActionBarContributor.this.activeEditorPart instanceof IViewerProvider; - } - - @Override - public void run() { - if (AbstractsimulationActionBarContributor.this.activeEditorPart instanceof IViewerProvider) { - final Viewer viewer = ((IViewerProvider) AbstractsimulationActionBarContributor.this.activeEditorPart) - .getViewer(); - if (viewer != null) { - viewer.refresh(); - } - } - } - }; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding - * to each descriptor generated for the current selection by the item provider. - * - * @generated - */ - protected Collection createChildActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateChild - * actions. - * - * @generated - */ - protected IMenuManager createChildMenuManager; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} - * corresponding to each descriptor generated for the current selection by the item provider. - * - * - * @generated - */ - protected Collection createSiblingActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateSibling - * actions. - * - * @generated - */ - protected IMenuManager createSiblingMenuManager; - - /** - * This creates an instance of the contributor. - * - * @generated - */ - public AbstractsimulationActionBarContributor() { - super(ADDITIONS_LAST_STYLE); - this.loadResourceAction = new LoadResourceAction(); - this.validateAction = new ValidateAction(); - this.controlAction = new ControlAction(); - } - - /** - * This adds Separators for editor additions to the tool bar. - * - * @generated - */ - @Override - public void contributeToToolBar(final IToolBarManager toolBarManager) { - super.contributeToToolBar(toolBarManager); - toolBarManager.add(new Separator("abstractsimulation-settings")); - toolBarManager.add(new Separator("abstractsimulation-additions")); - } - - /** - * This adds to the menu bar a menu and some separators for editor additions, as well as the - * sub-menus for object creation items. - * - * @generated - */ - @Override - public void contributeToMenu(final IMenuManager menuManager) { - super.contributeToMenu(menuManager); - - final IMenuManager submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_AbstractsimulationEditor_menu"), - "org.palladiosimulator.experimentautomation.abstractsimulationMenuID"); - menuManager.insertAfter("additions", submenuManager); - submenuManager.add(new Separator("settings")); - submenuManager.add(new Separator("actions")); - submenuManager.add(new Separator("additions")); - submenuManager.add(new Separator("additions-end")); - - // Prepare for CreateChild item addition or removal. - // - this.createChildMenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - submenuManager.insertBefore("additions", this.createChildMenuManager); - - // Prepare for CreateSibling item addition or removal. - // - this.createSiblingMenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - submenuManager.insertBefore("additions", this.createSiblingMenuManager); - - // Force an update because Eclipse hides empty menus now. - // - submenuManager.addMenuListener(new IMenuListener() { - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - menuManager.updateAll(true); - } - }); - - this.addGlobalActions(submenuManager); - } - - /** - * When the active editor changes, this remembers the change and registers with it as a - * selection provider. - * - * @generated - */ - @Override - public void setActiveEditor(final IEditorPart part) { - super.setActiveEditor(part); - this.activeEditorPart = part; - - // Switch to the new selection provider. - // - if (this.selectionProvider != null) { - this.selectionProvider.removeSelectionChangedListener(this); - } - if (part == null) { - this.selectionProvider = null; - } else { - this.selectionProvider = part.getSite() - .getSelectionProvider(); - this.selectionProvider.addSelectionChangedListener(this); - - // Fake a selection changed event to update the menus. - // - if (this.selectionProvider.getSelection() != null) { - this.selectionChanged( - new SelectionChangedEvent(this.selectionProvider, this.selectionProvider.getSelection())); - } - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, handling - * {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and - * siblings that can be added to the selected object and updating the menus accordingly. - * - * @generated - */ - @Override - public void selectionChanged(final SelectionChangedEvent event) { - // Remove any menu items for old selection. - // - if (this.createChildMenuManager != null) { - this.depopulateManager(this.createChildMenuManager, this.createChildActions); - } - if (this.createSiblingMenuManager != null) { - this.depopulateManager(this.createSiblingMenuManager, this.createSiblingActions); - } - - // Query the new selection for appropriate new child/sibling descriptors - // - Collection newChildDescriptors = null; - Collection newSiblingDescriptors = null; - - final ISelection selection = event.getSelection(); - if (selection instanceof IStructuredSelection && ((IStructuredSelection) selection).size() == 1) { - final Object object = ((IStructuredSelection) selection).getFirstElement(); - - final EditingDomain domain = ((IEditingDomainProvider) this.activeEditorPart).getEditingDomain(); - - newChildDescriptors = domain.getNewChildDescriptors(object, null); - newSiblingDescriptors = domain.getNewChildDescriptors(null, object); - } - - // Generate actions for selection; populate and redraw the menus. - // - this.createChildActions = this.generateCreateChildActions(newChildDescriptors, selection); - this.createSiblingActions = this.generateCreateSiblingActions(newSiblingDescriptors, selection); - - if (this.createChildMenuManager != null) { - this.populateManager(this.createChildMenuManager, this.createChildActions, null); - this.createChildMenuManager.update(true); - } - if (this.createSiblingMenuManager != null) { - this.populateManager(this.createSiblingMenuManager, this.createSiblingActions, null); - this.createSiblingMenuManager.update(true); - } - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in - * descriptors, and returns the collection of these actions. - * - * @generated - */ - protected Collection generateCreateChildActions(final Collection descriptors, - final ISelection selection) { - final Collection actions = new ArrayList(); - if (descriptors != null) { - for (final Object descriptor : descriptors) { - actions.add(new CreateChildAction(this.activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object - * in descriptors, and returns the collection of these actions. - * - * @generated - */ - protected Collection generateCreateSiblingActions(final Collection descriptors, - final ISelection selection) { - final Collection actions = new ArrayList(); - if (descriptors != null) { - for (final Object descriptor : descriptors) { - actions.add(new CreateSiblingAction(this.activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This populates the specified manager with - * {@link org.eclipse.jface.action.ActionContributionItem}s based on the - * {@link org.eclipse.jface.action.IAction}s contained in the actions collection, - * by inserting them before the specified contribution item contributionID. If - * contributionID is null, they are simply added. - * - * @generated - */ - protected void populateManager(final IContributionManager manager, final Collection actions, - final String contributionID) { - if (actions != null) { - for (final IAction action : actions) { - if (contributionID != null) { - manager.insertBefore(contributionID, action); - } else { - manager.add(action); - } - } - } - } - - /** - * This removes from the specified manager all - * {@link org.eclipse.jface.action.ActionContributionItem}s based on the - * {@link org.eclipse.jface.action.IAction}s contained in the actions collection. - * - * - * @generated - */ - protected void depopulateManager(final IContributionManager manager, final Collection actions) { - if (actions != null) { - final IContributionItem[] items = manager.getItems(); - for (final IContributionItem item : items) { - // Look into SubContributionItems - // - IContributionItem contributionItem = item; - while (contributionItem instanceof SubContributionItem) { - contributionItem = ((SubContributionItem) contributionItem).getInnerItem(); - } - - // Delete the ActionContributionItems with matching action. - // - if (contributionItem instanceof ActionContributionItem) { - final IAction action = ((ActionContributionItem) contributionItem).getAction(); - if (actions.contains(action)) { - manager.remove(contributionItem); - } - } - } - } - } - - /** - * This populates the pop-up menu before it appears. - * - * @generated - */ - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - super.menuAboutToShow(menuManager); - MenuManager submenuManager = null; - - submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - this.populateManager(submenuManager, this.createChildActions, null); - menuManager.insertBefore("edit", submenuManager); - - submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - this.populateManager(submenuManager, this.createSiblingActions, null); - menuManager.insertBefore("edit", submenuManager); - } - - /** - * This inserts global actions before the "additions-end" separator. - * - * - * @generated - */ - @Override - protected void addGlobalActions(final IMenuManager menuManager) { - menuManager.insertAfter("additions-end", new Separator("ui-actions")); - menuManager.insertAfter("ui-actions", this.showPropertiesViewAction); - - this.refreshViewerAction.setEnabled(this.refreshViewerAction.isEnabled()); - menuManager.insertAfter("ui-actions", this.refreshViewerAction); - - super.addGlobalActions(menuManager); - } - - /** - * This ensures that a delete action will clean up all references to deleted objects. - * - * @generated - */ - @Override - protected boolean removeAllReferencesOnDelete() { - return true; - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationEditor.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationEditor.java deleted file mode 100644 index 451ad1f3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationEditor.java +++ /dev/null @@ -1,1937 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.presentation; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.EventObject; -import java.util.HashMap; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceChangeEvent; -import org.eclipse.core.resources.IResourceChangeListener; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.emf.common.command.BasicCommandStack; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.common.command.CommandStack; -import org.eclipse.emf.common.command.CommandStackListener; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.ui.MarkerHelper; -import org.eclipse.emf.common.ui.ViewerPane; -import org.eclipse.emf.common.ui.editor.ProblemEditorPart; -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.provider.EcoreItemProviderAdapterFactory; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.EContentAdapter; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory; -import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor; -import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; -import org.eclipse.emf.edit.ui.dnd.LocalTransfer; -import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; -import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; -import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper; -import org.eclipse.emf.edit.ui.util.EditUIUtil; -import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IStatusLineManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.util.LocalSelectionTransfer; -import org.eclipse.jface.viewers.ColumnWeightData; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.ListViewer; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.StructuredViewer; -import org.eclipse.jface.viewers.TableLayout; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.CTabFolder; -import org.eclipse.swt.dnd.DND; -import org.eclipse.swt.dnd.FileTransfer; -import org.eclipse.swt.dnd.Transfer; -import org.eclipse.swt.events.ControlAdapter; -import org.eclipse.swt.events.ControlEvent; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.graphics.Rectangle; -import org.eclipse.swt.layout.FillLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.Table; -import org.eclipse.swt.widgets.TableColumn; -import org.eclipse.swt.widgets.Tree; -import org.eclipse.swt.widgets.TreeColumn; -import org.eclipse.ui.IActionBars; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IEditorSite; -import org.eclipse.ui.IPartListener; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.SaveAsDialog; -import org.eclipse.ui.ide.IGotoMarker; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.MultiPageEditorPart; -import org.eclipse.ui.views.contentoutline.ContentOutline; -import org.eclipse.ui.views.contentoutline.ContentOutlinePage; -import org.eclipse.ui.views.contentoutline.IContentOutlinePage; -import org.eclipse.ui.views.properties.IPropertySheetPage; -import org.eclipse.ui.views.properties.PropertySheet; -import org.eclipse.ui.views.properties.PropertySheetPage; -import org.palladiosimulator.edp2.models.ExperimentData.provider.ExperimentDataItemProviderAdapterFactory; -import org.palladiosimulator.edp2.models.Repository.provider.RepositoryItemProviderAdapterFactory; -import org.palladiosimulator.edp2.models.measuringpoint.provider.MeasuringpointItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.abstractsimulation.provider.AbstractsimulationItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.experiments.provider.ExperimentsItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.variation.presentation.ExperimentAutomationEditorPlugin; -import org.palladiosimulator.experimentautomation.variation.provider.VariationItemProviderAdapterFactory; -import org.palladiosimulator.metricspec.provider.MetricSpecItemProviderAdapterFactory; -import org.palladiosimulator.monitorrepository.provider.MonitorRepositoryItemProviderAdapterFactory; -import org.palladiosimulator.pcm.allocation.provider.AllocationItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.composition.provider.CompositionItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.entity.provider.EntityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.provider.CoreItemProviderAdapterFactory; -import org.palladiosimulator.pcm.parameter.provider.ParameterItemProviderAdapterFactory; -import org.palladiosimulator.pcm.protocol.provider.ProtocolItemProviderAdapterFactory; -import org.palladiosimulator.pcm.provider.PcmItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.provider.QosannotationsItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.qos_performance.provider.QosPerformanceItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.qos_reliability.provider.QosReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.reliability.provider.ReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.resourceenvironment.provider.ResourceenvironmentItemProviderAdapterFactory; -import org.palladiosimulator.pcm.resourcetype.provider.ResourcetypeItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.provider.SeffItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.seff_performance.provider.SeffPerformanceItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.seff_reliability.provider.SeffReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.subsystem.provider.SubsystemItemProviderAdapterFactory; -import org.palladiosimulator.pcm.system.provider.SystemItemProviderAdapterFactory; -import org.palladiosimulator.pcm.usagemodel.provider.UsagemodelItemProviderAdapterFactory; -import org.palladiosimulator.servicelevelobjective.provider.ServicelevelObjectiveItemProviderAdapterFactory; -import org.scaledl.usageevolution.provider.UsageevolutionItemProviderAdapterFactory; - -import de.uka.ipd.sdq.identifier.provider.IdentifierItemProviderAdapterFactory; -import de.uka.ipd.sdq.probfunction.provider.ProbfunctionItemProviderAdapterFactory; -import de.uka.ipd.sdq.stoex.provider.StoexItemProviderAdapterFactory; -import de.uka.ipd.sdq.units.provider.UnitsItemProviderAdapterFactory; -import tools.descartes.dlim.provider.DlimItemProviderAdapterFactory; - -/** - * This is an example of a Abstractsimulation model editor. - * - * @generated - */ -public class AbstractsimulationEditor extends MultiPageEditorPart - implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the editing domain that is used to track all changes to the model. - * - * @generated - */ - protected AdapterFactoryEditingDomain editingDomain; - - /** - * This is the one adapter factory used for providing views of the model. - * - * @generated - */ - protected ComposedAdapterFactory adapterFactory; - - /** - * This is the content outline page. - * - * @generated - */ - protected IContentOutlinePage contentOutlinePage; - - /** - * This is a kludge... - * - * @generated - */ - protected IStatusLineManager contentOutlineStatusLineManager; - - /** - * This is the content outline page's viewer. - * - * @generated - */ - protected TreeViewer contentOutlineViewer; - - /** - * This is the property sheet page. - * - * @generated - */ - protected List propertySheetPages = new ArrayList(); - - /** - * This is the viewer that shadows the selection in the content outline. The parent relation - * must be correctly defined for this to work. - * - * @generated - */ - protected TreeViewer selectionViewer; - - /** - * This inverts the roll of parent and child in the content provider and show parents as a tree. - * - * - * @generated - */ - protected TreeViewer parentViewer; - - /** - * This shows how a tree view works. - * - * @generated - */ - protected TreeViewer treeViewer; - - /** - * This shows how a list view works. A list viewer doesn't support icons. - * - * @generated - */ - protected ListViewer listViewer; - - /** - * This shows how a table view works. A table can be used as a list with icons. - * - * @generated - */ - protected TableViewer tableViewer; - - /** - * This shows how a tree view with columns works. - * - * @generated - */ - protected TreeViewer treeViewerWithColumns; - - /** - * This keeps track of the active viewer pane, in the book. - * - * @generated - */ - protected ViewerPane currentViewerPane; - - /** - * This keeps track of the active content viewer, which may be either one of the viewers in the - * pages or the content outline viewer. - * - * @generated - */ - protected Viewer currentViewer; - - /** - * This listens to which ever viewer is active. - * - * @generated - */ - protected ISelectionChangedListener selectionChangedListener; - - /** - * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that - * are listening to this editor. - * - * @generated - */ - protected Collection selectionChangedListeners = new ArrayList(); - - /** - * This keeps track of the selection of the editor as a whole. - * - * @generated - */ - protected ISelection editorSelection = StructuredSelection.EMPTY; - - /** - * The MarkerHelper is responsible for creating workspace resource markers presented in - * Eclipse's Problems View. - * - * @generated - */ - protected MarkerHelper markerHelper = new EditUIMarkerHelper(); - - /** - * This listens for when the outline becomes active - * - * @generated - */ - protected IPartListener partListener = new IPartListener() { - @Override - public void partActivated(final IWorkbenchPart p) { - if (p instanceof ContentOutline) { - if (((ContentOutline) p).getCurrentPage() == AbstractsimulationEditor.this.contentOutlinePage) { - AbstractsimulationEditor.this.getActionBarContributor() - .setActiveEditor(AbstractsimulationEditor.this); - - AbstractsimulationEditor.this.setCurrentViewer(AbstractsimulationEditor.this.contentOutlineViewer); - } - } else if (p instanceof PropertySheet) { - if (AbstractsimulationEditor.this.propertySheetPages.contains(((PropertySheet) p).getCurrentPage())) { - AbstractsimulationEditor.this.getActionBarContributor() - .setActiveEditor(AbstractsimulationEditor.this); - AbstractsimulationEditor.this.handleActivate(); - } - } else if (p == AbstractsimulationEditor.this) { - AbstractsimulationEditor.this.handleActivate(); - } - } - - @Override - public void partBroughtToTop(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partClosed(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partDeactivated(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partOpened(final IWorkbenchPart p) { - // Ignore. - } - }; - - /** - * Resources that have been removed since last activation. - * - * @generated - */ - protected Collection removedResources = new ArrayList(); - - /** - * Resources that have been changed since last activation. - * - * @generated - */ - protected Collection changedResources = new ArrayList(); - - /** - * Resources that have been saved. - * - * @generated - */ - protected Collection savedResources = new ArrayList(); - - /** - * Map to store the diagnostic associated with a resource. - * - * @generated - */ - protected Map resourceToDiagnosticMap = new LinkedHashMap(); - - /** - * Controls whether the problem indication should be updated. - * - * @generated - */ - protected boolean updateProblemIndication = true; - - /** - * Adapter used to update the problem indication when resources are demanded loaded. - * - * @generated - */ - protected EContentAdapter problemIndicationAdapter = new EContentAdapter() { - protected boolean dispatching; - - @Override - public void notifyChanged(final Notification notification) { - if (notification.getNotifier() instanceof Resource) { - switch (notification.getFeatureID(Resource.class)) { - case Resource.RESOURCE__IS_LOADED: - case Resource.RESOURCE__ERRORS: - case Resource.RESOURCE__WARNINGS: { - final Resource resource = (Resource) notification.getNotifier(); - final Diagnostic diagnostic = AbstractsimulationEditor.this.analyzeResourceProblems(resource, null); - if (diagnostic.getSeverity() != Diagnostic.OK) { - AbstractsimulationEditor.this.resourceToDiagnosticMap.put(resource, diagnostic); - } else { - AbstractsimulationEditor.this.resourceToDiagnosticMap.remove(resource); - } - this.dispatchUpdateProblemIndication(); - break; - } - } - } else { - super.notifyChanged(notification); - } - } - - protected void dispatchUpdateProblemIndication() { - if (AbstractsimulationEditor.this.updateProblemIndication && !this.dispatching) { - this.dispatching = true; - AbstractsimulationEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - dispatching = false; - AbstractsimulationEditor.this.updateProblemIndication(); - } - }); - } - } - - @Override - protected void setTarget(final Resource target) { - this.basicSetTarget(target); - } - - @Override - protected void unsetTarget(final Resource target) { - this.basicUnsetTarget(target); - AbstractsimulationEditor.this.resourceToDiagnosticMap.remove(target); - this.dispatchUpdateProblemIndication(); - } - }; - - /** - * This listens for workspace changes. - * - * @generated - */ - protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener() { - @Override - public void resourceChanged(final IResourceChangeEvent event) { - final IResourceDelta delta = event.getDelta(); - try { - class ResourceDeltaVisitor implements IResourceDeltaVisitor { - protected ResourceSet resourceSet = AbstractsimulationEditor.this.editingDomain.getResourceSet(); - protected Collection changedResources = new ArrayList(); - protected Collection removedResources = new ArrayList(); - - @Override - public boolean visit(final IResourceDelta delta) { - if (delta.getResource() - .getType() == IResource.FILE) { - if (delta.getKind() == IResourceDelta.REMOVED || delta.getKind() == IResourceDelta.CHANGED - && delta.getFlags() != IResourceDelta.MARKERS) { - final Resource resource = this.resourceSet - .getResource(URI.createPlatformResourceURI(delta.getFullPath() - .toString(), true), false); - if (resource != null) { - if (delta.getKind() == IResourceDelta.REMOVED) { - this.removedResources.add(resource); - } else if (!AbstractsimulationEditor.this.savedResources.remove(resource)) { - this.changedResources.add(resource); - } - } - } - return false; - } - - return true; - } - - public Collection getChangedResources() { - return this.changedResources; - } - - public Collection getRemovedResources() { - return this.removedResources; - } - } - - final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); - delta.accept(visitor); - - if (!visitor.getRemovedResources() - .isEmpty()) { - AbstractsimulationEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - AbstractsimulationEditor.this.removedResources.addAll(visitor.getRemovedResources()); - if (!AbstractsimulationEditor.this.isDirty()) { - AbstractsimulationEditor.this.getSite() - .getPage() - .closeEditor(AbstractsimulationEditor.this, false); - } - } - }); - } - - if (!visitor.getChangedResources() - .isEmpty()) { - AbstractsimulationEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - AbstractsimulationEditor.this.changedResources.addAll(visitor.getChangedResources()); - if (AbstractsimulationEditor.this.getSite() - .getPage() - .getActiveEditor() == AbstractsimulationEditor.this) { - AbstractsimulationEditor.this.handleActivate(); - } - } - }); - } - } catch (final CoreException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * Handles activation of the editor or it's associated views. - * - * @generated - */ - protected void handleActivate() { - // Recompute the read only state. - // - if (this.editingDomain.getResourceToReadOnlyMap() != null) { - this.editingDomain.getResourceToReadOnlyMap() - .clear(); - - // Refresh any actions that may become enabled or disabled. - // - this.setSelection(this.getSelection()); - } - - if (!this.removedResources.isEmpty()) { - if (this.handleDirtyConflict()) { - this.getSite() - .getPage() - .closeEditor(AbstractsimulationEditor.this, false); - } else { - this.removedResources.clear(); - this.changedResources.clear(); - this.savedResources.clear(); - } - } else if (!this.changedResources.isEmpty()) { - this.changedResources.removeAll(this.savedResources); - this.handleChangedResources(); - this.changedResources.clear(); - this.savedResources.clear(); - } - } - - /** - * Handles what to do with changed resources on activation. - * - * @generated - */ - protected void handleChangedResources() { - if (!this.changedResources.isEmpty() && (!this.isDirty() || this.handleDirtyConflict())) { - final ResourceSet resourceSet = this.editingDomain.getResourceSet(); - if (this.isDirty()) { - this.changedResources.addAll(resourceSet.getResources()); - } - this.editingDomain.getCommandStack() - .flush(); - - this.updateProblemIndication = false; - for (final Resource resource : this.changedResources) { - if (resource.isLoaded()) { - resource.unload(); - try { - resource.load(resourceSet.getLoadOptions()); - } catch (final IOException exception) { - if (!this.resourceToDiagnosticMap.containsKey(resource)) { - this.resourceToDiagnosticMap.put(resource, - this.analyzeResourceProblems(resource, exception)); - } - } - } - } - - if (AdapterFactoryEditingDomain.isStale(this.editorSelection)) { - this.setSelection(StructuredSelection.EMPTY); - } - - this.updateProblemIndication = true; - this.updateProblemIndication(); - } - } - - /** - * Updates the problems indication with the information described in the specified diagnostic. - * - * - * @generated - */ - protected void updateProblemIndication() { - if (this.updateProblemIndication) { - final BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, - "org.palladiosimulator.experimentautomation.editor", 0, null, - new Object[] { this.editingDomain.getResourceSet() }); - for (final Diagnostic childDiagnostic : this.resourceToDiagnosticMap.values()) { - if (childDiagnostic.getSeverity() != Diagnostic.OK) { - diagnostic.add(childDiagnostic); - } - } - - int lastEditorPage = this.getPageCount() - 1; - if (lastEditorPage >= 0 && this.getEditor(lastEditorPage) instanceof ProblemEditorPart) { - ((ProblemEditorPart) this.getEditor(lastEditorPage)).setDiagnostic(diagnostic); - if (diagnostic.getSeverity() != Diagnostic.OK) { - this.setActivePage(lastEditorPage); - } - } else if (diagnostic.getSeverity() != Diagnostic.OK) { - final ProblemEditorPart problemEditorPart = new ProblemEditorPart(); - problemEditorPart.setDiagnostic(diagnostic); - problemEditorPart.setMarkerHelper(this.markerHelper); - try { - this.addPage(++lastEditorPage, problemEditorPart, this.getEditorInput()); - this.setPageText(lastEditorPage, problemEditorPart.getPartName()); - this.setActivePage(lastEditorPage); - this.showTabs(); - } catch (final PartInitException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - - if (this.markerHelper.hasMarkers(this.editingDomain.getResourceSet())) { - this.markerHelper.deleteMarkers(this.editingDomain.getResourceSet()); - if (diagnostic.getSeverity() != Diagnostic.OK) { - try { - this.markerHelper.createMarkers(diagnostic); - } catch (final CoreException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - } - } - } - - /** - * Shows a dialog that asks if conflicting changes should be discarded. - * - * - * @generated - */ - protected boolean handleDirtyConflict() { - return MessageDialog.openQuestion(this.getSite() - .getShell(), getString("_UI_FileConflict_label"), getString("_WARN_FileConflict")); - } - - /** - * This creates a model editor. - * - * @generated - */ - public AbstractsimulationEditor() { - super(); - this.initializeEditingDomain(); - } - - /** - * This sets up the editing domain for the model editor. - * - * @generated - */ - protected void initializeEditingDomain() { - // Create an adapter factory that yields item providers. - // - this.adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); - - this.adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new VariationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ExperimentsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new AbstractsimulationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new DlimItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ExperimentDataItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new RepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MeasuringpointItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new IdentifierItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MetricSpecItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MonitorRepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new PcmItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new CoreItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new EntityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new CompositionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UsagemodelItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory( - new org.palladiosimulator.pcm.repository.provider.RepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ResourcetypeItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ProtocolItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ParameterItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffPerformanceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosannotationsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosPerformanceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SystemItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ResourceenvironmentItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new AllocationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SubsystemItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ProbfunctionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ServicelevelObjectiveItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new StoexItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UnitsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UsageevolutionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new EcoreItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); - - // Create the command stack that will notify this editor as commands are executed. - // - final BasicCommandStack commandStack = new BasicCommandStack(); - - // Add a listener to set the most recent command's affected objects to be the selection of - // the viewer with focus. - // - commandStack.addCommandStackListener(new CommandStackListener() { - @Override - public void commandStackChanged(final EventObject event) { - AbstractsimulationEditor.this.getContainer() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - AbstractsimulationEditor.this.firePropertyChange(IEditorPart.PROP_DIRTY); - - // Try to select the affected objects. - // - final Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand(); - if (mostRecentCommand != null) { - AbstractsimulationEditor.this - .setSelectionToViewer(mostRecentCommand.getAffectedObjects()); - } - for (final Iterator i = AbstractsimulationEditor.this.propertySheetPages - .iterator(); i.hasNext();) { - final PropertySheetPage propertySheetPage = i.next(); - if (propertySheetPage.getControl() == null || propertySheetPage.getControl() - .isDisposed()) { - i.remove(); - } else { - propertySheetPage.refresh(); - } - } - } - }); - } - }); - - // Create the editing domain with a special command stack. - // - this.editingDomain = new AdapterFactoryEditingDomain(this.adapterFactory, commandStack, - new HashMap()); - } - - /** - * This is here for the listener to be able to call it. - * - * @generated - */ - @Override - protected void firePropertyChange(final int action) { - super.firePropertyChange(action); - } - - /** - * This sets the selection into whichever viewer is active. - * - * @generated - */ - public void setSelectionToViewer(final Collection collection) { - final Collection theSelection = collection; - // Make sure it's okay. - // - if (theSelection != null && !theSelection.isEmpty()) { - final Runnable runnable = new Runnable() { - @Override - public void run() { - // Try to select the items in the current content viewer of the editor. - // - if (AbstractsimulationEditor.this.currentViewer != null) { - AbstractsimulationEditor.this.currentViewer - .setSelection(new StructuredSelection(theSelection.toArray()), true); - } - } - }; - this.getSite() - .getShell() - .getDisplay() - .asyncExec(runnable); - } - } - - /** - * This returns the editing domain as required by the {@link IEditingDomainProvider} interface. - * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} - * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}. - * - * @generated - */ - @Override - public EditingDomain getEditingDomain() { - return this.editingDomain; - } - - /** - * - * - * @generated - */ - public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider { - - /** - * - * - * @generated - */ - public ReverseAdapterFactoryContentProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * - * - * @generated - */ - @Override - public Object[] getElements(final Object object) { - final Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * @generated - */ - @Override - public Object[] getChildren(final Object object) { - final Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * @generated - */ - @Override - public boolean hasChildren(final Object object) { - final Object parent = super.getParent(object); - return parent != null; - } - - /** - * - * - * @generated - */ - @Override - public Object getParent(final Object object) { - return null; - } - } - - /** - * - * - * @generated - */ - public void setCurrentViewerPane(final ViewerPane viewerPane) { - if (this.currentViewerPane != viewerPane) { - if (this.currentViewerPane != null) { - this.currentViewerPane.showFocus(false); - } - this.currentViewerPane = viewerPane; - } - this.setCurrentViewer(this.currentViewerPane.getViewer()); - } - - /** - * This makes sure that one content viewer, either for the current page or the outline view, if - * it has focus, is the current one. - * - * @generated - */ - public void setCurrentViewer(final Viewer viewer) { - // If it is changing... - // - if (this.currentViewer != viewer) { - if (this.selectionChangedListener == null) { - // Create the listener on demand. - // - this.selectionChangedListener = new ISelectionChangedListener() { - // This just notifies those things that are affected by the section. - // - @Override - public void selectionChanged(final SelectionChangedEvent selectionChangedEvent) { - AbstractsimulationEditor.this.setSelection(selectionChangedEvent.getSelection()); - } - }; - } - - // Stop listening to the old one. - // - if (this.currentViewer != null) { - this.currentViewer.removeSelectionChangedListener(this.selectionChangedListener); - } - - // Start listening to the new one. - // - if (viewer != null) { - viewer.addSelectionChangedListener(this.selectionChangedListener); - } - - // Remember it. - // - this.currentViewer = viewer; - - // Set the editors selection based on the current viewer's selection. - // - this.setSelection( - this.currentViewer == null ? StructuredSelection.EMPTY : this.currentViewer.getSelection()); - } - } - - /** - * This returns the viewer as required by the {@link IViewerProvider} interface. - * - * @generated - */ - @Override - public Viewer getViewer() { - return this.currentViewer; - } - - /** - * This creates a context menu for the viewer and adds a listener as well registering the menu - * for extension. - * - * @generated - */ - protected void createContextMenuFor(final StructuredViewer viewer) { - final MenuManager contextMenu = new MenuManager("#PopUp"); - contextMenu.add(new Separator("additions")); - contextMenu.setRemoveAllWhenShown(true); - contextMenu.addMenuListener(this); - final Menu menu = contextMenu.createContextMenu(viewer.getControl()); - viewer.getControl() - .setMenu(menu); - this.getSite() - .registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer)); - - final int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; - final Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance(), LocalSelectionTransfer.getTransfer(), - FileTransfer.getInstance() }; - viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer)); - viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(this.editingDomain, viewer)); - } - - /** - * This is the method called to load a resource into the editing domain's resource set based on - * the editor's input. - * - * @generated - */ - public void createModel() { - final URI resourceURI = EditUIUtil.getURI(this.getEditorInput(), this.editingDomain.getResourceSet() - .getURIConverter()); - Exception exception = null; - Resource resource = null; - try { - // Load the resource through the editing domain. - // - resource = this.editingDomain.getResourceSet() - .getResource(resourceURI, true); - } catch (final Exception e) { - exception = e; - resource = this.editingDomain.getResourceSet() - .getResource(resourceURI, false); - } - - final Diagnostic diagnostic = this.analyzeResourceProblems(resource, exception); - if (diagnostic.getSeverity() != Diagnostic.OK) { - this.resourceToDiagnosticMap.put(resource, this.analyzeResourceProblems(resource, exception)); - } - this.editingDomain.getResourceSet() - .eAdapters() - .add(this.problemIndicationAdapter); - } - - /** - * Returns a diagnostic describing the errors and warnings listed in the resource and the - * specified exception (if any). - * - * @generated - */ - public Diagnostic analyzeResourceProblems(final Resource resource, final Exception exception) { - final boolean hasErrors = !resource.getErrors() - .isEmpty(); - if (hasErrors || !resource.getWarnings() - .isEmpty()) { - final BasicDiagnostic basicDiagnostic = new BasicDiagnostic( - hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING, - "org.palladiosimulator.experimentautomation.editor", 0, - getString("_UI_CreateModelError_message", resource.getURI()), - new Object[] { exception == null ? (Object) resource : exception }); - basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); - return basicDiagnostic; - } else if (exception != null) { - return new BasicDiagnostic(Diagnostic.ERROR, "org.palladiosimulator.experimentautomation.editor", 0, - getString("_UI_CreateModelError_message", resource.getURI()), new Object[] { exception }); - } else { - return Diagnostic.OK_INSTANCE; - } - } - - /** - * This is the method used by the framework to install your own controls. - * - * @generated - */ - @Override - public void createPages() { - // Creates the model from the editor input - // - this.createModel(); - - // Only creates the other pages if there is something that can be edited - // - if (!this.getEditingDomain() - .getResourceSet() - .getResources() - .isEmpty()) { - // Create a page for the selection tree view. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), AbstractsimulationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - final Tree tree = new Tree(composite, SWT.MULTI); - final TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - AbstractsimulationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.selectionViewer = (TreeViewer) viewerPane.getViewer(); - this.selectionViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.selectionViewer.setUseHashlookup(true); - - this.selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - this.selectionViewer.setInput(this.editingDomain.getResourceSet()); - this.selectionViewer.setSelection(new StructuredSelection(this.editingDomain.getResourceSet() - .getResources() - .get(0)), true); - viewerPane.setTitle(this.editingDomain.getResourceSet()); - - new AdapterFactoryTreeEditor(this.selectionViewer.getTree(), this.adapterFactory); - - this.createContextMenuFor(this.selectionViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_SelectionPage_label")); - } - - // Create a page for the parent tree view. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), AbstractsimulationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - final Tree tree = new Tree(composite, SWT.MULTI); - final TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - AbstractsimulationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.parentViewer = (TreeViewer) viewerPane.getViewer(); - this.parentViewer.setAutoExpandLevel(30); - this.parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(this.adapterFactory)); - this.parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.parentViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_ParentPage_label")); - } - - // This is the page for the list viewer - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), AbstractsimulationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new ListViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - AbstractsimulationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.listViewer = (ListViewer) viewerPane.getViewer(); - this.listViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.listViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.listViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_ListPage_label")); - } - - // This is the page for the tree viewer - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), AbstractsimulationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - AbstractsimulationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.treeViewer = (TreeViewer) viewerPane.getViewer(); - this.treeViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - new AdapterFactoryTreeEditor(this.treeViewer.getTree(), this.adapterFactory); - - this.createContextMenuFor(this.treeViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TreePage_label")); - } - - // This is the page for the table viewer. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), AbstractsimulationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TableViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - AbstractsimulationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.tableViewer = (TableViewer) viewerPane.getViewer(); - - final Table table = this.tableViewer.getTable(); - final TableLayout layout = new TableLayout(); - table.setLayout(layout); - table.setHeaderVisible(true); - table.setLinesVisible(true); - - final TableColumn objectColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(3, 100, true)); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - - final TableColumn selfColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(2, 100, true)); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - - this.tableViewer.setColumnProperties(new String[] { "a", "b" }); - this.tableViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.tableViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TablePage_label")); - } - - // This is the page for the table tree viewer. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), AbstractsimulationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - AbstractsimulationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.treeViewerWithColumns = (TreeViewer) viewerPane.getViewer(); - - final Tree tree = this.treeViewerWithColumns.getTree(); - tree.setLayoutData(new FillLayout()); - tree.setHeaderVisible(true); - tree.setLinesVisible(true); - - final TreeColumn objectColumn = new TreeColumn(tree, SWT.NONE); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - objectColumn.setWidth(250); - - final TreeColumn selfColumn = new TreeColumn(tree, SWT.NONE); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - selfColumn.setWidth(200); - - this.treeViewerWithColumns.setColumnProperties(new String[] { "a", "b" }); - this.treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.treeViewerWithColumns); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label")); - } - - this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - if (!AbstractsimulationEditor.this.getContainer() - .isDisposed()) { - AbstractsimulationEditor.this.setActivePage(0); - } - } - }); - } - - // Ensures that this editor will only display the page's tab - // area if there are more than one page - // - this.getContainer() - .addControlListener(new ControlAdapter() { - boolean guard = false; - - @Override - public void controlResized(final ControlEvent event) { - if (!this.guard) { - this.guard = true; - AbstractsimulationEditor.this.hideTabs(); - this.guard = false; - } - } - }); - - this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - AbstractsimulationEditor.this.updateProblemIndication(); - } - }); - } - - /** - * If there is just one page in the multi-page editor part, this hides the single tab at the - * bottom. - * - * @generated - */ - protected void hideTabs() { - if (this.getPageCount() <= 1) { - this.setPageText(0, ""); - if (this.getContainer() instanceof CTabFolder) { - final Point point = this.getContainer() - .getSize(); - final Rectangle clientArea = this.getContainer() - .getClientArea(); - this.getContainer() - .setSize(point.x, 2 * point.y - clientArea.height - clientArea.y); - } - } - } - - /** - * If there is more than one page in the multi-page editor part, this shows the tabs at the - * bottom. - * - * @generated - */ - protected void showTabs() { - if (this.getPageCount() > 1) { - this.setPageText(0, getString("_UI_SelectionPage_label")); - if (this.getContainer() instanceof CTabFolder) { - final Point point = this.getContainer() - .getSize(); - final Rectangle clientArea = this.getContainer() - .getClientArea(); - this.getContainer() - .setSize(point.x, clientArea.height + clientArea.y); - } - } - } - - /** - * This is used to track the active viewer. - * - * @generated - */ - @Override - protected void pageChange(final int pageIndex) { - super.pageChange(pageIndex); - - if (this.contentOutlinePage != null) { - this.handleContentOutlineSelection(this.contentOutlinePage.getSelection()); - } - } - - /** - * This is how the framework determines which interfaces we implement. - * - * - * @generated - */ - @SuppressWarnings("rawtypes") - @Override - public T getAdapter(final Class key) { - if (key.equals(IContentOutlinePage.class)) { - return this.showOutlineView() ? key.cast(this.getContentOutlinePage()) : null; - } else if (key.equals(IPropertySheetPage.class)) { - return key.cast(this.getPropertySheetPage()); - } else if (key.equals(IGotoMarker.class)) { - return key.cast(this); - } else { - return super.getAdapter(key); - } - } - - /** - * This accesses a cached version of the content outliner. - * - * @generated - */ - public IContentOutlinePage getContentOutlinePage() { - if (this.contentOutlinePage == null) { - // The content outline is just a tree. - // - class MyContentOutlinePage extends ContentOutlinePage { - @Override - public void createControl(final Composite parent) { - super.createControl(parent); - AbstractsimulationEditor.this.contentOutlineViewer = this.getTreeViewer(); - AbstractsimulationEditor.this.contentOutlineViewer.addSelectionChangedListener(this); - - // Set up the tree viewer. - // - AbstractsimulationEditor.this.contentOutlineViewer.setUseHashlookup(true); - AbstractsimulationEditor.this.contentOutlineViewer.setContentProvider( - new AdapterFactoryContentProvider(AbstractsimulationEditor.this.adapterFactory)); - AbstractsimulationEditor.this.contentOutlineViewer.setLabelProvider( - new AdapterFactoryLabelProvider(AbstractsimulationEditor.this.adapterFactory)); - AbstractsimulationEditor.this.contentOutlineViewer - .setInput(AbstractsimulationEditor.this.editingDomain.getResourceSet()); - - // Make sure our popups work. - // - AbstractsimulationEditor.this - .createContextMenuFor(AbstractsimulationEditor.this.contentOutlineViewer); - - if (!AbstractsimulationEditor.this.editingDomain.getResourceSet() - .getResources() - .isEmpty()) { - // Select the root object in the view. - // - AbstractsimulationEditor.this.contentOutlineViewer.setSelection( - new StructuredSelection(AbstractsimulationEditor.this.editingDomain.getResourceSet() - .getResources() - .get(0)), - true); - } - } - - @Override - public void makeContributions(final IMenuManager menuManager, final IToolBarManager toolBarManager, - final IStatusLineManager statusLineManager) { - super.makeContributions(menuManager, toolBarManager, statusLineManager); - AbstractsimulationEditor.this.contentOutlineStatusLineManager = statusLineManager; - } - - @Override - public void setActionBars(final IActionBars actionBars) { - super.setActionBars(actionBars); - AbstractsimulationEditor.this.getActionBarContributor() - .shareGlobalActions(this, actionBars); - } - } - - this.contentOutlinePage = new MyContentOutlinePage(); - - // Listen to selection so that we can handle it is a special way. - // - this.contentOutlinePage.addSelectionChangedListener(new ISelectionChangedListener() { - // This ensures that we handle selections correctly. - // - @Override - public void selectionChanged(final SelectionChangedEvent event) { - AbstractsimulationEditor.this.handleContentOutlineSelection(event.getSelection()); - } - }); - } - - return this.contentOutlinePage; - } - - /** - * This accesses a cached version of the property sheet. - * - * @generated - */ - public IPropertySheetPage getPropertySheetPage() { - final PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage(this.editingDomain) { - @Override - public void setSelectionToViewer(final List selection) { - AbstractsimulationEditor.this.setSelectionToViewer(selection); - AbstractsimulationEditor.this.setFocus(); - } - - @Override - public void setActionBars(final IActionBars actionBars) { - super.setActionBars(actionBars); - AbstractsimulationEditor.this.getActionBarContributor() - .shareGlobalActions(this, actionBars); - } - }; - propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.propertySheetPages.add(propertySheetPage); - - return propertySheetPage; - } - - /** - * This deals with how we want selection in the outliner to affect the other views. - * - * @generated - */ - public void handleContentOutlineSelection(final ISelection selection) { - if (this.currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { - final Iterator selectedElements = ((IStructuredSelection) selection).iterator(); - if (selectedElements.hasNext()) { - // Get the first selected element. - // - final Object selectedElement = selectedElements.next(); - - // If it's the selection viewer, then we want it to select the same selection as - // this selection. - // - if (this.currentViewerPane.getViewer() == this.selectionViewer) { - final ArrayList selectionList = new ArrayList(); - selectionList.add(selectedElement); - while (selectedElements.hasNext()) { - selectionList.add(selectedElements.next()); - } - - // Set the selection to the widget. - // - this.selectionViewer.setSelection(new StructuredSelection(selectionList)); - } else { - // Set the input to the widget. - // - if (this.currentViewerPane.getViewer() - .getInput() != selectedElement) { - this.currentViewerPane.getViewer() - .setInput(selectedElement); - this.currentViewerPane.setTitle(selectedElement); - } - } - } - } - } - - /** - * This is for implementing {@link IEditorPart} and simply tests the command stack. - * - * @generated - */ - @Override - public boolean isDirty() { - return ((BasicCommandStack) this.editingDomain.getCommandStack()).isSaveNeeded(); - } - - /** - * This is for implementing {@link IEditorPart} and simply saves the model file. - * - * @generated - */ - @Override - public void doSave(final IProgressMonitor progressMonitor) { - // Save only resources that have actually changed. - // - final Map saveOptions = new HashMap(); - saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); - saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED); - - // Do the work within an operation because this is a long running activity that modifies the - // workbench. - // - final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { - // This is the method that gets invoked when the operation runs. - // - @Override - public void execute(final IProgressMonitor monitor) { - // Save the resources to the file system. - // - boolean first = true; - final List resources = AbstractsimulationEditor.this.editingDomain.getResourceSet() - .getResources(); - for (final Resource resource : resources) { - if ((first || !resource.getContents() - .isEmpty() || AbstractsimulationEditor.this.isPersisted(resource)) - && !AbstractsimulationEditor.this.editingDomain.isReadOnly(resource)) { - try { - final long timeStamp = resource.getTimeStamp(); - resource.save(saveOptions); - if (resource.getTimeStamp() != timeStamp) { - AbstractsimulationEditor.this.savedResources.add(resource); - } - } catch (final Exception exception) { - AbstractsimulationEditor.this.resourceToDiagnosticMap.put(resource, - AbstractsimulationEditor.this.analyzeResourceProblems(resource, exception)); - } - first = false; - } - } - } - }; - - this.updateProblemIndication = false; - try { - // This runs the options, and shows progress. - // - new ProgressMonitorDialog(this.getSite() - .getShell()).run(true, false, operation); - - // Refresh the necessary state. - // - ((BasicCommandStack) this.editingDomain.getCommandStack()).saveIsDone(); - this.firePropertyChange(IEditorPart.PROP_DIRTY); - } catch (final Exception exception) { - // Something went wrong that shouldn't. - // - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - this.updateProblemIndication = true; - this.updateProblemIndication(); - } - - /** - * This returns whether something has been persisted to the URI of the specified resource. The - * implementation uses the URI converter from the editor's resource set to try to open an input - * stream. - * - * @generated - */ - protected boolean isPersisted(final Resource resource) { - boolean result = false; - try { - final InputStream stream = this.editingDomain.getResourceSet() - .getURIConverter() - .createInputStream(resource.getURI()); - if (stream != null) { - result = true; - stream.close(); - } - } catch (final IOException e) { - // Ignore - } - return result; - } - - /** - * This always returns true because it is not currently supported. - * - * @generated - */ - @Override - public boolean isSaveAsAllowed() { - return true; - } - - /** - * This also changes the editor's input. - * - * @generated - */ - @Override - public void doSaveAs() { - final SaveAsDialog saveAsDialog = new SaveAsDialog(this.getSite() - .getShell()); - saveAsDialog.open(); - final IPath path = saveAsDialog.getResult(); - if (path != null) { - final IFile file = ResourcesPlugin.getWorkspace() - .getRoot() - .getFile(path); - if (file != null) { - this.doSaveAs(URI.createPlatformResourceURI(file.getFullPath() - .toString(), true), new FileEditorInput(file)); - } - } - } - - /** - * - * - * @generated - */ - protected void doSaveAs(final URI uri, final IEditorInput editorInput) { - (this.editingDomain.getResourceSet() - .getResources() - .get(0)).setURI(uri); - this.setInputWithNotify(editorInput); - this.setPartName(editorInput.getName()); - final IProgressMonitor progressMonitor = this.getActionBars() - .getStatusLineManager() != null ? this.getActionBars() - .getStatusLineManager() - .getProgressMonitor() : new NullProgressMonitor(); - this.doSave(progressMonitor); - } - - /** - * - * - * @generated - */ - @Override - public void gotoMarker(final IMarker marker) { - final List targetObjects = this.markerHelper.getTargetObjects(this.editingDomain, marker); - if (!targetObjects.isEmpty()) { - this.setSelectionToViewer(targetObjects); - } - } - - /** - * This is called during startup. - * - * @generated - */ - @Override - public void init(final IEditorSite site, final IEditorInput editorInput) { - this.setSite(site); - this.setInputWithNotify(editorInput); - this.setPartName(editorInput.getName()); - site.setSelectionProvider(this); - site.getPage() - .addPartListener(this.partListener); - ResourcesPlugin.getWorkspace() - .addResourceChangeListener(this.resourceChangeListener, IResourceChangeEvent.POST_CHANGE); - } - - /** - * - * - * @generated - */ - @Override - public void setFocus() { - if (this.currentViewerPane != null) { - this.currentViewerPane.setFocus(); - } else { - this.getControl(this.getActivePage()) - .setFocus(); - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * @generated - */ - @Override - public void addSelectionChangedListener(final ISelectionChangedListener listener) { - this.selectionChangedListeners.add(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * @generated - */ - @Override - public void removeSelectionChangedListener(final ISelectionChangedListener listener) { - this.selectionChangedListeners.remove(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's - * overall selection. - * - * @generated - */ - @Override - public ISelection getSelection() { - return this.editorSelection; - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's - * overall selection. Calling this result will notify the listeners. - * - * - * @generated - */ - @Override - public void setSelection(final ISelection selection) { - this.editorSelection = selection; - - for (final ISelectionChangedListener listener : this.selectionChangedListeners) { - listener.selectionChanged(new SelectionChangedEvent(this, selection)); - } - this.setStatusLineManager(selection); - } - - /** - * - * - * @generated - */ - public void setStatusLineManager(final ISelection selection) { - final IStatusLineManager statusLineManager = this.currentViewer != null - && this.currentViewer == this.contentOutlineViewer ? this.contentOutlineStatusLineManager - : this.getActionBars() - .getStatusLineManager(); - - if (statusLineManager != null) { - if (selection instanceof IStructuredSelection) { - final Collection collection = ((IStructuredSelection) selection).toList(); - switch (collection.size()) { - case 0: { - statusLineManager.setMessage(getString("_UI_NoObjectSelected")); - break; - } - case 1: { - final String text = new AdapterFactoryItemDelegator(this.adapterFactory) - .getText(collection.iterator() - .next()); - statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text)); - break; - } - default: { - statusLineManager - .setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size()))); - break; - } - } - } else { - statusLineManager.setMessage(""); - } - } - } - - /** - * This looks up a string in the plugin's plugin.properties file. - * - * @generated - */ - private static String getString(final String key) { - return ExperimentAutomationEditorPlugin.INSTANCE.getString(key); - } - - /** - * This looks up a string in plugin.properties, making a substitution. - * - * - * @generated - */ - private static String getString(final String key, final Object s1) { - return ExperimentAutomationEditorPlugin.INSTANCE.getString(key, new Object[] { s1 }); - } - - /** - * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus - * with contributions from the Edit menu. - * - * @generated - */ - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - ((IMenuListener) this.getEditorSite() - .getActionBarContributor()).menuAboutToShow(menuManager); - } - - /** - * - * - * @generated - */ - public EditingDomainActionBarContributor getActionBarContributor() { - return (EditingDomainActionBarContributor) this.getEditorSite() - .getActionBarContributor(); - } - - /** - * - * - * @generated - */ - public IActionBars getActionBars() { - return this.getActionBarContributor() - .getActionBars(); - } - - /** - * - * - * @generated - */ - public AdapterFactory getAdapterFactory() { - return this.adapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public void dispose() { - this.updateProblemIndication = false; - - ResourcesPlugin.getWorkspace() - .removeResourceChangeListener(this.resourceChangeListener); - - this.getSite() - .getPage() - .removePartListener(this.partListener); - - this.adapterFactory.dispose(); - - if (this.getActionBarContributor() - .getActiveEditor() == this) { - this.getActionBarContributor() - .setActiveEditor(null); - } - - for (final PropertySheetPage propertySheetPage : this.propertySheetPages) { - propertySheetPage.dispose(); - } - - if (this.contentOutlinePage != null) { - this.contentOutlinePage.dispose(); - } - - super.dispose(); - } - - /** - * Returns whether the outline view should be presented to the user. - * - * - * @generated - */ - protected boolean showOutlineView() { - return true; - } -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationModelWizard.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationModelWizard.java deleted file mode 100644 index a6407abf..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/abstractsimulation/presentation/AbstractsimulationModelWizard.java +++ /dev/null @@ -1,625 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.presentation; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.MissingResourceException; -import java.util.StringTokenizer; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.emf.common.CommonPlugin; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.wizard.Wizard; -import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Combo; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.ui.INewWizard; -import org.eclipse.ui.IWorkbench; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.WizardNewFileCreationPage; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.ISetSelectionTarget; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationFactory; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.variation.presentation.ExperimentAutomationEditorPlugin; -import org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin; - -/** - * This is a simple wizard for creating a new model file. - * - * @generated - */ -public class AbstractsimulationModelWizard extends Wizard implements INewWizard { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The supported extensions for created files. - * - * @generated - */ - public static final List FILE_EXTENSIONS = Collections.unmodifiableList(Arrays - .asList(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_AbstractsimulationEditorFilenameExtensions") - .split("\\s*,\\s*"))); - - /** - * A formatted list of supported file extensions, suitable for display. - * - * - * @generated - */ - public static final String FORMATTED_FILE_EXTENSIONS = ExperimentAutomationEditorPlugin.INSTANCE - .getString("_UI_AbstractsimulationEditorFilenameExtensions") - .replaceAll("\\s*,\\s*", ", "); - - /** - * This caches an instance of the model package. - * - * @generated - */ - protected AbstractsimulationPackage abstractsimulationPackage = AbstractsimulationPackage.eINSTANCE; - - /** - * This caches an instance of the model factory. - * - * @generated - */ - protected AbstractsimulationFactory abstractsimulationFactory = this.abstractsimulationPackage - .getAbstractsimulationFactory(); - - /** - * This is the file creation page. - * - * @generated - */ - protected AbstractsimulationModelWizardNewFileCreationPage newFileCreationPage; - - /** - * This is the initial object creation page. - * - * @generated - */ - protected AbstractsimulationModelWizardInitialObjectCreationPage initialObjectCreationPage; - - /** - * Remember the selection during initialization for populating the default container. - * - * @generated - */ - protected IStructuredSelection selection; - - /** - * Remember the workbench during initialization. - * - * @generated - */ - protected IWorkbench workbench; - - /** - * Caches the names of the types that can be created as the root object. - * - * - * @generated - */ - protected List initialObjectNames; - - /** - * This just records the information. - * - * @generated - */ - @Override - public void init(final IWorkbench workbench, final IStructuredSelection selection) { - this.workbench = workbench; - this.selection = selection; - this.setWindowTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); - this.setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor( - ExperimentAutomationEditorPlugin.INSTANCE.getImage("full/wizban/NewAbstractsimulation"))); - } - - /** - * Returns the names of the types that can be created as the root object. - * - * @generated - */ - protected Collection getInitialObjectNames() { - if (this.initialObjectNames == null) { - this.initialObjectNames = new ArrayList(); - for (final EClassifier eClassifier : this.abstractsimulationPackage.getEClassifiers()) { - if (eClassifier instanceof EClass) { - final EClass eClass = (EClass) eClassifier; - if (!eClass.isAbstract()) { - this.initialObjectNames.add(eClass.getName()); - } - } - } - Collections.sort(this.initialObjectNames, CommonPlugin.INSTANCE.getComparator()); - } - return this.initialObjectNames; - } - - /** - * Create a new model. - * - * @generated - */ - protected EObject createInitialModel() { - final EClass eClass = (EClass) this.abstractsimulationPackage - .getEClassifier(this.initialObjectCreationPage.getInitialObjectName()); - final EObject rootObject = this.abstractsimulationFactory.create(eClass); - return rootObject; - } - - /** - * Do the work after everything is specified. - * - * @generated - */ - @Override - public boolean performFinish() { - try { - // Remember the file. - // - final IFile modelFile = this.getModelFile(); - - // Do the work within an operation. - // - final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { - @Override - protected void execute(final IProgressMonitor progressMonitor) { - try { - // Create a resource set - // - final ResourceSet resourceSet = new ResourceSetImpl(); - - // Get the URI of the model file. - // - final URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath() - .toString(), true); - - // Create a resource for this file. - // - final Resource resource = resourceSet.createResource(fileURI); - - // Add the initial model object to the contents. - // - final EObject rootObject = AbstractsimulationModelWizard.this.createInitialModel(); - if (rootObject != null) { - resource.getContents() - .add(rootObject); - } - - // Save the contents of the resource to the file system. - // - final Map options = new HashMap(); - options.put(XMLResource.OPTION_ENCODING, - AbstractsimulationModelWizard.this.initialObjectCreationPage.getEncoding()); - resource.save(options); - } catch (final Exception exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } finally { - progressMonitor.done(); - } - } - }; - - this.getContainer() - .run(false, false, operation); - - // Select the new file resource in the current view. - // - final IWorkbenchWindow workbenchWindow = this.workbench.getActiveWorkbenchWindow(); - final IWorkbenchPage page = workbenchWindow.getActivePage(); - final IWorkbenchPart activePart = page.getActivePart(); - if (activePart instanceof ISetSelectionTarget) { - final ISelection targetSelection = new StructuredSelection(modelFile); - this.getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - ((ISetSelectionTarget) activePart).selectReveal(targetSelection); - } - }); - } - - // Open an editor on the new file. - // - try { - page.openEditor(new FileEditorInput(modelFile), this.workbench.getEditorRegistry() - .getDefaultEditor(modelFile.getFullPath() - .toString()) - .getId()); - } catch (final PartInitException exception) { - MessageDialog.openError(workbenchWindow.getShell(), - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), - exception.getMessage()); - return false; - } - - return true; - } catch (final Exception exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - return false; - } - } - - /** - * This is the one page of the wizard. - * - * @generated - */ - public class AbstractsimulationModelWizardNewFileCreationPage extends WizardNewFileCreationPage { - - /** - * Pass in the selection. - * - * @generated - */ - public AbstractsimulationModelWizardNewFileCreationPage(final String pageId, - final IStructuredSelection selection) { - super(pageId, selection); - } - - /** - * The framework calls this to see if the file is correct. - * - * @generated - */ - @Override - protected boolean validatePage() { - if (super.validatePage()) { - final String extension = new Path(this.getFileName()).getFileExtension(); - if (extension == null || !FILE_EXTENSIONS.contains(extension)) { - final String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" - : "_WARN_FilenameExtension"; - this.setErrorMessage(ExperimentAutomationEditorPlugin.INSTANCE.getString(key, - new Object[] { FORMATTED_FILE_EXTENSIONS })); - return false; - } - return true; - } - return false; - } - - /** - * - * - * @generated - */ - public IFile getModelFile() { - return ResourcesPlugin.getWorkspace() - .getRoot() - .getFile(this.getContainerFullPath() - .append(this.getFileName())); - } - } - - /** - * This is the page where the type of object to create is selected. - * - * @generated - */ - public class AbstractsimulationModelWizardInitialObjectCreationPage extends WizardPage { - - /** - * - * - * @generated - */ - protected Combo initialObjectField; - - /** - * @generated - */ - protected List encodings; - - /** - * - * - * @generated - */ - protected Combo encodingField; - - /** - * Pass in the selection. - * - * @generated - */ - public AbstractsimulationModelWizardInitialObjectCreationPage(final String pageId) { - super(pageId); - } - - /** - * - * - * @generated - */ - @Override - public void createControl(final Composite parent) { - final Composite composite = new Composite(parent, SWT.NONE); - { - final GridLayout layout = new GridLayout(); - layout.numColumns = 1; - layout.verticalSpacing = 12; - composite.setLayout(layout); - - final GridData data = new GridData(); - data.verticalAlignment = GridData.FILL; - data.grabExcessVerticalSpace = true; - data.horizontalAlignment = GridData.FILL; - composite.setLayoutData(data); - } - - final Label containerLabel = new Label(composite, SWT.LEFT); - { - containerLabel.setText(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ModelObject")); - - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - containerLabel.setLayoutData(data); - } - - this.initialObjectField = new Combo(composite, SWT.BORDER); - { - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - this.initialObjectField.setLayoutData(data); - } - - for (final String objectName : AbstractsimulationModelWizard.this.getInitialObjectNames()) { - this.initialObjectField.add(this.getLabel(objectName)); - } - - if (this.initialObjectField.getItemCount() == 1) { - this.initialObjectField.select(0); - } - this.initialObjectField.addModifyListener(this.validator); - - final Label encodingLabel = new Label(composite, SWT.LEFT); - { - encodingLabel.setText(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); - - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - encodingLabel.setLayoutData(data); - } - this.encodingField = new Combo(composite, SWT.BORDER); - { - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - this.encodingField.setLayoutData(data); - } - - for (final String encoding : this.getEncodings()) { - this.encodingField.add(encoding); - } - - this.encodingField.select(0); - this.encodingField.addModifyListener(this.validator); - - this.setPageComplete(this.validatePage()); - this.setControl(composite); - } - - /** - * - * - * @generated - */ - protected ModifyListener validator = new ModifyListener() { - @Override - public void modifyText(final ModifyEvent e) { - AbstractsimulationModelWizardInitialObjectCreationPage.this - .setPageComplete(AbstractsimulationModelWizardInitialObjectCreationPage.this.validatePage()); - } - }; - - /** - * - * - * @generated - */ - protected boolean validatePage() { - return this.getInitialObjectName() != null && this.getEncodings() - .contains(this.encodingField.getText()); - } - - /** - * - * - * @generated - */ - @Override - public void setVisible(final boolean visible) { - super.setVisible(visible); - if (visible) { - if (this.initialObjectField.getItemCount() == 1) { - this.initialObjectField.clearSelection(); - this.encodingField.setFocus(); - } else { - this.encodingField.clearSelection(); - this.initialObjectField.setFocus(); - } - } - } - - /** - * - * - * @generated - */ - public String getInitialObjectName() { - final String label = this.initialObjectField.getText(); - - for (final String name : AbstractsimulationModelWizard.this.getInitialObjectNames()) { - if (this.getLabel(name) - .equals(label)) { - return name; - } - } - return null; - } - - /** - * - * - * @generated - */ - public String getEncoding() { - return this.encodingField.getText(); - } - - /** - * Returns the label for the specified type name. - * - * @generated - */ - protected String getLabel(final String typeName) { - try { - return ExperimentAutomationEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); - } catch (final MissingResourceException mre) { - ExperimentAutomationEditorPlugin.INSTANCE.log(mre); - } - return typeName; - } - - /** - * - * - * @generated - */ - protected Collection getEncodings() { - if (this.encodings == null) { - this.encodings = new ArrayList(); - for (final StringTokenizer stringTokenizer = new StringTokenizer( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer - .hasMoreTokens();) { - this.encodings.add(stringTokenizer.nextToken()); - } - } - return this.encodings; - } - } - - /** - * The framework calls this to create the contents of the wizard. - * - * @generated - */ - @Override - public void addPages() { - // Create a page, set the title, and the initial model file name. - // - this.newFileCreationPage = new AbstractsimulationModelWizardNewFileCreationPage("Whatever", this.selection); - this.newFileCreationPage - .setTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_AbstractsimulationModelWizard_label")); - this.newFileCreationPage.setDescription( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_AbstractsimulationModelWizard_description")); - this.newFileCreationPage.setFileName( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_AbstractsimulationEditorFilenameDefaultBase") - + "." + FILE_EXTENSIONS.get(0)); - this.addPage(this.newFileCreationPage); - - // Try and get the resource selection to determine a current directory for the file dialog. - // - if (this.selection != null && !this.selection.isEmpty()) { - // Get the resource... - // - final Object selectedElement = this.selection.iterator() - .next(); - if (selectedElement instanceof IResource) { - // Get the resource parent, if its a file. - // - IResource selectedResource = (IResource) selectedElement; - if (selectedResource.getType() == IResource.FILE) { - selectedResource = selectedResource.getParent(); - } - - // This gives us a directory... - // - if (selectedResource instanceof IFolder || selectedResource instanceof IProject) { - // Set this for the container. - // - this.newFileCreationPage.setContainerFullPath(selectedResource.getFullPath()); - - // Make up a unique new name here. - // - final String defaultModelBaseFilename = ExperimentAutomationEditorPlugin.INSTANCE - .getString("_UI_AbstractsimulationEditorFilenameDefaultBase"); - final String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0); - String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension; - for (int i = 1; ((IContainer) selectedResource).findMember(modelFilename) != null; ++i) { - modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension; - } - this.newFileCreationPage.setFileName(modelFilename); - } - } - } - this.initialObjectCreationPage = new AbstractsimulationModelWizardInitialObjectCreationPage("Whatever2"); - this.initialObjectCreationPage - .setTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_AbstractsimulationModelWizard_label")); - this.initialObjectCreationPage.setDescription( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); - this.addPage(this.initialObjectCreationPage); - } - - /** - * Get the file from the page. - * - * @generated - */ - public IFile getModelFile() { - return this.newFileCreationPage.getModelFile(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsActionBarContributor.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsActionBarContributor.java deleted file mode 100644 index ffe7500e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsActionBarContributor.java +++ /dev/null @@ -1,436 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.presentation; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.ui.action.ControlAction; -import org.eclipse.emf.edit.ui.action.CreateChildAction; -import org.eclipse.emf.edit.ui.action.CreateSiblingAction; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.action.LoadResourceAction; -import org.eclipse.emf.edit.ui.action.ValidateAction; -import org.eclipse.jface.action.Action; -import org.eclipse.jface.action.ActionContributionItem; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.action.IContributionItem; -import org.eclipse.jface.action.IContributionManager; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.action.SubContributionItem; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.PartInitException; -import org.palladiosimulator.experimentautomation.variation.presentation.ExperimentAutomationEditorPlugin; - -/** - * This is the action bar contributor for the Experiments model editor. - * - * @generated - */ -public class ExperimentsActionBarContributor extends EditingDomainActionBarContributor - implements ISelectionChangedListener { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the active editor. - * - * @generated - */ - protected IEditorPart activeEditorPart; - - /** - * This keeps track of the current selection provider. - * - * @generated - */ - protected ISelectionProvider selectionProvider; - - /** - * This action opens the Properties view. - * - * @generated - */ - protected IAction showPropertiesViewAction = new Action( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) { - @Override - public void run() { - try { - ExperimentsActionBarContributor.this.getPage() - .showView("org.eclipse.ui.views.PropertySheet"); - } catch (final PartInitException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * This action refreshes the viewer of the current editor if the editor implements - * {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}. - * - * @generated - */ - protected IAction refreshViewerAction = new Action( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) { - @Override - public boolean isEnabled() { - return ExperimentsActionBarContributor.this.activeEditorPart instanceof IViewerProvider; - } - - @Override - public void run() { - if (ExperimentsActionBarContributor.this.activeEditorPart instanceof IViewerProvider) { - final Viewer viewer = ((IViewerProvider) ExperimentsActionBarContributor.this.activeEditorPart) - .getViewer(); - if (viewer != null) { - viewer.refresh(); - } - } - } - }; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding - * to each descriptor generated for the current selection by the item provider. - * - * @generated - */ - protected Collection createChildActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateChild - * actions. - * - * @generated - */ - protected IMenuManager createChildMenuManager; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} - * corresponding to each descriptor generated for the current selection by the item provider. - * - * - * @generated - */ - protected Collection createSiblingActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateSibling - * actions. - * - * @generated - */ - protected IMenuManager createSiblingMenuManager; - - /** - * This creates an instance of the contributor. - * - * @generated - */ - public ExperimentsActionBarContributor() { - super(ADDITIONS_LAST_STYLE); - this.loadResourceAction = new LoadResourceAction(); - this.validateAction = new ValidateAction(); - this.controlAction = new ControlAction(); - } - - /** - * This adds Separators for editor additions to the tool bar. - * - * @generated - */ - @Override - public void contributeToToolBar(final IToolBarManager toolBarManager) { - super.contributeToToolBar(toolBarManager); - toolBarManager.add(new Separator("experiments-settings")); - toolBarManager.add(new Separator("experiments-additions")); - } - - /** - * This adds to the menu bar a menu and some separators for editor additions, as well as the - * sub-menus for object creation items. - * - * @generated - */ - @Override - public void contributeToMenu(final IMenuManager menuManager) { - super.contributeToMenu(menuManager); - - final IMenuManager submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ExperimentsEditor_menu"), - "org.palladiosimulator.experimentautomation.experimentsMenuID"); - menuManager.insertAfter("additions", submenuManager); - submenuManager.add(new Separator("settings")); - submenuManager.add(new Separator("actions")); - submenuManager.add(new Separator("additions")); - submenuManager.add(new Separator("additions-end")); - - // Prepare for CreateChild item addition or removal. - // - this.createChildMenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - submenuManager.insertBefore("additions", this.createChildMenuManager); - - // Prepare for CreateSibling item addition or removal. - // - this.createSiblingMenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - submenuManager.insertBefore("additions", this.createSiblingMenuManager); - - // Force an update because Eclipse hides empty menus now. - // - submenuManager.addMenuListener(new IMenuListener() { - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - menuManager.updateAll(true); - } - }); - - this.addGlobalActions(submenuManager); - } - - /** - * When the active editor changes, this remembers the change and registers with it as a - * selection provider. - * - * @generated - */ - @Override - public void setActiveEditor(final IEditorPart part) { - super.setActiveEditor(part); - this.activeEditorPart = part; - - // Switch to the new selection provider. - // - if (this.selectionProvider != null) { - this.selectionProvider.removeSelectionChangedListener(this); - } - if (part == null) { - this.selectionProvider = null; - } else { - this.selectionProvider = part.getSite() - .getSelectionProvider(); - this.selectionProvider.addSelectionChangedListener(this); - - // Fake a selection changed event to update the menus. - // - if (this.selectionProvider.getSelection() != null) { - this.selectionChanged( - new SelectionChangedEvent(this.selectionProvider, this.selectionProvider.getSelection())); - } - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, handling - * {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and - * siblings that can be added to the selected object and updating the menus accordingly. - * - * @generated - */ - @Override - public void selectionChanged(final SelectionChangedEvent event) { - // Remove any menu items for old selection. - // - if (this.createChildMenuManager != null) { - this.depopulateManager(this.createChildMenuManager, this.createChildActions); - } - if (this.createSiblingMenuManager != null) { - this.depopulateManager(this.createSiblingMenuManager, this.createSiblingActions); - } - - // Query the new selection for appropriate new child/sibling descriptors - // - Collection newChildDescriptors = null; - Collection newSiblingDescriptors = null; - - final ISelection selection = event.getSelection(); - if (selection instanceof IStructuredSelection && ((IStructuredSelection) selection).size() == 1) { - final Object object = ((IStructuredSelection) selection).getFirstElement(); - - final EditingDomain domain = ((IEditingDomainProvider) this.activeEditorPart).getEditingDomain(); - - newChildDescriptors = domain.getNewChildDescriptors(object, null); - newSiblingDescriptors = domain.getNewChildDescriptors(null, object); - } - - // Generate actions for selection; populate and redraw the menus. - // - this.createChildActions = this.generateCreateChildActions(newChildDescriptors, selection); - this.createSiblingActions = this.generateCreateSiblingActions(newSiblingDescriptors, selection); - - if (this.createChildMenuManager != null) { - this.populateManager(this.createChildMenuManager, this.createChildActions, null); - this.createChildMenuManager.update(true); - } - if (this.createSiblingMenuManager != null) { - this.populateManager(this.createSiblingMenuManager, this.createSiblingActions, null); - this.createSiblingMenuManager.update(true); - } - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in - * descriptors, and returns the collection of these actions. - * - * @generated - */ - protected Collection generateCreateChildActions(final Collection descriptors, - final ISelection selection) { - final Collection actions = new ArrayList(); - if (descriptors != null) { - for (final Object descriptor : descriptors) { - actions.add(new CreateChildAction(this.activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object - * in descriptors, and returns the collection of these actions. - * - * @generated - */ - protected Collection generateCreateSiblingActions(final Collection descriptors, - final ISelection selection) { - final Collection actions = new ArrayList(); - if (descriptors != null) { - for (final Object descriptor : descriptors) { - actions.add(new CreateSiblingAction(this.activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This populates the specified manager with - * {@link org.eclipse.jface.action.ActionContributionItem}s based on the - * {@link org.eclipse.jface.action.IAction}s contained in the actions collection, - * by inserting them before the specified contribution item contributionID. If - * contributionID is null, they are simply added. - * - * @generated - */ - protected void populateManager(final IContributionManager manager, final Collection actions, - final String contributionID) { - if (actions != null) { - for (final IAction action : actions) { - if (contributionID != null) { - manager.insertBefore(contributionID, action); - } else { - manager.add(action); - } - } - } - } - - /** - * This removes from the specified manager all - * {@link org.eclipse.jface.action.ActionContributionItem}s based on the - * {@link org.eclipse.jface.action.IAction}s contained in the actions collection. - * - * - * @generated - */ - protected void depopulateManager(final IContributionManager manager, final Collection actions) { - if (actions != null) { - final IContributionItem[] items = manager.getItems(); - for (final IContributionItem item : items) { - // Look into SubContributionItems - // - IContributionItem contributionItem = item; - while (contributionItem instanceof SubContributionItem) { - contributionItem = ((SubContributionItem) contributionItem).getInnerItem(); - } - - // Delete the ActionContributionItems with matching action. - // - if (contributionItem instanceof ActionContributionItem) { - final IAction action = ((ActionContributionItem) contributionItem).getAction(); - if (actions.contains(action)) { - manager.remove(contributionItem); - } - } - } - } - } - - /** - * This populates the pop-up menu before it appears. - * - * @generated - */ - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - super.menuAboutToShow(menuManager); - MenuManager submenuManager = null; - - submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - this.populateManager(submenuManager, this.createChildActions, null); - menuManager.insertBefore("edit", submenuManager); - - submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - this.populateManager(submenuManager, this.createSiblingActions, null); - menuManager.insertBefore("edit", submenuManager); - } - - /** - * This inserts global actions before the "additions-end" separator. - * - * - * @generated - */ - @Override - protected void addGlobalActions(final IMenuManager menuManager) { - menuManager.insertAfter("additions-end", new Separator("ui-actions")); - menuManager.insertAfter("ui-actions", this.showPropertiesViewAction); - - this.refreshViewerAction.setEnabled(this.refreshViewerAction.isEnabled()); - menuManager.insertAfter("ui-actions", this.refreshViewerAction); - - super.addGlobalActions(menuManager); - } - - /** - * This ensures that a delete action will clean up all references to deleted objects. - * - * @generated - */ - @Override - protected boolean removeAllReferencesOnDelete() { - return true; - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsEditor.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsEditor.java deleted file mode 100644 index 0f115e4f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsEditor.java +++ /dev/null @@ -1,1933 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.presentation; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.EventObject; -import java.util.HashMap; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceChangeEvent; -import org.eclipse.core.resources.IResourceChangeListener; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.emf.common.command.BasicCommandStack; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.common.command.CommandStack; -import org.eclipse.emf.common.command.CommandStackListener; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.ui.MarkerHelper; -import org.eclipse.emf.common.ui.ViewerPane; -import org.eclipse.emf.common.ui.editor.ProblemEditorPart; -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.provider.EcoreItemProviderAdapterFactory; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.EContentAdapter; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory; -import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor; -import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; -import org.eclipse.emf.edit.ui.dnd.LocalTransfer; -import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; -import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; -import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper; -import org.eclipse.emf.edit.ui.util.EditUIUtil; -import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IStatusLineManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.util.LocalSelectionTransfer; -import org.eclipse.jface.viewers.ColumnWeightData; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.ListViewer; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.StructuredViewer; -import org.eclipse.jface.viewers.TableLayout; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.CTabFolder; -import org.eclipse.swt.dnd.DND; -import org.eclipse.swt.dnd.FileTransfer; -import org.eclipse.swt.dnd.Transfer; -import org.eclipse.swt.events.ControlAdapter; -import org.eclipse.swt.events.ControlEvent; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.graphics.Rectangle; -import org.eclipse.swt.layout.FillLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.Table; -import org.eclipse.swt.widgets.TableColumn; -import org.eclipse.swt.widgets.Tree; -import org.eclipse.swt.widgets.TreeColumn; -import org.eclipse.ui.IActionBars; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IEditorSite; -import org.eclipse.ui.IPartListener; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.SaveAsDialog; -import org.eclipse.ui.ide.IGotoMarker; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.MultiPageEditorPart; -import org.eclipse.ui.views.contentoutline.ContentOutline; -import org.eclipse.ui.views.contentoutline.ContentOutlinePage; -import org.eclipse.ui.views.contentoutline.IContentOutlinePage; -import org.eclipse.ui.views.properties.IPropertySheetPage; -import org.eclipse.ui.views.properties.PropertySheet; -import org.eclipse.ui.views.properties.PropertySheetPage; -import org.palladiosimulator.edp2.models.ExperimentData.provider.ExperimentDataItemProviderAdapterFactory; -import org.palladiosimulator.edp2.models.Repository.provider.RepositoryItemProviderAdapterFactory; -import org.palladiosimulator.edp2.models.measuringpoint.provider.MeasuringpointItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.abstractsimulation.provider.AbstractsimulationItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.experiments.provider.ExperimentsItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.variation.presentation.ExperimentAutomationEditorPlugin; -import org.palladiosimulator.experimentautomation.variation.provider.VariationItemProviderAdapterFactory; -import org.palladiosimulator.metricspec.provider.MetricSpecItemProviderAdapterFactory; -import org.palladiosimulator.monitorrepository.provider.MonitorRepositoryItemProviderAdapterFactory; -import org.palladiosimulator.pcm.allocation.provider.AllocationItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.composition.provider.CompositionItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.entity.provider.EntityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.provider.CoreItemProviderAdapterFactory; -import org.palladiosimulator.pcm.parameter.provider.ParameterItemProviderAdapterFactory; -import org.palladiosimulator.pcm.protocol.provider.ProtocolItemProviderAdapterFactory; -import org.palladiosimulator.pcm.provider.PcmItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.provider.QosannotationsItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.qos_performance.provider.QosPerformanceItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.qos_reliability.provider.QosReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.reliability.provider.ReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.resourceenvironment.provider.ResourceenvironmentItemProviderAdapterFactory; -import org.palladiosimulator.pcm.resourcetype.provider.ResourcetypeItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.provider.SeffItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.seff_performance.provider.SeffPerformanceItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.seff_reliability.provider.SeffReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.subsystem.provider.SubsystemItemProviderAdapterFactory; -import org.palladiosimulator.pcm.system.provider.SystemItemProviderAdapterFactory; -import org.palladiosimulator.pcm.usagemodel.provider.UsagemodelItemProviderAdapterFactory; -import org.palladiosimulator.servicelevelobjective.provider.ServicelevelObjectiveItemProviderAdapterFactory; -import org.scaledl.usageevolution.provider.UsageevolutionItemProviderAdapterFactory; - -import de.uka.ipd.sdq.identifier.provider.IdentifierItemProviderAdapterFactory; -import de.uka.ipd.sdq.probfunction.provider.ProbfunctionItemProviderAdapterFactory; -import de.uka.ipd.sdq.stoex.provider.StoexItemProviderAdapterFactory; -import de.uka.ipd.sdq.units.provider.UnitsItemProviderAdapterFactory; -import tools.descartes.dlim.provider.DlimItemProviderAdapterFactory; - -/** - * This is an example of a Experiments model editor. - * - * @generated - */ -public class ExperimentsEditor extends MultiPageEditorPart - implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the editing domain that is used to track all changes to the model. - * - * @generated - */ - protected AdapterFactoryEditingDomain editingDomain; - - /** - * This is the one adapter factory used for providing views of the model. - * - * @generated - */ - protected ComposedAdapterFactory adapterFactory; - - /** - * This is the content outline page. - * - * @generated - */ - protected IContentOutlinePage contentOutlinePage; - - /** - * This is a kludge... - * - * @generated - */ - protected IStatusLineManager contentOutlineStatusLineManager; - - /** - * This is the content outline page's viewer. - * - * @generated - */ - protected TreeViewer contentOutlineViewer; - - /** - * This is the property sheet page. - * - * @generated - */ - protected List propertySheetPages = new ArrayList(); - - /** - * This is the viewer that shadows the selection in the content outline. The parent relation - * must be correctly defined for this to work. - * - * @generated - */ - protected TreeViewer selectionViewer; - - /** - * This inverts the roll of parent and child in the content provider and show parents as a tree. - * - * - * @generated - */ - protected TreeViewer parentViewer; - - /** - * This shows how a tree view works. - * - * @generated - */ - protected TreeViewer treeViewer; - - /** - * This shows how a list view works. A list viewer doesn't support icons. - * - * @generated - */ - protected ListViewer listViewer; - - /** - * This shows how a table view works. A table can be used as a list with icons. - * - * @generated - */ - protected TableViewer tableViewer; - - /** - * This shows how a tree view with columns works. - * - * @generated - */ - protected TreeViewer treeViewerWithColumns; - - /** - * This keeps track of the active viewer pane, in the book. - * - * @generated - */ - protected ViewerPane currentViewerPane; - - /** - * This keeps track of the active content viewer, which may be either one of the viewers in the - * pages or the content outline viewer. - * - * @generated - */ - protected Viewer currentViewer; - - /** - * This listens to which ever viewer is active. - * - * @generated - */ - protected ISelectionChangedListener selectionChangedListener; - - /** - * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that - * are listening to this editor. - * - * @generated - */ - protected Collection selectionChangedListeners = new ArrayList(); - - /** - * This keeps track of the selection of the editor as a whole. - * - * @generated - */ - protected ISelection editorSelection = StructuredSelection.EMPTY; - - /** - * The MarkerHelper is responsible for creating workspace resource markers presented in - * Eclipse's Problems View. - * - * @generated - */ - protected MarkerHelper markerHelper = new EditUIMarkerHelper(); - - /** - * This listens for when the outline becomes active - * - * @generated - */ - protected IPartListener partListener = new IPartListener() { - @Override - public void partActivated(final IWorkbenchPart p) { - if (p instanceof ContentOutline) { - if (((ContentOutline) p).getCurrentPage() == ExperimentsEditor.this.contentOutlinePage) { - ExperimentsEditor.this.getActionBarContributor() - .setActiveEditor(ExperimentsEditor.this); - - ExperimentsEditor.this.setCurrentViewer(ExperimentsEditor.this.contentOutlineViewer); - } - } else if (p instanceof PropertySheet) { - if (ExperimentsEditor.this.propertySheetPages.contains(((PropertySheet) p).getCurrentPage())) { - ExperimentsEditor.this.getActionBarContributor() - .setActiveEditor(ExperimentsEditor.this); - ExperimentsEditor.this.handleActivate(); - } - } else if (p == ExperimentsEditor.this) { - ExperimentsEditor.this.handleActivate(); - } - } - - @Override - public void partBroughtToTop(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partClosed(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partDeactivated(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partOpened(final IWorkbenchPart p) { - // Ignore. - } - }; - - /** - * Resources that have been removed since last activation. - * - * @generated - */ - protected Collection removedResources = new ArrayList(); - - /** - * Resources that have been changed since last activation. - * - * @generated - */ - protected Collection changedResources = new ArrayList(); - - /** - * Resources that have been saved. - * - * @generated - */ - protected Collection savedResources = new ArrayList(); - - /** - * Map to store the diagnostic associated with a resource. - * - * @generated - */ - protected Map resourceToDiagnosticMap = new LinkedHashMap(); - - /** - * Controls whether the problem indication should be updated. - * - * @generated - */ - protected boolean updateProblemIndication = true; - - /** - * Adapter used to update the problem indication when resources are demanded loaded. - * - * @generated - */ - protected EContentAdapter problemIndicationAdapter = new EContentAdapter() { - protected boolean dispatching; - - @Override - public void notifyChanged(final Notification notification) { - if (notification.getNotifier() instanceof Resource) { - switch (notification.getFeatureID(Resource.class)) { - case Resource.RESOURCE__IS_LOADED: - case Resource.RESOURCE__ERRORS: - case Resource.RESOURCE__WARNINGS: { - final Resource resource = (Resource) notification.getNotifier(); - final Diagnostic diagnostic = ExperimentsEditor.this.analyzeResourceProblems(resource, null); - if (diagnostic.getSeverity() != Diagnostic.OK) { - ExperimentsEditor.this.resourceToDiagnosticMap.put(resource, diagnostic); - } else { - ExperimentsEditor.this.resourceToDiagnosticMap.remove(resource); - } - this.dispatchUpdateProblemIndication(); - break; - } - } - } else { - super.notifyChanged(notification); - } - } - - protected void dispatchUpdateProblemIndication() { - if (ExperimentsEditor.this.updateProblemIndication && !this.dispatching) { - this.dispatching = true; - ExperimentsEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - dispatching = false; - ExperimentsEditor.this.updateProblemIndication(); - } - }); - } - } - - @Override - protected void setTarget(final Resource target) { - this.basicSetTarget(target); - } - - @Override - protected void unsetTarget(final Resource target) { - this.basicUnsetTarget(target); - ExperimentsEditor.this.resourceToDiagnosticMap.remove(target); - this.dispatchUpdateProblemIndication(); - } - }; - - /** - * This listens for workspace changes. - * - * @generated - */ - protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener() { - @Override - public void resourceChanged(final IResourceChangeEvent event) { - final IResourceDelta delta = event.getDelta(); - try { - class ResourceDeltaVisitor implements IResourceDeltaVisitor { - protected ResourceSet resourceSet = ExperimentsEditor.this.editingDomain.getResourceSet(); - protected Collection changedResources = new ArrayList(); - protected Collection removedResources = new ArrayList(); - - @Override - public boolean visit(final IResourceDelta delta) { - if (delta.getResource() - .getType() == IResource.FILE) { - if (delta.getKind() == IResourceDelta.REMOVED || delta.getKind() == IResourceDelta.CHANGED - && delta.getFlags() != IResourceDelta.MARKERS) { - final Resource resource = this.resourceSet - .getResource(URI.createPlatformResourceURI(delta.getFullPath() - .toString(), true), false); - if (resource != null) { - if (delta.getKind() == IResourceDelta.REMOVED) { - this.removedResources.add(resource); - } else if (!ExperimentsEditor.this.savedResources.remove(resource)) { - this.changedResources.add(resource); - } - } - } - return false; - } - - return true; - } - - public Collection getChangedResources() { - return this.changedResources; - } - - public Collection getRemovedResources() { - return this.removedResources; - } - } - - final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); - delta.accept(visitor); - - if (!visitor.getRemovedResources() - .isEmpty()) { - ExperimentsEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - ExperimentsEditor.this.removedResources.addAll(visitor.getRemovedResources()); - if (!ExperimentsEditor.this.isDirty()) { - ExperimentsEditor.this.getSite() - .getPage() - .closeEditor(ExperimentsEditor.this, false); - } - } - }); - } - - if (!visitor.getChangedResources() - .isEmpty()) { - ExperimentsEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - ExperimentsEditor.this.changedResources.addAll(visitor.getChangedResources()); - if (ExperimentsEditor.this.getSite() - .getPage() - .getActiveEditor() == ExperimentsEditor.this) { - ExperimentsEditor.this.handleActivate(); - } - } - }); - } - } catch (final CoreException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * Handles activation of the editor or it's associated views. - * - * @generated - */ - protected void handleActivate() { - // Recompute the read only state. - // - if (this.editingDomain.getResourceToReadOnlyMap() != null) { - this.editingDomain.getResourceToReadOnlyMap() - .clear(); - - // Refresh any actions that may become enabled or disabled. - // - this.setSelection(this.getSelection()); - } - - if (!this.removedResources.isEmpty()) { - if (this.handleDirtyConflict()) { - this.getSite() - .getPage() - .closeEditor(ExperimentsEditor.this, false); - } else { - this.removedResources.clear(); - this.changedResources.clear(); - this.savedResources.clear(); - } - } else if (!this.changedResources.isEmpty()) { - this.changedResources.removeAll(this.savedResources); - this.handleChangedResources(); - this.changedResources.clear(); - this.savedResources.clear(); - } - } - - /** - * Handles what to do with changed resources on activation. - * - * @generated - */ - protected void handleChangedResources() { - if (!this.changedResources.isEmpty() && (!this.isDirty() || this.handleDirtyConflict())) { - final ResourceSet resourceSet = this.editingDomain.getResourceSet(); - if (this.isDirty()) { - this.changedResources.addAll(resourceSet.getResources()); - } - this.editingDomain.getCommandStack() - .flush(); - - this.updateProblemIndication = false; - for (final Resource resource : this.changedResources) { - if (resource.isLoaded()) { - resource.unload(); - try { - resource.load(resourceSet.getLoadOptions()); - } catch (final IOException exception) { - if (!this.resourceToDiagnosticMap.containsKey(resource)) { - this.resourceToDiagnosticMap.put(resource, - this.analyzeResourceProblems(resource, exception)); - } - } - } - } - - if (AdapterFactoryEditingDomain.isStale(this.editorSelection)) { - this.setSelection(StructuredSelection.EMPTY); - } - - this.updateProblemIndication = true; - this.updateProblemIndication(); - } - } - - /** - * Updates the problems indication with the information described in the specified diagnostic. - * - * - * @generated - */ - protected void updateProblemIndication() { - if (this.updateProblemIndication) { - final BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, - "org.palladiosimulator.experimentautomation.editor", 0, null, - new Object[] { this.editingDomain.getResourceSet() }); - for (final Diagnostic childDiagnostic : this.resourceToDiagnosticMap.values()) { - if (childDiagnostic.getSeverity() != Diagnostic.OK) { - diagnostic.add(childDiagnostic); - } - } - - int lastEditorPage = this.getPageCount() - 1; - if (lastEditorPage >= 0 && this.getEditor(lastEditorPage) instanceof ProblemEditorPart) { - ((ProblemEditorPart) this.getEditor(lastEditorPage)).setDiagnostic(diagnostic); - if (diagnostic.getSeverity() != Diagnostic.OK) { - this.setActivePage(lastEditorPage); - } - } else if (diagnostic.getSeverity() != Diagnostic.OK) { - final ProblemEditorPart problemEditorPart = new ProblemEditorPart(); - problemEditorPart.setDiagnostic(diagnostic); - problemEditorPart.setMarkerHelper(this.markerHelper); - try { - this.addPage(++lastEditorPage, problemEditorPart, this.getEditorInput()); - this.setPageText(lastEditorPage, problemEditorPart.getPartName()); - this.setActivePage(lastEditorPage); - this.showTabs(); - } catch (final PartInitException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - - if (this.markerHelper.hasMarkers(this.editingDomain.getResourceSet())) { - this.markerHelper.deleteMarkers(this.editingDomain.getResourceSet()); - if (diagnostic.getSeverity() != Diagnostic.OK) { - try { - this.markerHelper.createMarkers(diagnostic); - } catch (final CoreException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - } - } - } - - /** - * Shows a dialog that asks if conflicting changes should be discarded. - * - * - * @generated - */ - protected boolean handleDirtyConflict() { - return MessageDialog.openQuestion(this.getSite() - .getShell(), getString("_UI_FileConflict_label"), getString("_WARN_FileConflict")); - } - - /** - * This creates a model editor. - * - * @generated - */ - public ExperimentsEditor() { - super(); - this.initializeEditingDomain(); - } - - /** - * This sets up the editing domain for the model editor. - * - * @generated - */ - protected void initializeEditingDomain() { - // Create an adapter factory that yields item providers. - // - this.adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); - - this.adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new VariationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ExperimentsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new AbstractsimulationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new DlimItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ExperimentDataItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new RepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MeasuringpointItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new IdentifierItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MetricSpecItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MonitorRepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new PcmItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new CoreItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new EntityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new CompositionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UsagemodelItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory( - new org.palladiosimulator.pcm.repository.provider.RepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ResourcetypeItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ProtocolItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ParameterItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffPerformanceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosannotationsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosPerformanceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SystemItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ResourceenvironmentItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new AllocationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SubsystemItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ProbfunctionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ServicelevelObjectiveItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new StoexItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UnitsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UsageevolutionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new EcoreItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); - - // Create the command stack that will notify this editor as commands are executed. - // - final BasicCommandStack commandStack = new BasicCommandStack(); - - // Add a listener to set the most recent command's affected objects to be the selection of - // the viewer with focus. - // - commandStack.addCommandStackListener(new CommandStackListener() { - @Override - public void commandStackChanged(final EventObject event) { - ExperimentsEditor.this.getContainer() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - ExperimentsEditor.this.firePropertyChange(IEditorPart.PROP_DIRTY); - - // Try to select the affected objects. - // - final Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand(); - if (mostRecentCommand != null) { - ExperimentsEditor.this.setSelectionToViewer(mostRecentCommand.getAffectedObjects()); - } - for (final Iterator i = ExperimentsEditor.this.propertySheetPages - .iterator(); i.hasNext();) { - final PropertySheetPage propertySheetPage = i.next(); - if (propertySheetPage.getControl() == null || propertySheetPage.getControl() - .isDisposed()) { - i.remove(); - } else { - propertySheetPage.refresh(); - } - } - } - }); - } - }); - - // Create the editing domain with a special command stack. - // - this.editingDomain = new AdapterFactoryEditingDomain(this.adapterFactory, commandStack, - new HashMap()); - } - - /** - * This is here for the listener to be able to call it. - * - * @generated - */ - @Override - protected void firePropertyChange(final int action) { - super.firePropertyChange(action); - } - - /** - * This sets the selection into whichever viewer is active. - * - * @generated - */ - public void setSelectionToViewer(final Collection collection) { - final Collection theSelection = collection; - // Make sure it's okay. - // - if (theSelection != null && !theSelection.isEmpty()) { - final Runnable runnable = new Runnable() { - @Override - public void run() { - // Try to select the items in the current content viewer of the editor. - // - if (ExperimentsEditor.this.currentViewer != null) { - ExperimentsEditor.this.currentViewer - .setSelection(new StructuredSelection(theSelection.toArray()), true); - } - } - }; - this.getSite() - .getShell() - .getDisplay() - .asyncExec(runnable); - } - } - - /** - * This returns the editing domain as required by the {@link IEditingDomainProvider} interface. - * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} - * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}. - * - * @generated - */ - @Override - public EditingDomain getEditingDomain() { - return this.editingDomain; - } - - /** - * - * - * @generated - */ - public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider { - - /** - * - * - * @generated - */ - public ReverseAdapterFactoryContentProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * - * - * @generated - */ - @Override - public Object[] getElements(final Object object) { - final Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * @generated - */ - @Override - public Object[] getChildren(final Object object) { - final Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * @generated - */ - @Override - public boolean hasChildren(final Object object) { - final Object parent = super.getParent(object); - return parent != null; - } - - /** - * - * - * @generated - */ - @Override - public Object getParent(final Object object) { - return null; - } - } - - /** - * - * - * @generated - */ - public void setCurrentViewerPane(final ViewerPane viewerPane) { - if (this.currentViewerPane != viewerPane) { - if (this.currentViewerPane != null) { - this.currentViewerPane.showFocus(false); - } - this.currentViewerPane = viewerPane; - } - this.setCurrentViewer(this.currentViewerPane.getViewer()); - } - - /** - * This makes sure that one content viewer, either for the current page or the outline view, if - * it has focus, is the current one. - * - * @generated - */ - public void setCurrentViewer(final Viewer viewer) { - // If it is changing... - // - if (this.currentViewer != viewer) { - if (this.selectionChangedListener == null) { - // Create the listener on demand. - // - this.selectionChangedListener = new ISelectionChangedListener() { - // This just notifies those things that are affected by the section. - // - @Override - public void selectionChanged(final SelectionChangedEvent selectionChangedEvent) { - ExperimentsEditor.this.setSelection(selectionChangedEvent.getSelection()); - } - }; - } - - // Stop listening to the old one. - // - if (this.currentViewer != null) { - this.currentViewer.removeSelectionChangedListener(this.selectionChangedListener); - } - - // Start listening to the new one. - // - if (viewer != null) { - viewer.addSelectionChangedListener(this.selectionChangedListener); - } - - // Remember it. - // - this.currentViewer = viewer; - - // Set the editors selection based on the current viewer's selection. - // - this.setSelection( - this.currentViewer == null ? StructuredSelection.EMPTY : this.currentViewer.getSelection()); - } - } - - /** - * This returns the viewer as required by the {@link IViewerProvider} interface. - * - * @generated - */ - @Override - public Viewer getViewer() { - return this.currentViewer; - } - - /** - * This creates a context menu for the viewer and adds a listener as well registering the menu - * for extension. - * - * @generated - */ - protected void createContextMenuFor(final StructuredViewer viewer) { - final MenuManager contextMenu = new MenuManager("#PopUp"); - contextMenu.add(new Separator("additions")); - contextMenu.setRemoveAllWhenShown(true); - contextMenu.addMenuListener(this); - final Menu menu = contextMenu.createContextMenu(viewer.getControl()); - viewer.getControl() - .setMenu(menu); - this.getSite() - .registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer)); - - final int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; - final Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance(), LocalSelectionTransfer.getTransfer(), - FileTransfer.getInstance() }; - viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer)); - viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(this.editingDomain, viewer)); - } - - /** - * This is the method called to load a resource into the editing domain's resource set based on - * the editor's input. - * - * @generated - */ - public void createModel() { - final URI resourceURI = EditUIUtil.getURI(this.getEditorInput(), this.editingDomain.getResourceSet() - .getURIConverter()); - Exception exception = null; - Resource resource = null; - try { - // Load the resource through the editing domain. - // - resource = this.editingDomain.getResourceSet() - .getResource(resourceURI, true); - } catch (final Exception e) { - exception = e; - resource = this.editingDomain.getResourceSet() - .getResource(resourceURI, false); - } - - final Diagnostic diagnostic = this.analyzeResourceProblems(resource, exception); - if (diagnostic.getSeverity() != Diagnostic.OK) { - this.resourceToDiagnosticMap.put(resource, this.analyzeResourceProblems(resource, exception)); - } - this.editingDomain.getResourceSet() - .eAdapters() - .add(this.problemIndicationAdapter); - } - - /** - * Returns a diagnostic describing the errors and warnings listed in the resource and the - * specified exception (if any). - * - * @generated - */ - public Diagnostic analyzeResourceProblems(final Resource resource, final Exception exception) { - final boolean hasErrors = !resource.getErrors() - .isEmpty(); - if (hasErrors || !resource.getWarnings() - .isEmpty()) { - final BasicDiagnostic basicDiagnostic = new BasicDiagnostic( - hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING, - "org.palladiosimulator.experimentautomation.editor", 0, - getString("_UI_CreateModelError_message", resource.getURI()), - new Object[] { exception == null ? (Object) resource : exception }); - basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); - return basicDiagnostic; - } else if (exception != null) { - return new BasicDiagnostic(Diagnostic.ERROR, "org.palladiosimulator.experimentautomation.editor", 0, - getString("_UI_CreateModelError_message", resource.getURI()), new Object[] { exception }); - } else { - return Diagnostic.OK_INSTANCE; - } - } - - /** - * This is the method used by the framework to install your own controls. - * - * @generated - */ - @Override - public void createPages() { - // Creates the model from the editor input - // - this.createModel(); - - // Only creates the other pages if there is something that can be edited - // - if (!this.getEditingDomain() - .getResourceSet() - .getResources() - .isEmpty()) { - // Create a page for the selection tree view. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), ExperimentsEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - final Tree tree = new Tree(composite, SWT.MULTI); - final TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - ExperimentsEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.selectionViewer = (TreeViewer) viewerPane.getViewer(); - this.selectionViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.selectionViewer.setUseHashlookup(true); - - this.selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - this.selectionViewer.setInput(this.editingDomain.getResourceSet()); - this.selectionViewer.setSelection(new StructuredSelection(this.editingDomain.getResourceSet() - .getResources() - .get(0)), true); - viewerPane.setTitle(this.editingDomain.getResourceSet()); - - new AdapterFactoryTreeEditor(this.selectionViewer.getTree(), this.adapterFactory); - - this.createContextMenuFor(this.selectionViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_SelectionPage_label")); - } - - // Create a page for the parent tree view. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), ExperimentsEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - final Tree tree = new Tree(composite, SWT.MULTI); - final TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - ExperimentsEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.parentViewer = (TreeViewer) viewerPane.getViewer(); - this.parentViewer.setAutoExpandLevel(30); - this.parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(this.adapterFactory)); - this.parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.parentViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_ParentPage_label")); - } - - // This is the page for the list viewer - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), ExperimentsEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new ListViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - ExperimentsEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.listViewer = (ListViewer) viewerPane.getViewer(); - this.listViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.listViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.listViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_ListPage_label")); - } - - // This is the page for the tree viewer - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), ExperimentsEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - ExperimentsEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.treeViewer = (TreeViewer) viewerPane.getViewer(); - this.treeViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - new AdapterFactoryTreeEditor(this.treeViewer.getTree(), this.adapterFactory); - - this.createContextMenuFor(this.treeViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TreePage_label")); - } - - // This is the page for the table viewer. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), ExperimentsEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TableViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - ExperimentsEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.tableViewer = (TableViewer) viewerPane.getViewer(); - - final Table table = this.tableViewer.getTable(); - final TableLayout layout = new TableLayout(); - table.setLayout(layout); - table.setHeaderVisible(true); - table.setLinesVisible(true); - - final TableColumn objectColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(3, 100, true)); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - - final TableColumn selfColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(2, 100, true)); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - - this.tableViewer.setColumnProperties(new String[] { "a", "b" }); - this.tableViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.tableViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TablePage_label")); - } - - // This is the page for the table tree viewer. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), ExperimentsEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - ExperimentsEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.treeViewerWithColumns = (TreeViewer) viewerPane.getViewer(); - - final Tree tree = this.treeViewerWithColumns.getTree(); - tree.setLayoutData(new FillLayout()); - tree.setHeaderVisible(true); - tree.setLinesVisible(true); - - final TreeColumn objectColumn = new TreeColumn(tree, SWT.NONE); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - objectColumn.setWidth(250); - - final TreeColumn selfColumn = new TreeColumn(tree, SWT.NONE); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - selfColumn.setWidth(200); - - this.treeViewerWithColumns.setColumnProperties(new String[] { "a", "b" }); - this.treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.treeViewerWithColumns); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label")); - } - - this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - if (!ExperimentsEditor.this.getContainer() - .isDisposed()) { - ExperimentsEditor.this.setActivePage(0); - } - } - }); - } - - // Ensures that this editor will only display the page's tab - // area if there are more than one page - // - this.getContainer() - .addControlListener(new ControlAdapter() { - boolean guard = false; - - @Override - public void controlResized(final ControlEvent event) { - if (!this.guard) { - this.guard = true; - ExperimentsEditor.this.hideTabs(); - this.guard = false; - } - } - }); - - this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - ExperimentsEditor.this.updateProblemIndication(); - } - }); - } - - /** - * If there is just one page in the multi-page editor part, this hides the single tab at the - * bottom. - * - * @generated - */ - protected void hideTabs() { - if (this.getPageCount() <= 1) { - this.setPageText(0, ""); - if (this.getContainer() instanceof CTabFolder) { - final Point point = this.getContainer() - .getSize(); - final Rectangle clientArea = this.getContainer() - .getClientArea(); - this.getContainer() - .setSize(point.x, 2 * point.y - clientArea.height - clientArea.y); - } - } - } - - /** - * If there is more than one page in the multi-page editor part, this shows the tabs at the - * bottom. - * - * @generated - */ - protected void showTabs() { - if (this.getPageCount() > 1) { - this.setPageText(0, getString("_UI_SelectionPage_label")); - if (this.getContainer() instanceof CTabFolder) { - final Point point = this.getContainer() - .getSize(); - final Rectangle clientArea = this.getContainer() - .getClientArea(); - this.getContainer() - .setSize(point.x, clientArea.height + clientArea.y); - } - } - } - - /** - * This is used to track the active viewer. - * - * @generated - */ - @Override - protected void pageChange(final int pageIndex) { - super.pageChange(pageIndex); - - if (this.contentOutlinePage != null) { - this.handleContentOutlineSelection(this.contentOutlinePage.getSelection()); - } - } - - /** - * This is how the framework determines which interfaces we implement. - * - * - * @generated - */ - @SuppressWarnings("rawtypes") - @Override - public T getAdapter(final Class key) { - if (key.equals(IContentOutlinePage.class)) { - return this.showOutlineView() ? key.cast(this.getContentOutlinePage()) : null; - } else if (key.equals(IPropertySheetPage.class)) { - return key.cast(this.getPropertySheetPage()); - } else if (key.equals(IGotoMarker.class)) { - return key.cast(this); - } else { - return super.getAdapter(key); - } - } - - /** - * This accesses a cached version of the content outliner. - * - * @generated - */ - public IContentOutlinePage getContentOutlinePage() { - if (this.contentOutlinePage == null) { - // The content outline is just a tree. - // - class MyContentOutlinePage extends ContentOutlinePage { - @Override - public void createControl(final Composite parent) { - super.createControl(parent); - ExperimentsEditor.this.contentOutlineViewer = this.getTreeViewer(); - ExperimentsEditor.this.contentOutlineViewer.addSelectionChangedListener(this); - - // Set up the tree viewer. - // - ExperimentsEditor.this.contentOutlineViewer.setUseHashlookup(true); - ExperimentsEditor.this.contentOutlineViewer - .setContentProvider(new AdapterFactoryContentProvider(ExperimentsEditor.this.adapterFactory)); - ExperimentsEditor.this.contentOutlineViewer - .setLabelProvider(new AdapterFactoryLabelProvider(ExperimentsEditor.this.adapterFactory)); - ExperimentsEditor.this.contentOutlineViewer - .setInput(ExperimentsEditor.this.editingDomain.getResourceSet()); - - // Make sure our popups work. - // - ExperimentsEditor.this.createContextMenuFor(ExperimentsEditor.this.contentOutlineViewer); - - if (!ExperimentsEditor.this.editingDomain.getResourceSet() - .getResources() - .isEmpty()) { - // Select the root object in the view. - // - ExperimentsEditor.this.contentOutlineViewer - .setSelection(new StructuredSelection(ExperimentsEditor.this.editingDomain.getResourceSet() - .getResources() - .get(0)), true); - } - } - - @Override - public void makeContributions(final IMenuManager menuManager, final IToolBarManager toolBarManager, - final IStatusLineManager statusLineManager) { - super.makeContributions(menuManager, toolBarManager, statusLineManager); - ExperimentsEditor.this.contentOutlineStatusLineManager = statusLineManager; - } - - @Override - public void setActionBars(final IActionBars actionBars) { - super.setActionBars(actionBars); - ExperimentsEditor.this.getActionBarContributor() - .shareGlobalActions(this, actionBars); - } - } - - this.contentOutlinePage = new MyContentOutlinePage(); - - // Listen to selection so that we can handle it is a special way. - // - this.contentOutlinePage.addSelectionChangedListener(new ISelectionChangedListener() { - // This ensures that we handle selections correctly. - // - @Override - public void selectionChanged(final SelectionChangedEvent event) { - ExperimentsEditor.this.handleContentOutlineSelection(event.getSelection()); - } - }); - } - - return this.contentOutlinePage; - } - - /** - * This accesses a cached version of the property sheet. - * - * @generated - */ - public IPropertySheetPage getPropertySheetPage() { - final PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage(this.editingDomain) { - @Override - public void setSelectionToViewer(final List selection) { - ExperimentsEditor.this.setSelectionToViewer(selection); - ExperimentsEditor.this.setFocus(); - } - - @Override - public void setActionBars(final IActionBars actionBars) { - super.setActionBars(actionBars); - ExperimentsEditor.this.getActionBarContributor() - .shareGlobalActions(this, actionBars); - } - }; - propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.propertySheetPages.add(propertySheetPage); - - return propertySheetPage; - } - - /** - * This deals with how we want selection in the outliner to affect the other views. - * - * @generated - */ - public void handleContentOutlineSelection(final ISelection selection) { - if (this.currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { - final Iterator selectedElements = ((IStructuredSelection) selection).iterator(); - if (selectedElements.hasNext()) { - // Get the first selected element. - // - final Object selectedElement = selectedElements.next(); - - // If it's the selection viewer, then we want it to select the same selection as - // this selection. - // - if (this.currentViewerPane.getViewer() == this.selectionViewer) { - final ArrayList selectionList = new ArrayList(); - selectionList.add(selectedElement); - while (selectedElements.hasNext()) { - selectionList.add(selectedElements.next()); - } - - // Set the selection to the widget. - // - this.selectionViewer.setSelection(new StructuredSelection(selectionList)); - } else { - // Set the input to the widget. - // - if (this.currentViewerPane.getViewer() - .getInput() != selectedElement) { - this.currentViewerPane.getViewer() - .setInput(selectedElement); - this.currentViewerPane.setTitle(selectedElement); - } - } - } - } - } - - /** - * This is for implementing {@link IEditorPart} and simply tests the command stack. - * - * @generated - */ - @Override - public boolean isDirty() { - return ((BasicCommandStack) this.editingDomain.getCommandStack()).isSaveNeeded(); - } - - /** - * This is for implementing {@link IEditorPart} and simply saves the model file. - * - * @generated - */ - @Override - public void doSave(final IProgressMonitor progressMonitor) { - // Save only resources that have actually changed. - // - final Map saveOptions = new HashMap(); - saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); - saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED); - - // Do the work within an operation because this is a long running activity that modifies the - // workbench. - // - final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { - // This is the method that gets invoked when the operation runs. - // - @Override - public void execute(final IProgressMonitor monitor) { - // Save the resources to the file system. - // - boolean first = true; - final List resources = ExperimentsEditor.this.editingDomain.getResourceSet() - .getResources(); - for (final Resource resource : resources) { - if ((first || !resource.getContents() - .isEmpty() || ExperimentsEditor.this.isPersisted(resource)) - && !ExperimentsEditor.this.editingDomain.isReadOnly(resource)) { - try { - final long timeStamp = resource.getTimeStamp(); - resource.save(saveOptions); - if (resource.getTimeStamp() != timeStamp) { - ExperimentsEditor.this.savedResources.add(resource); - } - } catch (final Exception exception) { - ExperimentsEditor.this.resourceToDiagnosticMap.put(resource, - ExperimentsEditor.this.analyzeResourceProblems(resource, exception)); - } - first = false; - } - } - } - }; - - this.updateProblemIndication = false; - try { - // This runs the options, and shows progress. - // - new ProgressMonitorDialog(this.getSite() - .getShell()).run(true, false, operation); - - // Refresh the necessary state. - // - ((BasicCommandStack) this.editingDomain.getCommandStack()).saveIsDone(); - this.firePropertyChange(IEditorPart.PROP_DIRTY); - } catch (final Exception exception) { - // Something went wrong that shouldn't. - // - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - this.updateProblemIndication = true; - this.updateProblemIndication(); - } - - /** - * This returns whether something has been persisted to the URI of the specified resource. The - * implementation uses the URI converter from the editor's resource set to try to open an input - * stream. - * - * @generated - */ - protected boolean isPersisted(final Resource resource) { - boolean result = false; - try { - final InputStream stream = this.editingDomain.getResourceSet() - .getURIConverter() - .createInputStream(resource.getURI()); - if (stream != null) { - result = true; - stream.close(); - } - } catch (final IOException e) { - // Ignore - } - return result; - } - - /** - * This always returns true because it is not currently supported. - * - * @generated - */ - @Override - public boolean isSaveAsAllowed() { - return true; - } - - /** - * This also changes the editor's input. - * - * @generated - */ - @Override - public void doSaveAs() { - final SaveAsDialog saveAsDialog = new SaveAsDialog(this.getSite() - .getShell()); - saveAsDialog.open(); - final IPath path = saveAsDialog.getResult(); - if (path != null) { - final IFile file = ResourcesPlugin.getWorkspace() - .getRoot() - .getFile(path); - if (file != null) { - this.doSaveAs(URI.createPlatformResourceURI(file.getFullPath() - .toString(), true), new FileEditorInput(file)); - } - } - } - - /** - * - * - * @generated - */ - protected void doSaveAs(final URI uri, final IEditorInput editorInput) { - (this.editingDomain.getResourceSet() - .getResources() - .get(0)).setURI(uri); - this.setInputWithNotify(editorInput); - this.setPartName(editorInput.getName()); - final IProgressMonitor progressMonitor = this.getActionBars() - .getStatusLineManager() != null ? this.getActionBars() - .getStatusLineManager() - .getProgressMonitor() : new NullProgressMonitor(); - this.doSave(progressMonitor); - } - - /** - * - * - * @generated - */ - @Override - public void gotoMarker(final IMarker marker) { - final List targetObjects = this.markerHelper.getTargetObjects(this.editingDomain, marker); - if (!targetObjects.isEmpty()) { - this.setSelectionToViewer(targetObjects); - } - } - - /** - * This is called during startup. - * - * @generated - */ - @Override - public void init(final IEditorSite site, final IEditorInput editorInput) { - this.setSite(site); - this.setInputWithNotify(editorInput); - this.setPartName(editorInput.getName()); - site.setSelectionProvider(this); - site.getPage() - .addPartListener(this.partListener); - ResourcesPlugin.getWorkspace() - .addResourceChangeListener(this.resourceChangeListener, IResourceChangeEvent.POST_CHANGE); - } - - /** - * - * - * @generated - */ - @Override - public void setFocus() { - if (this.currentViewerPane != null) { - this.currentViewerPane.setFocus(); - } else { - this.getControl(this.getActivePage()) - .setFocus(); - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * @generated - */ - @Override - public void addSelectionChangedListener(final ISelectionChangedListener listener) { - this.selectionChangedListeners.add(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * @generated - */ - @Override - public void removeSelectionChangedListener(final ISelectionChangedListener listener) { - this.selectionChangedListeners.remove(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's - * overall selection. - * - * @generated - */ - @Override - public ISelection getSelection() { - return this.editorSelection; - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's - * overall selection. Calling this result will notify the listeners. - * - * - * @generated - */ - @Override - public void setSelection(final ISelection selection) { - this.editorSelection = selection; - - for (final ISelectionChangedListener listener : this.selectionChangedListeners) { - listener.selectionChanged(new SelectionChangedEvent(this, selection)); - } - this.setStatusLineManager(selection); - } - - /** - * - * - * @generated - */ - public void setStatusLineManager(final ISelection selection) { - final IStatusLineManager statusLineManager = this.currentViewer != null - && this.currentViewer == this.contentOutlineViewer ? this.contentOutlineStatusLineManager - : this.getActionBars() - .getStatusLineManager(); - - if (statusLineManager != null) { - if (selection instanceof IStructuredSelection) { - final Collection collection = ((IStructuredSelection) selection).toList(); - switch (collection.size()) { - case 0: { - statusLineManager.setMessage(getString("_UI_NoObjectSelected")); - break; - } - case 1: { - final String text = new AdapterFactoryItemDelegator(this.adapterFactory) - .getText(collection.iterator() - .next()); - statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text)); - break; - } - default: { - statusLineManager - .setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size()))); - break; - } - } - } else { - statusLineManager.setMessage(""); - } - } - } - - /** - * This looks up a string in the plugin's plugin.properties file. - * - * @generated - */ - private static String getString(final String key) { - return ExperimentAutomationEditorPlugin.INSTANCE.getString(key); - } - - /** - * This looks up a string in plugin.properties, making a substitution. - * - * - * @generated - */ - private static String getString(final String key, final Object s1) { - return ExperimentAutomationEditorPlugin.INSTANCE.getString(key, new Object[] { s1 }); - } - - /** - * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus - * with contributions from the Edit menu. - * - * @generated - */ - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - ((IMenuListener) this.getEditorSite() - .getActionBarContributor()).menuAboutToShow(menuManager); - } - - /** - * - * - * @generated - */ - public EditingDomainActionBarContributor getActionBarContributor() { - return (EditingDomainActionBarContributor) this.getEditorSite() - .getActionBarContributor(); - } - - /** - * - * - * @generated - */ - public IActionBars getActionBars() { - return this.getActionBarContributor() - .getActionBars(); - } - - /** - * - * - * @generated - */ - public AdapterFactory getAdapterFactory() { - return this.adapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public void dispose() { - this.updateProblemIndication = false; - - ResourcesPlugin.getWorkspace() - .removeResourceChangeListener(this.resourceChangeListener); - - this.getSite() - .getPage() - .removePartListener(this.partListener); - - this.adapterFactory.dispose(); - - if (this.getActionBarContributor() - .getActiveEditor() == this) { - this.getActionBarContributor() - .setActiveEditor(null); - } - - for (final PropertySheetPage propertySheetPage : this.propertySheetPages) { - propertySheetPage.dispose(); - } - - if (this.contentOutlinePage != null) { - this.contentOutlinePage.dispose(); - } - - super.dispose(); - } - - /** - * Returns whether the outline view should be presented to the user. - * - * - * @generated - */ - protected boolean showOutlineView() { - return true; - } -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsModelWizard.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsModelWizard.java deleted file mode 100644 index 1e5fbe87..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/experiments/presentation/ExperimentsModelWizard.java +++ /dev/null @@ -1,623 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.presentation; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.MissingResourceException; -import java.util.StringTokenizer; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.emf.common.CommonPlugin; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.wizard.Wizard; -import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Combo; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.ui.INewWizard; -import org.eclipse.ui.IWorkbench; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.WizardNewFileCreationPage; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.ISetSelectionTarget; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsFactory; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.variation.presentation.ExperimentAutomationEditorPlugin; -import org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin; - -/** - * This is a simple wizard for creating a new model file. - * - * @generated - */ -public class ExperimentsModelWizard extends Wizard implements INewWizard { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The supported extensions for created files. - * - * @generated - */ - public static final List FILE_EXTENSIONS = Collections.unmodifiableList( - Arrays.asList(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ExperimentsEditorFilenameExtensions") - .split("\\s*,\\s*"))); - - /** - * A formatted list of supported file extensions, suitable for display. - * - * - * @generated - */ - public static final String FORMATTED_FILE_EXTENSIONS = ExperimentAutomationEditorPlugin.INSTANCE - .getString("_UI_ExperimentsEditorFilenameExtensions") - .replaceAll("\\s*,\\s*", ", "); - - /** - * This caches an instance of the model package. - * - * @generated - */ - protected ExperimentsPackage experimentsPackage = ExperimentsPackage.eINSTANCE; - - /** - * This caches an instance of the model factory. - * - * @generated - */ - protected ExperimentsFactory experimentsFactory = this.experimentsPackage.getExperimentsFactory(); - - /** - * This is the file creation page. - * - * @generated - */ - protected ExperimentsModelWizardNewFileCreationPage newFileCreationPage; - - /** - * This is the initial object creation page. - * - * @generated - */ - protected ExperimentsModelWizardInitialObjectCreationPage initialObjectCreationPage; - - /** - * Remember the selection during initialization for populating the default container. - * - * @generated - */ - protected IStructuredSelection selection; - - /** - * Remember the workbench during initialization. - * - * @generated - */ - protected IWorkbench workbench; - - /** - * Caches the names of the types that can be created as the root object. - * - * - * @generated - */ - protected List initialObjectNames; - - /** - * This just records the information. - * - * @generated - */ - @Override - public void init(final IWorkbench workbench, final IStructuredSelection selection) { - this.workbench = workbench; - this.selection = selection; - this.setWindowTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); - this.setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE - .getImageDescriptor(ExperimentAutomationEditorPlugin.INSTANCE.getImage("full/wizban/NewExperiments"))); - } - - /** - * Returns the names of the types that can be created as the root object. - * - * @generated - */ - protected Collection getInitialObjectNames() { - if (this.initialObjectNames == null) { - this.initialObjectNames = new ArrayList(); - for (final EClassifier eClassifier : this.experimentsPackage.getEClassifiers()) { - if (eClassifier instanceof EClass) { - final EClass eClass = (EClass) eClassifier; - if (!eClass.isAbstract()) { - this.initialObjectNames.add(eClass.getName()); - } - } - } - Collections.sort(this.initialObjectNames, CommonPlugin.INSTANCE.getComparator()); - } - return this.initialObjectNames; - } - - /** - * Create a new model. - * - * @generated - */ - protected EObject createInitialModel() { - final EClass eClass = (EClass) this.experimentsPackage - .getEClassifier(this.initialObjectCreationPage.getInitialObjectName()); - final EObject rootObject = this.experimentsFactory.create(eClass); - return rootObject; - } - - /** - * Do the work after everything is specified. - * - * @generated - */ - @Override - public boolean performFinish() { - try { - // Remember the file. - // - final IFile modelFile = this.getModelFile(); - - // Do the work within an operation. - // - final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { - @Override - protected void execute(final IProgressMonitor progressMonitor) { - try { - // Create a resource set - // - final ResourceSet resourceSet = new ResourceSetImpl(); - - // Get the URI of the model file. - // - final URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath() - .toString(), true); - - // Create a resource for this file. - // - final Resource resource = resourceSet.createResource(fileURI); - - // Add the initial model object to the contents. - // - final EObject rootObject = ExperimentsModelWizard.this.createInitialModel(); - if (rootObject != null) { - resource.getContents() - .add(rootObject); - } - - // Save the contents of the resource to the file system. - // - final Map options = new HashMap(); - options.put(XMLResource.OPTION_ENCODING, - ExperimentsModelWizard.this.initialObjectCreationPage.getEncoding()); - resource.save(options); - } catch (final Exception exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } finally { - progressMonitor.done(); - } - } - }; - - this.getContainer() - .run(false, false, operation); - - // Select the new file resource in the current view. - // - final IWorkbenchWindow workbenchWindow = this.workbench.getActiveWorkbenchWindow(); - final IWorkbenchPage page = workbenchWindow.getActivePage(); - final IWorkbenchPart activePart = page.getActivePart(); - if (activePart instanceof ISetSelectionTarget) { - final ISelection targetSelection = new StructuredSelection(modelFile); - this.getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - ((ISetSelectionTarget) activePart).selectReveal(targetSelection); - } - }); - } - - // Open an editor on the new file. - // - try { - page.openEditor(new FileEditorInput(modelFile), this.workbench.getEditorRegistry() - .getDefaultEditor(modelFile.getFullPath() - .toString()) - .getId()); - } catch (final PartInitException exception) { - MessageDialog.openError(workbenchWindow.getShell(), - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), - exception.getMessage()); - return false; - } - - return true; - } catch (final Exception exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - return false; - } - } - - /** - * This is the one page of the wizard. - * - * @generated - */ - public class ExperimentsModelWizardNewFileCreationPage extends WizardNewFileCreationPage { - - /** - * Pass in the selection. - * - * @generated - */ - public ExperimentsModelWizardNewFileCreationPage(final String pageId, final IStructuredSelection selection) { - super(pageId, selection); - } - - /** - * The framework calls this to see if the file is correct. - * - * @generated - */ - @Override - protected boolean validatePage() { - if (super.validatePage()) { - final String extension = new Path(this.getFileName()).getFileExtension(); - if (extension == null || !FILE_EXTENSIONS.contains(extension)) { - final String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" - : "_WARN_FilenameExtension"; - this.setErrorMessage(ExperimentAutomationEditorPlugin.INSTANCE.getString(key, - new Object[] { FORMATTED_FILE_EXTENSIONS })); - return false; - } - return true; - } - return false; - } - - /** - * - * - * @generated - */ - public IFile getModelFile() { - return ResourcesPlugin.getWorkspace() - .getRoot() - .getFile(this.getContainerFullPath() - .append(this.getFileName())); - } - } - - /** - * This is the page where the type of object to create is selected. - * - * @generated - */ - public class ExperimentsModelWizardInitialObjectCreationPage extends WizardPage { - - /** - * - * - * @generated - */ - protected Combo initialObjectField; - - /** - * @generated - */ - protected List encodings; - - /** - * - * - * @generated - */ - protected Combo encodingField; - - /** - * Pass in the selection. - * - * @generated - */ - public ExperimentsModelWizardInitialObjectCreationPage(final String pageId) { - super(pageId); - } - - /** - * - * - * @generated - */ - @Override - public void createControl(final Composite parent) { - final Composite composite = new Composite(parent, SWT.NONE); - { - final GridLayout layout = new GridLayout(); - layout.numColumns = 1; - layout.verticalSpacing = 12; - composite.setLayout(layout); - - final GridData data = new GridData(); - data.verticalAlignment = GridData.FILL; - data.grabExcessVerticalSpace = true; - data.horizontalAlignment = GridData.FILL; - composite.setLayoutData(data); - } - - final Label containerLabel = new Label(composite, SWT.LEFT); - { - containerLabel.setText(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ModelObject")); - - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - containerLabel.setLayoutData(data); - } - - this.initialObjectField = new Combo(composite, SWT.BORDER); - { - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - this.initialObjectField.setLayoutData(data); - } - - for (final String objectName : ExperimentsModelWizard.this.getInitialObjectNames()) { - this.initialObjectField.add(this.getLabel(objectName)); - } - - if (this.initialObjectField.getItemCount() == 1) { - this.initialObjectField.select(0); - } - this.initialObjectField.addModifyListener(this.validator); - - final Label encodingLabel = new Label(composite, SWT.LEFT); - { - encodingLabel.setText(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); - - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - encodingLabel.setLayoutData(data); - } - this.encodingField = new Combo(composite, SWT.BORDER); - { - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - this.encodingField.setLayoutData(data); - } - - for (final String encoding : this.getEncodings()) { - this.encodingField.add(encoding); - } - - this.encodingField.select(0); - this.encodingField.addModifyListener(this.validator); - - this.setPageComplete(this.validatePage()); - this.setControl(composite); - } - - /** - * - * - * @generated - */ - protected ModifyListener validator = new ModifyListener() { - @Override - public void modifyText(final ModifyEvent e) { - ExperimentsModelWizardInitialObjectCreationPage.this - .setPageComplete(ExperimentsModelWizardInitialObjectCreationPage.this.validatePage()); - } - }; - - /** - * - * - * @generated - */ - protected boolean validatePage() { - return this.getInitialObjectName() != null && this.getEncodings() - .contains(this.encodingField.getText()); - } - - /** - * - * - * @generated - */ - @Override - public void setVisible(final boolean visible) { - super.setVisible(visible); - if (visible) { - if (this.initialObjectField.getItemCount() == 1) { - this.initialObjectField.clearSelection(); - this.encodingField.setFocus(); - } else { - this.encodingField.clearSelection(); - this.initialObjectField.setFocus(); - } - } - } - - /** - * - * - * @generated - */ - public String getInitialObjectName() { - final String label = this.initialObjectField.getText(); - - for (final String name : ExperimentsModelWizard.this.getInitialObjectNames()) { - if (this.getLabel(name) - .equals(label)) { - return name; - } - } - return null; - } - - /** - * - * - * @generated - */ - public String getEncoding() { - return this.encodingField.getText(); - } - - /** - * Returns the label for the specified type name. - * - * @generated - */ - protected String getLabel(final String typeName) { - try { - return ExperimentAutomationEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); - } catch (final MissingResourceException mre) { - ExperimentAutomationEditorPlugin.INSTANCE.log(mre); - } - return typeName; - } - - /** - * - * - * @generated - */ - protected Collection getEncodings() { - if (this.encodings == null) { - this.encodings = new ArrayList(); - for (final StringTokenizer stringTokenizer = new StringTokenizer( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer - .hasMoreTokens();) { - this.encodings.add(stringTokenizer.nextToken()); - } - } - return this.encodings; - } - } - - /** - * The framework calls this to create the contents of the wizard. - * - * @generated - */ - @Override - public void addPages() { - // Create a page, set the title, and the initial model file name. - // - this.newFileCreationPage = new ExperimentsModelWizardNewFileCreationPage("Whatever", this.selection); - this.newFileCreationPage - .setTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ExperimentsModelWizard_label")); - this.newFileCreationPage.setDescription( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ExperimentsModelWizard_description")); - this.newFileCreationPage - .setFileName(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ExperimentsEditorFilenameDefaultBase") - + "." + FILE_EXTENSIONS.get(0)); - this.addPage(this.newFileCreationPage); - - // Try and get the resource selection to determine a current directory for the file dialog. - // - if (this.selection != null && !this.selection.isEmpty()) { - // Get the resource... - // - final Object selectedElement = this.selection.iterator() - .next(); - if (selectedElement instanceof IResource) { - // Get the resource parent, if its a file. - // - IResource selectedResource = (IResource) selectedElement; - if (selectedResource.getType() == IResource.FILE) { - selectedResource = selectedResource.getParent(); - } - - // This gives us a directory... - // - if (selectedResource instanceof IFolder || selectedResource instanceof IProject) { - // Set this for the container. - // - this.newFileCreationPage.setContainerFullPath(selectedResource.getFullPath()); - - // Make up a unique new name here. - // - final String defaultModelBaseFilename = ExperimentAutomationEditorPlugin.INSTANCE - .getString("_UI_ExperimentsEditorFilenameDefaultBase"); - final String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0); - String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension; - for (int i = 1; ((IContainer) selectedResource).findMember(modelFilename) != null; ++i) { - modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension; - } - this.newFileCreationPage.setFileName(modelFilename); - } - } - } - this.initialObjectCreationPage = new ExperimentsModelWizardInitialObjectCreationPage("Whatever2"); - this.initialObjectCreationPage - .setTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ExperimentsModelWizard_label")); - this.initialObjectCreationPage.setDescription( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); - this.addPage(this.initialObjectCreationPage); - } - - /** - * Get the file from the page. - * - * @generated - */ - public IFile getModelFile() { - return this.newFileCreationPage.getModelFile(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/ExperimentAutomationEditorPlugin.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/ExperimentAutomationEditorPlugin.java deleted file mode 100644 index 56e41c99..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/ExperimentAutomationEditorPlugin.java +++ /dev/null @@ -1,109 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.presentation; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.ui.EclipseUIPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.provider.EcoreEditPlugin; -import org.palladiosimulator.edp2.models.ExperimentData.provider.EDP2EditPlugin; -import org.palladiosimulator.metricspec.provider.MetricSpecEditPlugin; -import org.palladiosimulator.monitorrepository.provider.MonitorrepositoryEditPlugin; -import org.palladiosimulator.pcm.core.provider.PalladioComponentModelEditPlugin; -import org.palladiosimulator.servicelevelobjective.provider.ServiceLevelObjectiveEditPlugin; -import org.scaledl.usageevolution.provider.UsageevolutionEditPlugin; - -import de.uka.ipd.sdq.identifier.provider.IdentifierEditPlugin; -import de.uka.ipd.sdq.probfunction.provider.ProbabilityFunctionEditPlugin; -import de.uka.ipd.sdq.stoex.provider.StoexEditPlugin; -import de.uka.ipd.sdq.units.provider.UnitsEditPlugin; -import tools.descartes.dlim.provider.DlimEditPlugin; - -/** - * This is the central singleton for the ExperimentAutomation editor plugin. - * - * - * @generated - */ -public final class ExperimentAutomationEditorPlugin extends EMFPlugin { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Keep track of the singleton. - * - * @generated - */ - public static final ExperimentAutomationEditorPlugin INSTANCE = new ExperimentAutomationEditorPlugin(); - - /** - * Keep track of the singleton. - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * @generated - */ - public ExperimentAutomationEditorPlugin() { - super(new ResourceLocator[] { DlimEditPlugin.INSTANCE, EDP2EditPlugin.INSTANCE, IdentifierEditPlugin.INSTANCE, - MetricSpecEditPlugin.INSTANCE, MonitorrepositoryEditPlugin.INSTANCE, - PalladioComponentModelEditPlugin.INSTANCE, ProbabilityFunctionEditPlugin.INSTANCE, - ServiceLevelObjectiveEditPlugin.INSTANCE, StoexEditPlugin.INSTANCE, UnitsEditPlugin.INSTANCE, - UsageevolutionEditPlugin.INSTANCE, EcoreEditPlugin.INSTANCE, }); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * @generated - */ - public static class Implementation extends EclipseUIPlugin { - - /** - * Creates an instance. - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationActionBarContributor.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationActionBarContributor.java deleted file mode 100644 index 9d264ce4..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationActionBarContributor.java +++ /dev/null @@ -1,435 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.presentation; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.ui.action.ControlAction; -import org.eclipse.emf.edit.ui.action.CreateChildAction; -import org.eclipse.emf.edit.ui.action.CreateSiblingAction; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.action.LoadResourceAction; -import org.eclipse.emf.edit.ui.action.ValidateAction; -import org.eclipse.jface.action.Action; -import org.eclipse.jface.action.ActionContributionItem; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.action.IContributionItem; -import org.eclipse.jface.action.IContributionManager; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.action.SubContributionItem; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.PartInitException; - -/** - * This is the action bar contributor for the Variation model editor. - * - * @generated - */ -public class VariationActionBarContributor extends EditingDomainActionBarContributor - implements ISelectionChangedListener { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the active editor. - * - * @generated - */ - protected IEditorPart activeEditorPart; - - /** - * This keeps track of the current selection provider. - * - * @generated - */ - protected ISelectionProvider selectionProvider; - - /** - * This action opens the Properties view. - * - * @generated - */ - protected IAction showPropertiesViewAction = new Action( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ShowPropertiesView_menu_item")) { - @Override - public void run() { - try { - VariationActionBarContributor.this.getPage() - .showView("org.eclipse.ui.views.PropertySheet"); - } catch (final PartInitException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * This action refreshes the viewer of the current editor if the editor implements - * {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}. - * - * @generated - */ - protected IAction refreshViewerAction = new Action( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_RefreshViewer_menu_item")) { - @Override - public boolean isEnabled() { - return VariationActionBarContributor.this.activeEditorPart instanceof IViewerProvider; - } - - @Override - public void run() { - if (VariationActionBarContributor.this.activeEditorPart instanceof IViewerProvider) { - final Viewer viewer = ((IViewerProvider) VariationActionBarContributor.this.activeEditorPart) - .getViewer(); - if (viewer != null) { - viewer.refresh(); - } - } - } - }; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding - * to each descriptor generated for the current selection by the item provider. - * - * @generated - */ - protected Collection createChildActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateChild - * actions. - * - * @generated - */ - protected IMenuManager createChildMenuManager; - - /** - * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} - * corresponding to each descriptor generated for the current selection by the item provider. - * - * - * @generated - */ - protected Collection createSiblingActions; - - /** - * This is the menu manager into which menu contribution items should be added for CreateSibling - * actions. - * - * @generated - */ - protected IMenuManager createSiblingMenuManager; - - /** - * This creates an instance of the contributor. - * - * @generated - */ - public VariationActionBarContributor() { - super(ADDITIONS_LAST_STYLE); - this.loadResourceAction = new LoadResourceAction(); - this.validateAction = new ValidateAction(); - this.controlAction = new ControlAction(); - } - - /** - * This adds Separators for editor additions to the tool bar. - * - * @generated - */ - @Override - public void contributeToToolBar(final IToolBarManager toolBarManager) { - super.contributeToToolBar(toolBarManager); - toolBarManager.add(new Separator("variation-settings")); - toolBarManager.add(new Separator("variation-additions")); - } - - /** - * This adds to the menu bar a menu and some separators for editor additions, as well as the - * sub-menus for object creation items. - * - * @generated - */ - @Override - public void contributeToMenu(final IMenuManager menuManager) { - super.contributeToMenu(menuManager); - - final IMenuManager submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_VariationEditor_menu"), - "org.palladiosimulator.experimentautomation.variationMenuID"); - menuManager.insertAfter("additions", submenuManager); - submenuManager.add(new Separator("settings")); - submenuManager.add(new Separator("actions")); - submenuManager.add(new Separator("additions")); - submenuManager.add(new Separator("additions-end")); - - // Prepare for CreateChild item addition or removal. - // - this.createChildMenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - submenuManager.insertBefore("additions", this.createChildMenuManager); - - // Prepare for CreateSibling item addition or removal. - // - this.createSiblingMenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - submenuManager.insertBefore("additions", this.createSiblingMenuManager); - - // Force an update because Eclipse hides empty menus now. - // - submenuManager.addMenuListener(new IMenuListener() { - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - menuManager.updateAll(true); - } - }); - - this.addGlobalActions(submenuManager); - } - - /** - * When the active editor changes, this remembers the change and registers with it as a - * selection provider. - * - * @generated - */ - @Override - public void setActiveEditor(final IEditorPart part) { - super.setActiveEditor(part); - this.activeEditorPart = part; - - // Switch to the new selection provider. - // - if (this.selectionProvider != null) { - this.selectionProvider.removeSelectionChangedListener(this); - } - if (part == null) { - this.selectionProvider = null; - } else { - this.selectionProvider = part.getSite() - .getSelectionProvider(); - this.selectionProvider.addSelectionChangedListener(this); - - // Fake a selection changed event to update the menus. - // - if (this.selectionProvider.getSelection() != null) { - this.selectionChanged( - new SelectionChangedEvent(this.selectionProvider, this.selectionProvider.getSelection())); - } - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, handling - * {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and - * siblings that can be added to the selected object and updating the menus accordingly. - * - * @generated - */ - @Override - public void selectionChanged(final SelectionChangedEvent event) { - // Remove any menu items for old selection. - // - if (this.createChildMenuManager != null) { - this.depopulateManager(this.createChildMenuManager, this.createChildActions); - } - if (this.createSiblingMenuManager != null) { - this.depopulateManager(this.createSiblingMenuManager, this.createSiblingActions); - } - - // Query the new selection for appropriate new child/sibling descriptors - // - Collection newChildDescriptors = null; - Collection newSiblingDescriptors = null; - - final ISelection selection = event.getSelection(); - if (selection instanceof IStructuredSelection && ((IStructuredSelection) selection).size() == 1) { - final Object object = ((IStructuredSelection) selection).getFirstElement(); - - final EditingDomain domain = ((IEditingDomainProvider) this.activeEditorPart).getEditingDomain(); - - newChildDescriptors = domain.getNewChildDescriptors(object, null); - newSiblingDescriptors = domain.getNewChildDescriptors(null, object); - } - - // Generate actions for selection; populate and redraw the menus. - // - this.createChildActions = this.generateCreateChildActions(newChildDescriptors, selection); - this.createSiblingActions = this.generateCreateSiblingActions(newSiblingDescriptors, selection); - - if (this.createChildMenuManager != null) { - this.populateManager(this.createChildMenuManager, this.createChildActions, null); - this.createChildMenuManager.update(true); - } - if (this.createSiblingMenuManager != null) { - this.populateManager(this.createSiblingMenuManager, this.createSiblingActions, null); - this.createSiblingMenuManager.update(true); - } - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in - * descriptors, and returns the collection of these actions. - * - * @generated - */ - protected Collection generateCreateChildActions(final Collection descriptors, - final ISelection selection) { - final Collection actions = new ArrayList(); - if (descriptors != null) { - for (final Object descriptor : descriptors) { - actions.add(new CreateChildAction(this.activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object - * in descriptors, and returns the collection of these actions. - * - * @generated - */ - protected Collection generateCreateSiblingActions(final Collection descriptors, - final ISelection selection) { - final Collection actions = new ArrayList(); - if (descriptors != null) { - for (final Object descriptor : descriptors) { - actions.add(new CreateSiblingAction(this.activeEditorPart, selection, descriptor)); - } - } - return actions; - } - - /** - * This populates the specified manager with - * {@link org.eclipse.jface.action.ActionContributionItem}s based on the - * {@link org.eclipse.jface.action.IAction}s contained in the actions collection, - * by inserting them before the specified contribution item contributionID. If - * contributionID is null, they are simply added. - * - * @generated - */ - protected void populateManager(final IContributionManager manager, final Collection actions, - final String contributionID) { - if (actions != null) { - for (final IAction action : actions) { - if (contributionID != null) { - manager.insertBefore(contributionID, action); - } else { - manager.add(action); - } - } - } - } - - /** - * This removes from the specified manager all - * {@link org.eclipse.jface.action.ActionContributionItem}s based on the - * {@link org.eclipse.jface.action.IAction}s contained in the actions collection. - * - * - * @generated - */ - protected void depopulateManager(final IContributionManager manager, final Collection actions) { - if (actions != null) { - final IContributionItem[] items = manager.getItems(); - for (final IContributionItem item : items) { - // Look into SubContributionItems - // - IContributionItem contributionItem = item; - while (contributionItem instanceof SubContributionItem) { - contributionItem = ((SubContributionItem) contributionItem).getInnerItem(); - } - - // Delete the ActionContributionItems with matching action. - // - if (contributionItem instanceof ActionContributionItem) { - final IAction action = ((ActionContributionItem) contributionItem).getAction(); - if (actions.contains(action)) { - manager.remove(contributionItem); - } - } - } - } - } - - /** - * This populates the pop-up menu before it appears. - * - * @generated - */ - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - super.menuAboutToShow(menuManager); - MenuManager submenuManager = null; - - submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); - this.populateManager(submenuManager, this.createChildActions, null); - menuManager.insertBefore("edit", submenuManager); - - submenuManager = new MenuManager( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); - this.populateManager(submenuManager, this.createSiblingActions, null); - menuManager.insertBefore("edit", submenuManager); - } - - /** - * This inserts global actions before the "additions-end" separator. - * - * - * @generated - */ - @Override - protected void addGlobalActions(final IMenuManager menuManager) { - menuManager.insertAfter("additions-end", new Separator("ui-actions")); - menuManager.insertAfter("ui-actions", this.showPropertiesViewAction); - - this.refreshViewerAction.setEnabled(this.refreshViewerAction.isEnabled()); - menuManager.insertAfter("ui-actions", this.refreshViewerAction); - - super.addGlobalActions(menuManager); - } - - /** - * This ensures that a delete action will clean up all references to deleted objects. - * - * @generated - */ - @Override - protected boolean removeAllReferencesOnDelete() { - return true; - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationEditor.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationEditor.java deleted file mode 100644 index 6d155de1..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationEditor.java +++ /dev/null @@ -1,1932 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.presentation; - -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.EventObject; -import java.util.HashMap; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IMarker; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.IResourceChangeEvent; -import org.eclipse.core.resources.IResourceChangeListener; -import org.eclipse.core.resources.IResourceDelta; -import org.eclipse.core.resources.IResourceDeltaVisitor; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.emf.common.command.BasicCommandStack; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.common.command.CommandStack; -import org.eclipse.emf.common.command.CommandStackListener; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.ui.MarkerHelper; -import org.eclipse.emf.common.ui.ViewerPane; -import org.eclipse.emf.common.ui.editor.ProblemEditorPart; -import org.eclipse.emf.common.ui.viewer.IViewerProvider; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.provider.EcoreItemProviderAdapterFactory; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.util.EContentAdapter; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.edit.domain.IEditingDomainProvider; -import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory; -import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory; -import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; -import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor; -import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; -import org.eclipse.emf.edit.ui.dnd.LocalTransfer; -import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; -import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; -import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; -import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper; -import org.eclipse.emf.edit.ui.util.EditUIUtil; -import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage; -import org.eclipse.jface.action.IMenuListener; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.IStatusLineManager; -import org.eclipse.jface.action.IToolBarManager; -import org.eclipse.jface.action.MenuManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.util.LocalSelectionTransfer; -import org.eclipse.jface.viewers.ColumnWeightData; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.ISelectionChangedListener; -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.ListViewer; -import org.eclipse.jface.viewers.SelectionChangedEvent; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.viewers.StructuredViewer; -import org.eclipse.jface.viewers.TableLayout; -import org.eclipse.jface.viewers.TableViewer; -import org.eclipse.jface.viewers.TreeViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.CTabFolder; -import org.eclipse.swt.dnd.DND; -import org.eclipse.swt.dnd.FileTransfer; -import org.eclipse.swt.dnd.Transfer; -import org.eclipse.swt.events.ControlAdapter; -import org.eclipse.swt.events.ControlEvent; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.graphics.Rectangle; -import org.eclipse.swt.layout.FillLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Menu; -import org.eclipse.swt.widgets.Table; -import org.eclipse.swt.widgets.TableColumn; -import org.eclipse.swt.widgets.Tree; -import org.eclipse.swt.widgets.TreeColumn; -import org.eclipse.ui.IActionBars; -import org.eclipse.ui.IEditorInput; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IEditorSite; -import org.eclipse.ui.IPartListener; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.SaveAsDialog; -import org.eclipse.ui.ide.IGotoMarker; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.MultiPageEditorPart; -import org.eclipse.ui.views.contentoutline.ContentOutline; -import org.eclipse.ui.views.contentoutline.ContentOutlinePage; -import org.eclipse.ui.views.contentoutline.IContentOutlinePage; -import org.eclipse.ui.views.properties.IPropertySheetPage; -import org.eclipse.ui.views.properties.PropertySheet; -import org.eclipse.ui.views.properties.PropertySheetPage; -import org.palladiosimulator.edp2.models.ExperimentData.provider.ExperimentDataItemProviderAdapterFactory; -import org.palladiosimulator.edp2.models.Repository.provider.RepositoryItemProviderAdapterFactory; -import org.palladiosimulator.edp2.models.measuringpoint.provider.MeasuringpointItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.abstractsimulation.provider.AbstractsimulationItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.experiments.provider.ExperimentsItemProviderAdapterFactory; -import org.palladiosimulator.experimentautomation.variation.provider.VariationItemProviderAdapterFactory; -import org.palladiosimulator.metricspec.provider.MetricSpecItemProviderAdapterFactory; -import org.palladiosimulator.monitorrepository.provider.MonitorRepositoryItemProviderAdapterFactory; -import org.palladiosimulator.pcm.allocation.provider.AllocationItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.composition.provider.CompositionItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.entity.provider.EntityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.core.provider.CoreItemProviderAdapterFactory; -import org.palladiosimulator.pcm.parameter.provider.ParameterItemProviderAdapterFactory; -import org.palladiosimulator.pcm.protocol.provider.ProtocolItemProviderAdapterFactory; -import org.palladiosimulator.pcm.provider.PcmItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.provider.QosannotationsItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.qos_performance.provider.QosPerformanceItemProviderAdapterFactory; -import org.palladiosimulator.pcm.qosannotations.qos_reliability.provider.QosReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.reliability.provider.ReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.resourceenvironment.provider.ResourceenvironmentItemProviderAdapterFactory; -import org.palladiosimulator.pcm.resourcetype.provider.ResourcetypeItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.provider.SeffItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.seff_performance.provider.SeffPerformanceItemProviderAdapterFactory; -import org.palladiosimulator.pcm.seff.seff_reliability.provider.SeffReliabilityItemProviderAdapterFactory; -import org.palladiosimulator.pcm.subsystem.provider.SubsystemItemProviderAdapterFactory; -import org.palladiosimulator.pcm.system.provider.SystemItemProviderAdapterFactory; -import org.palladiosimulator.pcm.usagemodel.provider.UsagemodelItemProviderAdapterFactory; -import org.palladiosimulator.servicelevelobjective.provider.ServicelevelObjectiveItemProviderAdapterFactory; -import org.scaledl.usageevolution.provider.UsageevolutionItemProviderAdapterFactory; - -import de.uka.ipd.sdq.identifier.provider.IdentifierItemProviderAdapterFactory; -import de.uka.ipd.sdq.probfunction.provider.ProbfunctionItemProviderAdapterFactory; -import de.uka.ipd.sdq.stoex.provider.StoexItemProviderAdapterFactory; -import de.uka.ipd.sdq.units.provider.UnitsItemProviderAdapterFactory; -import tools.descartes.dlim.provider.DlimItemProviderAdapterFactory; - -/** - * This is an example of a Variation model editor. - * - * @generated - */ -public class VariationEditor extends MultiPageEditorPart - implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * This keeps track of the editing domain that is used to track all changes to the model. - * - * @generated - */ - protected AdapterFactoryEditingDomain editingDomain; - - /** - * This is the one adapter factory used for providing views of the model. - * - * @generated - */ - protected ComposedAdapterFactory adapterFactory; - - /** - * This is the content outline page. - * - * @generated - */ - protected IContentOutlinePage contentOutlinePage; - - /** - * This is a kludge... - * - * @generated - */ - protected IStatusLineManager contentOutlineStatusLineManager; - - /** - * This is the content outline page's viewer. - * - * @generated - */ - protected TreeViewer contentOutlineViewer; - - /** - * This is the property sheet page. - * - * @generated - */ - protected List propertySheetPages = new ArrayList(); - - /** - * This is the viewer that shadows the selection in the content outline. The parent relation - * must be correctly defined for this to work. - * - * @generated - */ - protected TreeViewer selectionViewer; - - /** - * This inverts the roll of parent and child in the content provider and show parents as a tree. - * - * - * @generated - */ - protected TreeViewer parentViewer; - - /** - * This shows how a tree view works. - * - * @generated - */ - protected TreeViewer treeViewer; - - /** - * This shows how a list view works. A list viewer doesn't support icons. - * - * @generated - */ - protected ListViewer listViewer; - - /** - * This shows how a table view works. A table can be used as a list with icons. - * - * @generated - */ - protected TableViewer tableViewer; - - /** - * This shows how a tree view with columns works. - * - * @generated - */ - protected TreeViewer treeViewerWithColumns; - - /** - * This keeps track of the active viewer pane, in the book. - * - * @generated - */ - protected ViewerPane currentViewerPane; - - /** - * This keeps track of the active content viewer, which may be either one of the viewers in the - * pages or the content outline viewer. - * - * @generated - */ - protected Viewer currentViewer; - - /** - * This listens to which ever viewer is active. - * - * @generated - */ - protected ISelectionChangedListener selectionChangedListener; - - /** - * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that - * are listening to this editor. - * - * @generated - */ - protected Collection selectionChangedListeners = new ArrayList(); - - /** - * This keeps track of the selection of the editor as a whole. - * - * @generated - */ - protected ISelection editorSelection = StructuredSelection.EMPTY; - - /** - * The MarkerHelper is responsible for creating workspace resource markers presented in - * Eclipse's Problems View. - * - * @generated - */ - protected MarkerHelper markerHelper = new EditUIMarkerHelper(); - - /** - * This listens for when the outline becomes active - * - * @generated - */ - protected IPartListener partListener = new IPartListener() { - @Override - public void partActivated(final IWorkbenchPart p) { - if (p instanceof ContentOutline) { - if (((ContentOutline) p).getCurrentPage() == VariationEditor.this.contentOutlinePage) { - VariationEditor.this.getActionBarContributor() - .setActiveEditor(VariationEditor.this); - - VariationEditor.this.setCurrentViewer(VariationEditor.this.contentOutlineViewer); - } - } else if (p instanceof PropertySheet) { - if (VariationEditor.this.propertySheetPages.contains(((PropertySheet) p).getCurrentPage())) { - VariationEditor.this.getActionBarContributor() - .setActiveEditor(VariationEditor.this); - VariationEditor.this.handleActivate(); - } - } else if (p == VariationEditor.this) { - VariationEditor.this.handleActivate(); - } - } - - @Override - public void partBroughtToTop(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partClosed(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partDeactivated(final IWorkbenchPart p) { - // Ignore. - } - - @Override - public void partOpened(final IWorkbenchPart p) { - // Ignore. - } - }; - - /** - * Resources that have been removed since last activation. - * - * @generated - */ - protected Collection removedResources = new ArrayList(); - - /** - * Resources that have been changed since last activation. - * - * @generated - */ - protected Collection changedResources = new ArrayList(); - - /** - * Resources that have been saved. - * - * @generated - */ - protected Collection savedResources = new ArrayList(); - - /** - * Map to store the diagnostic associated with a resource. - * - * @generated - */ - protected Map resourceToDiagnosticMap = new LinkedHashMap(); - - /** - * Controls whether the problem indication should be updated. - * - * @generated - */ - protected boolean updateProblemIndication = true; - - /** - * Adapter used to update the problem indication when resources are demanded loaded. - * - * @generated - */ - protected EContentAdapter problemIndicationAdapter = new EContentAdapter() { - protected boolean dispatching; - - @Override - public void notifyChanged(final Notification notification) { - if (notification.getNotifier() instanceof Resource) { - switch (notification.getFeatureID(Resource.class)) { - case Resource.RESOURCE__IS_LOADED: - case Resource.RESOURCE__ERRORS: - case Resource.RESOURCE__WARNINGS: { - final Resource resource = (Resource) notification.getNotifier(); - final Diagnostic diagnostic = VariationEditor.this.analyzeResourceProblems(resource, null); - if (diagnostic.getSeverity() != Diagnostic.OK) { - VariationEditor.this.resourceToDiagnosticMap.put(resource, diagnostic); - } else { - VariationEditor.this.resourceToDiagnosticMap.remove(resource); - } - this.dispatchUpdateProblemIndication(); - break; - } - } - } else { - super.notifyChanged(notification); - } - } - - protected void dispatchUpdateProblemIndication() { - if (VariationEditor.this.updateProblemIndication && !this.dispatching) { - this.dispatching = true; - VariationEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - dispatching = false; - VariationEditor.this.updateProblemIndication(); - } - }); - } - } - - @Override - protected void setTarget(final Resource target) { - this.basicSetTarget(target); - } - - @Override - protected void unsetTarget(final Resource target) { - this.basicUnsetTarget(target); - VariationEditor.this.resourceToDiagnosticMap.remove(target); - this.dispatchUpdateProblemIndication(); - } - }; - - /** - * This listens for workspace changes. - * - * @generated - */ - protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener() { - @Override - public void resourceChanged(final IResourceChangeEvent event) { - final IResourceDelta delta = event.getDelta(); - try { - class ResourceDeltaVisitor implements IResourceDeltaVisitor { - protected ResourceSet resourceSet = VariationEditor.this.editingDomain.getResourceSet(); - protected Collection changedResources = new ArrayList(); - protected Collection removedResources = new ArrayList(); - - @Override - public boolean visit(final IResourceDelta delta) { - if (delta.getResource() - .getType() == IResource.FILE) { - if (delta.getKind() == IResourceDelta.REMOVED || delta.getKind() == IResourceDelta.CHANGED - && delta.getFlags() != IResourceDelta.MARKERS) { - final Resource resource = this.resourceSet - .getResource(URI.createPlatformResourceURI(delta.getFullPath() - .toString(), true), false); - if (resource != null) { - if (delta.getKind() == IResourceDelta.REMOVED) { - this.removedResources.add(resource); - } else if (!VariationEditor.this.savedResources.remove(resource)) { - this.changedResources.add(resource); - } - } - } - return false; - } - - return true; - } - - public Collection getChangedResources() { - return this.changedResources; - } - - public Collection getRemovedResources() { - return this.removedResources; - } - } - - final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); - delta.accept(visitor); - - if (!visitor.getRemovedResources() - .isEmpty()) { - VariationEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - VariationEditor.this.removedResources.addAll(visitor.getRemovedResources()); - if (!VariationEditor.this.isDirty()) { - VariationEditor.this.getSite() - .getPage() - .closeEditor(VariationEditor.this, false); - } - } - }); - } - - if (!visitor.getChangedResources() - .isEmpty()) { - VariationEditor.this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - VariationEditor.this.changedResources.addAll(visitor.getChangedResources()); - if (VariationEditor.this.getSite() - .getPage() - .getActiveEditor() == VariationEditor.this) { - VariationEditor.this.handleActivate(); - } - } - }); - } - } catch (final CoreException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - }; - - /** - * Handles activation of the editor or it's associated views. - * - * @generated - */ - protected void handleActivate() { - // Recompute the read only state. - // - if (this.editingDomain.getResourceToReadOnlyMap() != null) { - this.editingDomain.getResourceToReadOnlyMap() - .clear(); - - // Refresh any actions that may become enabled or disabled. - // - this.setSelection(this.getSelection()); - } - - if (!this.removedResources.isEmpty()) { - if (this.handleDirtyConflict()) { - this.getSite() - .getPage() - .closeEditor(VariationEditor.this, false); - } else { - this.removedResources.clear(); - this.changedResources.clear(); - this.savedResources.clear(); - } - } else if (!this.changedResources.isEmpty()) { - this.changedResources.removeAll(this.savedResources); - this.handleChangedResources(); - this.changedResources.clear(); - this.savedResources.clear(); - } - } - - /** - * Handles what to do with changed resources on activation. - * - * @generated - */ - protected void handleChangedResources() { - if (!this.changedResources.isEmpty() && (!this.isDirty() || this.handleDirtyConflict())) { - final ResourceSet resourceSet = this.editingDomain.getResourceSet(); - if (this.isDirty()) { - this.changedResources.addAll(resourceSet.getResources()); - } - this.editingDomain.getCommandStack() - .flush(); - - this.updateProblemIndication = false; - for (final Resource resource : this.changedResources) { - if (resource.isLoaded()) { - resource.unload(); - try { - resource.load(resourceSet.getLoadOptions()); - } catch (final IOException exception) { - if (!this.resourceToDiagnosticMap.containsKey(resource)) { - this.resourceToDiagnosticMap.put(resource, - this.analyzeResourceProblems(resource, exception)); - } - } - } - } - - if (AdapterFactoryEditingDomain.isStale(this.editorSelection)) { - this.setSelection(StructuredSelection.EMPTY); - } - - this.updateProblemIndication = true; - this.updateProblemIndication(); - } - } - - /** - * Updates the problems indication with the information described in the specified diagnostic. - * - * - * @generated - */ - protected void updateProblemIndication() { - if (this.updateProblemIndication) { - final BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, - "org.palladiosimulator.experimentautomation.editor", 0, null, - new Object[] { this.editingDomain.getResourceSet() }); - for (final Diagnostic childDiagnostic : this.resourceToDiagnosticMap.values()) { - if (childDiagnostic.getSeverity() != Diagnostic.OK) { - diagnostic.add(childDiagnostic); - } - } - - int lastEditorPage = this.getPageCount() - 1; - if (lastEditorPage >= 0 && this.getEditor(lastEditorPage) instanceof ProblemEditorPart) { - ((ProblemEditorPart) this.getEditor(lastEditorPage)).setDiagnostic(diagnostic); - if (diagnostic.getSeverity() != Diagnostic.OK) { - this.setActivePage(lastEditorPage); - } - } else if (diagnostic.getSeverity() != Diagnostic.OK) { - final ProblemEditorPart problemEditorPart = new ProblemEditorPart(); - problemEditorPart.setDiagnostic(diagnostic); - problemEditorPart.setMarkerHelper(this.markerHelper); - try { - this.addPage(++lastEditorPage, problemEditorPart, this.getEditorInput()); - this.setPageText(lastEditorPage, problemEditorPart.getPartName()); - this.setActivePage(lastEditorPage); - this.showTabs(); - } catch (final PartInitException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - - if (this.markerHelper.hasMarkers(this.editingDomain.getResourceSet())) { - this.markerHelper.deleteMarkers(this.editingDomain.getResourceSet()); - if (diagnostic.getSeverity() != Diagnostic.OK) { - try { - this.markerHelper.createMarkers(diagnostic); - } catch (final CoreException exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - } - } - } - } - - /** - * Shows a dialog that asks if conflicting changes should be discarded. - * - * - * @generated - */ - protected boolean handleDirtyConflict() { - return MessageDialog.openQuestion(this.getSite() - .getShell(), getString("_UI_FileConflict_label"), getString("_WARN_FileConflict")); - } - - /** - * This creates a model editor. - * - * @generated - */ - public VariationEditor() { - super(); - this.initializeEditingDomain(); - } - - /** - * This sets up the editing domain for the model editor. - * - * @generated - */ - protected void initializeEditingDomain() { - // Create an adapter factory that yields item providers. - // - this.adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); - - this.adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new VariationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ExperimentsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new AbstractsimulationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new DlimItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ExperimentDataItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new RepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MeasuringpointItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new IdentifierItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MetricSpecItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new MonitorRepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new PcmItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new CoreItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new EntityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new CompositionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UsagemodelItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory( - new org.palladiosimulator.pcm.repository.provider.RepositoryItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ResourcetypeItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ProtocolItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ParameterItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffPerformanceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SeffReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosannotationsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosPerformanceItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new QosReliabilityItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SystemItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ResourceenvironmentItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new AllocationItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new SubsystemItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ProbfunctionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ServicelevelObjectiveItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new StoexItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UnitsItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new UsageevolutionItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new EcoreItemProviderAdapterFactory()); - this.adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); - - // Create the command stack that will notify this editor as commands are executed. - // - final BasicCommandStack commandStack = new BasicCommandStack(); - - // Add a listener to set the most recent command's affected objects to be the selection of - // the viewer with focus. - // - commandStack.addCommandStackListener(new CommandStackListener() { - @Override - public void commandStackChanged(final EventObject event) { - VariationEditor.this.getContainer() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - VariationEditor.this.firePropertyChange(IEditorPart.PROP_DIRTY); - - // Try to select the affected objects. - // - final Command mostRecentCommand = ((CommandStack) event.getSource()).getMostRecentCommand(); - if (mostRecentCommand != null) { - VariationEditor.this.setSelectionToViewer(mostRecentCommand.getAffectedObjects()); - } - for (final Iterator i = VariationEditor.this.propertySheetPages - .iterator(); i.hasNext();) { - final PropertySheetPage propertySheetPage = i.next(); - if (propertySheetPage.getControl() == null || propertySheetPage.getControl() - .isDisposed()) { - i.remove(); - } else { - propertySheetPage.refresh(); - } - } - } - }); - } - }); - - // Create the editing domain with a special command stack. - // - this.editingDomain = new AdapterFactoryEditingDomain(this.adapterFactory, commandStack, - new HashMap()); - } - - /** - * This is here for the listener to be able to call it. - * - * @generated - */ - @Override - protected void firePropertyChange(final int action) { - super.firePropertyChange(action); - } - - /** - * This sets the selection into whichever viewer is active. - * - * @generated - */ - public void setSelectionToViewer(final Collection collection) { - final Collection theSelection = collection; - // Make sure it's okay. - // - if (theSelection != null && !theSelection.isEmpty()) { - final Runnable runnable = new Runnable() { - @Override - public void run() { - // Try to select the items in the current content viewer of the editor. - // - if (VariationEditor.this.currentViewer != null) { - VariationEditor.this.currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), - true); - } - } - }; - this.getSite() - .getShell() - .getDisplay() - .asyncExec(runnable); - } - } - - /** - * This returns the editing domain as required by the {@link IEditingDomainProvider} interface. - * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain} - * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}. - * - * @generated - */ - @Override - public EditingDomain getEditingDomain() { - return this.editingDomain; - } - - /** - * - * - * @generated - */ - public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider { - - /** - * - * - * @generated - */ - public ReverseAdapterFactoryContentProvider(final AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * - * - * @generated - */ - @Override - public Object[] getElements(final Object object) { - final Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * @generated - */ - @Override - public Object[] getChildren(final Object object) { - final Object parent = super.getParent(object); - return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); - } - - /** - * - * - * @generated - */ - @Override - public boolean hasChildren(final Object object) { - final Object parent = super.getParent(object); - return parent != null; - } - - /** - * - * - * @generated - */ - @Override - public Object getParent(final Object object) { - return null; - } - } - - /** - * - * - * @generated - */ - public void setCurrentViewerPane(final ViewerPane viewerPane) { - if (this.currentViewerPane != viewerPane) { - if (this.currentViewerPane != null) { - this.currentViewerPane.showFocus(false); - } - this.currentViewerPane = viewerPane; - } - this.setCurrentViewer(this.currentViewerPane.getViewer()); - } - - /** - * This makes sure that one content viewer, either for the current page or the outline view, if - * it has focus, is the current one. - * - * @generated - */ - public void setCurrentViewer(final Viewer viewer) { - // If it is changing... - // - if (this.currentViewer != viewer) { - if (this.selectionChangedListener == null) { - // Create the listener on demand. - // - this.selectionChangedListener = new ISelectionChangedListener() { - // This just notifies those things that are affected by the section. - // - @Override - public void selectionChanged(final SelectionChangedEvent selectionChangedEvent) { - VariationEditor.this.setSelection(selectionChangedEvent.getSelection()); - } - }; - } - - // Stop listening to the old one. - // - if (this.currentViewer != null) { - this.currentViewer.removeSelectionChangedListener(this.selectionChangedListener); - } - - // Start listening to the new one. - // - if (viewer != null) { - viewer.addSelectionChangedListener(this.selectionChangedListener); - } - - // Remember it. - // - this.currentViewer = viewer; - - // Set the editors selection based on the current viewer's selection. - // - this.setSelection( - this.currentViewer == null ? StructuredSelection.EMPTY : this.currentViewer.getSelection()); - } - } - - /** - * This returns the viewer as required by the {@link IViewerProvider} interface. - * - * @generated - */ - @Override - public Viewer getViewer() { - return this.currentViewer; - } - - /** - * This creates a context menu for the viewer and adds a listener as well registering the menu - * for extension. - * - * @generated - */ - protected void createContextMenuFor(final StructuredViewer viewer) { - final MenuManager contextMenu = new MenuManager("#PopUp"); - contextMenu.add(new Separator("additions")); - contextMenu.setRemoveAllWhenShown(true); - contextMenu.addMenuListener(this); - final Menu menu = contextMenu.createContextMenu(viewer.getControl()); - viewer.getControl() - .setMenu(menu); - this.getSite() - .registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer)); - - final int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; - final Transfer[] transfers = new Transfer[] { LocalTransfer.getInstance(), LocalSelectionTransfer.getTransfer(), - FileTransfer.getInstance() }; - viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer)); - viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(this.editingDomain, viewer)); - } - - /** - * This is the method called to load a resource into the editing domain's resource set based on - * the editor's input. - * - * @generated - */ - public void createModel() { - final URI resourceURI = EditUIUtil.getURI(this.getEditorInput(), this.editingDomain.getResourceSet() - .getURIConverter()); - Exception exception = null; - Resource resource = null; - try { - // Load the resource through the editing domain. - // - resource = this.editingDomain.getResourceSet() - .getResource(resourceURI, true); - } catch (final Exception e) { - exception = e; - resource = this.editingDomain.getResourceSet() - .getResource(resourceURI, false); - } - - final Diagnostic diagnostic = this.analyzeResourceProblems(resource, exception); - if (diagnostic.getSeverity() != Diagnostic.OK) { - this.resourceToDiagnosticMap.put(resource, this.analyzeResourceProblems(resource, exception)); - } - this.editingDomain.getResourceSet() - .eAdapters() - .add(this.problemIndicationAdapter); - } - - /** - * Returns a diagnostic describing the errors and warnings listed in the resource and the - * specified exception (if any). - * - * @generated - */ - public Diagnostic analyzeResourceProblems(final Resource resource, final Exception exception) { - final boolean hasErrors = !resource.getErrors() - .isEmpty(); - if (hasErrors || !resource.getWarnings() - .isEmpty()) { - final BasicDiagnostic basicDiagnostic = new BasicDiagnostic( - hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING, - "org.palladiosimulator.experimentautomation.editor", 0, - getString("_UI_CreateModelError_message", resource.getURI()), - new Object[] { exception == null ? (Object) resource : exception }); - basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); - return basicDiagnostic; - } else if (exception != null) { - return new BasicDiagnostic(Diagnostic.ERROR, "org.palladiosimulator.experimentautomation.editor", 0, - getString("_UI_CreateModelError_message", resource.getURI()), new Object[] { exception }); - } else { - return Diagnostic.OK_INSTANCE; - } - } - - /** - * This is the method used by the framework to install your own controls. - * - * @generated - */ - @Override - public void createPages() { - // Creates the model from the editor input - // - this.createModel(); - - // Only creates the other pages if there is something that can be edited - // - if (!this.getEditingDomain() - .getResourceSet() - .getResources() - .isEmpty()) { - // Create a page for the selection tree view. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), VariationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - final Tree tree = new Tree(composite, SWT.MULTI); - final TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - VariationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.selectionViewer = (TreeViewer) viewerPane.getViewer(); - this.selectionViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.selectionViewer.setUseHashlookup(true); - - this.selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - this.selectionViewer.setInput(this.editingDomain.getResourceSet()); - this.selectionViewer.setSelection(new StructuredSelection(this.editingDomain.getResourceSet() - .getResources() - .get(0)), true); - viewerPane.setTitle(this.editingDomain.getResourceSet()); - - new AdapterFactoryTreeEditor(this.selectionViewer.getTree(), this.adapterFactory); - - this.createContextMenuFor(this.selectionViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_SelectionPage_label")); - } - - // Create a page for the parent tree view. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), VariationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - final Tree tree = new Tree(composite, SWT.MULTI); - final TreeViewer newTreeViewer = new TreeViewer(tree); - return newTreeViewer; - } - - @Override - public void requestActivation() { - super.requestActivation(); - VariationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.parentViewer = (TreeViewer) viewerPane.getViewer(); - this.parentViewer.setAutoExpandLevel(30); - this.parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(this.adapterFactory)); - this.parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.parentViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_ParentPage_label")); - } - - // This is the page for the list viewer - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), VariationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new ListViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - VariationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.listViewer = (ListViewer) viewerPane.getViewer(); - this.listViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.listViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.listViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_ListPage_label")); - } - - // This is the page for the tree viewer - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), VariationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - VariationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.treeViewer = (TreeViewer) viewerPane.getViewer(); - this.treeViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - new AdapterFactoryTreeEditor(this.treeViewer.getTree(), this.adapterFactory); - - this.createContextMenuFor(this.treeViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TreePage_label")); - } - - // This is the page for the table viewer. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), VariationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TableViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - VariationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - this.tableViewer = (TableViewer) viewerPane.getViewer(); - - final Table table = this.tableViewer.getTable(); - final TableLayout layout = new TableLayout(); - table.setLayout(layout); - table.setHeaderVisible(true); - table.setLinesVisible(true); - - final TableColumn objectColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(3, 100, true)); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - - final TableColumn selfColumn = new TableColumn(table, SWT.NONE); - layout.addColumnData(new ColumnWeightData(2, 100, true)); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - - this.tableViewer.setColumnProperties(new String[] { "a", "b" }); - this.tableViewer.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.tableViewer); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TablePage_label")); - } - - // This is the page for the table tree viewer. - // - { - final ViewerPane viewerPane = new ViewerPane(this.getSite() - .getPage(), VariationEditor.this) { - @Override - public Viewer createViewer(final Composite composite) { - return new TreeViewer(composite); - } - - @Override - public void requestActivation() { - super.requestActivation(); - VariationEditor.this.setCurrentViewerPane(this); - } - }; - viewerPane.createControl(this.getContainer()); - - this.treeViewerWithColumns = (TreeViewer) viewerPane.getViewer(); - - final Tree tree = this.treeViewerWithColumns.getTree(); - tree.setLayoutData(new FillLayout()); - tree.setHeaderVisible(true); - tree.setLinesVisible(true); - - final TreeColumn objectColumn = new TreeColumn(tree, SWT.NONE); - objectColumn.setText(getString("_UI_ObjectColumn_label")); - objectColumn.setResizable(true); - objectColumn.setWidth(250); - - final TreeColumn selfColumn = new TreeColumn(tree, SWT.NONE); - selfColumn.setText(getString("_UI_SelfColumn_label")); - selfColumn.setResizable(true); - selfColumn.setWidth(200); - - this.treeViewerWithColumns.setColumnProperties(new String[] { "a", "b" }); - this.treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(this.adapterFactory)); - - this.createContextMenuFor(this.treeViewerWithColumns); - final int pageIndex = this.addPage(viewerPane.getControl()); - this.setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label")); - } - - this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - if (!VariationEditor.this.getContainer() - .isDisposed()) { - VariationEditor.this.setActivePage(0); - } - } - }); - } - - // Ensures that this editor will only display the page's tab - // area if there are more than one page - // - this.getContainer() - .addControlListener(new ControlAdapter() { - boolean guard = false; - - @Override - public void controlResized(final ControlEvent event) { - if (!this.guard) { - this.guard = true; - VariationEditor.this.hideTabs(); - this.guard = false; - } - } - }); - - this.getSite() - .getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - VariationEditor.this.updateProblemIndication(); - } - }); - } - - /** - * If there is just one page in the multi-page editor part, this hides the single tab at the - * bottom. - * - * @generated - */ - protected void hideTabs() { - if (this.getPageCount() <= 1) { - this.setPageText(0, ""); - if (this.getContainer() instanceof CTabFolder) { - final Point point = this.getContainer() - .getSize(); - final Rectangle clientArea = this.getContainer() - .getClientArea(); - this.getContainer() - .setSize(point.x, 2 * point.y - clientArea.height - clientArea.y); - } - } - } - - /** - * If there is more than one page in the multi-page editor part, this shows the tabs at the - * bottom. - * - * @generated - */ - protected void showTabs() { - if (this.getPageCount() > 1) { - this.setPageText(0, getString("_UI_SelectionPage_label")); - if (this.getContainer() instanceof CTabFolder) { - final Point point = this.getContainer() - .getSize(); - final Rectangle clientArea = this.getContainer() - .getClientArea(); - this.getContainer() - .setSize(point.x, clientArea.height + clientArea.y); - } - } - } - - /** - * This is used to track the active viewer. - * - * @generated - */ - @Override - protected void pageChange(final int pageIndex) { - super.pageChange(pageIndex); - - if (this.contentOutlinePage != null) { - this.handleContentOutlineSelection(this.contentOutlinePage.getSelection()); - } - } - - /** - * This is how the framework determines which interfaces we implement. - * - * - * @generated - */ - @SuppressWarnings("rawtypes") - @Override - public T getAdapter(final Class key) { - if (key.equals(IContentOutlinePage.class)) { - return this.showOutlineView() ? key.cast(this.getContentOutlinePage()) : null; - } else if (key.equals(IPropertySheetPage.class)) { - return key.cast(this.getPropertySheetPage()); - } else if (key.equals(IGotoMarker.class)) { - return key.cast(this); - } else { - return super.getAdapter(key); - } - } - - /** - * This accesses a cached version of the content outliner. - * - * @generated - */ - public IContentOutlinePage getContentOutlinePage() { - if (this.contentOutlinePage == null) { - // The content outline is just a tree. - // - class MyContentOutlinePage extends ContentOutlinePage { - @Override - public void createControl(final Composite parent) { - super.createControl(parent); - VariationEditor.this.contentOutlineViewer = this.getTreeViewer(); - VariationEditor.this.contentOutlineViewer.addSelectionChangedListener(this); - - // Set up the tree viewer. - // - VariationEditor.this.contentOutlineViewer.setUseHashlookup(true); - VariationEditor.this.contentOutlineViewer - .setContentProvider(new AdapterFactoryContentProvider(VariationEditor.this.adapterFactory)); - VariationEditor.this.contentOutlineViewer - .setLabelProvider(new AdapterFactoryLabelProvider(VariationEditor.this.adapterFactory)); - VariationEditor.this.contentOutlineViewer - .setInput(VariationEditor.this.editingDomain.getResourceSet()); - - // Make sure our popups work. - // - VariationEditor.this.createContextMenuFor(VariationEditor.this.contentOutlineViewer); - - if (!VariationEditor.this.editingDomain.getResourceSet() - .getResources() - .isEmpty()) { - // Select the root object in the view. - // - VariationEditor.this.contentOutlineViewer - .setSelection(new StructuredSelection(VariationEditor.this.editingDomain.getResourceSet() - .getResources() - .get(0)), true); - } - } - - @Override - public void makeContributions(final IMenuManager menuManager, final IToolBarManager toolBarManager, - final IStatusLineManager statusLineManager) { - super.makeContributions(menuManager, toolBarManager, statusLineManager); - VariationEditor.this.contentOutlineStatusLineManager = statusLineManager; - } - - @Override - public void setActionBars(final IActionBars actionBars) { - super.setActionBars(actionBars); - VariationEditor.this.getActionBarContributor() - .shareGlobalActions(this, actionBars); - } - } - - this.contentOutlinePage = new MyContentOutlinePage(); - - // Listen to selection so that we can handle it is a special way. - // - this.contentOutlinePage.addSelectionChangedListener(new ISelectionChangedListener() { - // This ensures that we handle selections correctly. - // - @Override - public void selectionChanged(final SelectionChangedEvent event) { - VariationEditor.this.handleContentOutlineSelection(event.getSelection()); - } - }); - } - - return this.contentOutlinePage; - } - - /** - * This accesses a cached version of the property sheet. - * - * @generated - */ - public IPropertySheetPage getPropertySheetPage() { - final PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage(this.editingDomain) { - @Override - public void setSelectionToViewer(final List selection) { - VariationEditor.this.setSelectionToViewer(selection); - VariationEditor.this.setFocus(); - } - - @Override - public void setActionBars(final IActionBars actionBars) { - super.setActionBars(actionBars); - VariationEditor.this.getActionBarContributor() - .shareGlobalActions(this, actionBars); - } - }; - propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(this.adapterFactory)); - this.propertySheetPages.add(propertySheetPage); - - return propertySheetPage; - } - - /** - * This deals with how we want selection in the outliner to affect the other views. - * - * @generated - */ - public void handleContentOutlineSelection(final ISelection selection) { - if (this.currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { - final Iterator selectedElements = ((IStructuredSelection) selection).iterator(); - if (selectedElements.hasNext()) { - // Get the first selected element. - // - final Object selectedElement = selectedElements.next(); - - // If it's the selection viewer, then we want it to select the same selection as - // this selection. - // - if (this.currentViewerPane.getViewer() == this.selectionViewer) { - final ArrayList selectionList = new ArrayList(); - selectionList.add(selectedElement); - while (selectedElements.hasNext()) { - selectionList.add(selectedElements.next()); - } - - // Set the selection to the widget. - // - this.selectionViewer.setSelection(new StructuredSelection(selectionList)); - } else { - // Set the input to the widget. - // - if (this.currentViewerPane.getViewer() - .getInput() != selectedElement) { - this.currentViewerPane.getViewer() - .setInput(selectedElement); - this.currentViewerPane.setTitle(selectedElement); - } - } - } - } - } - - /** - * This is for implementing {@link IEditorPart} and simply tests the command stack. - * - * @generated - */ - @Override - public boolean isDirty() { - return ((BasicCommandStack) this.editingDomain.getCommandStack()).isSaveNeeded(); - } - - /** - * This is for implementing {@link IEditorPart} and simply saves the model file. - * - * @generated - */ - @Override - public void doSave(final IProgressMonitor progressMonitor) { - // Save only resources that have actually changed. - // - final Map saveOptions = new HashMap(); - saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); - saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED); - - // Do the work within an operation because this is a long running activity that modifies the - // workbench. - // - final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { - // This is the method that gets invoked when the operation runs. - // - @Override - public void execute(final IProgressMonitor monitor) { - // Save the resources to the file system. - // - boolean first = true; - final List resources = VariationEditor.this.editingDomain.getResourceSet() - .getResources(); - for (final Resource resource : resources) { - if ((first || !resource.getContents() - .isEmpty() || VariationEditor.this.isPersisted(resource)) - && !VariationEditor.this.editingDomain.isReadOnly(resource)) { - try { - final long timeStamp = resource.getTimeStamp(); - resource.save(saveOptions); - if (resource.getTimeStamp() != timeStamp) { - VariationEditor.this.savedResources.add(resource); - } - } catch (final Exception exception) { - VariationEditor.this.resourceToDiagnosticMap.put(resource, - VariationEditor.this.analyzeResourceProblems(resource, exception)); - } - first = false; - } - } - } - }; - - this.updateProblemIndication = false; - try { - // This runs the options, and shows progress. - // - new ProgressMonitorDialog(this.getSite() - .getShell()).run(true, false, operation); - - // Refresh the necessary state. - // - ((BasicCommandStack) this.editingDomain.getCommandStack()).saveIsDone(); - this.firePropertyChange(IEditorPart.PROP_DIRTY); - } catch (final Exception exception) { - // Something went wrong that shouldn't. - // - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } - this.updateProblemIndication = true; - this.updateProblemIndication(); - } - - /** - * This returns whether something has been persisted to the URI of the specified resource. The - * implementation uses the URI converter from the editor's resource set to try to open an input - * stream. - * - * @generated - */ - protected boolean isPersisted(final Resource resource) { - boolean result = false; - try { - final InputStream stream = this.editingDomain.getResourceSet() - .getURIConverter() - .createInputStream(resource.getURI()); - if (stream != null) { - result = true; - stream.close(); - } - } catch (final IOException e) { - // Ignore - } - return result; - } - - /** - * This always returns true because it is not currently supported. - * - * @generated - */ - @Override - public boolean isSaveAsAllowed() { - return true; - } - - /** - * This also changes the editor's input. - * - * @generated - */ - @Override - public void doSaveAs() { - final SaveAsDialog saveAsDialog = new SaveAsDialog(this.getSite() - .getShell()); - saveAsDialog.open(); - final IPath path = saveAsDialog.getResult(); - if (path != null) { - final IFile file = ResourcesPlugin.getWorkspace() - .getRoot() - .getFile(path); - if (file != null) { - this.doSaveAs(URI.createPlatformResourceURI(file.getFullPath() - .toString(), true), new FileEditorInput(file)); - } - } - } - - /** - * - * - * @generated - */ - protected void doSaveAs(final URI uri, final IEditorInput editorInput) { - (this.editingDomain.getResourceSet() - .getResources() - .get(0)).setURI(uri); - this.setInputWithNotify(editorInput); - this.setPartName(editorInput.getName()); - final IProgressMonitor progressMonitor = this.getActionBars() - .getStatusLineManager() != null ? this.getActionBars() - .getStatusLineManager() - .getProgressMonitor() : new NullProgressMonitor(); - this.doSave(progressMonitor); - } - - /** - * - * - * @generated - */ - @Override - public void gotoMarker(final IMarker marker) { - final List targetObjects = this.markerHelper.getTargetObjects(this.editingDomain, marker); - if (!targetObjects.isEmpty()) { - this.setSelectionToViewer(targetObjects); - } - } - - /** - * This is called during startup. - * - * @generated - */ - @Override - public void init(final IEditorSite site, final IEditorInput editorInput) { - this.setSite(site); - this.setInputWithNotify(editorInput); - this.setPartName(editorInput.getName()); - site.setSelectionProvider(this); - site.getPage() - .addPartListener(this.partListener); - ResourcesPlugin.getWorkspace() - .addResourceChangeListener(this.resourceChangeListener, IResourceChangeEvent.POST_CHANGE); - } - - /** - * - * - * @generated - */ - @Override - public void setFocus() { - if (this.currentViewerPane != null) { - this.currentViewerPane.setFocus(); - } else { - this.getControl(this.getActivePage()) - .setFocus(); - } - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * @generated - */ - @Override - public void addSelectionChangedListener(final ISelectionChangedListener listener) { - this.selectionChangedListeners.add(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. - * - * - * @generated - */ - @Override - public void removeSelectionChangedListener(final ISelectionChangedListener listener) { - this.selectionChangedListeners.remove(listener); - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's - * overall selection. - * - * @generated - */ - @Override - public ISelection getSelection() { - return this.editorSelection; - } - - /** - * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's - * overall selection. Calling this result will notify the listeners. - * - * - * @generated - */ - @Override - public void setSelection(final ISelection selection) { - this.editorSelection = selection; - - for (final ISelectionChangedListener listener : this.selectionChangedListeners) { - listener.selectionChanged(new SelectionChangedEvent(this, selection)); - } - this.setStatusLineManager(selection); - } - - /** - * - * - * @generated - */ - public void setStatusLineManager(final ISelection selection) { - final IStatusLineManager statusLineManager = this.currentViewer != null - && this.currentViewer == this.contentOutlineViewer ? this.contentOutlineStatusLineManager - : this.getActionBars() - .getStatusLineManager(); - - if (statusLineManager != null) { - if (selection instanceof IStructuredSelection) { - final Collection collection = ((IStructuredSelection) selection).toList(); - switch (collection.size()) { - case 0: { - statusLineManager.setMessage(getString("_UI_NoObjectSelected")); - break; - } - case 1: { - final String text = new AdapterFactoryItemDelegator(this.adapterFactory) - .getText(collection.iterator() - .next()); - statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text)); - break; - } - default: { - statusLineManager - .setMessage(getString("_UI_MultiObjectSelected", Integer.toString(collection.size()))); - break; - } - } - } else { - statusLineManager.setMessage(""); - } - } - } - - /** - * This looks up a string in the plugin's plugin.properties file. - * - * @generated - */ - private static String getString(final String key) { - return ExperimentAutomationEditorPlugin.INSTANCE.getString(key); - } - - /** - * This looks up a string in plugin.properties, making a substitution. - * - * - * @generated - */ - private static String getString(final String key, final Object s1) { - return ExperimentAutomationEditorPlugin.INSTANCE.getString(key, new Object[] { s1 }); - } - - /** - * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus - * with contributions from the Edit menu. - * - * @generated - */ - @Override - public void menuAboutToShow(final IMenuManager menuManager) { - ((IMenuListener) this.getEditorSite() - .getActionBarContributor()).menuAboutToShow(menuManager); - } - - /** - * - * - * @generated - */ - public EditingDomainActionBarContributor getActionBarContributor() { - return (EditingDomainActionBarContributor) this.getEditorSite() - .getActionBarContributor(); - } - - /** - * - * - * @generated - */ - public IActionBars getActionBars() { - return this.getActionBarContributor() - .getActionBars(); - } - - /** - * - * - * @generated - */ - public AdapterFactory getAdapterFactory() { - return this.adapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public void dispose() { - this.updateProblemIndication = false; - - ResourcesPlugin.getWorkspace() - .removeResourceChangeListener(this.resourceChangeListener); - - this.getSite() - .getPage() - .removePartListener(this.partListener); - - this.adapterFactory.dispose(); - - if (this.getActionBarContributor() - .getActiveEditor() == this) { - this.getActionBarContributor() - .setActiveEditor(null); - } - - for (final PropertySheetPage propertySheetPage : this.propertySheetPages) { - propertySheetPage.dispose(); - } - - if (this.contentOutlinePage != null) { - this.contentOutlinePage.dispose(); - } - - super.dispose(); - } - - /** - * Returns whether the outline view should be presented to the user. - * - * - * @generated - */ - protected boolean showOutlineView() { - return true; - } -} diff --git a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationModelWizard.java b/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationModelWizard.java deleted file mode 100644 index 5d81442f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation.editor/src/org/palladiosimulator/experimentautomation/variation/presentation/VariationModelWizard.java +++ /dev/null @@ -1,622 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.presentation; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.MissingResourceException; -import java.util.StringTokenizer; - -import org.eclipse.core.resources.IContainer; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IFolder; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.emf.common.CommonPlugin; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; -import org.eclipse.jface.dialogs.MessageDialog; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.wizard.Wizard; -import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Combo; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; -import org.eclipse.ui.INewWizard; -import org.eclipse.ui.IWorkbench; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.eclipse.ui.dialogs.WizardNewFileCreationPage; -import org.eclipse.ui.part.FileEditorInput; -import org.eclipse.ui.part.ISetSelectionTarget; -import org.palladiosimulator.experimentautomation.variation.VariationFactory; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.provider.ExperimentAutomationEditPlugin; - -/** - * This is a simple wizard for creating a new model file. - * - * @generated - */ -public class VariationModelWizard extends Wizard implements INewWizard { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The supported extensions for created files. - * - * @generated - */ - public static final List FILE_EXTENSIONS = Collections.unmodifiableList( - Arrays.asList(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_VariationEditorFilenameExtensions") - .split("\\s*,\\s*"))); - - /** - * A formatted list of supported file extensions, suitable for display. - * - * - * @generated - */ - public static final String FORMATTED_FILE_EXTENSIONS = ExperimentAutomationEditorPlugin.INSTANCE - .getString("_UI_VariationEditorFilenameExtensions") - .replaceAll("\\s*,\\s*", ", "); - - /** - * This caches an instance of the model package. - * - * @generated - */ - protected VariationPackage variationPackage = VariationPackage.eINSTANCE; - - /** - * This caches an instance of the model factory. - * - * @generated - */ - protected VariationFactory variationFactory = this.variationPackage.getVariationFactory(); - - /** - * This is the file creation page. - * - * @generated - */ - protected VariationModelWizardNewFileCreationPage newFileCreationPage; - - /** - * This is the initial object creation page. - * - * @generated - */ - protected VariationModelWizardInitialObjectCreationPage initialObjectCreationPage; - - /** - * Remember the selection during initialization for populating the default container. - * - * @generated - */ - protected IStructuredSelection selection; - - /** - * Remember the workbench during initialization. - * - * @generated - */ - protected IWorkbench workbench; - - /** - * Caches the names of the types that can be created as the root object. - * - * - * @generated - */ - protected List initialObjectNames; - - /** - * This just records the information. - * - * @generated - */ - @Override - public void init(final IWorkbench workbench, final IStructuredSelection selection) { - this.workbench = workbench; - this.selection = selection; - this.setWindowTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); - this.setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE - .getImageDescriptor(ExperimentAutomationEditorPlugin.INSTANCE.getImage("full/wizban/NewVariation"))); - } - - /** - * Returns the names of the types that can be created as the root object. - * - * @generated - */ - protected Collection getInitialObjectNames() { - if (this.initialObjectNames == null) { - this.initialObjectNames = new ArrayList(); - for (final EClassifier eClassifier : this.variationPackage.getEClassifiers()) { - if (eClassifier instanceof EClass) { - final EClass eClass = (EClass) eClassifier; - if (!eClass.isAbstract()) { - this.initialObjectNames.add(eClass.getName()); - } - } - } - Collections.sort(this.initialObjectNames, CommonPlugin.INSTANCE.getComparator()); - } - return this.initialObjectNames; - } - - /** - * Create a new model. - * - * @generated - */ - protected EObject createInitialModel() { - final EClass eClass = (EClass) this.variationPackage - .getEClassifier(this.initialObjectCreationPage.getInitialObjectName()); - final EObject rootObject = this.variationFactory.create(eClass); - return rootObject; - } - - /** - * Do the work after everything is specified. - * - * @generated - */ - @Override - public boolean performFinish() { - try { - // Remember the file. - // - final IFile modelFile = this.getModelFile(); - - // Do the work within an operation. - // - final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { - @Override - protected void execute(final IProgressMonitor progressMonitor) { - try { - // Create a resource set - // - final ResourceSet resourceSet = new ResourceSetImpl(); - - // Get the URI of the model file. - // - final URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath() - .toString(), true); - - // Create a resource for this file. - // - final Resource resource = resourceSet.createResource(fileURI); - - // Add the initial model object to the contents. - // - final EObject rootObject = VariationModelWizard.this.createInitialModel(); - if (rootObject != null) { - resource.getContents() - .add(rootObject); - } - - // Save the contents of the resource to the file system. - // - final Map options = new HashMap(); - options.put(XMLResource.OPTION_ENCODING, - VariationModelWizard.this.initialObjectCreationPage.getEncoding()); - resource.save(options); - } catch (final Exception exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - } finally { - progressMonitor.done(); - } - } - }; - - this.getContainer() - .run(false, false, operation); - - // Select the new file resource in the current view. - // - final IWorkbenchWindow workbenchWindow = this.workbench.getActiveWorkbenchWindow(); - final IWorkbenchPage page = workbenchWindow.getActivePage(); - final IWorkbenchPart activePart = page.getActivePart(); - if (activePart instanceof ISetSelectionTarget) { - final ISelection targetSelection = new StructuredSelection(modelFile); - this.getShell() - .getDisplay() - .asyncExec(new Runnable() { - @Override - public void run() { - ((ISetSelectionTarget) activePart).selectReveal(targetSelection); - } - }); - } - - // Open an editor on the new file. - // - try { - page.openEditor(new FileEditorInput(modelFile), this.workbench.getEditorRegistry() - .getDefaultEditor(modelFile.getFullPath() - .toString()) - .getId()); - } catch (final PartInitException exception) { - MessageDialog.openError(workbenchWindow.getShell(), - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_OpenEditorError_label"), - exception.getMessage()); - return false; - } - - return true; - } catch (final Exception exception) { - ExperimentAutomationEditorPlugin.INSTANCE.log(exception); - return false; - } - } - - /** - * This is the one page of the wizard. - * - * @generated - */ - public class VariationModelWizardNewFileCreationPage extends WizardNewFileCreationPage { - - /** - * Pass in the selection. - * - * @generated - */ - public VariationModelWizardNewFileCreationPage(final String pageId, final IStructuredSelection selection) { - super(pageId, selection); - } - - /** - * The framework calls this to see if the file is correct. - * - * @generated - */ - @Override - protected boolean validatePage() { - if (super.validatePage()) { - final String extension = new Path(this.getFileName()).getFileExtension(); - if (extension == null || !FILE_EXTENSIONS.contains(extension)) { - final String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" - : "_WARN_FilenameExtension"; - this.setErrorMessage(ExperimentAutomationEditorPlugin.INSTANCE.getString(key, - new Object[] { FORMATTED_FILE_EXTENSIONS })); - return false; - } - return true; - } - return false; - } - - /** - * - * - * @generated - */ - public IFile getModelFile() { - return ResourcesPlugin.getWorkspace() - .getRoot() - .getFile(this.getContainerFullPath() - .append(this.getFileName())); - } - } - - /** - * This is the page where the type of object to create is selected. - * - * @generated - */ - public class VariationModelWizardInitialObjectCreationPage extends WizardPage { - - /** - * - * - * @generated - */ - protected Combo initialObjectField; - - /** - * @generated - */ - protected List encodings; - - /** - * - * - * @generated - */ - protected Combo encodingField; - - /** - * Pass in the selection. - * - * @generated - */ - public VariationModelWizardInitialObjectCreationPage(final String pageId) { - super(pageId); - } - - /** - * - * - * @generated - */ - @Override - public void createControl(final Composite parent) { - final Composite composite = new Composite(parent, SWT.NONE); - { - final GridLayout layout = new GridLayout(); - layout.numColumns = 1; - layout.verticalSpacing = 12; - composite.setLayout(layout); - - final GridData data = new GridData(); - data.verticalAlignment = GridData.FILL; - data.grabExcessVerticalSpace = true; - data.horizontalAlignment = GridData.FILL; - composite.setLayoutData(data); - } - - final Label containerLabel = new Label(composite, SWT.LEFT); - { - containerLabel.setText(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_ModelObject")); - - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - containerLabel.setLayoutData(data); - } - - this.initialObjectField = new Combo(composite, SWT.BORDER); - { - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - this.initialObjectField.setLayoutData(data); - } - - for (final String objectName : VariationModelWizard.this.getInitialObjectNames()) { - this.initialObjectField.add(this.getLabel(objectName)); - } - - if (this.initialObjectField.getItemCount() == 1) { - this.initialObjectField.select(0); - } - this.initialObjectField.addModifyListener(this.validator); - - final Label encodingLabel = new Label(composite, SWT.LEFT); - { - encodingLabel.setText(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); - - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - encodingLabel.setLayoutData(data); - } - this.encodingField = new Combo(composite, SWT.BORDER); - { - final GridData data = new GridData(); - data.horizontalAlignment = GridData.FILL; - data.grabExcessHorizontalSpace = true; - this.encodingField.setLayoutData(data); - } - - for (final String encoding : this.getEncodings()) { - this.encodingField.add(encoding); - } - - this.encodingField.select(0); - this.encodingField.addModifyListener(this.validator); - - this.setPageComplete(this.validatePage()); - this.setControl(composite); - } - - /** - * - * - * @generated - */ - protected ModifyListener validator = new ModifyListener() { - @Override - public void modifyText(final ModifyEvent e) { - VariationModelWizardInitialObjectCreationPage.this - .setPageComplete(VariationModelWizardInitialObjectCreationPage.this.validatePage()); - } - }; - - /** - * - * - * @generated - */ - protected boolean validatePage() { - return this.getInitialObjectName() != null && this.getEncodings() - .contains(this.encodingField.getText()); - } - - /** - * - * - * @generated - */ - @Override - public void setVisible(final boolean visible) { - super.setVisible(visible); - if (visible) { - if (this.initialObjectField.getItemCount() == 1) { - this.initialObjectField.clearSelection(); - this.encodingField.setFocus(); - } else { - this.encodingField.clearSelection(); - this.initialObjectField.setFocus(); - } - } - } - - /** - * - * - * @generated - */ - public String getInitialObjectName() { - final String label = this.initialObjectField.getText(); - - for (final String name : VariationModelWizard.this.getInitialObjectNames()) { - if (this.getLabel(name) - .equals(label)) { - return name; - } - } - return null; - } - - /** - * - * - * @generated - */ - public String getEncoding() { - return this.encodingField.getText(); - } - - /** - * Returns the label for the specified type name. - * - * @generated - */ - protected String getLabel(final String typeName) { - try { - return ExperimentAutomationEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); - } catch (final MissingResourceException mre) { - ExperimentAutomationEditorPlugin.INSTANCE.log(mre); - } - return typeName; - } - - /** - * - * - * @generated - */ - protected Collection getEncodings() { - if (this.encodings == null) { - this.encodings = new ArrayList(); - for (final StringTokenizer stringTokenizer = new StringTokenizer( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_XMLEncodingChoices")); stringTokenizer - .hasMoreTokens();) { - this.encodings.add(stringTokenizer.nextToken()); - } - } - return this.encodings; - } - } - - /** - * The framework calls this to create the contents of the wizard. - * - * @generated - */ - @Override - public void addPages() { - // Create a page, set the title, and the initial model file name. - // - this.newFileCreationPage = new VariationModelWizardNewFileCreationPage("Whatever", this.selection); - this.newFileCreationPage - .setTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_VariationModelWizard_label")); - this.newFileCreationPage.setDescription( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_VariationModelWizard_description")); - this.newFileCreationPage - .setFileName(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_VariationEditorFilenameDefaultBase") - + "." + FILE_EXTENSIONS.get(0)); - this.addPage(this.newFileCreationPage); - - // Try and get the resource selection to determine a current directory for the file dialog. - // - if (this.selection != null && !this.selection.isEmpty()) { - // Get the resource... - // - final Object selectedElement = this.selection.iterator() - .next(); - if (selectedElement instanceof IResource) { - // Get the resource parent, if its a file. - // - IResource selectedResource = (IResource) selectedElement; - if (selectedResource.getType() == IResource.FILE) { - selectedResource = selectedResource.getParent(); - } - - // This gives us a directory... - // - if (selectedResource instanceof IFolder || selectedResource instanceof IProject) { - // Set this for the container. - // - this.newFileCreationPage.setContainerFullPath(selectedResource.getFullPath()); - - // Make up a unique new name here. - // - final String defaultModelBaseFilename = ExperimentAutomationEditorPlugin.INSTANCE - .getString("_UI_VariationEditorFilenameDefaultBase"); - final String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0); - String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension; - for (int i = 1; ((IContainer) selectedResource).findMember(modelFilename) != null; ++i) { - modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension; - } - this.newFileCreationPage.setFileName(modelFilename); - } - } - } - this.initialObjectCreationPage = new VariationModelWizardInitialObjectCreationPage("Whatever2"); - this.initialObjectCreationPage - .setTitle(ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_VariationModelWizard_label")); - this.initialObjectCreationPage.setDescription( - ExperimentAutomationEditorPlugin.INSTANCE.getString("_UI_Wizard_initial_object_description")); - this.addPage(this.initialObjectCreationPage); - } - - /** - * Get the file from the page. - * - * @generated - */ - public IFile getModelFile() { - return this.newFileCreationPage.getModelFile(); - } - -} diff --git a/bundles/org.palladiosimulator.experimentautomation/.classpath b/bundles/org.palladiosimulator.experimentautomation/.classpath index e801ebfb..d837b662 100644 --- a/bundles/org.palladiosimulator.experimentautomation/.classpath +++ b/bundles/org.palladiosimulator.experimentautomation/.classpath @@ -1,7 +1,11 @@ - + + + + + + - diff --git a/bundles/org.palladiosimulator.experimentautomation/META-INF/MANIFEST.MF b/bundles/org.palladiosimulator.experimentautomation/META-INF/MANIFEST.MF index c7056832..91ff4e6f 100644 --- a/bundles/org.palladiosimulator.experimentautomation/META-INF/MANIFEST.MF +++ b/bundles/org.palladiosimulator.experimentautomation/META-INF/MANIFEST.MF @@ -35,5 +35,6 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="3.10.0", org.palladiosimulator.pcm.edp2.measuringpoint;bundle-version="1.0.0", org.palladiosimulator.pcm.edp2.measuringpoint.edit;bundle-version="1.0.0", org.palladiosimulator.edp2.dao;bundle-version="1.0.0", - tools.descartes.dlim.generator;bundle-version="0.14.10";visibility:=reexport + tools.descartes.dlim.generator;bundle-version="0.14.10";visibility:=reexport, + org.palladiosimulator.experimentautomation.workflow;bundle-version="1.0.0";resolution:=optional Bundle-ActivationPolicy: lazy diff --git a/bundles/org.palladiosimulator.experimentautomation/build.properties b/bundles/org.palladiosimulator.experimentautomation/build.properties index 4d3b1827..0e10ab4f 100644 --- a/bundles/org.palladiosimulator.experimentautomation/build.properties +++ b/bundles/org.palladiosimulator.experimentautomation/build.properties @@ -6,5 +6,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . -source.. = src/ +source.. = src-gen/ output.. = bin/ diff --git a/bundles/org.palladiosimulator.experimentautomation/model/ExperimentAutomation.genmodel b/bundles/org.palladiosimulator.experimentautomation/model/ExperimentAutomation.genmodel deleted file mode 100644 index 8f0b8f05..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/model/ExperimentAutomation.genmodel +++ /dev/null @@ -1,204 +0,0 @@ - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - experimentautomation.ecore - CDO=org.eclipse.emf.cdo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.palladiosimulator.experimentautomation/model/experimentautomation.aird b/bundles/org.palladiosimulator.experimentautomation/model/experimentautomation.aird index d1363a68..0b8053eb 100644 --- a/bundles/org.palladiosimulator.experimentautomation/model/experimentautomation.aird +++ b/bundles/org.palladiosimulator.experimentautomation/model/experimentautomation.aird @@ -1,6 +1,6 @@ - - + + experimentautomation.ecore platform:/plugin/de.uka.ipd.sdq.identifier/model/identifier.ecore http://www.eclipse.org/emf/2002/Ecore @@ -16,7 +16,6 @@ platform:/plugin/org.scaledl.usageevolution/model/usageevolution.ecore platform:/plugin/tools.descartes.tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.ecore platform:/plugin/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.ecore - ExperimentAutomation.genmodel platform:/plugin/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.genmodel platform:/plugin/org.palladiosimulator.edp2/model/EDP2.genmodel platform:/plugin/de.uka.ipd.sdq.identifier/model/identifier.genmodel @@ -34,6 +33,7 @@ platform:/plugin/org.eclipse.uml2.types/model/Types.genmodel platform:/plugin/org.eclipse.uml2.types/model/Types.ecore platform:/plugin/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.genmodel + experimentautomation.genmodel diff --git a/bundles/org.palladiosimulator.experimentautomation/model/experimentautomation.genmodel b/bundles/org.palladiosimulator.experimentautomation/model/experimentautomation.genmodel new file mode 100644 index 00000000..289d0c08 --- /dev/null +++ b/bundles/org.palladiosimulator.experimentautomation/model/experimentautomation.genmodel @@ -0,0 +1,165 @@ + + + experimentautomation.ecore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractSimulationConfiguration.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractSimulationConfiguration.java deleted file mode 100644 index 97d2fe6c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractSimulationConfiguration.java +++ /dev/null @@ -1,178 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -import org.eclipse.emf.common.util.EList; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * A representation of the model object ' Abstract Simulation - * Configuration'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getStopConditions - * Stop Conditions}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getRandomNumberGeneratorSeed - * Random Number Generator Seed}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateLinkingResources - * Simulate Linking Resources}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateFailures - * Simulate Failures}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getDatasource - * Datasource}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getAbstractSimulationConfiguration() - * @model abstract="true" - * @generated - */ -public interface AbstractSimulationConfiguration extends ToolConfiguration { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Stop Conditions' containment reference list. The - * list contents are of type - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition}. - *

- * If the meaning of the 'Stop Conditions' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * - * @return the value of the 'Stop Conditions' containment reference list. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getAbstractSimulationConfiguration_StopConditions() - * @model containment="true" required="true" ordered="false" - * @generated - */ - EList getStopConditions(); - - /** - * Returns the value of the 'Random Number Generator Seed' containment - * reference. - *

- * If the meaning of the 'Random Number Generator Seed' containment reference isn't - * clear, there really should be more of a description here... - *

- * - * - * @return the value of the 'Random Number Generator Seed' containment reference. - * @see #setRandomNumberGeneratorSeed(RandomNumberGeneratorSeed) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getAbstractSimulationConfiguration_RandomNumberGeneratorSeed() - * @model containment="true" ordered="false" - * @generated - */ - RandomNumberGeneratorSeed getRandomNumberGeneratorSeed(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getRandomNumberGeneratorSeed - * Random Number Generator Seed}' containment reference. - * - * @param value - * the new value of the 'Random Number Generator Seed' containment - * reference. - * @see #getRandomNumberGeneratorSeed() - * @generated - */ - void setRandomNumberGeneratorSeed(RandomNumberGeneratorSeed value); - - /** - * Returns the value of the 'Simulate Linking Resources' attribute. - *

- * If the meaning of the 'Simulate Linking Resources' attribute isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Simulate Linking Resources' attribute. - * @see #setSimulateLinkingResources(boolean) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getAbstractSimulationConfiguration_SimulateLinkingResources() - * @model required="true" ordered="false" - * @generated - */ - boolean isSimulateLinkingResources(); - - /** - * Sets the value of the ' - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateLinkingResources - * Simulate Linking Resources}' attribute. - * - * @param value - * the new value of the 'Simulate Linking Resources' attribute. - * @see #isSimulateLinkingResources() - * @generated - */ - void setSimulateLinkingResources(boolean value); - - /** - * Returns the value of the 'Simulate Failures' attribute. - *

- * If the meaning of the 'Simulate Failures' attribute isn't clear, there really should - * be more of a description here... - *

- * - * - * @return the value of the 'Simulate Failures' attribute. - * @see #setSimulateFailures(boolean) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getAbstractSimulationConfiguration_SimulateFailures() - * @model required="true" ordered="false" - * @generated - */ - boolean isSimulateFailures(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateFailures - * Simulate Failures}' attribute. - * - * @param value - * the new value of the 'Simulate Failures' attribute. - * @see #isSimulateFailures() - * @generated - */ - void setSimulateFailures(boolean value); - - /** - * Returns the value of the 'Datasource' containment reference. - *

- * If the meaning of the 'Datasource' containment reference isn't clear, there really - * should be more of a description here... - *

- * - * - * @return the value of the 'Datasource' containment reference. - * @see #setDatasource(EDP2Datasource) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getAbstractSimulationConfiguration_Datasource() - * @model containment="true" required="true" ordered="false" - * @generated - */ - EDP2Datasource getDatasource(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getDatasource - * Datasource}' containment reference. - * - * @param value - * the new value of the 'Datasource' containment reference. - * @see #getDatasource() - * @generated - */ - void setDatasource(EDP2Datasource value); - -} // AbstractSimulationConfiguration diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractsimulationFactory.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractsimulationFactory.java deleted file mode 100644 index dfa573ec..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractsimulationFactory.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -import org.eclipse.emf.ecore.EFactory; - -/** - * The Factory for the model. It provides a create method for each - * non-abstract class of the model. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage - * @generated - */ -public interface AbstractsimulationFactory extends EFactory { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The singleton instance of the factory. - * - * @generated - */ - AbstractsimulationFactory eINSTANCE = org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationFactoryImpl - .init(); - - /** - * Returns a new object of class 'Random Number Generator Seed'. - * - * @return a new object of class 'Random Number Generator Seed'. - * @generated - */ - RandomNumberGeneratorSeed createRandomNumberGeneratorSeed(); - - /** - * Returns a new object of class 'Memory Datasource'. - * - * @return a new object of class 'Memory Datasource'. - * @generated - */ - MemoryDatasource createMemoryDatasource(); - - /** - * Returns a new object of class 'File Datasource'. - * - * @return a new object of class 'File Datasource'. - * @generated - */ - FileDatasource createFileDatasource(); - - /** - * Returns a new object of class 'Measurement Count Stop Condition'. - * - * @return a new object of class 'Measurement Count Stop Condition'. - * @generated - */ - MeasurementCountStopCondition createMeasurementCountStopCondition(); - - /** - * Returns a new object of class 'Sim Time Stop Condition'. - * - * - * @return a new object of class 'Sim Time Stop Condition'. - * @generated - */ - SimTimeStopCondition createSimTimeStopCondition(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - AbstractsimulationPackage getAbstractsimulationPackage(); - -} // AbstractsimulationFactory diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractsimulationPackage.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractsimulationPackage.java deleted file mode 100644 index 49db2893..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/AbstractsimulationPackage.java +++ /dev/null @@ -1,964 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; - -/** - * The Package for the model. It contains accessors for the meta - * objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationFactory - * @model kind="package" - * @generated - */ -public interface AbstractsimulationPackage extends EPackage { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The package name. - * - * @generated - */ - String eNAME = "abstractsimulation"; - - /** - * The package namespace URI. - * - * @generated - */ - String eNS_URI = "http://palladiosimulator.org/ExperimentAutomation/AbstractSimulation/1.0"; - - /** - * The package namespace name. - * - * @generated - */ - String eNS_PREFIX = "ExperimentAutomation.Experiments.AbstractSimulation"; - - /** - * The singleton instance of the package. - * - * @generated - */ - AbstractsimulationPackage eINSTANCE = org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl - .init(); - - /** - * The meta object id for the ' - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl - * Abstract Simulation Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getAbstractSimulationConfiguration() - * @generated - */ - int ABSTRACT_SIMULATION_CONFIGURATION = 0; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int ABSTRACT_SIMULATION_CONFIGURATION__NAME = ExperimentsPackage.TOOL_CONFIGURATION__NAME; - - /** - * The feature id for the 'Stop Conditions' containment reference list. - * - * @generated - * @ordered - */ - int ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS = ExperimentsPackage.TOOL_CONFIGURATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Random Number Generator Seed' containment reference. - * - * - * @generated - * @ordered - */ - int ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED = ExperimentsPackage.TOOL_CONFIGURATION_FEATURE_COUNT - + 1; - - /** - * The feature id for the 'Simulate Linking Resources' attribute. - * - * @generated - * @ordered - */ - int ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES = ExperimentsPackage.TOOL_CONFIGURATION_FEATURE_COUNT - + 2; - - /** - * The feature id for the 'Simulate Failures' attribute. - * - * - * @generated - * @ordered - */ - int ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES = ExperimentsPackage.TOOL_CONFIGURATION_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Datasource' containment reference. - * - * @generated - * @ordered - */ - int ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE = ExperimentsPackage.TOOL_CONFIGURATION_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Abstract Simulation Configuration' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_SIMULATION_CONFIGURATION_FEATURE_COUNT = ExperimentsPackage.TOOL_CONFIGURATION_FEATURE_COUNT + 5; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl - * Random Number Generator Seed}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getRandomNumberGeneratorSeed() - * @generated - */ - int RANDOM_NUMBER_GENERATOR_SEED = 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.MemoryDatasourceImpl - * Memory Datasource}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.MemoryDatasourceImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getMemoryDatasource() - * @generated - */ - int MEMORY_DATASOURCE = 3; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.FileDatasourceImpl - * File Datasource}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.FileDatasourceImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getFileDatasource() - * @generated - */ - int FILE_DATASOURCE = 4; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.StopConditionImpl - * Stop Condition}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.StopConditionImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getStopCondition() - * @generated - */ - int STOP_CONDITION = 7; - - /** - * The meta object id for the ' - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.MeasurementCountStopConditionImpl - * Measurement Count Stop Condition}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.MeasurementCountStopConditionImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getMeasurementCountStopCondition() - * @generated - */ - int MEASUREMENT_COUNT_STOP_CONDITION = 5; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.SimTimeStopConditionImpl - * Sim Time Stop Condition}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.SimTimeStopConditionImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getSimTimeStopCondition() - * @generated - */ - int SIM_TIME_STOP_CONDITION = 6; - - /** - * The feature id for the 'Seed0' attribute. - * - * @generated - * @ordered - */ - int RANDOM_NUMBER_GENERATOR_SEED__SEED0 = 0; - - /** - * The feature id for the 'Seed1' attribute. - * - * @generated - * @ordered - */ - int RANDOM_NUMBER_GENERATOR_SEED__SEED1 = 1; - - /** - * The feature id for the 'Seed2' attribute. - * - * @generated - * @ordered - */ - int RANDOM_NUMBER_GENERATOR_SEED__SEED2 = 2; - - /** - * The feature id for the 'Seed3' attribute. - * - * @generated - * @ordered - */ - int RANDOM_NUMBER_GENERATOR_SEED__SEED3 = 3; - - /** - * The feature id for the 'Seed4' attribute. - * - * @generated - * @ordered - */ - int RANDOM_NUMBER_GENERATOR_SEED__SEED4 = 4; - - /** - * The feature id for the 'Seed5' attribute. - * - * @generated - * @ordered - */ - int RANDOM_NUMBER_GENERATOR_SEED__SEED5 = 5; - - /** - * The number of structural features of the 'Random Number Generator Seed' class. - * - * @generated - * @ordered - */ - int RANDOM_NUMBER_GENERATOR_SEED_FEATURE_COUNT = 6; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.EDP2DatasourceImpl - * EDP2 Datasource}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.EDP2DatasourceImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getEDP2Datasource() - * @generated - */ - int EDP2_DATASOURCE = 2; - - /** - * The feature id for the 'Id' attribute. - * - * @generated - * @ordered - */ - int EDP2_DATASOURCE__ID = 0; - - /** - * The number of structural features of the 'EDP2 Datasource' class. - * - * @generated - * @ordered - */ - int EDP2_DATASOURCE_FEATURE_COUNT = 1; - - /** - * The feature id for the 'Id' attribute. - * - * @generated - * @ordered - */ - int MEMORY_DATASOURCE__ID = EDP2_DATASOURCE__ID; - - /** - * The number of structural features of the 'Memory Datasource' class. - * - * @generated - * @ordered - */ - int MEMORY_DATASOURCE_FEATURE_COUNT = EDP2_DATASOURCE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Id' attribute. - * - * @generated - * @ordered - */ - int FILE_DATASOURCE__ID = EDP2_DATASOURCE__ID; - - /** - * The feature id for the 'Location' attribute. - * - * @generated - * @ordered - */ - int FILE_DATASOURCE__LOCATION = EDP2_DATASOURCE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Export Option' attribute. - * - * - * @generated - * @ordered - */ - int FILE_DATASOURCE__EXPORT_OPTION = EDP2_DATASOURCE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'File Datasource' class. - * - * @generated - * @ordered - */ - int FILE_DATASOURCE_FEATURE_COUNT = EDP2_DATASOURCE_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Stop Condition' class. - * - * @generated - * @ordered - */ - int STOP_CONDITION_FEATURE_COUNT = 0; - - /** - * The feature id for the 'Measurement Count' attribute. - * - * - * @generated - * @ordered - */ - int MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT = STOP_CONDITION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Measurement Count Stop Condition' class. - * - * - * @generated - * @ordered - */ - int MEASUREMENT_COUNT_STOP_CONDITION_FEATURE_COUNT = STOP_CONDITION_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Simulation Time' attribute. - * - * - * @generated - * @ordered - */ - int SIM_TIME_STOP_CONDITION__SIMULATION_TIME = STOP_CONDITION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Sim Time Stop Condition' class. - * - * @generated - * @ordered - */ - int SIM_TIME_STOP_CONDITION_FEATURE_COUNT = STOP_CONDITION_FEATURE_COUNT + 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption Export - * Option}' enum. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getExportOption() - * @generated - */ - int EXPORT_OPTION = 8; - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * Abstract Simulation Configuration}'. - * - * @return the meta object for class 'Abstract Simulation Configuration'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * @generated - */ - EClass getAbstractSimulationConfiguration(); - - /** - * Returns the meta object for the containment reference list - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getStopConditions - * Stop Conditions}'. - * - * @return the meta object for the containment reference list 'Stop Conditions'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getStopConditions() - * @see #getAbstractSimulationConfiguration() - * @generated - */ - EReference getAbstractSimulationConfiguration_StopConditions(); - - /** - * Returns the meta object for the containment reference - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getRandomNumberGeneratorSeed - * Random Number Generator Seed}'. - * - * @return the meta object for the containment reference 'Random Number Generator - * Seed'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getRandomNumberGeneratorSeed() - * @see #getAbstractSimulationConfiguration() - * @generated - */ - EReference getAbstractSimulationConfiguration_RandomNumberGeneratorSeed(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateLinkingResources - * Simulate Linking Resources}'. - * - * @return the meta object for the attribute 'Simulate Linking Resources'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateLinkingResources() - * @see #getAbstractSimulationConfiguration() - * @generated - */ - EAttribute getAbstractSimulationConfiguration_SimulateLinkingResources(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateFailures - * Simulate Failures}'. - * - * @return the meta object for the attribute 'Simulate Failures'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#isSimulateFailures() - * @see #getAbstractSimulationConfiguration() - * @generated - */ - EAttribute getAbstractSimulationConfiguration_SimulateFailures(); - - /** - * Returns the meta object for the containment reference - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getDatasource - * Datasource}'. - * - * @return the meta object for the containment reference 'Datasource'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration#getDatasource() - * @see #getAbstractSimulationConfiguration() - * @generated - */ - EReference getAbstractSimulationConfiguration_Datasource(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed - * Random Number Generator Seed}'. - * - * @return the meta object for class 'Random Number Generator Seed'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed - * @generated - */ - EClass getRandomNumberGeneratorSeed(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed0 - * Seed0}'. - * - * @return the meta object for the attribute 'Seed0'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed0() - * @see #getRandomNumberGeneratorSeed() - * @generated - */ - EAttribute getRandomNumberGeneratorSeed_Seed0(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed1 - * Seed1}'. - * - * @return the meta object for the attribute 'Seed1'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed1() - * @see #getRandomNumberGeneratorSeed() - * @generated - */ - EAttribute getRandomNumberGeneratorSeed_Seed1(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed2 - * Seed2}'. - * - * @return the meta object for the attribute 'Seed2'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed2() - * @see #getRandomNumberGeneratorSeed() - * @generated - */ - EAttribute getRandomNumberGeneratorSeed_Seed2(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed3 - * Seed3}'. - * - * @return the meta object for the attribute 'Seed3'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed3() - * @see #getRandomNumberGeneratorSeed() - * @generated - */ - EAttribute getRandomNumberGeneratorSeed_Seed3(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed4 - * Seed4}'. - * - * @return the meta object for the attribute 'Seed4'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed4() - * @see #getRandomNumberGeneratorSeed() - * @generated - */ - EAttribute getRandomNumberGeneratorSeed_Seed4(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed5 - * Seed5}'. - * - * @return the meta object for the attribute 'Seed5'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed5() - * @see #getRandomNumberGeneratorSeed() - * @generated - */ - EAttribute getRandomNumberGeneratorSeed_Seed5(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource EDP2 - * Datasource}'. - * - * @return the meta object for class 'EDP2 Datasource'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource - * @generated - */ - EClass getEDP2Datasource(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource#getId - * Id}'. - * - * @return the meta object for the attribute 'Id'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource#getId() - * @see #getEDP2Datasource() - * @generated - */ - EAttribute getEDP2Datasource_Id(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource - * Memory Datasource}'. - * - * @return the meta object for class 'Memory Datasource'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource - * @generated - */ - EClass getMemoryDatasource(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource File - * Datasource}'. - * - * @return the meta object for class 'File Datasource'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource - * @generated - */ - EClass getFileDatasource(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getLocation - * Location}'. - * - * @return the meta object for the attribute 'Location'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getLocation() - * @see #getFileDatasource() - * @generated - */ - EAttribute getFileDatasource_Location(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getExportOption - * Export Option}'. - * - * @return the meta object for the attribute 'Export Option'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getExportOption() - * @see #getFileDatasource() - * @generated - */ - EAttribute getFileDatasource_ExportOption(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition - * Measurement Count Stop Condition}'. - * - * @return the meta object for class 'Measurement Count Stop Condition'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition - * @generated - */ - EClass getMeasurementCountStopCondition(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition#getMeasurementCount - * Measurement Count}'. - * - * @return the meta object for the attribute 'Measurement Count'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition#getMeasurementCount() - * @see #getMeasurementCountStopCondition() - * @generated - */ - EAttribute getMeasurementCountStopCondition_MeasurementCount(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition - * Sim Time Stop Condition}'. - * - * @return the meta object for class 'Sim Time Stop Condition'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition - * @generated - */ - EClass getSimTimeStopCondition(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition#getSimulationTime - * Simulation Time}'. - * - * @return the meta object for the attribute 'Simulation Time'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition#getSimulationTime() - * @see #getSimTimeStopCondition() - * @generated - */ - EAttribute getSimTimeStopCondition_SimulationTime(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition Stop - * Condition}'. - * - * @return the meta object for class 'Stop Condition'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition - * @generated - */ - EClass getStopCondition(); - - /** - * Returns the meta object for enum - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption Export - * Option}'. - * - * @return the meta object for enum 'Export Option'. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption - * @generated - */ - EEnum getExportOption(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - AbstractsimulationFactory getAbstractsimulationFactory(); - - /** - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl - * Abstract Simulation Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getAbstractSimulationConfiguration() - * @generated - */ - EClass ABSTRACT_SIMULATION_CONFIGURATION = eINSTANCE.getAbstractSimulationConfiguration(); - - /** - * The meta object literal for the 'Stop Conditions' containment reference - * list feature. - * - * @generated - */ - EReference ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS = eINSTANCE - .getAbstractSimulationConfiguration_StopConditions(); - - /** - * The meta object literal for the 'Random Number Generator Seed' - * containment reference feature. - * - * @generated - */ - EReference ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED = eINSTANCE - .getAbstractSimulationConfiguration_RandomNumberGeneratorSeed(); - - /** - * The meta object literal for the 'Simulate Linking Resources' attribute - * feature. - * - * @generated - */ - EAttribute ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES = eINSTANCE - .getAbstractSimulationConfiguration_SimulateLinkingResources(); - - /** - * The meta object literal for the 'Simulate Failures' attribute feature. - * - * - * @generated - */ - EAttribute ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES = eINSTANCE - .getAbstractSimulationConfiguration_SimulateFailures(); - - /** - * The meta object literal for the 'Datasource' containment reference - * feature. - * - * @generated - */ - EReference ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE = eINSTANCE - .getAbstractSimulationConfiguration_Datasource(); - - /** - * The meta object literal for the ' - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl - * Random Number Generator Seed}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getRandomNumberGeneratorSeed() - * @generated - */ - EClass RANDOM_NUMBER_GENERATOR_SEED = eINSTANCE.getRandomNumberGeneratorSeed(); - - /** - * The meta object literal for the 'Seed0' attribute feature. - * - * @generated - */ - EAttribute RANDOM_NUMBER_GENERATOR_SEED__SEED0 = eINSTANCE.getRandomNumberGeneratorSeed_Seed0(); - - /** - * The meta object literal for the 'Seed1' attribute feature. - * - * @generated - */ - EAttribute RANDOM_NUMBER_GENERATOR_SEED__SEED1 = eINSTANCE.getRandomNumberGeneratorSeed_Seed1(); - - /** - * The meta object literal for the 'Seed2' attribute feature. - * - * @generated - */ - EAttribute RANDOM_NUMBER_GENERATOR_SEED__SEED2 = eINSTANCE.getRandomNumberGeneratorSeed_Seed2(); - - /** - * The meta object literal for the 'Seed3' attribute feature. - * - * @generated - */ - EAttribute RANDOM_NUMBER_GENERATOR_SEED__SEED3 = eINSTANCE.getRandomNumberGeneratorSeed_Seed3(); - - /** - * The meta object literal for the 'Seed4' attribute feature. - * - * @generated - */ - EAttribute RANDOM_NUMBER_GENERATOR_SEED__SEED4 = eINSTANCE.getRandomNumberGeneratorSeed_Seed4(); - - /** - * The meta object literal for the 'Seed5' attribute feature. - * - * @generated - */ - EAttribute RANDOM_NUMBER_GENERATOR_SEED__SEED5 = eINSTANCE.getRandomNumberGeneratorSeed_Seed5(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.EDP2DatasourceImpl - * EDP2 Datasource}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.EDP2DatasourceImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getEDP2Datasource() - * @generated - */ - EClass EDP2_DATASOURCE = eINSTANCE.getEDP2Datasource(); - - /** - * The meta object literal for the 'Id' attribute feature. - * - * @generated - */ - EAttribute EDP2_DATASOURCE__ID = eINSTANCE.getEDP2Datasource_Id(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.MemoryDatasourceImpl - * Memory Datasource}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.MemoryDatasourceImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getMemoryDatasource() - * @generated - */ - EClass MEMORY_DATASOURCE = eINSTANCE.getMemoryDatasource(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.FileDatasourceImpl - * File Datasource}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.FileDatasourceImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getFileDatasource() - * @generated - */ - EClass FILE_DATASOURCE = eINSTANCE.getFileDatasource(); - - /** - * The meta object literal for the 'Location' attribute feature. - * - * @generated - */ - EAttribute FILE_DATASOURCE__LOCATION = eINSTANCE.getFileDatasource_Location(); - - /** - * The meta object literal for the 'Export Option' attribute feature. - * - * @generated - */ - EAttribute FILE_DATASOURCE__EXPORT_OPTION = eINSTANCE.getFileDatasource_ExportOption(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.MeasurementCountStopConditionImpl - * Measurement Count Stop Condition}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.MeasurementCountStopConditionImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getMeasurementCountStopCondition() - * @generated - */ - EClass MEASUREMENT_COUNT_STOP_CONDITION = eINSTANCE.getMeasurementCountStopCondition(); - - /** - * The meta object literal for the 'Measurement Count' attribute feature. - * - * - * @generated - */ - EAttribute MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT = eINSTANCE - .getMeasurementCountStopCondition_MeasurementCount(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.SimTimeStopConditionImpl - * Sim Time Stop Condition}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.SimTimeStopConditionImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getSimTimeStopCondition() - * @generated - */ - EClass SIM_TIME_STOP_CONDITION = eINSTANCE.getSimTimeStopCondition(); - - /** - * The meta object literal for the 'Simulation Time' attribute feature. - * - * @generated - */ - EAttribute SIM_TIME_STOP_CONDITION__SIMULATION_TIME = eINSTANCE.getSimTimeStopCondition_SimulationTime(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.StopConditionImpl - * Stop Condition}' class. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.StopConditionImpl - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getStopCondition() - * @generated - */ - EClass STOP_CONDITION = eINSTANCE.getStopCondition(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption - * Export Option}' enum. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption - * @see org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl#getExportOption() - * @generated - */ - EEnum EXPORT_OPTION = eINSTANCE.getExportOption(); - - } - -} // AbstractsimulationPackage diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/EDP2Datasource.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/EDP2Datasource.java deleted file mode 100644 index 0926dbbe..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/EDP2Datasource.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object 'EDP2 Datasource'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource#getId - * Id}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getEDP2Datasource() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface EDP2Datasource extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Id' attribute. - *

- * If the meaning of the 'Id' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Id' attribute. - * @see #setId(String) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getEDP2Datasource_Id() - * @model - * @generated - */ - String getId(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource#getId - * Id}' attribute. - * - * @param value - * the new value of the 'Id' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - -} // EDP2Datasource diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/ExportOption.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/ExportOption.java deleted file mode 100644 index fdd3efad..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/ExportOption.java +++ /dev/null @@ -1,212 +0,0 @@ -/** - * Palladiosimulator.org 2008-2017 - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * A representation of the literals of the enumeration 'Export - * Option', and utility methods for working with them. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getExportOption() - * @model - * @generated - */ -public enum ExportOption implements Enumerator { - /** - * The 'EDP2' literal object. - * - * @see #EDP2_VALUE - * @generated - * @ordered - */ - EDP2(0, "EDP2", "EDP2"), - - /** - * The 'CSV' literal object. - * - * @see #CSV_VALUE - * @generated - * @ordered - */ - CSV(1, "CSV", "CSV"); - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The 'EDP2' literal value. - * - * @see #EDP2 - * @model - * @generated - * @ordered - */ - public static final int EDP2_VALUE = 0; - - /** - * The 'CSV' literal value. - * - * @see #CSV - * @model - * @generated - * @ordered - */ - public static final int CSV_VALUE = 1; - - /** - * An array of all the 'Export Option' enumerators. - * - * @generated - */ - private static final ExportOption[] VALUES_ARRAY = new ExportOption[] { EDP2, CSV, }; - - /** - * A public read-only list of all the 'Export Option' enumerators. - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Export Option' literal with the specified literal value. - * - * @param literal - * the literal. - * @return the matching enumerator or null. - * @generated - */ - public static ExportOption get(final String literal) { - for (final ExportOption result : VALUES_ARRAY) { - if (result.toString() - .equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Export Option' literal with the specified name. - * - * @param name - * the name. - * @return the matching enumerator or null. - * @generated - */ - public static ExportOption getByName(final String name) { - for (final ExportOption result : VALUES_ARRAY) { - if (result.getName() - .equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the 'Export Option' literal with the specified integer value. - * - * @param value - * the integer value. - * @return the matching enumerator or null. - * @generated - */ - public static ExportOption get(final int value) { - switch (value) { - case EDP2_VALUE: - return EDP2; - case CSV_VALUE: - return CSV; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * @generated - */ - private ExportOption(final int value, final String name, final String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - @Override - public int getValue() { - return this.value; - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return this.name; - } - - /** - * - * - * @generated - */ - @Override - public String getLiteral() { - return this.literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * @generated - */ - @Override - public String toString() { - return this.literal; - } - -} // ExportOption diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/FileDatasource.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/FileDatasource.java deleted file mode 100644 index fe8c9538..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/FileDatasource.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -/** - * A representation of the model object 'File Datasource'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getLocation - * Location}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getExportOption - * Export Option}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getFileDatasource() - * @model - * @generated - */ -public interface FileDatasource extends EDP2Datasource { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Location' attribute. - *

- * If the meaning of the 'Location' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Location' attribute. - * @see #setLocation(String) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getFileDatasource_Location() - * @model required="true" ordered="false" - * @generated - */ - String getLocation(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getLocation - * Location}' attribute. - * - * @param value - * the new value of the 'Location' attribute. - * @see #getLocation() - * @generated - */ - void setLocation(String value); - - /** - * Returns the value of the 'Export Option' attribute. The default value is - * "EDP2". The literals are from the enumeration - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption}. - *

- * If the meaning of the 'Export Option' attribute isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Export Option' attribute. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption - * @see #setExportOption(ExportOption) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getFileDatasource_ExportOption() - * @model default="EDP2" - * @generated - */ - ExportOption getExportOption(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource#getExportOption - * Export Option}' attribute. - * - * @param value - * the new value of the 'Export Option' attribute. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption - * @see #getExportOption() - * @generated - */ - void setExportOption(ExportOption value); - -} // FileDatasource diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/MeasurementCountStopCondition.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/MeasurementCountStopCondition.java deleted file mode 100644 index 491d69b3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/MeasurementCountStopCondition.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -/** - * A representation of the model object ' Measurement Count Stop - * Condition'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition#getMeasurementCount - * Measurement Count}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getMeasurementCountStopCondition() - * @model - * @generated - */ -public interface MeasurementCountStopCondition extends StopCondition { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Measurement Count' attribute. - *

- * If the meaning of the 'Measurement Count' attribute isn't clear, there really should - * be more of a description here... - *

- * - * - * @return the value of the 'Measurement Count' attribute. - * @see #setMeasurementCount(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getMeasurementCountStopCondition_MeasurementCount() - * @model required="true" ordered="false" - * @generated - */ - int getMeasurementCount(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition#getMeasurementCount - * Measurement Count}' attribute. - * - * @param value - * the new value of the 'Measurement Count' attribute. - * @see #getMeasurementCount() - * @generated - */ - void setMeasurementCount(int value); - -} // MeasurementCountStopCondition diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/MemoryDatasource.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/MemoryDatasource.java deleted file mode 100644 index e29b01e4..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/MemoryDatasource.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -/** - * A representation of the model object 'Memory Datasource'. - * - * - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getMemoryDatasource() - * @model - * @generated - */ -public interface MemoryDatasource extends EDP2Datasource { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // MemoryDatasource diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/RandomNumberGeneratorSeed.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/RandomNumberGeneratorSeed.java deleted file mode 100644 index 76eb1e1e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/RandomNumberGeneratorSeed.java +++ /dev/null @@ -1,211 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object ' Random Number Generator - * Seed'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed0 - * Seed0}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed1 - * Seed1}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed2 - * Seed2}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed3 - * Seed3}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed4 - * Seed4}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed5 - * Seed5}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getRandomNumberGeneratorSeed() - * @model - * @extends CDOObject - * @generated - */ -public interface RandomNumberGeneratorSeed extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Seed0' attribute. - *

- * If the meaning of the 'Seed0' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Seed0' attribute. - * @see #setSeed0(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getRandomNumberGeneratorSeed_Seed0() - * @model required="true" ordered="false" - * @generated - */ - int getSeed0(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed0 - * Seed0}' attribute. - * - * @param value - * the new value of the 'Seed0' attribute. - * @see #getSeed0() - * @generated - */ - void setSeed0(int value); - - /** - * Returns the value of the 'Seed1' attribute. - *

- * If the meaning of the 'Seed1' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Seed1' attribute. - * @see #setSeed1(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getRandomNumberGeneratorSeed_Seed1() - * @model required="true" ordered="false" - * @generated - */ - int getSeed1(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed1 - * Seed1}' attribute. - * - * @param value - * the new value of the 'Seed1' attribute. - * @see #getSeed1() - * @generated - */ - void setSeed1(int value); - - /** - * Returns the value of the 'Seed2' attribute. - *

- * If the meaning of the 'Seed2' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Seed2' attribute. - * @see #setSeed2(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getRandomNumberGeneratorSeed_Seed2() - * @model required="true" ordered="false" - * @generated - */ - int getSeed2(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed2 - * Seed2}' attribute. - * - * @param value - * the new value of the 'Seed2' attribute. - * @see #getSeed2() - * @generated - */ - void setSeed2(int value); - - /** - * Returns the value of the 'Seed3' attribute. - *

- * If the meaning of the 'Seed3' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Seed3' attribute. - * @see #setSeed3(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getRandomNumberGeneratorSeed_Seed3() - * @model required="true" ordered="false" - * @generated - */ - int getSeed3(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed3 - * Seed3}' attribute. - * - * @param value - * the new value of the 'Seed3' attribute. - * @see #getSeed3() - * @generated - */ - void setSeed3(int value); - - /** - * Returns the value of the 'Seed4' attribute. - *

- * If the meaning of the 'Seed4' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Seed4' attribute. - * @see #setSeed4(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getRandomNumberGeneratorSeed_Seed4() - * @model required="true" ordered="false" - * @generated - */ - int getSeed4(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed4 - * Seed4}' attribute. - * - * @param value - * the new value of the 'Seed4' attribute. - * @see #getSeed4() - * @generated - */ - void setSeed4(int value); - - /** - * Returns the value of the 'Seed5' attribute. - *

- * If the meaning of the 'Seed5' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Seed5' attribute. - * @see #setSeed5(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getRandomNumberGeneratorSeed_Seed5() - * @model required="true" ordered="false" - * @generated - */ - int getSeed5(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed#getSeed5 - * Seed5}' attribute. - * - * @param value - * the new value of the 'Seed5' attribute. - * @see #getSeed5() - * @generated - */ - void setSeed5(int value); - -} // RandomNumberGeneratorSeed diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/SimTimeStopCondition.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/SimTimeStopCondition.java deleted file mode 100644 index 2bf88de5..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/SimTimeStopCondition.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -/** - * A representation of the model object ' Sim Time Stop - * Condition'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition#getSimulationTime - * Simulation Time}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getSimTimeStopCondition() - * @model - * @generated - */ -public interface SimTimeStopCondition extends StopCondition { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Simulation Time' attribute. - *

- * If the meaning of the 'Simulation Time' attribute isn't clear, there really should - * be more of a description here... - *

- * - * - * @return the value of the 'Simulation Time' attribute. - * @see #setSimulationTime(int) - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getSimTimeStopCondition_SimulationTime() - * @model required="true" ordered="false" - * @generated - */ - int getSimulationTime(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition#getSimulationTime - * Simulation Time}' attribute. - * - * @param value - * the new value of the 'Simulation Time' attribute. - * @see #getSimulationTime() - * @generated - */ - void setSimulationTime(int value); - -} // SimTimeStopCondition diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/StopCondition.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/StopCondition.java deleted file mode 100644 index abd0850e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/StopCondition.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object 'Stop Condition'. - * - * - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#getStopCondition() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface StopCondition extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // StopCondition diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractSimulationConfigurationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractSimulationConfigurationImpl.java deleted file mode 100644 index 45e5a57e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractSimulationConfigurationImpl.java +++ /dev/null @@ -1,345 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import java.util.Collection; - -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.util.InternalEList; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed; -import org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition; -import org.palladiosimulator.experimentautomation.experiments.impl.ToolConfigurationImpl; - -/** - * An implementation of the model object ' Abstract Simulation - * Configuration'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl#getStopConditions - * Stop Conditions}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl#getRandomNumberGeneratorSeed - * Random Number Generator Seed}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl#isSimulateLinkingResources - * Simulate Linking Resources}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl#isSimulateFailures - * Simulate Failures}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractSimulationConfigurationImpl#getDatasource - * Datasource}
  • - *
- * - * @generated - */ -public abstract class AbstractSimulationConfigurationImpl extends ToolConfigurationImpl - implements AbstractSimulationConfiguration { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #isSimulateLinkingResources() Simulate Linking - * Resources}' attribute. - * - * @see #isSimulateLinkingResources() - * @generated - * @ordered - */ - protected static final boolean SIMULATE_LINKING_RESOURCES_EDEFAULT = false; - - /** - * The default value of the '{@link #isSimulateFailures() Simulate Failures}' - * attribute. - * - * @see #isSimulateFailures() - * @generated - * @ordered - */ - protected static final boolean SIMULATE_FAILURES_EDEFAULT = false; - - /** - * - * - * @generated - */ - protected AbstractSimulationConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public EList getStopConditions() { - return (EList) this.eDynamicGet( - AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS, true, true); - } - - /** - * - * - * @generated - */ - @Override - public RandomNumberGeneratorSeed getRandomNumberGeneratorSeed() { - return (RandomNumberGeneratorSeed) this.eDynamicGet( - AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED, - true, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetRandomNumberGeneratorSeed( - final RandomNumberGeneratorSeed newRandomNumberGeneratorSeed, NotificationChain msgs) { - msgs = this.eDynamicInverseAdd((InternalEObject) newRandomNumberGeneratorSeed, - AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setRandomNumberGeneratorSeed(final RandomNumberGeneratorSeed newRandomNumberGeneratorSeed) { - this.eDynamicSet(AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED, - newRandomNumberGeneratorSeed); - } - - /** - * - * - * @generated - */ - @Override - public boolean isSimulateLinkingResources() { - return (Boolean) this.eDynamicGet( - AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES, true, - true); - } - - /** - * - * - * @generated - */ - @Override - public void setSimulateLinkingResources(final boolean newSimulateLinkingResources) { - this.eDynamicSet(AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES, - newSimulateLinkingResources); - } - - /** - * - * - * @generated - */ - @Override - public boolean isSimulateFailures() { - return (Boolean) this.eDynamicGet( - AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSimulateFailures(final boolean newSimulateFailures) { - this.eDynamicSet(AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES, - newSimulateFailures); - } - - /** - * - * - * @generated - */ - @Override - public EDP2Datasource getDatasource() { - return (EDP2Datasource) this.eDynamicGet( - AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE, true, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetDatasource(final EDP2Datasource newDatasource, NotificationChain msgs) { - msgs = this.eDynamicInverseAdd((InternalEObject) newDatasource, - AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setDatasource(final EDP2Datasource newDatasource) { - this.eDynamicSet(AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE, - AbstractsimulationPackage.Literals.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE, newDatasource); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, - final NotificationChain msgs) { - switch (featureID) { - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS: - return ((InternalEList) this.getStopConditions()).basicRemove(otherEnd, msgs); - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED: - return this.basicSetRandomNumberGeneratorSeed(null, msgs); - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE: - return this.basicSetDatasource(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS: - return this.getStopConditions(); - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED: - return this.getRandomNumberGeneratorSeed(); - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES: - return this.isSimulateLinkingResources(); - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES: - return this.isSimulateFailures(); - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE: - return this.getDatasource(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS: - this.getStopConditions() - .clear(); - this.getStopConditions() - .addAll((Collection) newValue); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED: - this.setRandomNumberGeneratorSeed((RandomNumberGeneratorSeed) newValue); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES: - this.setSimulateLinkingResources((Boolean) newValue); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES: - this.setSimulateFailures((Boolean) newValue); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE: - this.setDatasource((EDP2Datasource) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS: - this.getStopConditions() - .clear(); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED: - this.setRandomNumberGeneratorSeed((RandomNumberGeneratorSeed) null); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES: - this.setSimulateLinkingResources(SIMULATE_LINKING_RESOURCES_EDEFAULT); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES: - this.setSimulateFailures(SIMULATE_FAILURES_EDEFAULT); - return; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE: - this.setDatasource((EDP2Datasource) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS: - return !this.getStopConditions() - .isEmpty(); - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED: - return this.getRandomNumberGeneratorSeed() != null; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES: - return this.isSimulateLinkingResources() != SIMULATE_LINKING_RESOURCES_EDEFAULT; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES: - return this.isSimulateFailures() != SIMULATE_FAILURES_EDEFAULT; - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE: - return this.getDatasource() != null; - } - return super.eIsSet(featureID); - } - -} // AbstractSimulationConfigurationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractsimulationFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractsimulationFactoryImpl.java deleted file mode 100644 index 43fa795f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractsimulationFactoryImpl.java +++ /dev/null @@ -1,213 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationFactory; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption; -import org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition; -import org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed; -import org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition; - -/** - * An implementation of the model Factory. - * - * @generated - */ -public class AbstractsimulationFactoryImpl extends EFactoryImpl implements AbstractsimulationFactory { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates the default factory implementation. - * - * @generated - */ - public static AbstractsimulationFactory init() { - try { - final AbstractsimulationFactory theAbstractsimulationFactory = (AbstractsimulationFactory) EPackage.Registry.INSTANCE - .getEFactory(AbstractsimulationPackage.eNS_URI); - if (theAbstractsimulationFactory != null) { - return theAbstractsimulationFactory; - } - } catch (final Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new AbstractsimulationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public AbstractsimulationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(final EClass eClass) { - switch (eClass.getClassifierID()) { - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED: - return this.createRandomNumberGeneratorSeed(); - case AbstractsimulationPackage.MEMORY_DATASOURCE: - return this.createMemoryDatasource(); - case AbstractsimulationPackage.FILE_DATASOURCE: - return this.createFileDatasource(); - case AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION: - return this.createMeasurementCountStopCondition(); - case AbstractsimulationPackage.SIM_TIME_STOP_CONDITION: - return this.createSimTimeStopCondition(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(final EDataType eDataType, final String initialValue) { - switch (eDataType.getClassifierID()) { - case AbstractsimulationPackage.EXPORT_OPTION: - return this.createExportOptionFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(final EDataType eDataType, final Object instanceValue) { - switch (eDataType.getClassifierID()) { - case AbstractsimulationPackage.EXPORT_OPTION: - return this.convertExportOptionToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public RandomNumberGeneratorSeed createRandomNumberGeneratorSeed() { - final RandomNumberGeneratorSeedImpl randomNumberGeneratorSeed = new RandomNumberGeneratorSeedImpl(); - return randomNumberGeneratorSeed; - } - - /** - * - * - * @generated - */ - @Override - public MemoryDatasource createMemoryDatasource() { - final MemoryDatasourceImpl memoryDatasource = new MemoryDatasourceImpl(); - return memoryDatasource; - } - - /** - * - * - * @generated - */ - @Override - public FileDatasource createFileDatasource() { - final FileDatasourceImpl fileDatasource = new FileDatasourceImpl(); - return fileDatasource; - } - - /** - * - * - * @generated - */ - @Override - public MeasurementCountStopCondition createMeasurementCountStopCondition() { - final MeasurementCountStopConditionImpl measurementCountStopCondition = new MeasurementCountStopConditionImpl(); - return measurementCountStopCondition; - } - - /** - * - * - * @generated - */ - @Override - public SimTimeStopCondition createSimTimeStopCondition() { - final SimTimeStopConditionImpl simTimeStopCondition = new SimTimeStopConditionImpl(); - return simTimeStopCondition; - } - - /** - * - * - * @generated - */ - public ExportOption createExportOptionFromString(final EDataType eDataType, final String initialValue) { - final ExportOption result = ExportOption.get(initialValue); - if (result == null) { - throw new IllegalArgumentException( - "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - } - return result; - } - - /** - * - * - * @generated - */ - public String convertExportOptionToString(final EDataType eDataType, final Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - @Override - public AbstractsimulationPackage getAbstractsimulationPackage() { - return (AbstractsimulationPackage) this.getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static AbstractsimulationPackage getPackage() { - return AbstractsimulationPackage.eINSTANCE; - } - -} // AbstractsimulationFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractsimulationPackageImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractsimulationPackageImpl.java deleted file mode 100644 index 008cbe1b..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/AbstractsimulationPackageImpl.java +++ /dev/null @@ -1,682 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.palladiosimulator.edp2.models.ExperimentData.ExperimentDataPackage; -import org.palladiosimulator.edp2.models.Repository.RepositoryPackage; -import org.palladiosimulator.edp2.models.measuringpoint.MeasuringpointPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationFactory; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption; -import org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition; -import org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed; -import org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition; -import org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl; -import org.palladiosimulator.metricspec.MetricSpecPackage; -import org.palladiosimulator.monitorrepository.MonitorRepositoryPackage; -import org.palladiosimulator.pcm.PcmPackage; -import org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage; -import org.scaledl.usageevolution.UsageevolutionPackage; - -import de.uka.ipd.sdq.identifier.IdentifierPackage; -import de.uka.ipd.sdq.probfunction.ProbfunctionPackage; -import de.uka.ipd.sdq.stoex.StoexPackage; -import de.uka.ipd.sdq.units.UnitsPackage; -import tools.descartes.dlim.DlimPackage; - -/** - * An implementation of the model Package. - * - * @generated - */ -public class AbstractsimulationPackageImpl extends EPackageImpl implements AbstractsimulationPackage { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - private EClass abstractSimulationConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass randomNumberGeneratorSeedEClass = null; - - /** - * - * - * @generated - */ - private EClass edp2DatasourceEClass = null; - - /** - * - * - * @generated - */ - private EClass memoryDatasourceEClass = null; - - /** - * - * - * @generated - */ - private EClass fileDatasourceEClass = null; - - /** - * - * - * @generated - */ - private EClass measurementCountStopConditionEClass = null; - - /** - * - * - * @generated - */ - private EClass simTimeStopConditionEClass = null; - - /** - * - * - * @generated - */ - private EClass stopConditionEClass = null; - - /** - * - * - * @generated - */ - private EEnum exportOptionEEnum = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI - * value. - *

- * Note: the correct way to create the package is via the static factory method {@link #init - * init()}, which also performs initialization of the package, or returns the registered - * package, if one already exists. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage#eNS_URI - * @see #init() - * @generated - */ - private AbstractsimulationPackageImpl() { - super(eNS_URI, AbstractsimulationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others - * upon which it depends. - * - *

- * This method is used to initialize {@link AbstractsimulationPackage#eINSTANCE} when that field - * is accessed. Clients should not invoke it directly. Instead, they should simply access that - * field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static AbstractsimulationPackage init() { - if (isInited) { - return (AbstractsimulationPackage) EPackage.Registry.INSTANCE - .getEPackage(AbstractsimulationPackage.eNS_URI); - } - - // Obtain or create and register package - final Object registeredAbstractsimulationPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - final AbstractsimulationPackageImpl theAbstractsimulationPackage = registeredAbstractsimulationPackage instanceof AbstractsimulationPackageImpl - ? (AbstractsimulationPackageImpl) registeredAbstractsimulationPackage - : new AbstractsimulationPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - DlimPackage.eINSTANCE.eClass(); - ExperimentDataPackage.eINSTANCE.eClass(); - RepositoryPackage.eINSTANCE.eClass(); - MeasuringpointPackage.eINSTANCE.eClass(); - IdentifierPackage.eINSTANCE.eClass(); - MetricSpecPackage.eINSTANCE.eClass(); - MonitorRepositoryPackage.eINSTANCE.eClass(); - PcmPackage.eINSTANCE.eClass(); - ProbfunctionPackage.eINSTANCE.eClass(); - ServicelevelObjectivePackage.eINSTANCE.eClass(); - StoexPackage.eINSTANCE.eClass(); - UnitsPackage.eINSTANCE.eClass(); - UsageevolutionPackage.eINSTANCE.eClass(); - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(VariationPackage.eNS_URI); - final VariationPackageImpl theVariationPackage = (VariationPackageImpl) (registeredPackage instanceof VariationPackageImpl - ? registeredPackage - : VariationPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExperimentsPackage.eNS_URI); - final ExperimentsPackageImpl theExperimentsPackage = (ExperimentsPackageImpl) (registeredPackage instanceof ExperimentsPackageImpl - ? registeredPackage - : ExperimentsPackage.eINSTANCE); - - // Create package meta-data objects - theAbstractsimulationPackage.createPackageContents(); - theVariationPackage.createPackageContents(); - theExperimentsPackage.createPackageContents(); - - // Initialize created meta-data - theAbstractsimulationPackage.initializePackageContents(); - theVariationPackage.initializePackageContents(); - theExperimentsPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theAbstractsimulationPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(AbstractsimulationPackage.eNS_URI, theAbstractsimulationPackage); - return theAbstractsimulationPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getAbstractSimulationConfiguration() { - return this.abstractSimulationConfigurationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getAbstractSimulationConfiguration_StopConditions() { - return (EReference) this.abstractSimulationConfigurationEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getAbstractSimulationConfiguration_RandomNumberGeneratorSeed() { - return (EReference) this.abstractSimulationConfigurationEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAbstractSimulationConfiguration_SimulateLinkingResources() { - return (EAttribute) this.abstractSimulationConfigurationEClass.getEStructuralFeatures() - .get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAbstractSimulationConfiguration_SimulateFailures() { - return (EAttribute) this.abstractSimulationConfigurationEClass.getEStructuralFeatures() - .get(3); - } - - /** - * - * - * @generated - */ - @Override - public EReference getAbstractSimulationConfiguration_Datasource() { - return (EReference) this.abstractSimulationConfigurationEClass.getEStructuralFeatures() - .get(4); - } - - /** - * - * - * @generated - */ - @Override - public EClass getRandomNumberGeneratorSeed() { - return this.randomNumberGeneratorSeedEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRandomNumberGeneratorSeed_Seed0() { - return (EAttribute) this.randomNumberGeneratorSeedEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRandomNumberGeneratorSeed_Seed1() { - return (EAttribute) this.randomNumberGeneratorSeedEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRandomNumberGeneratorSeed_Seed2() { - return (EAttribute) this.randomNumberGeneratorSeedEClass.getEStructuralFeatures() - .get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRandomNumberGeneratorSeed_Seed3() { - return (EAttribute) this.randomNumberGeneratorSeedEClass.getEStructuralFeatures() - .get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRandomNumberGeneratorSeed_Seed4() { - return (EAttribute) this.randomNumberGeneratorSeedEClass.getEStructuralFeatures() - .get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRandomNumberGeneratorSeed_Seed5() { - return (EAttribute) this.randomNumberGeneratorSeedEClass.getEStructuralFeatures() - .get(5); - } - - /** - * - * - * @generated - */ - @Override - public EClass getEDP2Datasource() { - return this.edp2DatasourceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getEDP2Datasource_Id() { - return (EAttribute) this.edp2DatasourceEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMemoryDatasource() { - return this.memoryDatasourceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getFileDatasource() { - return this.fileDatasourceEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFileDatasource_Location() { - return (EAttribute) this.fileDatasourceEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFileDatasource_ExportOption() { - return (EAttribute) this.fileDatasourceEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMeasurementCountStopCondition() { - return this.measurementCountStopConditionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getMeasurementCountStopCondition_MeasurementCount() { - return (EAttribute) this.measurementCountStopConditionEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getSimTimeStopCondition() { - return this.simTimeStopConditionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getSimTimeStopCondition_SimulationTime() { - return (EAttribute) this.simTimeStopConditionEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getStopCondition() { - return this.stopConditionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getExportOption() { - return this.exportOptionEEnum; - } - - /** - * - * - * @generated - */ - @Override - public AbstractsimulationFactory getAbstractsimulationFactory() { - return (AbstractsimulationFactory) this.getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on - * any invocation but its first. - * - * @generated - */ - public void createPackageContents() { - if (this.isCreated) { - return; - } - this.isCreated = true; - - // Create classes and their features - this.abstractSimulationConfigurationEClass = this.createEClass(ABSTRACT_SIMULATION_CONFIGURATION); - this.createEReference(this.abstractSimulationConfigurationEClass, - ABSTRACT_SIMULATION_CONFIGURATION__STOP_CONDITIONS); - this.createEReference(this.abstractSimulationConfigurationEClass, - ABSTRACT_SIMULATION_CONFIGURATION__RANDOM_NUMBER_GENERATOR_SEED); - this.createEAttribute(this.abstractSimulationConfigurationEClass, - ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_LINKING_RESOURCES); - this.createEAttribute(this.abstractSimulationConfigurationEClass, - ABSTRACT_SIMULATION_CONFIGURATION__SIMULATE_FAILURES); - this.createEReference(this.abstractSimulationConfigurationEClass, - ABSTRACT_SIMULATION_CONFIGURATION__DATASOURCE); - - this.randomNumberGeneratorSeedEClass = this.createEClass(RANDOM_NUMBER_GENERATOR_SEED); - this.createEAttribute(this.randomNumberGeneratorSeedEClass, RANDOM_NUMBER_GENERATOR_SEED__SEED0); - this.createEAttribute(this.randomNumberGeneratorSeedEClass, RANDOM_NUMBER_GENERATOR_SEED__SEED1); - this.createEAttribute(this.randomNumberGeneratorSeedEClass, RANDOM_NUMBER_GENERATOR_SEED__SEED2); - this.createEAttribute(this.randomNumberGeneratorSeedEClass, RANDOM_NUMBER_GENERATOR_SEED__SEED3); - this.createEAttribute(this.randomNumberGeneratorSeedEClass, RANDOM_NUMBER_GENERATOR_SEED__SEED4); - this.createEAttribute(this.randomNumberGeneratorSeedEClass, RANDOM_NUMBER_GENERATOR_SEED__SEED5); - - this.edp2DatasourceEClass = this.createEClass(EDP2_DATASOURCE); - this.createEAttribute(this.edp2DatasourceEClass, EDP2_DATASOURCE__ID); - - this.memoryDatasourceEClass = this.createEClass(MEMORY_DATASOURCE); - - this.fileDatasourceEClass = this.createEClass(FILE_DATASOURCE); - this.createEAttribute(this.fileDatasourceEClass, FILE_DATASOURCE__LOCATION); - this.createEAttribute(this.fileDatasourceEClass, FILE_DATASOURCE__EXPORT_OPTION); - - this.measurementCountStopConditionEClass = this.createEClass(MEASUREMENT_COUNT_STOP_CONDITION); - this.createEAttribute(this.measurementCountStopConditionEClass, - MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT); - - this.simTimeStopConditionEClass = this.createEClass(SIM_TIME_STOP_CONDITION); - this.createEAttribute(this.simTimeStopConditionEClass, SIM_TIME_STOP_CONDITION__SIMULATION_TIME); - - this.stopConditionEClass = this.createEClass(STOP_CONDITION); - - // Create enums - this.exportOptionEEnum = this.createEEnum(EXPORT_OPTION); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have - * no affect on any invocation but its first. - * - * @generated - */ - public void initializePackageContents() { - if (this.isInitialized) { - return; - } - this.isInitialized = true; - - // Initialize package - this.setName(eNAME); - this.setNsPrefix(eNS_PREFIX); - this.setNsURI(eNS_URI); - - // Obtain other dependent packages - final ExperimentsPackage theExperimentsPackage = (ExperimentsPackage) EPackage.Registry.INSTANCE - .getEPackage(ExperimentsPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - this.abstractSimulationConfigurationEClass.getESuperTypes() - .add(theExperimentsPackage.getToolConfiguration()); - this.memoryDatasourceEClass.getESuperTypes() - .add(this.getEDP2Datasource()); - this.fileDatasourceEClass.getESuperTypes() - .add(this.getEDP2Datasource()); - this.measurementCountStopConditionEClass.getESuperTypes() - .add(this.getStopCondition()); - this.simTimeStopConditionEClass.getESuperTypes() - .add(this.getStopCondition()); - - // Initialize classes and features; add operations and parameters - this.initEClass(this.abstractSimulationConfigurationEClass, AbstractSimulationConfiguration.class, - "AbstractSimulationConfiguration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEReference(this.getAbstractSimulationConfiguration_StopConditions(), this.getStopCondition(), null, - "stopConditions", null, 1, -1, AbstractSimulationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getAbstractSimulationConfiguration_RandomNumberGeneratorSeed(), - this.getRandomNumberGeneratorSeed(), null, "randomNumberGeneratorSeed", null, 0, 1, - AbstractSimulationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getAbstractSimulationConfiguration_SimulateLinkingResources(), - this.ecorePackage.getEBoolean(), "simulateLinkingResources", null, 1, 1, - AbstractSimulationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getAbstractSimulationConfiguration_SimulateFailures(), this.ecorePackage.getEBoolean(), - "simulateFailures", null, 1, 1, AbstractSimulationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getAbstractSimulationConfiguration_Datasource(), this.getEDP2Datasource(), null, - "datasource", null, 1, 1, AbstractSimulationConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.randomNumberGeneratorSeedEClass, RandomNumberGeneratorSeed.class, - "RandomNumberGeneratorSeed", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getRandomNumberGeneratorSeed_Seed0(), this.ecorePackage.getEInt(), "seed0", null, 1, 1, - RandomNumberGeneratorSeed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getRandomNumberGeneratorSeed_Seed1(), this.ecorePackage.getEInt(), "seed1", null, 1, 1, - RandomNumberGeneratorSeed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getRandomNumberGeneratorSeed_Seed2(), this.ecorePackage.getEInt(), "seed2", null, 1, 1, - RandomNumberGeneratorSeed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getRandomNumberGeneratorSeed_Seed3(), this.ecorePackage.getEInt(), "seed3", null, 1, 1, - RandomNumberGeneratorSeed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getRandomNumberGeneratorSeed_Seed4(), this.ecorePackage.getEInt(), "seed4", null, 1, 1, - RandomNumberGeneratorSeed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getRandomNumberGeneratorSeed_Seed5(), this.ecorePackage.getEInt(), "seed5", null, 1, 1, - RandomNumberGeneratorSeed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.edp2DatasourceEClass, EDP2Datasource.class, "EDP2Datasource", IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getEDP2Datasource_Id(), this.ecorePackage.getEString(), "id", null, 0, 1, - EDP2Datasource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - this.initEClass(this.memoryDatasourceEClass, MemoryDatasource.class, "MemoryDatasource", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.fileDatasourceEClass, FileDatasource.class, "FileDatasource", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getFileDatasource_Location(), this.ecorePackage.getEString(), "location", null, 1, 1, - FileDatasource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getFileDatasource_ExportOption(), this.getExportOption(), "exportOption", "EDP2", 0, 1, - FileDatasource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - this.initEClass(this.measurementCountStopConditionEClass, MeasurementCountStopCondition.class, - "MeasurementCountStopCondition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getMeasurementCountStopCondition_MeasurementCount(), this.ecorePackage.getEInt(), - "measurementCount", null, 1, 1, MeasurementCountStopCondition.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.simTimeStopConditionEClass, SimTimeStopCondition.class, "SimTimeStopCondition", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getSimTimeStopCondition_SimulationTime(), this.ecorePackage.getEInt(), - "simulationTime", null, 1, 1, SimTimeStopCondition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.stopConditionEClass, StopCondition.class, "StopCondition", IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - - // Initialize enums and add enum literals - this.initEEnum(this.exportOptionEEnum, ExportOption.class, "ExportOption"); - this.addEEnumLiteral(this.exportOptionEEnum, ExportOption.EDP2); - this.addEEnumLiteral(this.exportOptionEEnum, ExportOption.CSV); - - // Create resource - this.createResource(eNS_URI); - } - -} // AbstractsimulationPackageImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/EDP2DatasourceImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/EDP2DatasourceImpl.java deleted file mode 100644 index c24af766..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/EDP2DatasourceImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource; - -/** - * An implementation of the model object 'EDP2 Datasource'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.EDP2DatasourceImpl#getId - * Id}
  • - *
- * - * @generated - */ -public abstract class EDP2DatasourceImpl extends CDOObjectImpl implements EDP2Datasource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getId() Id}' attribute. - * - * - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * - * - * @generated - */ - protected EDP2DatasourceImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.EDP2_DATASOURCE; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @Override - public String getId() { - return (String) this.eDynamicGet(AbstractsimulationPackage.EDP2_DATASOURCE__ID, - AbstractsimulationPackage.Literals.EDP2_DATASOURCE__ID, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setId(final String newId) { - this.eDynamicSet(AbstractsimulationPackage.EDP2_DATASOURCE__ID, - AbstractsimulationPackage.Literals.EDP2_DATASOURCE__ID, newId); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case AbstractsimulationPackage.EDP2_DATASOURCE__ID: - return this.getId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case AbstractsimulationPackage.EDP2_DATASOURCE__ID: - this.setId((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.EDP2_DATASOURCE__ID: - this.setId(ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.EDP2_DATASOURCE__ID: - return ID_EDEFAULT == null ? this.getId() != null : !ID_EDEFAULT.equals(this.getId()); - } - return super.eIsSet(featureID); - } - -} // EDP2DatasourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/FileDatasourceImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/FileDatasourceImpl.java deleted file mode 100644 index a90cd294..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/FileDatasourceImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.ExportOption; -import org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource; - -/** - * An implementation of the model object 'File Datasource'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.FileDatasourceImpl#getLocation - * Location}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.FileDatasourceImpl#getExportOption - * Export Option}
  • - *
- * - * @generated - */ -public class FileDatasourceImpl extends EDP2DatasourceImpl implements FileDatasource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getLocation() Location}' attribute. - * - * @see #getLocation() - * @generated - * @ordered - */ - protected static final String LOCATION_EDEFAULT = null; - - /** - * The default value of the '{@link #getExportOption() Export Option}' attribute. - * - * @see #getExportOption() - * @generated - * @ordered - */ - protected static final ExportOption EXPORT_OPTION_EDEFAULT = ExportOption.EDP2; - - /** - * - * - * @generated - */ - protected FileDatasourceImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.FILE_DATASOURCE; - } - - /** - * - * - * @generated - */ - @Override - public String getLocation() { - return (String) this.eDynamicGet(AbstractsimulationPackage.FILE_DATASOURCE__LOCATION, - AbstractsimulationPackage.Literals.FILE_DATASOURCE__LOCATION, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setLocation(final String newLocation) { - this.eDynamicSet(AbstractsimulationPackage.FILE_DATASOURCE__LOCATION, - AbstractsimulationPackage.Literals.FILE_DATASOURCE__LOCATION, newLocation); - } - - /** - * - * - * @generated - */ - @Override - public ExportOption getExportOption() { - return (ExportOption) this.eDynamicGet(AbstractsimulationPackage.FILE_DATASOURCE__EXPORT_OPTION, - AbstractsimulationPackage.Literals.FILE_DATASOURCE__EXPORT_OPTION, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setExportOption(final ExportOption newExportOption) { - this.eDynamicSet(AbstractsimulationPackage.FILE_DATASOURCE__EXPORT_OPTION, - AbstractsimulationPackage.Literals.FILE_DATASOURCE__EXPORT_OPTION, newExportOption); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case AbstractsimulationPackage.FILE_DATASOURCE__LOCATION: - return this.getLocation(); - case AbstractsimulationPackage.FILE_DATASOURCE__EXPORT_OPTION: - return this.getExportOption(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case AbstractsimulationPackage.FILE_DATASOURCE__LOCATION: - this.setLocation((String) newValue); - return; - case AbstractsimulationPackage.FILE_DATASOURCE__EXPORT_OPTION: - this.setExportOption((ExportOption) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.FILE_DATASOURCE__LOCATION: - this.setLocation(LOCATION_EDEFAULT); - return; - case AbstractsimulationPackage.FILE_DATASOURCE__EXPORT_OPTION: - this.setExportOption(EXPORT_OPTION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.FILE_DATASOURCE__LOCATION: - return LOCATION_EDEFAULT == null ? this.getLocation() != null - : !LOCATION_EDEFAULT.equals(this.getLocation()); - case AbstractsimulationPackage.FILE_DATASOURCE__EXPORT_OPTION: - return this.getExportOption() != EXPORT_OPTION_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // FileDatasourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/MeasurementCountStopConditionImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/MeasurementCountStopConditionImpl.java deleted file mode 100644 index 74064c22..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/MeasurementCountStopConditionImpl.java +++ /dev/null @@ -1,140 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition; - -/** - * An implementation of the model object ' Measurement Count Stop - * Condition'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.MeasurementCountStopConditionImpl#getMeasurementCount - * Measurement Count}
  • - *
- * - * @generated - */ -public class MeasurementCountStopConditionImpl extends StopConditionImpl implements MeasurementCountStopCondition { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getMeasurementCount() Measurement Count}' - * attribute. - * - * @see #getMeasurementCount() - * @generated - * @ordered - */ - protected static final int MEASUREMENT_COUNT_EDEFAULT = 0; - - /** - * - * - * @generated - */ - protected MeasurementCountStopConditionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.MEASUREMENT_COUNT_STOP_CONDITION; - } - - /** - * - * - * @generated - */ - @Override - public int getMeasurementCount() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT, - AbstractsimulationPackage.Literals.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMeasurementCount(final int newMeasurementCount) { - this.eDynamicSet(AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT, - AbstractsimulationPackage.Literals.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT, - newMeasurementCount); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT: - return this.getMeasurementCount(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT: - this.setMeasurementCount((Integer) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT: - this.setMeasurementCount(MEASUREMENT_COUNT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION__MEASUREMENT_COUNT: - return this.getMeasurementCount() != MEASUREMENT_COUNT_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // MeasurementCountStopConditionImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/MemoryDatasourceImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/MemoryDatasourceImpl.java deleted file mode 100644 index b5e8b56b..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/MemoryDatasourceImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource; - -/** - * An implementation of the model object 'Memory Datasource - * '. - * - * @generated - */ -public class MemoryDatasourceImpl extends EDP2DatasourceImpl implements MemoryDatasource { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected MemoryDatasourceImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.MEMORY_DATASOURCE; - } - -} // MemoryDatasourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/RandomNumberGeneratorSeedImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/RandomNumberGeneratorSeedImpl.java deleted file mode 100644 index 01f0382c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/RandomNumberGeneratorSeedImpl.java +++ /dev/null @@ -1,371 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed; - -/** - * An implementation of the model object ' Random Number Generator - * Seed'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl#getSeed0 - * Seed0}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl#getSeed1 - * Seed1}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl#getSeed2 - * Seed2}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl#getSeed3 - * Seed3}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl#getSeed4 - * Seed4}
  • - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.RandomNumberGeneratorSeedImpl#getSeed5 - * Seed5}
  • - *
- * - * @generated - */ -public class RandomNumberGeneratorSeedImpl extends CDOObjectImpl implements RandomNumberGeneratorSeed { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getSeed0() Seed0}' attribute. - * - * @see #getSeed0() - * @generated - * @ordered - */ - protected static final int SEED0_EDEFAULT = 0; - - /** - * The default value of the '{@link #getSeed1() Seed1}' attribute. - * - * @see #getSeed1() - * @generated - * @ordered - */ - protected static final int SEED1_EDEFAULT = 0; - - /** - * The default value of the '{@link #getSeed2() Seed2}' attribute. - * - * @see #getSeed2() - * @generated - * @ordered - */ - protected static final int SEED2_EDEFAULT = 0; - - /** - * The default value of the '{@link #getSeed3() Seed3}' attribute. - * - * @see #getSeed3() - * @generated - * @ordered - */ - protected static final int SEED3_EDEFAULT = 0; - - /** - * The default value of the '{@link #getSeed4() Seed4}' attribute. - * - * @see #getSeed4() - * @generated - * @ordered - */ - protected static final int SEED4_EDEFAULT = 0; - - /** - * The default value of the '{@link #getSeed5() Seed5}' attribute. - * - * @see #getSeed5() - * @generated - * @ordered - */ - protected static final int SEED5_EDEFAULT = 0; - - /** - * - * - * @generated - */ - protected RandomNumberGeneratorSeedImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @Override - public int getSeed0() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED0, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED0, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSeed0(final int newSeed0) { - this.eDynamicSet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED0, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED0, newSeed0); - } - - /** - * - * - * @generated - */ - @Override - public int getSeed1() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED1, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED1, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSeed1(final int newSeed1) { - this.eDynamicSet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED1, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED1, newSeed1); - } - - /** - * - * - * @generated - */ - @Override - public int getSeed2() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED2, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED2, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSeed2(final int newSeed2) { - this.eDynamicSet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED2, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED2, newSeed2); - } - - /** - * - * - * @generated - */ - @Override - public int getSeed3() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED3, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED3, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSeed3(final int newSeed3) { - this.eDynamicSet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED3, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED3, newSeed3); - } - - /** - * - * - * @generated - */ - @Override - public int getSeed4() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED4, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED4, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSeed4(final int newSeed4) { - this.eDynamicSet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED4, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED4, newSeed4); - } - - /** - * - * - * @generated - */ - @Override - public int getSeed5() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED5, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED5, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSeed5(final int newSeed5) { - this.eDynamicSet(AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED5, - AbstractsimulationPackage.Literals.RANDOM_NUMBER_GENERATOR_SEED__SEED5, newSeed5); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED0: - return this.getSeed0(); - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED1: - return this.getSeed1(); - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED2: - return this.getSeed2(); - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED3: - return this.getSeed3(); - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED4: - return this.getSeed4(); - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED5: - return this.getSeed5(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED0: - this.setSeed0((Integer) newValue); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED1: - this.setSeed1((Integer) newValue); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED2: - this.setSeed2((Integer) newValue); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED3: - this.setSeed3((Integer) newValue); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED4: - this.setSeed4((Integer) newValue); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED5: - this.setSeed5((Integer) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED0: - this.setSeed0(SEED0_EDEFAULT); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED1: - this.setSeed1(SEED1_EDEFAULT); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED2: - this.setSeed2(SEED2_EDEFAULT); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED3: - this.setSeed3(SEED3_EDEFAULT); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED4: - this.setSeed4(SEED4_EDEFAULT); - return; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED5: - this.setSeed5(SEED5_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED0: - return this.getSeed0() != SEED0_EDEFAULT; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED1: - return this.getSeed1() != SEED1_EDEFAULT; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED2: - return this.getSeed2() != SEED2_EDEFAULT; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED3: - return this.getSeed3() != SEED3_EDEFAULT; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED4: - return this.getSeed4() != SEED4_EDEFAULT; - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED__SEED5: - return this.getSeed5() != SEED5_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // RandomNumberGeneratorSeedImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/SimTimeStopConditionImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/SimTimeStopConditionImpl.java deleted file mode 100644 index 873a5847..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/SimTimeStopConditionImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition; - -/** - * An implementation of the model object ' Sim Time Stop - * Condition'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.abstractsimulation.impl.SimTimeStopConditionImpl#getSimulationTime - * Simulation Time}
  • - *
- * - * @generated - */ -public class SimTimeStopConditionImpl extends StopConditionImpl implements SimTimeStopCondition { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getSimulationTime() Simulation Time}' attribute. - * - * - * @see #getSimulationTime() - * @generated - * @ordered - */ - protected static final int SIMULATION_TIME_EDEFAULT = 0; - - /** - * - * - * @generated - */ - protected SimTimeStopConditionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.SIM_TIME_STOP_CONDITION; - } - - /** - * - * - * @generated - */ - @Override - public int getSimulationTime() { - return (Integer) this.eDynamicGet(AbstractsimulationPackage.SIM_TIME_STOP_CONDITION__SIMULATION_TIME, - AbstractsimulationPackage.Literals.SIM_TIME_STOP_CONDITION__SIMULATION_TIME, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSimulationTime(final int newSimulationTime) { - this.eDynamicSet(AbstractsimulationPackage.SIM_TIME_STOP_CONDITION__SIMULATION_TIME, - AbstractsimulationPackage.Literals.SIM_TIME_STOP_CONDITION__SIMULATION_TIME, newSimulationTime); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case AbstractsimulationPackage.SIM_TIME_STOP_CONDITION__SIMULATION_TIME: - return this.getSimulationTime(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case AbstractsimulationPackage.SIM_TIME_STOP_CONDITION__SIMULATION_TIME: - this.setSimulationTime((Integer) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.SIM_TIME_STOP_CONDITION__SIMULATION_TIME: - this.setSimulationTime(SIMULATION_TIME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case AbstractsimulationPackage.SIM_TIME_STOP_CONDITION__SIMULATION_TIME: - return this.getSimulationTime() != SIMULATION_TIME_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // SimTimeStopConditionImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/StopConditionImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/StopConditionImpl.java deleted file mode 100644 index 96f319da..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/impl/StopConditionImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition; - -/** - * An implementation of the model object 'Stop Condition'. - * - * - * @generated - */ -public abstract class StopConditionImpl extends CDOObjectImpl implements StopCondition { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected StopConditionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AbstractsimulationPackage.Literals.STOP_CONDITION; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - -} // StopConditionImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationAdapterFactory.java deleted file mode 100644 index 041708a1..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationAdapterFactory.java +++ /dev/null @@ -1,290 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition; -import org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed; -import org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition; -import org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * The Adapter Factory for the model. It provides an adapter - * createXXX method for each class of the model. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage - * @generated - */ -public class AbstractsimulationAdapterFactory extends AdapterFactoryImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The cached model package. - * - * @generated - */ - protected static AbstractsimulationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * @generated - */ - public AbstractsimulationAdapterFactory() { - if (modelPackage == null) { - modelPackage = AbstractsimulationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package - * or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(final Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass() - .getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * @generated - */ - protected AbstractsimulationSwitch modelSwitch = new AbstractsimulationSwitch() { - @Override - public Adapter caseAbstractSimulationConfiguration(final AbstractSimulationConfiguration object) { - return AbstractsimulationAdapterFactory.this.createAbstractSimulationConfigurationAdapter(); - } - - @Override - public Adapter caseRandomNumberGeneratorSeed(final RandomNumberGeneratorSeed object) { - return AbstractsimulationAdapterFactory.this.createRandomNumberGeneratorSeedAdapter(); - } - - @Override - public Adapter caseEDP2Datasource(final EDP2Datasource object) { - return AbstractsimulationAdapterFactory.this.createEDP2DatasourceAdapter(); - } - - @Override - public Adapter caseMemoryDatasource(final MemoryDatasource object) { - return AbstractsimulationAdapterFactory.this.createMemoryDatasourceAdapter(); - } - - @Override - public Adapter caseFileDatasource(final FileDatasource object) { - return AbstractsimulationAdapterFactory.this.createFileDatasourceAdapter(); - } - - @Override - public Adapter caseMeasurementCountStopCondition(final MeasurementCountStopCondition object) { - return AbstractsimulationAdapterFactory.this.createMeasurementCountStopConditionAdapter(); - } - - @Override - public Adapter caseSimTimeStopCondition(final SimTimeStopCondition object) { - return AbstractsimulationAdapterFactory.this.createSimTimeStopConditionAdapter(); - } - - @Override - public Adapter caseStopCondition(final StopCondition object) { - return AbstractsimulationAdapterFactory.this.createStopConditionAdapter(); - } - - @Override - public Adapter caseToolConfiguration(final ToolConfiguration object) { - return AbstractsimulationAdapterFactory.this.createToolConfigurationAdapter(); - } - - @Override - public Adapter defaultCase(final EObject object) { - return AbstractsimulationAdapterFactory.this.createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(final Notifier target) { - return this.modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * Abstract Simulation Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration - * @generated - */ - public Adapter createAbstractSimulationConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed - * Random Number Generator Seed}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed - * @generated - */ - public Adapter createRandomNumberGeneratorSeedAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource EDP2 - * Datasource}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource - * @generated - */ - public Adapter createEDP2DatasourceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource - * Memory Datasource}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource - * @generated - */ - public Adapter createMemoryDatasourceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource File - * Datasource}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource - * @generated - */ - public Adapter createFileDatasourceAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition - * Measurement Count Stop Condition}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition - * @generated - */ - public Adapter createMeasurementCountStopConditionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition - * Sim Time Stop Condition}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition - * @generated - */ - public Adapter createSimTimeStopConditionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition Stop - * Condition}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition - * @generated - */ - public Adapter createStopConditionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration Tool - * Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ToolConfiguration - * @generated - */ - public Adapter createToolConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. This default - * implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // AbstractsimulationAdapterFactory diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationResourceFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationResourceFactoryImpl.java deleted file mode 100644 index 77ced259..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationResourceFactoryImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * The Resource Factory associated with the package. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.util.AbstractsimulationResourceImpl - * @generated - */ -public class AbstractsimulationResourceFactoryImpl extends ResourceFactoryImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource factory. - * - * @generated - */ - public AbstractsimulationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * @generated - */ - @Override - public Resource createResource(final URI uri) { - final XMLResource result = new AbstractsimulationResourceImpl(uri); - return result; - } - -} // AbstractsimulationResourceFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationResourceImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationResourceImpl.java deleted file mode 100644 index 19987f3e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationResourceImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * The Resource associated with the package. - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.util.AbstractsimulationResourceFactoryImpl - * @generated - */ -public class AbstractsimulationResourceImpl extends XMLResourceImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource. - * - * @param uri - * the URI of the new resource. - * @generated - */ - public AbstractsimulationResourceImpl(final URI uri) { - super(uri); - } - -} // AbstractsimulationResourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationSwitch.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationSwitch.java deleted file mode 100644 index 0cdb17be..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationSwitch.java +++ /dev/null @@ -1,319 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractSimulationConfiguration; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.EDP2Datasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.FileDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.MeasurementCountStopCondition; -import org.palladiosimulator.experimentautomation.abstractsimulation.MemoryDatasource; -import org.palladiosimulator.experimentautomation.abstractsimulation.RandomNumberGeneratorSeed; -import org.palladiosimulator.experimentautomation.abstractsimulation.SimTimeStopCondition; -import org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * The Switch for the model's inheritance hierarchy. It supports the - * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for - * each class of the model, starting with the actual class of the object and proceeding up the - * inheritance hierarchy until a non-null result is returned, which is the result of the switch. - * - * - * @see org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage - * @generated - */ -public class AbstractsimulationSwitch extends Switch { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The cached model package - * - * @generated - */ - protected static AbstractsimulationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * @generated - */ - public AbstractsimulationSwitch() { - if (modelPackage == null) { - modelPackage = AbstractsimulationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * @param ePackage - * the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(final EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; - * it yields that result. - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(final int classifierID, final EObject theEObject) { - switch (classifierID) { - case AbstractsimulationPackage.ABSTRACT_SIMULATION_CONFIGURATION: { - final AbstractSimulationConfiguration abstractSimulationConfiguration = (AbstractSimulationConfiguration) theEObject; - T result = this.caseAbstractSimulationConfiguration(abstractSimulationConfiguration); - if (result == null) { - result = this.caseToolConfiguration(abstractSimulationConfiguration); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case AbstractsimulationPackage.RANDOM_NUMBER_GENERATOR_SEED: { - final RandomNumberGeneratorSeed randomNumberGeneratorSeed = (RandomNumberGeneratorSeed) theEObject; - T result = this.caseRandomNumberGeneratorSeed(randomNumberGeneratorSeed); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case AbstractsimulationPackage.EDP2_DATASOURCE: { - final EDP2Datasource edp2Datasource = (EDP2Datasource) theEObject; - T result = this.caseEDP2Datasource(edp2Datasource); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case AbstractsimulationPackage.MEMORY_DATASOURCE: { - final MemoryDatasource memoryDatasource = (MemoryDatasource) theEObject; - T result = this.caseMemoryDatasource(memoryDatasource); - if (result == null) { - result = this.caseEDP2Datasource(memoryDatasource); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case AbstractsimulationPackage.FILE_DATASOURCE: { - final FileDatasource fileDatasource = (FileDatasource) theEObject; - T result = this.caseFileDatasource(fileDatasource); - if (result == null) { - result = this.caseEDP2Datasource(fileDatasource); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case AbstractsimulationPackage.MEASUREMENT_COUNT_STOP_CONDITION: { - final MeasurementCountStopCondition measurementCountStopCondition = (MeasurementCountStopCondition) theEObject; - T result = this.caseMeasurementCountStopCondition(measurementCountStopCondition); - if (result == null) { - result = this.caseStopCondition(measurementCountStopCondition); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case AbstractsimulationPackage.SIM_TIME_STOP_CONDITION: { - final SimTimeStopCondition simTimeStopCondition = (SimTimeStopCondition) theEObject; - T result = this.caseSimTimeStopCondition(simTimeStopCondition); - if (result == null) { - result = this.caseStopCondition(simTimeStopCondition); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case AbstractsimulationPackage.STOP_CONDITION: { - final StopCondition stopCondition = (StopCondition) theEObject; - T result = this.caseStopCondition(stopCondition); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - default: - return this.defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Simulation - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Simulation - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractSimulationConfiguration(final AbstractSimulationConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Random Number Generator - * Seed'. This implementation returns null; returning a non-null - * result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Random Number Generator - * Seed'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRandomNumberGeneratorSeed(final RandomNumberGeneratorSeed object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EDP2 Datasource'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EDP2 Datasource'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEDP2Datasource(final EDP2Datasource object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Memory Datasource'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Memory Datasource'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMemoryDatasource(final MemoryDatasource object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'File Datasource'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'File Datasource'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFileDatasource(final FileDatasource object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Measurement Count Stop - * Condition'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Measurement Count Stop - * Condition'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMeasurementCountStopCondition(final MeasurementCountStopCondition object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Sim Time Stop - * Condition'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Sim Time Stop - * Condition'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSimTimeStopCondition(final SimTimeStopCondition object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Stop Condition'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Stop Condition'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStopCondition(final StopCondition object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Tool - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Tool - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseToolConfiguration(final ToolConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will - * terminate the switch, but this is the last case anyway. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(final EObject object) { - return null; - } - -} // AbstractsimulationSwitch diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationXMLProcessor.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationXMLProcessor.java deleted file mode 100644 index c4690aa6..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/abstractsimulation/util/AbstractsimulationXMLProcessor.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.abstractsimulation.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * @generated - */ -public class AbstractsimulationXMLProcessor extends XMLProcessor { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Public constructor to instantiate the helper. - * - * @generated - */ - public AbstractsimulationXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - AbstractsimulationPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the AbstractsimulationResourceFactoryImpl factory. - * - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (this.registrations == null) { - super.getRegistrations(); - this.registrations.put(XML_EXTENSION, new AbstractsimulationResourceFactoryImpl()); - this.registrations.put(STAR_EXTENSION, new AbstractsimulationResourceFactoryImpl()); - } - return this.registrations; - } - -} // AbstractsimulationXMLProcessor diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Experiment.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Experiment.java deleted file mode 100644 index 8227116c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Experiment.java +++ /dev/null @@ -1,328 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; -import org.eclipse.emf.common.util.EList; -import org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition; - -/** - * A representation of the model object 'Experiment'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getVariations - * Variations}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getModifications - * Modifications}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getId - * Id}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getName - * Name}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getToolConfiguration - * Tool Configuration}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getStopConditions - * Stop Conditions}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getDescription - * Description}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getExperimentDesign - * Experiment Design}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getResponseMeasurement - * Response Measurement}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getInitialModel - * Initial Model}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getRepetitions - * Repetitions}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment() - * @model - * @extends CDOObject - * @generated - */ -public interface Experiment extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Variations' containment reference list. The list - * contents are of type - * {@link org.palladiosimulator.experimentautomation.experiments.Variation}. - *

- * If the meaning of the 'Variations' containment reference list isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Variations' containment reference list. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_Variations() - * @model containment="true" ordered="false" - * @generated - */ - EList getVariations(); - - /** - * Returns the value of the 'Modifications' containment reference list. The list - * contents are of type - * {@link org.palladiosimulator.experimentautomation.experiments.Modification}. - *

- * If the meaning of the 'Modifications' containment reference list isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Modifications' containment reference list. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_Modifications() - * @model containment="true" - * @generated - */ - EList getModifications(); - - /** - * Returns the value of the 'Id' attribute. - *

- * If the meaning of the 'Id' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Id' attribute. - * @see #setId(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_Id() - * @model required="true" ordered="false" - * @generated - */ - String getId(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getId Id}' - * attribute. - * - * @param value - * the new value of the 'Id' attribute. - * @see #getId() - * @generated - */ - void setId(String value); - - /** - * Returns the value of the 'Name' attribute. - *

- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getName - * Name}' attribute. - * - * @param value - * the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Tool Configuration' containment reference list. The - * list contents are of type - * {@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration}. - *

- * If the meaning of the 'Tool Configuration' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * - * @return the value of the 'Tool Configuration' containment reference list. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_ToolConfiguration() - * @model containment="true" required="true" ordered="false" - * @generated - */ - EList getToolConfiguration(); - - /** - * Returns the value of the 'Stop Conditions' containment reference list. The - * list contents are of type - * {@link org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition}. - *

- * If the meaning of the 'Stop Conditions' containment reference list isn't clear, - * there really should be more of a description here... - *

- * - * - * @return the value of the 'Stop Conditions' containment reference list. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_StopConditions() - * @model containment="true" ordered="false" - * @generated - */ - EList getStopConditions(); - - /** - * Returns the value of the 'Description' attribute. - *

- * If the meaning of the 'Description' attribute isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_Description() - * @model required="true" ordered="false" - * @generated - */ - String getDescription(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getDescription - * Description}' attribute. - * - * @param value - * the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Experiment Design' containment reference. - *

- * If the meaning of the 'Experiment Design' containment reference isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Experiment Design' containment reference. - * @see #setExperimentDesign(ExperimentDesign) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_ExperimentDesign() - * @model containment="true" required="true" ordered="false" - * @generated - */ - ExperimentDesign getExperimentDesign(); - - /** - * Sets the value of the ' - * {@link org.palladiosimulator.experimentautomation.experiments.Experiment#getExperimentDesign - * Experiment Design}' containment reference. - * - * @param value - * the new value of the 'Experiment Design' containment reference. - * @see #getExperimentDesign() - * @generated - */ - void setExperimentDesign(ExperimentDesign value); - - /** - * Returns the value of the 'Response Measurement' containment reference. - *

- * If the meaning of the 'Response Measurement' containment reference isn't clear, - * there really should be more of a description here... - *

- * - * - * @return the value of the 'Response Measurement' containment reference. - * @see #setResponseMeasurement(ResponseMeasurement) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_ResponseMeasurement() - * @model containment="true" required="true" ordered="false" - * @generated - */ - ResponseMeasurement getResponseMeasurement(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getResponseMeasurement - * Response Measurement}' containment reference. - * - * @param value - * the new value of the 'Response Measurement' containment reference. - * @see #getResponseMeasurement() - * @generated - */ - void setResponseMeasurement(ResponseMeasurement value); - - /** - * Returns the value of the 'Initial Model' containment reference. - *

- * If the meaning of the 'Initial Model' containment reference isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Initial Model' containment reference. - * @see #setInitialModel(InitialModel) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_InitialModel() - * @model containment="true" required="true" - * @generated - */ - InitialModel getInitialModel(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getInitialModel - * Initial Model}' containment reference. - * - * @param value - * the new value of the 'Initial Model' containment reference. - * @see #getInitialModel() - * @generated - */ - void setInitialModel(InitialModel value); - - /** - * Returns the value of the 'Repetitions' attribute. - *

- * If the meaning of the 'Repetitions' attribute isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Repetitions' attribute. - * @see #setRepetitions(int) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperiment_Repetitions() - * @model required="true" ordered="false" - * @generated - */ - int getRepetitions(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getRepetitions - * Repetitions}' attribute. - * - * @param value - * the new value of the 'Repetitions' attribute. - * @see #getRepetitions() - * @generated - */ - void setRepetitions(int value); - -} // Experiment diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentDesign.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentDesign.java deleted file mode 100644 index 135ebe41..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentDesign.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object 'Experiment Design'. - * - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperimentDesign() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface ExperimentDesign extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // ExperimentDesign diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentRepository.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentRepository.java deleted file mode 100644 index 4331fb9b..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentRepository.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; -import org.eclipse.emf.common.util.EList; - -/** - * A representation of the model object ' Experiment - * Repository'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ExperimentRepository#getExperiments - * Experiments}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperimentRepository() - * @model - * @extends CDOObject - * @generated - */ -public interface ExperimentRepository extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Experiments' containment reference list. The list - * contents are of type - * {@link org.palladiosimulator.experimentautomation.experiments.Experiment}. - *

- * If the meaning of the 'Experiments' containment reference list isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Experiments' containment reference list. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExperimentRepository_Experiments() - * @model containment="true" ordered="false" - * @generated - */ - EList getExperiments(); - -} // ExperimentRepository diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentsFactory.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentsFactory.java deleted file mode 100644 index a014e9e3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentsFactory.java +++ /dev/null @@ -1,218 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.ecore.EFactory; - -/** - * The Factory for the model. It provides a create method for each - * non-abstract class of the model. - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage - * @generated - */ -public interface ExperimentsFactory extends EFactory { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The singleton instance of the factory. - * - * @generated - */ - ExperimentsFactory eINSTANCE = org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsFactoryImpl - .init(); - - /** - * Returns a new object of class 'Experiment Repository'. - * - * @return a new object of class 'Experiment Repository'. - * @generated - */ - ExperimentRepository createExperimentRepository(); - - /** - * Returns a new object of class 'Experiment'. - * - * @return a new object of class 'Experiment'. - * @generated - */ - Experiment createExperiment(); - - /** - * Returns a new object of class 'Variation'. - * - * @return a new object of class 'Variation'. - * @generated - */ - Variation createVariation(); - - /** - * Returns a new object of class 'Polynomial Value Provider'. - * - * - * @return a new object of class 'Polynomial Value Provider'. - * @generated - */ - PolynomialValueProvider createPolynomialValueProvider(); - - /** - * Returns a new object of class 'Exponential Value Provider'. - * - * - * @return a new object of class 'Exponential Value Provider'. - * @generated - */ - ExponentialValueProvider createExponentialValueProvider(); - - /** - * Returns a new object of class 'Set Value Provider'. - * - * @return a new object of class 'Set Value Provider'. - * @generated - */ - SetValueProvider createSetValueProvider(); - - /** - * Returns a new object of class 'Placket Burman Design'. - * - * @return a new object of class 'Placket Burman Design'. - * @generated - */ - PlacketBurmanDesign createPlacketBurmanDesign(); - - /** - * Returns a new object of class 'Full Factorial Design'. - * - * @return a new object of class 'Full Factorial Design'. - * @generated - */ - FullFactorialDesign createFullFactorialDesign(); - - /** - * Returns a new object of class 'Fractional Factorial Design'. - * - * - * @return a new object of class 'Fractional Factorial Design'. - * @generated - */ - FractionalFactorialDesign createFractionalFactorialDesign(); - - /** - * Returns a new object of class 'One Factor At ATime'. - * - * @return a new object of class 'One Factor At ATime'. - * @generated - */ - OneFactorAtATime createOneFactorAtATime(); - - /** - * Returns a new object of class 'Simulation Duration Measurement'. - * - * @return a new object of class 'Simulation Duration Measurement'. - * @generated - */ - SimulationDurationMeasurement createSimulationDurationMeasurement(); - - /** - * Returns a new object of class 'Profiling Measurement'. - * - * @return a new object of class 'Profiling Measurement'. - * @generated - */ - ProfilingMeasurement createProfilingMeasurement(); - - /** - * Returns a new object of class 'JMX Measurement'. - * - * @return a new object of class 'JMX Measurement'. - * @generated - */ - JMXMeasurement createJMXMeasurement(); - - /** - * Returns a new object of class 'Linear Value Provider'. - * - * @return a new object of class 'Linear Value Provider'. - * @generated - */ - LinearValueProvider createLinearValueProvider(); - - /** - * Returns a new object of class 'Object Modification'. - * - * @return a new object of class 'Object Modification'. - * @generated - */ - ObjectModification createObjectModification(); - - /** - * Returns a new object of class 'Initial Model'. - * - * @return a new object of class 'Initial Model'. - * @generated - */ - InitialModel createInitialModel(); - - /** - * Returns a new object of class 'Reconfiguration Rules Folder'. - * - * @return a new object of class 'Reconfiguration Rules Folder'. - * @generated - */ - ReconfigurationRulesFolder createReconfigurationRulesFolder(); - - /** - * Returns a new object of class 'Nested Intervals Double Value Provider'. - * - * @return a new object of class 'Nested Intervals Double Value Provider'. - * @generated - */ - NestedIntervalsDoubleValueProvider createNestedIntervalsDoubleValueProvider(); - - /** - * Returns a new object of class 'Nested Intervals Long Value Provider'. - * - * @return a new object of class 'Nested Intervals Long Value Provider'. - * @generated - */ - NestedIntervalsLongValueProvider createNestedIntervalsLongValueProvider(); - - /** - * Returns a new object of class 'Scheduling Policy2 Delay Modification'. - * - * @return a new object of class 'Scheduling Policy2 Delay Modification'. - * @generated - */ - SchedulingPolicy2DelayModification createSchedulingPolicy2DelayModification(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - ExperimentsPackage getExperimentsPackage(); - -} // ExperimentsFactory diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentsPackage.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentsPackage.java deleted file mode 100644 index 0913e949..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExperimentsPackage.java +++ /dev/null @@ -1,2519 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * The Package for the model. It contains accessors for the meta - * objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsFactory - * @model kind="package" - * @generated - */ -public interface ExperimentsPackage extends EPackage { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The package name. - * - * @generated - */ - String eNAME = "experiments"; - - /** - * The package namespace URI. - * - * @generated - */ - String eNS_URI = "http://palladiosimulator.org/ExperimentAutomation/Experiments/1.0"; - - /** - * The package namespace name. - * - * @generated - */ - String eNS_PREFIX = "ExperimentAutomation.Experiments"; - - /** - * The singleton instance of the package. - * - * @generated - */ - ExperimentsPackage eINSTANCE = org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl - .init(); - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentRepositoryImpl - * Experiment Repository}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentRepositoryImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExperimentRepository() - * @generated - */ - int EXPERIMENT_REPOSITORY = 0; - - /** - * The feature id for the 'Experiments' containment reference list. - * - * @generated - * @ordered - */ - int EXPERIMENT_REPOSITORY__EXPERIMENTS = 0; - - /** - * The number of structural features of the 'Experiment Repository' class. - * - * @generated - * @ordered - */ - int EXPERIMENT_REPOSITORY_FEATURE_COUNT = 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl - * Experiment}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExperiment() - * @generated - */ - int EXPERIMENT = 1; - - /** - * The feature id for the 'Variations' containment reference list. - * - * @generated - * @ordered - */ - int EXPERIMENT__VARIATIONS = 0; - - /** - * The feature id for the 'Modifications' containment reference list. - * - * @generated - * @ordered - */ - int EXPERIMENT__MODIFICATIONS = 1; - - /** - * The feature id for the 'Id' attribute. - * - * @generated - * @ordered - */ - int EXPERIMENT__ID = 2; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int EXPERIMENT__NAME = 3; - - /** - * The feature id for the 'Tool Configuration' containment reference list. - * - * @generated - * @ordered - */ - int EXPERIMENT__TOOL_CONFIGURATION = 4; - - /** - * The feature id for the 'Stop Conditions' containment reference list. - * - * @generated - * @ordered - */ - int EXPERIMENT__STOP_CONDITIONS = 5; - - /** - * The feature id for the 'Description' attribute. - * - * @generated - * @ordered - */ - int EXPERIMENT__DESCRIPTION = 6; - - /** - * The feature id for the 'Experiment Design' containment reference. - * - * @generated - * @ordered - */ - int EXPERIMENT__EXPERIMENT_DESIGN = 7; - - /** - * The feature id for the 'Response Measurement' containment reference. - * - * @generated - * @ordered - */ - int EXPERIMENT__RESPONSE_MEASUREMENT = 8; - - /** - * The feature id for the 'Initial Model' containment reference. - * - * @generated - * @ordered - */ - int EXPERIMENT__INITIAL_MODEL = 9; - - /** - * The feature id for the 'Repetitions' attribute. - * - * @generated - * @ordered - */ - int EXPERIMENT__REPETITIONS = 10; - - /** - * The number of structural features of the 'Experiment' class. - * - * - * @generated - * @ordered - */ - int EXPERIMENT_FEATURE_COUNT = 11; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl - * Variation}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getVariation() - * @generated - */ - int VARIATION = 2; - - /** - * The feature id for the 'Type' reference. - * - * @generated - * @ordered - */ - int VARIATION__TYPE = 0; - - /** - * The feature id for the 'Value Provider' containment reference. - * - * @generated - * @ordered - */ - int VARIATION__VALUE_PROVIDER = 1; - - /** - * The feature id for the 'Min Value' attribute. - * - * @generated - * @ordered - */ - int VARIATION__MIN_VALUE = 2; - - /** - * The feature id for the 'Max Value' attribute. - * - * @generated - * @ordered - */ - int VARIATION__MAX_VALUE = 3; - - /** - * The feature id for the 'Max Variations' attribute. - * - * - * @generated - * @ordered - */ - int VARIATION__MAX_VARIATIONS = 4; - - /** - * The feature id for the 'Varied Object Id' attribute. - * - * - * @generated - * @ordered - */ - int VARIATION__VARIED_OBJECT_ID = 5; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int VARIATION__NAME = 6; - - /** - * The number of structural features of the 'Variation' class. - * - * - * @generated - * @ordered - */ - int VARIATION_FEATURE_COUNT = 7; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ValueProviderImpl - * Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getValueProvider() - * @generated - */ - int VALUE_PROVIDER = 3; - - /** - * The number of structural features of the 'Value Provider' class. - * - * @generated - * @ordered - */ - int VALUE_PROVIDER_FEATURE_COUNT = 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ToolConfigurationImpl - * Tool Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ToolConfigurationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getToolConfiguration() - * @generated - */ - int TOOL_CONFIGURATION = 4; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int TOOL_CONFIGURATION__NAME = 0; - - /** - * The number of structural features of the 'Tool Configuration' class. - * - * @generated - * @ordered - */ - int TOOL_CONFIGURATION_FEATURE_COUNT = 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentDesignImpl - * Experiment Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExperimentDesign() - * @generated - */ - int EXPERIMENT_DESIGN = 5; - - /** - * The number of structural features of the 'Experiment Design' class. - * - * @generated - * @ordered - */ - int EXPERIMENT_DESIGN_FEATURE_COUNT = 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ResponseMeasurementImpl - * Response Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ResponseMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getResponseMeasurement() - * @generated - */ - int RESPONSE_MEASUREMENT = 6; - - /** - * The number of structural features of the 'Response Measurement' class. - * - * @generated - * @ordered - */ - int RESPONSE_MEASUREMENT_FEATURE_COUNT = 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.PolynomialValueProviderImpl - * Polynomial Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.PolynomialValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getPolynomialValueProvider() - * @generated - */ - int POLYNOMIAL_VALUE_PROVIDER = 7; - - /** - * The feature id for the 'Exponent' attribute. - * - * @generated - * @ordered - */ - int POLYNOMIAL_VALUE_PROVIDER__EXPONENT = VALUE_PROVIDER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Factor' attribute. - * - * @generated - * @ordered - */ - int POLYNOMIAL_VALUE_PROVIDER__FACTOR = VALUE_PROVIDER_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Polynomial Value Provider' class. - * - * @generated - * @ordered - */ - int POLYNOMIAL_VALUE_PROVIDER_FEATURE_COUNT = VALUE_PROVIDER_FEATURE_COUNT + 2; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ExponentialValueProviderImpl - * Exponential Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExponentialValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExponentialValueProvider() - * @generated - */ - int EXPONENTIAL_VALUE_PROVIDER = 8; - - /** - * The feature id for the 'Base' attribute. - * - * @generated - * @ordered - */ - int EXPONENTIAL_VALUE_PROVIDER__BASE = VALUE_PROVIDER_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Exponential Value Provider' class. - * - * @generated - * @ordered - */ - int EXPONENTIAL_VALUE_PROVIDER_FEATURE_COUNT = VALUE_PROVIDER_FEATURE_COUNT + 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.SetValueProviderImpl - * Set Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.SetValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getSetValueProvider() - * @generated - */ - int SET_VALUE_PROVIDER = 9; - - /** - * The feature id for the 'Values' attribute. - * - * @generated - * @ordered - */ - int SET_VALUE_PROVIDER__VALUES = VALUE_PROVIDER_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Set Value Provider' class. - * - * @generated - * @ordered - */ - int SET_VALUE_PROVIDER_FEATURE_COUNT = VALUE_PROVIDER_FEATURE_COUNT + 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.PlacketBurmanDesignImpl - * Placket Burman Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.PlacketBurmanDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getPlacketBurmanDesign() - * @generated - */ - int PLACKET_BURMAN_DESIGN = 10; - - /** - * The number of structural features of the 'Placket Burman Design' class. - * - * @generated - * @ordered - */ - int PLACKET_BURMAN_DESIGN_FEATURE_COUNT = 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.FullFactorialDesignImpl - * Full Factorial Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.FullFactorialDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getFullFactorialDesign() - * @generated - */ - int FULL_FACTORIAL_DESIGN = 11; - - /** - * The number of structural features of the 'Full Factorial Design' class. - * - * @generated - * @ordered - */ - int FULL_FACTORIAL_DESIGN_FEATURE_COUNT = EXPERIMENT_DESIGN_FEATURE_COUNT + 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.FractionalFactorialDesignImpl - * Fractional Factorial Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.FractionalFactorialDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getFractionalFactorialDesign() - * @generated - */ - int FRACTIONAL_FACTORIAL_DESIGN = 12; - - /** - * The number of structural features of the 'Fractional Factorial Design' class. - * - * @generated - * @ordered - */ - int FRACTIONAL_FACTORIAL_DESIGN_FEATURE_COUNT = 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.OneFactorAtATimeImpl - * One Factor At ATime}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.OneFactorAtATimeImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getOneFactorAtATime() - * @generated - */ - int ONE_FACTOR_AT_ATIME = 13; - - /** - * The number of structural features of the 'One Factor At ATime' class. - * - * @generated - * @ordered - */ - int ONE_FACTOR_AT_ATIME_FEATURE_COUNT = EXPERIMENT_DESIGN_FEATURE_COUNT + 0; - - /** - * The meta object id for the ' - * {@link org.palladiosimulator.experimentautomation.experiments.impl.SimulationDurationMeasurementImpl - * Simulation Duration Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.SimulationDurationMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getSimulationDurationMeasurement() - * @generated - */ - int SIMULATION_DURATION_MEASUREMENT = 14; - - /** - * The number of structural features of the 'Simulation Duration Measurement' class. - * - * - * @generated - * @ordered - */ - int SIMULATION_DURATION_MEASUREMENT_FEATURE_COUNT = RESPONSE_MEASUREMENT_FEATURE_COUNT + 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ProfilingMeasurementImpl - * Profiling Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ProfilingMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getProfilingMeasurement() - * @generated - */ - int PROFILING_MEASUREMENT = 15; - - /** - * The number of structural features of the 'Profiling Measurement' class. - * - * @generated - * @ordered - */ - int PROFILING_MEASUREMENT_FEATURE_COUNT = RESPONSE_MEASUREMENT_FEATURE_COUNT + 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.JMXMeasurementImpl - * JMX Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.JMXMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getJMXMeasurement() - * @generated - */ - int JMX_MEASUREMENT = 16; - - /** - * The feature id for the 'Polling Period' attribute. - * - * - * @generated - * @ordered - */ - int JMX_MEASUREMENT__POLLING_PERIOD = RESPONSE_MEASUREMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'JMX Measurement' class. - * - * @generated - * @ordered - */ - int JMX_MEASUREMENT_FEATURE_COUNT = RESPONSE_MEASUREMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.LinearValueProviderImpl - * Linear Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.LinearValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getLinearValueProvider() - * @generated - */ - int LINEAR_VALUE_PROVIDER = 17; - - /** - * The feature id for the 'Summand' attribute. - * - * @generated - * @ordered - */ - int LINEAR_VALUE_PROVIDER__SUMMAND = VALUE_PROVIDER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Factor' attribute. - * - * @generated - * @ordered - */ - int LINEAR_VALUE_PROVIDER__FACTOR = VALUE_PROVIDER_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Linear Value Provider' class. - * - * @generated - * @ordered - */ - int LINEAR_VALUE_PROVIDER_FEATURE_COUNT = VALUE_PROVIDER_FEATURE_COUNT + 2; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ModificationImpl - * Modification}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ModificationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getModification() - * @generated - */ - int MODIFICATION = 23; - - /** - * The number of structural features of the 'Modification' class. - * - * @generated - * @ordered - */ - int MODIFICATION_FEATURE_COUNT = 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl - * Object Modification}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getObjectModification() - * @generated - */ - int OBJECT_MODIFICATION = 18; - - /** - * The feature id for the 'Type' reference. - * - * @generated - * @ordered - */ - int OBJECT_MODIFICATION__TYPE = MODIFICATION_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int OBJECT_MODIFICATION__NAME = MODIFICATION_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Varied Object Id' attribute. - * - * - * @generated - * @ordered - */ - int OBJECT_MODIFICATION__VARIED_OBJECT_ID = MODIFICATION_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Value' attribute. - * - * @generated - * @ordered - */ - int OBJECT_MODIFICATION__VALUE = MODIFICATION_FEATURE_COUNT + 3; - - /** - * The number of structural features of the 'Object Modification' class. - * - * @generated - * @ordered - */ - int OBJECT_MODIFICATION_FEATURE_COUNT = MODIFICATION_FEATURE_COUNT + 4; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl - * Initial Model}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getInitialModel() - * @generated - */ - int INITIAL_MODEL = 19; - - /** - * The feature id for the 'Usage Model' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__USAGE_MODEL = 0; - - /** - * The feature id for the 'Allocation' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__ALLOCATION = 1; - - /** - * The feature id for the 'Middleware Repository' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__MIDDLEWARE_REPOSITORY = 2; - - /** - * The feature id for the 'Event Middle Ware Repository' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY = 3; - - /** - * The feature id for the 'Reconfiguration Rules' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__RECONFIGURATION_RULES = 4; - - /** - * The feature id for the 'Monitor Repository' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__MONITOR_REPOSITORY = 5; - - /** - * The feature id for the 'Service Level Objectives' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES = 6; - - /** - * The feature id for the 'Repository' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__REPOSITORY = 7; - - /** - * The feature id for the 'System' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__SYSTEM = 8; - - /** - * The feature id for the 'Resource Environment' reference. - * - * @generated - * @ordered - */ - int INITIAL_MODEL__RESOURCE_ENVIRONMENT = 9; - - /** - * The feature id for the 'Usage Evolution' reference. - * - * - * @generated - * @ordered - */ - int INITIAL_MODEL__USAGE_EVOLUTION = 10; - - /** - * The number of structural features of the 'Initial Model' class. - * - * @generated - * @ordered - */ - int INITIAL_MODEL_FEATURE_COUNT = 11; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ReconfigurationRulesFolderImpl - * Reconfiguration Rules Folder}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ReconfigurationRulesFolderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getReconfigurationRulesFolder() - * @generated - */ - int RECONFIGURATION_RULES_FOLDER = 20; - - /** - * The feature id for the 'Folder Uri' attribute. - * - * @generated - * @ordered - */ - int RECONFIGURATION_RULES_FOLDER__FOLDER_URI = 0; - - /** - * The number of structural features of the 'Reconfiguration Rules Folder' class. - * - * @generated - * @ordered - */ - int RECONFIGURATION_RULES_FOLDER_FEATURE_COUNT = 1; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsDoubleValueProviderImpl - * Nested Intervals Double Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsDoubleValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getNestedIntervalsDoubleValueProvider() - * @generated - */ - int NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER = 21; - - /** - * The feature id for the 'Min Value' attribute. - * - * @generated - * @ordered - */ - int NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE = VALUE_PROVIDER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Max Value' attribute. - * - * @generated - * @ordered - */ - int NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE = VALUE_PROVIDER_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Nested Intervals Double Value Provider' - * class. - * - * @generated - * @ordered - */ - int NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER_FEATURE_COUNT = VALUE_PROVIDER_FEATURE_COUNT + 2; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsLongValueProviderImpl - * Nested Intervals Long Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsLongValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getNestedIntervalsLongValueProvider() - * @generated - */ - int NESTED_INTERVALS_LONG_VALUE_PROVIDER = 22; - - /** - * The feature id for the 'Min Value' attribute. - * - * @generated - * @ordered - */ - int NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE = VALUE_PROVIDER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Max Value' attribute. - * - * @generated - * @ordered - */ - int NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE = VALUE_PROVIDER_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Nested Intervals Long Value Provider' - * class. - * - * @generated - * @ordered - */ - int NESTED_INTERVALS_LONG_VALUE_PROVIDER_FEATURE_COUNT = VALUE_PROVIDER_FEATURE_COUNT + 2; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.SchedulingPolicy2DelayModificationImpl - * Scheduling Policy2 Delay Modification}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.SchedulingPolicy2DelayModificationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getSchedulingPolicy2DelayModification() - * @generated - */ - int SCHEDULING_POLICY2_DELAY_MODIFICATION = 24; - - /** - * The number of structural features of the 'Scheduling Policy2 Delay Modification' - * class. - * - * @generated - * @ordered - */ - int SCHEDULING_POLICY2_DELAY_MODIFICATION_FEATURE_COUNT = MODIFICATION_FEATURE_COUNT + 0; - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ExperimentRepository - * Experiment Repository}'. - * - * @return the meta object for class 'Experiment Repository'. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentRepository - * @generated - */ - EClass getExperimentRepository(); - - /** - * Returns the meta object for the containment reference list - * '{@link org.palladiosimulator.experimentautomation.experiments.ExperimentRepository#getExperiments - * Experiments}'. - * - * @return the meta object for the containment reference list 'Experiments'. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentRepository#getExperiments() - * @see #getExperimentRepository() - * @generated - */ - EReference getExperimentRepository_Experiments(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment - * Experiment}'. - * - * @return the meta object for class 'Experiment'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment - * @generated - */ - EClass getExperiment(); - - /** - * Returns the meta object for the containment reference list - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getVariations - * Variations}'. - * - * @return the meta object for the containment reference list 'Variations'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getVariations() - * @see #getExperiment() - * @generated - */ - EReference getExperiment_Variations(); - - /** - * Returns the meta object for the containment reference list - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getModifications - * Modifications}'. - * - * @return the meta object for the containment reference list 'Modifications'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getModifications() - * @see #getExperiment() - * @generated - */ - EReference getExperiment_Modifications(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getId - * Id}'. - * - * @return the meta object for the attribute 'Id'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getId() - * @see #getExperiment() - * @generated - */ - EAttribute getExperiment_Id(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getName - * Name}'. - * - * @return the meta object for the attribute 'Name'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getName() - * @see #getExperiment() - * @generated - */ - EAttribute getExperiment_Name(); - - /** - * Returns the meta object for the containment reference list - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getToolConfiguration - * Tool Configuration}'. - * - * @return the meta object for the containment reference list 'Tool Configuration'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getToolConfiguration() - * @see #getExperiment() - * @generated - */ - EReference getExperiment_ToolConfiguration(); - - /** - * Returns the meta object for the containment reference list - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getStopConditions - * Stop Conditions}'. - * - * @return the meta object for the containment reference list 'Stop Conditions'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getStopConditions() - * @see #getExperiment() - * @generated - */ - EReference getExperiment_StopConditions(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getDescription - * Description}'. - * - * @return the meta object for the attribute 'Description'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getDescription() - * @see #getExperiment() - * @generated - */ - EAttribute getExperiment_Description(); - - /** - * Returns the meta object for the containment reference - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getExperimentDesign - * Experiment Design}'. - * - * @return the meta object for the containment reference 'Experiment Design'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getExperimentDesign() - * @see #getExperiment() - * @generated - */ - EReference getExperiment_ExperimentDesign(); - - /** - * Returns the meta object for the containment reference - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getResponseMeasurement - * Response Measurement}'. - * - * @return the meta object for the containment reference 'Response Measurement'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getResponseMeasurement() - * @see #getExperiment() - * @generated - */ - EReference getExperiment_ResponseMeasurement(); - - /** - * Returns the meta object for the containment reference - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getInitialModel - * Initial Model}'. - * - * @return the meta object for the containment reference 'Initial Model'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getInitialModel() - * @see #getExperiment() - * @generated - */ - EReference getExperiment_InitialModel(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment#getRepetitions - * Repetitions}'. - * - * @return the meta object for the attribute 'Repetitions'. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment#getRepetitions() - * @see #getExperiment() - * @generated - */ - EAttribute getExperiment_Repetitions(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation - * Variation}'. - * - * @return the meta object for class 'Variation'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation - * @generated - */ - EClass getVariation(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getType - * Type}'. - * - * @return the meta object for the reference 'Type'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation#getType() - * @see #getVariation() - * @generated - */ - EReference getVariation_Type(); - - /** - * Returns the meta object for the containment reference - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getValueProvider - * Value Provider}'. - * - * @return the meta object for the containment reference 'Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation#getValueProvider() - * @see #getVariation() - * @generated - */ - EReference getVariation_ValueProvider(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getMinValue Min - * Value}'. - * - * @return the meta object for the attribute 'Min Value'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation#getMinValue() - * @see #getVariation() - * @generated - */ - EAttribute getVariation_MinValue(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getMaxValue Max - * Value}'. - * - * @return the meta object for the attribute 'Max Value'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation#getMaxValue() - * @see #getVariation() - * @generated - */ - EAttribute getVariation_MaxValue(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getMaxVariations - * Max Variations}'. - * - * @return the meta object for the attribute 'Max Variations'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation#getMaxVariations() - * @see #getVariation() - * @generated - */ - EAttribute getVariation_MaxVariations(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getVariedObjectId - * Varied Object Id}'. - * - * @return the meta object for the attribute 'Varied Object Id'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation#getVariedObjectId() - * @see #getVariation() - * @generated - */ - EAttribute getVariation_VariedObjectId(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getName - * Name}'. - * - * @return the meta object for the attribute 'Name'. - * @see org.palladiosimulator.experimentautomation.experiments.Variation#getName() - * @see #getVariation() - * @generated - */ - EAttribute getVariation_Name(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ValueProvider Value - * Provider}'. - * - * @return the meta object for class 'Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.ValueProvider - * @generated - */ - EClass getValueProvider(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration Tool - * Configuration}'. - * - * @return the meta object for class 'Tool Configuration'. - * @see org.palladiosimulator.experimentautomation.experiments.ToolConfiguration - * @generated - */ - EClass getToolConfiguration(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration#getName - * Name}'. - * - * @return the meta object for the attribute 'Name'. - * @see org.palladiosimulator.experimentautomation.experiments.ToolConfiguration#getName() - * @see #getToolConfiguration() - * @generated - */ - EAttribute getToolConfiguration_Name(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ExperimentDesign - * Experiment Design}'. - * - * @return the meta object for class 'Experiment Design'. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentDesign - * @generated - */ - EClass getExperimentDesign(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement - * Response Measurement}'. - * - * @return the meta object for class 'Response Measurement'. - * @see org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement - * @generated - */ - EClass getResponseMeasurement(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider - * Polynomial Value Provider}'. - * - * @return the meta object for class 'Polynomial Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider - * @generated - */ - EClass getPolynomialValueProvider(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getExponent - * Exponent}'. - * - * @return the meta object for the attribute 'Exponent'. - * @see org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getExponent() - * @see #getPolynomialValueProvider() - * @generated - */ - EAttribute getPolynomialValueProvider_Exponent(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getFactor - * Factor}'. - * - * @return the meta object for the attribute 'Factor'. - * @see org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getFactor() - * @see #getPolynomialValueProvider() - * @generated - */ - EAttribute getPolynomialValueProvider_Factor(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider - * Exponential Value Provider}'. - * - * @return the meta object for class 'Exponential Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider - * @generated - */ - EClass getExponentialValueProvider(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider#getBase - * Base}'. - * - * @return the meta object for the attribute 'Base'. - * @see org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider#getBase() - * @see #getExponentialValueProvider() - * @generated - */ - EAttribute getExponentialValueProvider_Base(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider Set Value - * Provider}'. - * - * @return the meta object for class 'Set Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.SetValueProvider - * @generated - */ - EClass getSetValueProvider(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider#getValues - * Values}'. - * - * @return the meta object for the attribute 'Values'. - * @see org.palladiosimulator.experimentautomation.experiments.SetValueProvider#getValues() - * @see #getSetValueProvider() - * @generated - */ - EAttribute getSetValueProvider_Values(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign - * Placket Burman Design}'. - * - * @return the meta object for class 'Placket Burman Design'. - * @see org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign - * @generated - */ - EClass getPlacketBurmanDesign(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign Full - * Factorial Design}'. - * - * @return the meta object for class 'Full Factorial Design'. - * @see org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign - * @generated - */ - EClass getFullFactorialDesign(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign - * Fractional Factorial Design}'. - * - * @return the meta object for class 'Fractional Factorial Design'. - * @see org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign - * @generated - */ - EClass getFractionalFactorialDesign(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime One - * Factor At ATime}'. - * - * @return the meta object for class 'One Factor At ATime'. - * @see org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime - * @generated - */ - EClass getOneFactorAtATime(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement - * Simulation Duration Measurement}'. - * - * @return the meta object for class 'Simulation Duration Measurement'. - * @see org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement - * @generated - */ - EClass getSimulationDurationMeasurement(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement - * Profiling Measurement}'. - * - * @return the meta object for class 'Profiling Measurement'. - * @see org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement - * @generated - */ - EClass getProfilingMeasurement(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement JMX - * Measurement}'. - * - * @return the meta object for class 'JMX Measurement'. - * @see org.palladiosimulator.experimentautomation.experiments.JMXMeasurement - * @generated - */ - EClass getJMXMeasurement(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement#getPollingPeriod - * Polling Period}'. - * - * @return the meta object for the attribute 'Polling Period'. - * @see org.palladiosimulator.experimentautomation.experiments.JMXMeasurement#getPollingPeriod() - * @see #getJMXMeasurement() - * @generated - */ - EAttribute getJMXMeasurement_PollingPeriod(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider Linear - * Value Provider}'. - * - * @return the meta object for class 'Linear Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.LinearValueProvider - * @generated - */ - EClass getLinearValueProvider(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getSummand - * Summand}'. - * - * @return the meta object for the attribute 'Summand'. - * @see org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getSummand() - * @see #getLinearValueProvider() - * @generated - */ - EAttribute getLinearValueProvider_Summand(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getFactor - * Factor}'. - * - * @return the meta object for the attribute 'Factor'. - * @see org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getFactor() - * @see #getLinearValueProvider() - * @generated - */ - EAttribute getLinearValueProvider_Factor(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification Object - * Modification}'. - * - * @return the meta object for class 'Object Modification'. - * @see org.palladiosimulator.experimentautomation.experiments.ObjectModification - * @generated - */ - EClass getObjectModification(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getType - * Type}'. - * - * @return the meta object for the reference 'Type'. - * @see org.palladiosimulator.experimentautomation.experiments.ObjectModification#getType() - * @see #getObjectModification() - * @generated - */ - EReference getObjectModification_Type(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getName - * Name}'. - * - * @return the meta object for the attribute 'Name'. - * @see org.palladiosimulator.experimentautomation.experiments.ObjectModification#getName() - * @see #getObjectModification() - * @generated - */ - EAttribute getObjectModification_Name(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getVariedObjectId - * Varied Object Id}'. - * - * @return the meta object for the attribute 'Varied Object Id'. - * @see org.palladiosimulator.experimentautomation.experiments.ObjectModification#getVariedObjectId() - * @see #getObjectModification() - * @generated - */ - EAttribute getObjectModification_VariedObjectId(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getValue - * Value}'. - * - * @return the meta object for the attribute 'Value'. - * @see org.palladiosimulator.experimentautomation.experiments.ObjectModification#getValue() - * @see #getObjectModification() - * @generated - */ - EAttribute getObjectModification_Value(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel Initial - * Model}'. - * - * @return the meta object for class 'Initial Model'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel - * @generated - */ - EClass getInitialModel(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageModel - * Usage Model}'. - * - * @return the meta object for the reference 'Usage Model'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageModel() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_UsageModel(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getAllocation - * Allocation}'. - * - * @return the meta object for the reference 'Allocation'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getAllocation() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_Allocation(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getMiddlewareRepository - * Middleware Repository}'. - * - * @return the meta object for the reference 'Middleware Repository'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getMiddlewareRepository() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_MiddlewareRepository(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getEventMiddleWareRepository - * Event Middle Ware Repository}'. - * - * @return the meta object for the reference 'Event Middle Ware Repository'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getEventMiddleWareRepository() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_EventMiddleWareRepository(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getReconfigurationRules - * Reconfiguration Rules}'. - * - * @return the meta object for the reference 'Reconfiguration Rules'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getReconfigurationRules() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_ReconfigurationRules(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getMonitorRepository - * Monitor Repository}'. - * - * @return the meta object for the reference 'Monitor Repository'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getMonitorRepository() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_MonitorRepository(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getServiceLevelObjectives - * Service Level Objectives}'. - * - * @return the meta object for the reference 'Service Level Objectives'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getServiceLevelObjectives() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_ServiceLevelObjectives(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getRepository - * Repository}'. - * - * @return the meta object for the reference 'Repository'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getRepository() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_Repository(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getSystem - * System}'. - * - * @return the meta object for the reference 'System'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getSystem() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_System(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getResourceEnvironment - * Resource Environment}'. - * - * @return the meta object for the reference 'Resource Environment'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getResourceEnvironment() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_ResourceEnvironment(); - - /** - * Returns the meta object for the reference - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageEvolution - * Usage Evolution}'. - * - * @return the meta object for the reference 'Usage Evolution'. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageEvolution() - * @see #getInitialModel() - * @generated - */ - EReference getInitialModel_UsageEvolution(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder - * Reconfiguration Rules Folder}'. - * - * @return the meta object for class 'Reconfiguration Rules Folder'. - * @see org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder - * @generated - */ - EClass getReconfigurationRulesFolder(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder#getFolderUri - * Folder Uri}'. - * - * @return the meta object for the attribute 'Folder Uri'. - * @see org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder#getFolderUri() - * @see #getReconfigurationRulesFolder() - * @generated - */ - EAttribute getReconfigurationRulesFolder_FolderUri(); - - /** - * Returns the meta object for class ' - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider - * Nested Intervals Double Value Provider}'. - * - * @return the meta object for class 'Nested Intervals Double Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider - * @generated - */ - EClass getNestedIntervalsDoubleValueProvider(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMinValue - * Min Value}'. - * - * @return the meta object for the attribute 'Min Value'. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMinValue() - * @see #getNestedIntervalsDoubleValueProvider() - * @generated - */ - EAttribute getNestedIntervalsDoubleValueProvider_MinValue(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMaxValue - * Max Value}'. - * - * @return the meta object for the attribute 'Max Value'. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMaxValue() - * @see #getNestedIntervalsDoubleValueProvider() - * @generated - */ - EAttribute getNestedIntervalsDoubleValueProvider_MaxValue(); - - /** - * Returns the meta object for class ' - * {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider - * Nested Intervals Long Value Provider}'. - * - * @return the meta object for class 'Nested Intervals Long Value Provider'. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider - * @generated - */ - EClass getNestedIntervalsLongValueProvider(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMinValue - * Min Value}'. - * - * @return the meta object for the attribute 'Min Value'. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMinValue() - * @see #getNestedIntervalsLongValueProvider() - * @generated - */ - EAttribute getNestedIntervalsLongValueProvider_MinValue(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMaxValue - * Max Value}'. - * - * @return the meta object for the attribute 'Max Value'. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMaxValue() - * @see #getNestedIntervalsLongValueProvider() - * @generated - */ - EAttribute getNestedIntervalsLongValueProvider_MaxValue(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.experiments.Modification - * Modification}'. - * - * @return the meta object for class 'Modification'. - * @see org.palladiosimulator.experimentautomation.experiments.Modification - * @generated - */ - EClass getModification(); - - /** - * Returns the meta object for class ' - * {@link org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification - * Scheduling Policy2 Delay Modification}'. - * - * @return the meta object for class 'Scheduling Policy2 Delay Modification'. - * @see org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification - * @generated - */ - EClass getSchedulingPolicy2DelayModification(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - ExperimentsFactory getExperimentsFactory(); - - /** - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentRepositoryImpl - * Experiment Repository}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentRepositoryImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExperimentRepository() - * @generated - */ - EClass EXPERIMENT_REPOSITORY = eINSTANCE.getExperimentRepository(); - - /** - * The meta object literal for the 'Experiments' containment reference list - * feature. - * - * @generated - */ - EReference EXPERIMENT_REPOSITORY__EXPERIMENTS = eINSTANCE.getExperimentRepository_Experiments(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl - * Experiment}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExperiment() - * @generated - */ - EClass EXPERIMENT = eINSTANCE.getExperiment(); - - /** - * The meta object literal for the 'Variations' containment reference list - * feature. - * - * @generated - */ - EReference EXPERIMENT__VARIATIONS = eINSTANCE.getExperiment_Variations(); - - /** - * The meta object literal for the 'Modifications' containment reference - * list feature. - * - * @generated - */ - EReference EXPERIMENT__MODIFICATIONS = eINSTANCE.getExperiment_Modifications(); - - /** - * The meta object literal for the 'Id' attribute feature. - * - * @generated - */ - EAttribute EXPERIMENT__ID = eINSTANCE.getExperiment_Id(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * @generated - */ - EAttribute EXPERIMENT__NAME = eINSTANCE.getExperiment_Name(); - - /** - * The meta object literal for the 'Tool Configuration' containment - * reference list feature. - * - * @generated - */ - EReference EXPERIMENT__TOOL_CONFIGURATION = eINSTANCE.getExperiment_ToolConfiguration(); - - /** - * The meta object literal for the 'Stop Conditions' containment reference - * list feature. - * - * @generated - */ - EReference EXPERIMENT__STOP_CONDITIONS = eINSTANCE.getExperiment_StopConditions(); - - /** - * The meta object literal for the 'Description' attribute feature. - * - * @generated - */ - EAttribute EXPERIMENT__DESCRIPTION = eINSTANCE.getExperiment_Description(); - - /** - * The meta object literal for the 'Experiment Design' containment reference - * feature. - * - * @generated - */ - EReference EXPERIMENT__EXPERIMENT_DESIGN = eINSTANCE.getExperiment_ExperimentDesign(); - - /** - * The meta object literal for the 'Response Measurement' containment - * reference feature. - * - * @generated - */ - EReference EXPERIMENT__RESPONSE_MEASUREMENT = eINSTANCE.getExperiment_ResponseMeasurement(); - - /** - * The meta object literal for the 'Initial Model' containment reference - * feature. - * - * @generated - */ - EReference EXPERIMENT__INITIAL_MODEL = eINSTANCE.getExperiment_InitialModel(); - - /** - * The meta object literal for the 'Repetitions' attribute feature. - * - * @generated - */ - EAttribute EXPERIMENT__REPETITIONS = eINSTANCE.getExperiment_Repetitions(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl - * Variation}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getVariation() - * @generated - */ - EClass VARIATION = eINSTANCE.getVariation(); - - /** - * The meta object literal for the 'Type' reference feature. - * - * @generated - */ - EReference VARIATION__TYPE = eINSTANCE.getVariation_Type(); - - /** - * The meta object literal for the 'Value Provider' containment reference - * feature. - * - * @generated - */ - EReference VARIATION__VALUE_PROVIDER = eINSTANCE.getVariation_ValueProvider(); - - /** - * The meta object literal for the 'Min Value' attribute feature. - * - * @generated - */ - EAttribute VARIATION__MIN_VALUE = eINSTANCE.getVariation_MinValue(); - - /** - * The meta object literal for the 'Max Value' attribute feature. - * - * @generated - */ - EAttribute VARIATION__MAX_VALUE = eINSTANCE.getVariation_MaxValue(); - - /** - * The meta object literal for the 'Max Variations' attribute feature. - * - * @generated - */ - EAttribute VARIATION__MAX_VARIATIONS = eINSTANCE.getVariation_MaxVariations(); - - /** - * The meta object literal for the 'Varied Object Id' attribute feature. - * - * - * @generated - */ - EAttribute VARIATION__VARIED_OBJECT_ID = eINSTANCE.getVariation_VariedObjectId(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * @generated - */ - EAttribute VARIATION__NAME = eINSTANCE.getVariation_Name(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ValueProviderImpl - * Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getValueProvider() - * @generated - */ - EClass VALUE_PROVIDER = eINSTANCE.getValueProvider(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ToolConfigurationImpl - * Tool Configuration}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ToolConfigurationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getToolConfiguration() - * @generated - */ - EClass TOOL_CONFIGURATION = eINSTANCE.getToolConfiguration(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * @generated - */ - EAttribute TOOL_CONFIGURATION__NAME = eINSTANCE.getToolConfiguration_Name(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentDesignImpl - * Experiment Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExperimentDesign() - * @generated - */ - EClass EXPERIMENT_DESIGN = eINSTANCE.getExperimentDesign(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ResponseMeasurementImpl - * Response Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ResponseMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getResponseMeasurement() - * @generated - */ - EClass RESPONSE_MEASUREMENT = eINSTANCE.getResponseMeasurement(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.PolynomialValueProviderImpl - * Polynomial Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.PolynomialValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getPolynomialValueProvider() - * @generated - */ - EClass POLYNOMIAL_VALUE_PROVIDER = eINSTANCE.getPolynomialValueProvider(); - - /** - * The meta object literal for the 'Exponent' attribute feature. - * - * @generated - */ - EAttribute POLYNOMIAL_VALUE_PROVIDER__EXPONENT = eINSTANCE.getPolynomialValueProvider_Exponent(); - - /** - * The meta object literal for the 'Factor' attribute feature. - * - * @generated - */ - EAttribute POLYNOMIAL_VALUE_PROVIDER__FACTOR = eINSTANCE.getPolynomialValueProvider_Factor(); - - /** - * The meta object literal for the ' - * {@link org.palladiosimulator.experimentautomation.experiments.impl.ExponentialValueProviderImpl - * Exponential Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExponentialValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getExponentialValueProvider() - * @generated - */ - EClass EXPONENTIAL_VALUE_PROVIDER = eINSTANCE.getExponentialValueProvider(); - - /** - * The meta object literal for the 'Base' attribute feature. - * - * @generated - */ - EAttribute EXPONENTIAL_VALUE_PROVIDER__BASE = eINSTANCE.getExponentialValueProvider_Base(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.SetValueProviderImpl - * Set Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.SetValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getSetValueProvider() - * @generated - */ - EClass SET_VALUE_PROVIDER = eINSTANCE.getSetValueProvider(); - - /** - * The meta object literal for the 'Values' attribute feature. - * - * @generated - */ - EAttribute SET_VALUE_PROVIDER__VALUES = eINSTANCE.getSetValueProvider_Values(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.PlacketBurmanDesignImpl - * Placket Burman Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.PlacketBurmanDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getPlacketBurmanDesign() - * @generated - */ - EClass PLACKET_BURMAN_DESIGN = eINSTANCE.getPlacketBurmanDesign(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.FullFactorialDesignImpl - * Full Factorial Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.FullFactorialDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getFullFactorialDesign() - * @generated - */ - EClass FULL_FACTORIAL_DESIGN = eINSTANCE.getFullFactorialDesign(); - - /** - * The meta object literal for the ' - * {@link org.palladiosimulator.experimentautomation.experiments.impl.FractionalFactorialDesignImpl - * Fractional Factorial Design}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.FractionalFactorialDesignImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getFractionalFactorialDesign() - * @generated - */ - EClass FRACTIONAL_FACTORIAL_DESIGN = eINSTANCE.getFractionalFactorialDesign(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.OneFactorAtATimeImpl - * One Factor At ATime}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.OneFactorAtATimeImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getOneFactorAtATime() - * @generated - */ - EClass ONE_FACTOR_AT_ATIME = eINSTANCE.getOneFactorAtATime(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.SimulationDurationMeasurementImpl - * Simulation Duration Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.SimulationDurationMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getSimulationDurationMeasurement() - * @generated - */ - EClass SIMULATION_DURATION_MEASUREMENT = eINSTANCE.getSimulationDurationMeasurement(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ProfilingMeasurementImpl - * Profiling Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ProfilingMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getProfilingMeasurement() - * @generated - */ - EClass PROFILING_MEASUREMENT = eINSTANCE.getProfilingMeasurement(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.JMXMeasurementImpl - * JMX Measurement}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.JMXMeasurementImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getJMXMeasurement() - * @generated - */ - EClass JMX_MEASUREMENT = eINSTANCE.getJMXMeasurement(); - - /** - * The meta object literal for the 'Polling Period' attribute feature. - * - * @generated - */ - EAttribute JMX_MEASUREMENT__POLLING_PERIOD = eINSTANCE.getJMXMeasurement_PollingPeriod(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.LinearValueProviderImpl - * Linear Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.LinearValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getLinearValueProvider() - * @generated - */ - EClass LINEAR_VALUE_PROVIDER = eINSTANCE.getLinearValueProvider(); - - /** - * The meta object literal for the 'Summand' attribute feature. - * - * @generated - */ - EAttribute LINEAR_VALUE_PROVIDER__SUMMAND = eINSTANCE.getLinearValueProvider_Summand(); - - /** - * The meta object literal for the 'Factor' attribute feature. - * - * @generated - */ - EAttribute LINEAR_VALUE_PROVIDER__FACTOR = eINSTANCE.getLinearValueProvider_Factor(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl - * Object Modification}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getObjectModification() - * @generated - */ - EClass OBJECT_MODIFICATION = eINSTANCE.getObjectModification(); - - /** - * The meta object literal for the 'Type' reference feature. - * - * @generated - */ - EReference OBJECT_MODIFICATION__TYPE = eINSTANCE.getObjectModification_Type(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * @generated - */ - EAttribute OBJECT_MODIFICATION__NAME = eINSTANCE.getObjectModification_Name(); - - /** - * The meta object literal for the 'Varied Object Id' attribute feature. - * - * - * @generated - */ - EAttribute OBJECT_MODIFICATION__VARIED_OBJECT_ID = eINSTANCE.getObjectModification_VariedObjectId(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * @generated - */ - EAttribute OBJECT_MODIFICATION__VALUE = eINSTANCE.getObjectModification_Value(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl - * Initial Model}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getInitialModel() - * @generated - */ - EClass INITIAL_MODEL = eINSTANCE.getInitialModel(); - - /** - * The meta object literal for the 'Usage Model' reference feature. - * - * @generated - */ - EReference INITIAL_MODEL__USAGE_MODEL = eINSTANCE.getInitialModel_UsageModel(); - - /** - * The meta object literal for the 'Allocation' reference feature. - * - * @generated - */ - EReference INITIAL_MODEL__ALLOCATION = eINSTANCE.getInitialModel_Allocation(); - - /** - * The meta object literal for the 'Middleware Repository' reference - * feature. - * - * @generated - */ - EReference INITIAL_MODEL__MIDDLEWARE_REPOSITORY = eINSTANCE.getInitialModel_MiddlewareRepository(); - - /** - * The meta object literal for the 'Event Middle Ware Repository' reference - * feature. - * - * @generated - */ - EReference INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY = eINSTANCE.getInitialModel_EventMiddleWareRepository(); - - /** - * The meta object literal for the 'Reconfiguration Rules' reference - * feature. - * - * @generated - */ - EReference INITIAL_MODEL__RECONFIGURATION_RULES = eINSTANCE.getInitialModel_ReconfigurationRules(); - - /** - * The meta object literal for the 'Monitor Repository' reference feature. - * - * - * @generated - */ - EReference INITIAL_MODEL__MONITOR_REPOSITORY = eINSTANCE.getInitialModel_MonitorRepository(); - - /** - * The meta object literal for the 'Service Level Objectives' reference - * feature. - * - * @generated - */ - EReference INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES = eINSTANCE.getInitialModel_ServiceLevelObjectives(); - - /** - * The meta object literal for the 'Repository' reference feature. - * - * @generated - */ - EReference INITIAL_MODEL__REPOSITORY = eINSTANCE.getInitialModel_Repository(); - - /** - * The meta object literal for the 'System' reference feature. - * - * @generated - */ - EReference INITIAL_MODEL__SYSTEM = eINSTANCE.getInitialModel_System(); - - /** - * The meta object literal for the 'Resource Environment' reference feature. - * - * - * @generated - */ - EReference INITIAL_MODEL__RESOURCE_ENVIRONMENT = eINSTANCE.getInitialModel_ResourceEnvironment(); - - /** - * The meta object literal for the 'Usage Evolution' reference feature. - * - * @generated - */ - EReference INITIAL_MODEL__USAGE_EVOLUTION = eINSTANCE.getInitialModel_UsageEvolution(); - - /** - * The meta object literal for the ' - * {@link org.palladiosimulator.experimentautomation.experiments.impl.ReconfigurationRulesFolderImpl - * Reconfiguration Rules Folder}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ReconfigurationRulesFolderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getReconfigurationRulesFolder() - * @generated - */ - EClass RECONFIGURATION_RULES_FOLDER = eINSTANCE.getReconfigurationRulesFolder(); - - /** - * The meta object literal for the 'Folder Uri' attribute feature. - * - * @generated - */ - EAttribute RECONFIGURATION_RULES_FOLDER__FOLDER_URI = eINSTANCE.getReconfigurationRulesFolder_FolderUri(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsDoubleValueProviderImpl - * Nested Intervals Double Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsDoubleValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getNestedIntervalsDoubleValueProvider() - * @generated - */ - EClass NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER = eINSTANCE.getNestedIntervalsDoubleValueProvider(); - - /** - * The meta object literal for the 'Min Value' attribute feature. - * - * @generated - */ - EAttribute NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE = eINSTANCE - .getNestedIntervalsDoubleValueProvider_MinValue(); - - /** - * The meta object literal for the 'Max Value' attribute feature. - * - * @generated - */ - EAttribute NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE = eINSTANCE - .getNestedIntervalsDoubleValueProvider_MaxValue(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsLongValueProviderImpl - * Nested Intervals Long Value Provider}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsLongValueProviderImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getNestedIntervalsLongValueProvider() - * @generated - */ - EClass NESTED_INTERVALS_LONG_VALUE_PROVIDER = eINSTANCE.getNestedIntervalsLongValueProvider(); - - /** - * The meta object literal for the 'Min Value' attribute feature. - * - * @generated - */ - EAttribute NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE = eINSTANCE - .getNestedIntervalsLongValueProvider_MinValue(); - - /** - * The meta object literal for the 'Max Value' attribute feature. - * - * @generated - */ - EAttribute NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE = eINSTANCE - .getNestedIntervalsLongValueProvider_MaxValue(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.ModificationImpl - * Modification}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.ModificationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getModification() - * @generated - */ - EClass MODIFICATION = eINSTANCE.getModification(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.experiments.impl.SchedulingPolicy2DelayModificationImpl - * Scheduling Policy2 Delay Modification}' class. - * - * @see org.palladiosimulator.experimentautomation.experiments.impl.SchedulingPolicy2DelayModificationImpl - * @see org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl#getSchedulingPolicy2DelayModification() - * @generated - */ - EClass SCHEDULING_POLICY2_DELAY_MODIFICATION = eINSTANCE.getSchedulingPolicy2DelayModification(); - - } - -} // ExperimentsPackage diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExponentialValueProvider.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExponentialValueProvider.java deleted file mode 100644 index 1615e9b1..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ExponentialValueProvider.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Exponential Value - * Provider'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider#getBase - * Base}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExponentialValueProvider() - * @model - * @generated - */ -public interface ExponentialValueProvider extends ValueProvider { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Base' attribute. - *

- * If the meaning of the 'Base' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Base' attribute. - * @see #setBase(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getExponentialValueProvider_Base() - * @model required="true" ordered="false" - * @generated - */ - double getBase(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider#getBase - * Base}' attribute. - * - * @param value - * the new value of the 'Base' attribute. - * @see #getBase() - * @generated - */ - void setBase(double value); - -} // ExponentialValueProvider diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/FractionalFactorialDesign.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/FractionalFactorialDesign.java deleted file mode 100644 index 377697b1..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/FractionalFactorialDesign.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object ' Fractional Factorial - * Design'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getFractionalFactorialDesign() - * @model - * @extends CDOObject - * @generated - */ -public interface FractionalFactorialDesign extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // FractionalFactorialDesign diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/FullFactorialDesign.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/FullFactorialDesign.java deleted file mode 100644 index be243e5d..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/FullFactorialDesign.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Full Factorial - * Design'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getFullFactorialDesign() - * @model - * @generated - */ -public interface FullFactorialDesign extends ExperimentDesign { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // FullFactorialDesign diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/InitialModel.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/InitialModel.java deleted file mode 100644 index 3d47461c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/InitialModel.java +++ /dev/null @@ -1,375 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; -import org.palladiosimulator.monitorrepository.MonitorRepository; -import org.palladiosimulator.pcm.allocation.Allocation; -import org.palladiosimulator.pcm.repository.Repository; -import org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment; -import org.palladiosimulator.pcm.usagemodel.UsageModel; -import org.palladiosimulator.servicelevelobjective.ServiceLevelObjectiveRepository; -import org.scaledl.usageevolution.UsageEvolution; - -/** - * A representation of the model object 'Initial Model'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageModel - * Usage Model}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getAllocation - * Allocation}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getMiddlewareRepository - * Middleware Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getEventMiddleWareRepository - * Event Middle Ware Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getReconfigurationRules - * Reconfiguration Rules}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getMonitorRepository - * Monitor Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getServiceLevelObjectives - * Service Level Objectives}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getRepository - * Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getSystem - * System}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getResourceEnvironment - * Resource Environment}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageEvolution - * Usage Evolution}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel() - * @model - * @extends CDOObject - * @generated - */ -public interface InitialModel extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Usage Model' reference. - *

- * If the meaning of the 'Usage Model' reference isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Usage Model' reference. - * @see #setUsageModel(UsageModel) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_UsageModel() - * @model - * @generated - */ - UsageModel getUsageModel(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageModel - * Usage Model}' reference. - * - * @param value - * the new value of the 'Usage Model' reference. - * @see #getUsageModel() - * @generated - */ - void setUsageModel(UsageModel value); - - /** - * Returns the value of the 'Allocation' reference. - *

- * If the meaning of the 'Allocation' reference isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Allocation' reference. - * @see #setAllocation(Allocation) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_Allocation() - * @model - * @generated - */ - Allocation getAllocation(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getAllocation - * Allocation}' reference. - * - * @param value - * the new value of the 'Allocation' reference. - * @see #getAllocation() - * @generated - */ - void setAllocation(Allocation value); - - /** - * Returns the value of the 'Middleware Repository' reference. - *

- * If the meaning of the 'Middleware Repository' reference isn't clear, there really - * should be more of a description here... - *

- * - * - * @return the value of the 'Middleware Repository' reference. - * @see #setMiddlewareRepository(Repository) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_MiddlewareRepository() - * @model required="true" - * @generated - */ - Repository getMiddlewareRepository(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getMiddlewareRepository - * Middleware Repository}' reference. - * - * @param value - * the new value of the 'Middleware Repository' reference. - * @see #getMiddlewareRepository() - * @generated - */ - void setMiddlewareRepository(Repository value); - - /** - * Returns the value of the 'Event Middle Ware Repository' reference. - *

- * If the meaning of the 'Event Middle Ware Repository' reference isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Event Middle Ware Repository' reference. - * @see #setEventMiddleWareRepository(Repository) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_EventMiddleWareRepository() - * @model required="true" - * @generated - */ - Repository getEventMiddleWareRepository(); - - /** - * Sets the value of the ' - * {@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getEventMiddleWareRepository - * Event Middle Ware Repository}' reference. - * - * @param value - * the new value of the 'Event Middle Ware Repository' reference. - * @see #getEventMiddleWareRepository() - * @generated - */ - void setEventMiddleWareRepository(Repository value); - - /** - * Returns the value of the 'Reconfiguration Rules' reference. - *

- * If the meaning of the 'Reconfiguration Rules' reference isn't clear, there really - * should be more of a description here... - *

- * - * - * @return the value of the 'Reconfiguration Rules' reference. - * @see #setReconfigurationRules(ReconfigurationRulesFolder) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_ReconfigurationRules() - * @model - * @generated - */ - ReconfigurationRulesFolder getReconfigurationRules(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getReconfigurationRules - * Reconfiguration Rules}' reference. - * - * @param value - * the new value of the 'Reconfiguration Rules' reference. - * @see #getReconfigurationRules() - * @generated - */ - void setReconfigurationRules(ReconfigurationRulesFolder value); - - /** - * Returns the value of the 'Monitor Repository' reference. - *

- * If the meaning of the 'Monitor Repository' reference isn't clear, there really - * should be more of a description here... - *

- * - * - * @return the value of the 'Monitor Repository' reference. - * @see #setMonitorRepository(MonitorRepository) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_MonitorRepository() - * @model - * @generated - */ - MonitorRepository getMonitorRepository(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getMonitorRepository - * Monitor Repository}' reference. - * - * @param value - * the new value of the 'Monitor Repository' reference. - * @see #getMonitorRepository() - * @generated - */ - void setMonitorRepository(MonitorRepository value); - - /** - * Returns the value of the 'Service Level Objectives' reference. - *

- * If the meaning of the 'Service Level Objectives' reference isn't clear, there really - * should be more of a description here... - *

- * - * - * @return the value of the 'Service Level Objectives' reference. - * @see #setServiceLevelObjectives(ServiceLevelObjectiveRepository) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_ServiceLevelObjectives() - * @model - * @generated - */ - ServiceLevelObjectiveRepository getServiceLevelObjectives(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getServiceLevelObjectives - * Service Level Objectives}' reference. - * - * @param value - * the new value of the 'Service Level Objectives' reference. - * @see #getServiceLevelObjectives() - * @generated - */ - void setServiceLevelObjectives(ServiceLevelObjectiveRepository value); - - /** - * Returns the value of the 'Repository' reference. - *

- * If the meaning of the 'Repository' reference isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Repository' reference. - * @see #setRepository(Repository) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_Repository() - * @model - * @generated - */ - Repository getRepository(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getRepository - * Repository}' reference. - * - * @param value - * the new value of the 'Repository' reference. - * @see #getRepository() - * @generated - */ - void setRepository(Repository value); - - /** - * Returns the value of the 'System' reference. - *

- * If the meaning of the 'System' reference isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'System' reference. - * @see #setSystem(org.palladiosimulator.pcm.system.System) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_System() - * @model - * @generated - */ - org.palladiosimulator.pcm.system.System getSystem(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getSystem - * System}' reference. - * - * @param value - * the new value of the 'System' reference. - * @see #getSystem() - * @generated - */ - void setSystem(org.palladiosimulator.pcm.system.System value); - - /** - * Returns the value of the 'Resource Environment' reference. - *

- * If the meaning of the 'Resource Environment' reference isn't clear, there really - * should be more of a description here... - *

- * - * - * @return the value of the 'Resource Environment' reference. - * @see #setResourceEnvironment(ResourceEnvironment) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_ResourceEnvironment() - * @model - * @generated - */ - ResourceEnvironment getResourceEnvironment(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getResourceEnvironment - * Resource Environment}' reference. - * - * @param value - * the new value of the 'Resource Environment' reference. - * @see #getResourceEnvironment() - * @generated - */ - void setResourceEnvironment(ResourceEnvironment value); - - /** - * Returns the value of the 'Usage Evolution' reference. - *

- * If the meaning of the 'Usage Evolution' reference isn't clear, there really should - * be more of a description here... - *

- * - * - * @return the value of the 'Usage Evolution' reference. - * @see #setUsageEvolution(UsageEvolution) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getInitialModel_UsageEvolution() - * @model - * @generated - */ - UsageEvolution getUsageEvolution(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel#getUsageEvolution - * Usage Evolution}' reference. - * - * @param value - * the new value of the 'Usage Evolution' reference. - * @see #getUsageEvolution() - * @generated - */ - void setUsageEvolution(UsageEvolution value); - -} // InitialModel diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/JMXMeasurement.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/JMXMeasurement.java deleted file mode 100644 index 88c18ea4..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/JMXMeasurement.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object 'JMX Measurement'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement#getPollingPeriod - * Polling Period}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getJMXMeasurement() - * @model - * @generated - */ -public interface JMXMeasurement extends ResponseMeasurement { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Polling Period' attribute. - *

- * If the meaning of the 'Polling Period' attribute isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Polling Period' attribute. - * @see #setPollingPeriod(Integer) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getJMXMeasurement_PollingPeriod() - * @model required="true" ordered="false" - * @generated - */ - Integer getPollingPeriod(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement#getPollingPeriod - * Polling Period}' attribute. - * - * @param value - * the new value of the 'Polling Period' attribute. - * @see #getPollingPeriod() - * @generated - */ - void setPollingPeriod(Integer value); - -} // JMXMeasurement diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/LinearValueProvider.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/LinearValueProvider.java deleted file mode 100644 index 50645439..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/LinearValueProvider.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Linear Value - * Provider'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getSummand - * Summand}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getFactor - * Factor}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getLinearValueProvider() - * @model - * @generated - */ -public interface LinearValueProvider extends ValueProvider { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Summand' attribute. - *

- * If the meaning of the 'Summand' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Summand' attribute. - * @see #setSummand(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getLinearValueProvider_Summand() - * @model required="true" ordered="false" - * @generated - */ - double getSummand(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getSummand - * Summand}' attribute. - * - * @param value - * the new value of the 'Summand' attribute. - * @see #getSummand() - * @generated - */ - void setSummand(double value); - - /** - * Returns the value of the 'Factor' attribute. - *

- * If the meaning of the 'Factor' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Factor' attribute. - * @see #setFactor(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getLinearValueProvider_Factor() - * @model required="true" ordered="false" - * @generated - */ - double getFactor(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider#getFactor - * Factor}' attribute. - * - * @param value - * the new value of the 'Factor' attribute. - * @see #getFactor() - * @generated - */ - void setFactor(double value); - -} // LinearValueProvider diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Modification.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Modification.java deleted file mode 100644 index c128edab..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Modification.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object 'Modification'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getModification() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface Modification extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // Modification diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/NestedIntervalsDoubleValueProvider.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/NestedIntervalsDoubleValueProvider.java deleted file mode 100644 index 5ded609d..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/NestedIntervalsDoubleValueProvider.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Nested Intervals Double - * Value Provider'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMinValue - * Min Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMaxValue - * Max Value}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getNestedIntervalsDoubleValueProvider() - * @model - * @generated - */ -public interface NestedIntervalsDoubleValueProvider extends ValueProvider { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Min Value' attribute. - *

- * If the meaning of the 'Min Value' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Min Value' attribute. - * @see #setMinValue(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getNestedIntervalsDoubleValueProvider_MinValue() - * @model required="true" - * @generated - */ - double getMinValue(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMinValue - * Min Value}' attribute. - * - * @param value - * the new value of the 'Min Value' attribute. - * @see #getMinValue() - * @generated - */ - void setMinValue(double value); - - /** - * Returns the value of the 'Max Value' attribute. - *

- * If the meaning of the 'Max Value' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Max Value' attribute. - * @see #setMaxValue(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getNestedIntervalsDoubleValueProvider_MaxValue() - * @model required="true" - * @generated - */ - double getMaxValue(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider#getMaxValue - * Max Value}' attribute. - * - * @param value - * the new value of the 'Max Value' attribute. - * @see #getMaxValue() - * @generated - */ - void setMaxValue(double value); - -} // NestedIntervalsDoubleValueProvider diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/NestedIntervalsLongValueProvider.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/NestedIntervalsLongValueProvider.java deleted file mode 100644 index 3ed8231e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/NestedIntervalsLongValueProvider.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Nested Intervals Long Value - * Provider'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMinValue - * Min Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMaxValue - * Max Value}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getNestedIntervalsLongValueProvider() - * @model - * @generated - */ -public interface NestedIntervalsLongValueProvider extends ValueProvider { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Min Value' attribute. - *

- * If the meaning of the 'Min Value' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Min Value' attribute. - * @see #setMinValue(long) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getNestedIntervalsLongValueProvider_MinValue() - * @model required="true" - * @generated - */ - long getMinValue(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMinValue - * Min Value}' attribute. - * - * @param value - * the new value of the 'Min Value' attribute. - * @see #getMinValue() - * @generated - */ - void setMinValue(long value); - - /** - * Returns the value of the 'Max Value' attribute. - *

- * If the meaning of the 'Max Value' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Max Value' attribute. - * @see #setMaxValue(long) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getNestedIntervalsLongValueProvider_MaxValue() - * @model required="true" - * @generated - */ - long getMaxValue(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider#getMaxValue - * Max Value}' attribute. - * - * @param value - * the new value of the 'Max Value' attribute. - * @see #getMaxValue() - * @generated - */ - void setMaxValue(long value); - -} // NestedIntervalsLongValueProvider diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ObjectModification.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ObjectModification.java deleted file mode 100644 index 72a60b95..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ObjectModification.java +++ /dev/null @@ -1,151 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.palladiosimulator.experimentautomation.variation.VariationType; - -/** - * A representation of the model object 'Object Modification - * '. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getType - * Type}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getName - * Name}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getVariedObjectId - * Varied Object Id}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getValue - * Value}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getObjectModification() - * @model - * @generated - */ -public interface ObjectModification extends Modification { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Type' reference. - *

- * If the meaning of the 'Type' reference isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Type' reference. - * @see #setType(VariationType) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getObjectModification_Type() - * @model - * @generated - */ - VariationType getType(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getType - * Type}' reference. - * - * @param value - * the new value of the 'Type' reference. - * @see #getType() - * @generated - */ - void setType(VariationType value); - - /** - * Returns the value of the 'Name' attribute. - *

- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getObjectModification_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getName - * Name}' attribute. - * - * @param value - * the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Varied Object Id' attribute. - *

- * If the meaning of the 'Varied Object Id' attribute isn't clear, there really should - * be more of a description here... - *

- * - * - * @return the value of the 'Varied Object Id' attribute. - * @see #setVariedObjectId(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getObjectModification_VariedObjectId() - * @model required="true" ordered="false" - * @generated - */ - String getVariedObjectId(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getVariedObjectId - * Varied Object Id}' attribute. - * - * @param value - * the new value of the 'Varied Object Id' attribute. - * @see #getVariedObjectId() - * @generated - */ - void setVariedObjectId(String value); - - /** - * Returns the value of the 'Value' attribute. - *

- * If the meaning of the 'Value' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Value' attribute. - * @see #setValue(long) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getObjectModification_Value() - * @model required="true" ordered="false" - * @generated - */ - long getValue(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification#getValue - * Value}' attribute. - * - * @param value - * the new value of the 'Value' attribute. - * @see #getValue() - * @generated - */ - void setValue(long value); - -} // ObjectModification diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/OneFactorAtATime.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/OneFactorAtATime.java deleted file mode 100644 index 52c82c97..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/OneFactorAtATime.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object 'One Factor At ATime - * '. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getOneFactorAtATime() - * @model - * @generated - */ -public interface OneFactorAtATime extends ExperimentDesign { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // OneFactorAtATime diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/PlacketBurmanDesign.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/PlacketBurmanDesign.java deleted file mode 100644 index 0f68fa46..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/PlacketBurmanDesign.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object ' Placket Burman - * Design'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getPlacketBurmanDesign() - * @model - * @extends CDOObject - * @generated - */ -public interface PlacketBurmanDesign extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // PlacketBurmanDesign diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/PolynomialValueProvider.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/PolynomialValueProvider.java deleted file mode 100644 index a70e68cd..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/PolynomialValueProvider.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Polynomial Value - * Provider'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getExponent - * Exponent}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getFactor - * Factor}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getPolynomialValueProvider() - * @model - * @generated - */ -public interface PolynomialValueProvider extends ValueProvider { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Exponent' attribute. - *

- * If the meaning of the 'Exponent' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Exponent' attribute. - * @see #setExponent(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getPolynomialValueProvider_Exponent() - * @model required="true" ordered="false" - * @generated - */ - double getExponent(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getExponent - * Exponent}' attribute. - * - * @param value - * the new value of the 'Exponent' attribute. - * @see #getExponent() - * @generated - */ - void setExponent(double value); - - /** - * Returns the value of the 'Factor' attribute. - *

- * If the meaning of the 'Factor' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Factor' attribute. - * @see #setFactor(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getPolynomialValueProvider_Factor() - * @model required="true" ordered="false" - * @generated - */ - double getFactor(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider#getFactor - * Factor}' attribute. - * - * @param value - * the new value of the 'Factor' attribute. - * @see #getFactor() - * @generated - */ - void setFactor(double value); - -} // PolynomialValueProvider diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ProfilingMeasurement.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ProfilingMeasurement.java deleted file mode 100644 index 20447620..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ProfilingMeasurement.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Profiling - * Measurement'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getProfilingMeasurement() - * @model - * @generated - */ -public interface ProfilingMeasurement extends ResponseMeasurement { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // ProfilingMeasurement diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ReconfigurationRulesFolder.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ReconfigurationRulesFolder.java deleted file mode 100644 index b058cd7c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ReconfigurationRulesFolder.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object ' Reconfiguration Rules - * Folder'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder#getFolderUri - * Folder Uri}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getReconfigurationRulesFolder() - * @model - * @extends CDOObject - * @generated - */ -public interface ReconfigurationRulesFolder extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Folder Uri' attribute. - *

- * If the meaning of the 'Folder Uri' attribute isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Folder Uri' attribute. - * @see #setFolderUri(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getReconfigurationRulesFolder_FolderUri() - * @model required="true" - * @generated - */ - String getFolderUri(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder#getFolderUri - * Folder Uri}' attribute. - * - * @param value - * the new value of the 'Folder Uri' attribute. - * @see #getFolderUri() - * @generated - */ - void setFolderUri(String value); - -} // ReconfigurationRulesFolder diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ResponseMeasurement.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ResponseMeasurement.java deleted file mode 100644 index d915563a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ResponseMeasurement.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object ' Response - * Measurement'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getResponseMeasurement() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface ResponseMeasurement extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // ResponseMeasurement diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SchedulingPolicy2DelayModification.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SchedulingPolicy2DelayModification.java deleted file mode 100644 index 76406001..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SchedulingPolicy2DelayModification.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Scheduling Policy2 Delay - * Modification'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getSchedulingPolicy2DelayModification() - * @model - * @generated - */ -public interface SchedulingPolicy2DelayModification extends Modification { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // SchedulingPolicy2DelayModification diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SetValueProvider.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SetValueProvider.java deleted file mode 100644 index a5df48c3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SetValueProvider.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object 'Set Value Provider - * '. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider#getValues - * Values}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getSetValueProvider() - * @model - * @generated - */ -public interface SetValueProvider extends ValueProvider { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Values' attribute. - *

- * If the meaning of the 'Values' attribute isn't clear, there really should be more of - * a description here... - *

- * - * - * @return the value of the 'Values' attribute. - * @see #setValues(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getSetValueProvider_Values() - * @model required="true" ordered="false" - * @generated - */ - String getValues(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider#getValues - * Values}' attribute. - * - * @param value - * the new value of the 'Values' attribute. - * @see #getValues() - * @generated - */ - void setValues(String value); - -} // SetValueProvider diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SimulationDurationMeasurement.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SimulationDurationMeasurement.java deleted file mode 100644 index d533b7d8..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/SimulationDurationMeasurement.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -/** - * A representation of the model object ' Simulation Duration - * Measurement'. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getSimulationDurationMeasurement() - * @model - * @generated - */ -public interface SimulationDurationMeasurement extends ResponseMeasurement { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // SimulationDurationMeasurement diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ToolConfiguration.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ToolConfiguration.java deleted file mode 100644 index 6b6dc0b0..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ToolConfiguration.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object 'Tool Configuration - * '. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration#getName - * Name}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getToolConfiguration() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface ToolConfiguration extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Name' attribute. - *

- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getToolConfiguration_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration#getName - * Name}' attribute. - * - * @param value - * the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // ToolConfiguration diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ValueProvider.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ValueProvider.java deleted file mode 100644 index e1a63424..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/ValueProvider.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; - -/** - * A representation of the model object 'Value Provider'. - * - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getValueProvider() - * @model abstract="true" - * @extends CDOObject - * @generated - */ -public interface ValueProvider extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // ValueProvider diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Variation.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Variation.java deleted file mode 100644 index 8357ca57..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/Variation.java +++ /dev/null @@ -1,245 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments; - -import org.eclipse.emf.cdo.CDOObject; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -/** - * A representation of the model object 'Variation'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Variation#getType - * Type}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Variation#getValueProvider - * Value Provider}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Variation#getMinValue Min - * Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Variation#getMaxValue Max - * Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Variation#getMaxVariations - * Max Variations}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Variation#getVariedObjectId - * Varied Object Id}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.Variation#getName - * Name}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation() - * @model - * @extends CDOObject - * @generated - */ -public interface Variation extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Type' reference. - *

- * If the meaning of the 'Type' reference isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Type' reference. - * @see #setType(VariationType) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation_Type() - * @model required="true" ordered="false" - * @generated - */ - VariationType getType(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getType - * Type}' reference. - * - * @param value - * the new value of the 'Type' reference. - * @see #getType() - * @generated - */ - void setType(VariationType value); - - /** - * Returns the value of the 'Value Provider' containment reference. - *

- * If the meaning of the 'Value Provider' containment reference isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Value Provider' containment reference. - * @see #setValueProvider(ValueProvider) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation_ValueProvider() - * @model containment="true" required="true" ordered="false" - * @generated - */ - ValueProvider getValueProvider(); - - /** - * Sets the value of the ' - * {@link org.palladiosimulator.experimentautomation.experiments.Variation#getValueProvider - * Value Provider}' containment reference. - * - * @param value - * the new value of the 'Value Provider' containment reference. - * @see #getValueProvider() - * @generated - */ - void setValueProvider(ValueProvider value); - - /** - * Returns the value of the 'Min Value' attribute. - *

- * If the meaning of the 'Min Value' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Min Value' attribute. - * @see #setMinValue(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation_MinValue() - * @model required="true" ordered="false" - * @generated - */ - double getMinValue(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getMinValue Min - * Value}' attribute. - * - * @param value - * the new value of the 'Min Value' attribute. - * @see #getMinValue() - * @generated - */ - void setMinValue(double value); - - /** - * Returns the value of the 'Max Value' attribute. - *

- * If the meaning of the 'Max Value' attribute isn't clear, there really should be more - * of a description here... - *

- * - * - * @return the value of the 'Max Value' attribute. - * @see #setMaxValue(double) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation_MaxValue() - * @model required="true" ordered="false" - * @generated - */ - double getMaxValue(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getMaxValue Max - * Value}' attribute. - * - * @param value - * the new value of the 'Max Value' attribute. - * @see #getMaxValue() - * @generated - */ - void setMaxValue(double value); - - /** - * Returns the value of the 'Max Variations' attribute. - *

- * If the meaning of the 'Max Variations' attribute isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Max Variations' attribute. - * @see #setMaxVariations(long) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation_MaxVariations() - * @model required="true" ordered="false" - * @generated - */ - long getMaxVariations(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getMaxVariations - * Max Variations}' attribute. - * - * @param value - * the new value of the 'Max Variations' attribute. - * @see #getMaxVariations() - * @generated - */ - void setMaxVariations(long value); - - /** - * Returns the value of the 'Varied Object Id' attribute. - *

- * If the meaning of the 'Varied Object Id' attribute isn't clear, there really should - * be more of a description here... - *

- * - * - * @return the value of the 'Varied Object Id' attribute. - * @see #setVariedObjectId(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation_VariedObjectId() - * @model required="true" ordered="false" - * @generated - */ - String getVariedObjectId(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getVariedObjectId - * Varied Object Id}' attribute. - * - * @param value - * the new value of the 'Varied Object Id' attribute. - * @see #getVariedObjectId() - * @generated - */ - void setVariedObjectId(String value); - - /** - * Returns the value of the 'Name' attribute. - *

- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#getVariation_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation#getName - * Name}' attribute. - * - * @param value - * the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // Variation diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentDesignImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentDesignImpl.java deleted file mode 100644 index cde7e93b..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentDesignImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentDesign; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; - -/** - * An implementation of the model object 'Experiment Design - * '. - * - * @generated - */ -public abstract class ExperimentDesignImpl extends CDOObjectImpl implements ExperimentDesign { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected ExperimentDesignImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.EXPERIMENT_DESIGN; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - -} // ExperimentDesignImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentImpl.java deleted file mode 100644 index a126e0d2..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentImpl.java +++ /dev/null @@ -1,576 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import java.util.Collection; - -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.util.InternalEList; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.abstractsimulation.StopCondition; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentDesign; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.InitialModel; -import org.palladiosimulator.experimentautomation.experiments.Modification; -import org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; -import org.palladiosimulator.experimentautomation.experiments.Variation; - -/** - * An implementation of the model object 'Experiment'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getVariations - * Variations}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getModifications - * Modifications}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getId - * Id}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getName - * Name}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getToolConfiguration - * Tool Configuration}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getStopConditions - * Stop Conditions}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getDescription - * Description}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getExperimentDesign - * Experiment Design}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getResponseMeasurement - * Response Measurement}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getInitialModel - * Initial Model}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentImpl#getRepetitions - * Repetitions}
  • - *
- * - * @generated - */ -public class ExperimentImpl extends CDOObjectImpl implements Experiment { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getId() Id}' attribute. - * - * - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The default value of the '{@link #getRepetitions() Repetitions}' attribute. - * - * @see #getRepetitions() - * @generated - * @ordered - */ - protected static final int REPETITIONS_EDEFAULT = 0; - - /** - * - * - * @generated - */ - protected ExperimentImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.EXPERIMENT; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public EList getVariations() { - return (EList) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__VARIATIONS, - ExperimentsPackage.Literals.EXPERIMENT__VARIATIONS, true, true); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public EList getModifications() { - return (EList) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__MODIFICATIONS, - ExperimentsPackage.Literals.EXPERIMENT__MODIFICATIONS, true, true); - } - - /** - * - * - * @generated - */ - @Override - public String getId() { - return (String) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__ID, ExperimentsPackage.Literals.EXPERIMENT__ID, - true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setId(final String newId) { - this.eDynamicSet(ExperimentsPackage.EXPERIMENT__ID, ExperimentsPackage.Literals.EXPERIMENT__ID, newId); - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return (String) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__NAME, - ExperimentsPackage.Literals.EXPERIMENT__NAME, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setName(final String newName) { - this.eDynamicSet(ExperimentsPackage.EXPERIMENT__NAME, ExperimentsPackage.Literals.EXPERIMENT__NAME, newName); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public EList getToolConfiguration() { - return (EList) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__TOOL_CONFIGURATION, - ExperimentsPackage.Literals.EXPERIMENT__TOOL_CONFIGURATION, true, true); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public EList getStopConditions() { - return (EList) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__STOP_CONDITIONS, - ExperimentsPackage.Literals.EXPERIMENT__STOP_CONDITIONS, true, true); - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() { - return (String) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__DESCRIPTION, - ExperimentsPackage.Literals.EXPERIMENT__DESCRIPTION, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(final String newDescription) { - this.eDynamicSet(ExperimentsPackage.EXPERIMENT__DESCRIPTION, - ExperimentsPackage.Literals.EXPERIMENT__DESCRIPTION, newDescription); - } - - /** - * - * - * @generated - */ - @Override - public ExperimentDesign getExperimentDesign() { - return (ExperimentDesign) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN, - ExperimentsPackage.Literals.EXPERIMENT__EXPERIMENT_DESIGN, true, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetExperimentDesign(final ExperimentDesign newExperimentDesign, - NotificationChain msgs) { - msgs = this.eDynamicInverseAdd((InternalEObject) newExperimentDesign, - ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setExperimentDesign(final ExperimentDesign newExperimentDesign) { - this.eDynamicSet(ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN, - ExperimentsPackage.Literals.EXPERIMENT__EXPERIMENT_DESIGN, newExperimentDesign); - } - - /** - * - * - * @generated - */ - @Override - public ResponseMeasurement getResponseMeasurement() { - return (ResponseMeasurement) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT, - ExperimentsPackage.Literals.EXPERIMENT__RESPONSE_MEASUREMENT, true, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetResponseMeasurement(final ResponseMeasurement newResponseMeasurement, - NotificationChain msgs) { - msgs = this.eDynamicInverseAdd((InternalEObject) newResponseMeasurement, - ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setResponseMeasurement(final ResponseMeasurement newResponseMeasurement) { - this.eDynamicSet(ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT, - ExperimentsPackage.Literals.EXPERIMENT__RESPONSE_MEASUREMENT, newResponseMeasurement); - } - - /** - * - * - * @generated - */ - @Override - public InitialModel getInitialModel() { - return (InitialModel) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__INITIAL_MODEL, - ExperimentsPackage.Literals.EXPERIMENT__INITIAL_MODEL, true, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetInitialModel(final InitialModel newInitialModel, NotificationChain msgs) { - msgs = this.eDynamicInverseAdd((InternalEObject) newInitialModel, ExperimentsPackage.EXPERIMENT__INITIAL_MODEL, - msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setInitialModel(final InitialModel newInitialModel) { - this.eDynamicSet(ExperimentsPackage.EXPERIMENT__INITIAL_MODEL, - ExperimentsPackage.Literals.EXPERIMENT__INITIAL_MODEL, newInitialModel); - } - - /** - * - * - * @generated - */ - @Override - public int getRepetitions() { - return (Integer) this.eDynamicGet(ExperimentsPackage.EXPERIMENT__REPETITIONS, - ExperimentsPackage.Literals.EXPERIMENT__REPETITIONS, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setRepetitions(final int newRepetitions) { - this.eDynamicSet(ExperimentsPackage.EXPERIMENT__REPETITIONS, - ExperimentsPackage.Literals.EXPERIMENT__REPETITIONS, newRepetitions); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, - final NotificationChain msgs) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT__VARIATIONS: - return ((InternalEList) this.getVariations()).basicRemove(otherEnd, msgs); - case ExperimentsPackage.EXPERIMENT__MODIFICATIONS: - return ((InternalEList) this.getModifications()).basicRemove(otherEnd, msgs); - case ExperimentsPackage.EXPERIMENT__TOOL_CONFIGURATION: - return ((InternalEList) this.getToolConfiguration()).basicRemove(otherEnd, msgs); - case ExperimentsPackage.EXPERIMENT__STOP_CONDITIONS: - return ((InternalEList) this.getStopConditions()).basicRemove(otherEnd, msgs); - case ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN: - return this.basicSetExperimentDesign(null, msgs); - case ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT: - return this.basicSetResponseMeasurement(null, msgs); - case ExperimentsPackage.EXPERIMENT__INITIAL_MODEL: - return this.basicSetInitialModel(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT__VARIATIONS: - return this.getVariations(); - case ExperimentsPackage.EXPERIMENT__MODIFICATIONS: - return this.getModifications(); - case ExperimentsPackage.EXPERIMENT__ID: - return this.getId(); - case ExperimentsPackage.EXPERIMENT__NAME: - return this.getName(); - case ExperimentsPackage.EXPERIMENT__TOOL_CONFIGURATION: - return this.getToolConfiguration(); - case ExperimentsPackage.EXPERIMENT__STOP_CONDITIONS: - return this.getStopConditions(); - case ExperimentsPackage.EXPERIMENT__DESCRIPTION: - return this.getDescription(); - case ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN: - return this.getExperimentDesign(); - case ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT: - return this.getResponseMeasurement(); - case ExperimentsPackage.EXPERIMENT__INITIAL_MODEL: - return this.getInitialModel(); - case ExperimentsPackage.EXPERIMENT__REPETITIONS: - return this.getRepetitions(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT__VARIATIONS: - this.getVariations() - .clear(); - this.getVariations() - .addAll((Collection) newValue); - return; - case ExperimentsPackage.EXPERIMENT__MODIFICATIONS: - this.getModifications() - .clear(); - this.getModifications() - .addAll((Collection) newValue); - return; - case ExperimentsPackage.EXPERIMENT__ID: - this.setId((String) newValue); - return; - case ExperimentsPackage.EXPERIMENT__NAME: - this.setName((String) newValue); - return; - case ExperimentsPackage.EXPERIMENT__TOOL_CONFIGURATION: - this.getToolConfiguration() - .clear(); - this.getToolConfiguration() - .addAll((Collection) newValue); - return; - case ExperimentsPackage.EXPERIMENT__STOP_CONDITIONS: - this.getStopConditions() - .clear(); - this.getStopConditions() - .addAll((Collection) newValue); - return; - case ExperimentsPackage.EXPERIMENT__DESCRIPTION: - this.setDescription((String) newValue); - return; - case ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN: - this.setExperimentDesign((ExperimentDesign) newValue); - return; - case ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT: - this.setResponseMeasurement((ResponseMeasurement) newValue); - return; - case ExperimentsPackage.EXPERIMENT__INITIAL_MODEL: - this.setInitialModel((InitialModel) newValue); - return; - case ExperimentsPackage.EXPERIMENT__REPETITIONS: - this.setRepetitions((Integer) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT__VARIATIONS: - this.getVariations() - .clear(); - return; - case ExperimentsPackage.EXPERIMENT__MODIFICATIONS: - this.getModifications() - .clear(); - return; - case ExperimentsPackage.EXPERIMENT__ID: - this.setId(ID_EDEFAULT); - return; - case ExperimentsPackage.EXPERIMENT__NAME: - this.setName(NAME_EDEFAULT); - return; - case ExperimentsPackage.EXPERIMENT__TOOL_CONFIGURATION: - this.getToolConfiguration() - .clear(); - return; - case ExperimentsPackage.EXPERIMENT__STOP_CONDITIONS: - this.getStopConditions() - .clear(); - return; - case ExperimentsPackage.EXPERIMENT__DESCRIPTION: - this.setDescription(DESCRIPTION_EDEFAULT); - return; - case ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN: - this.setExperimentDesign((ExperimentDesign) null); - return; - case ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT: - this.setResponseMeasurement((ResponseMeasurement) null); - return; - case ExperimentsPackage.EXPERIMENT__INITIAL_MODEL: - this.setInitialModel((InitialModel) null); - return; - case ExperimentsPackage.EXPERIMENT__REPETITIONS: - this.setRepetitions(REPETITIONS_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT__VARIATIONS: - return !this.getVariations() - .isEmpty(); - case ExperimentsPackage.EXPERIMENT__MODIFICATIONS: - return !this.getModifications() - .isEmpty(); - case ExperimentsPackage.EXPERIMENT__ID: - return ID_EDEFAULT == null ? this.getId() != null : !ID_EDEFAULT.equals(this.getId()); - case ExperimentsPackage.EXPERIMENT__NAME: - return NAME_EDEFAULT == null ? this.getName() != null : !NAME_EDEFAULT.equals(this.getName()); - case ExperimentsPackage.EXPERIMENT__TOOL_CONFIGURATION: - return !this.getToolConfiguration() - .isEmpty(); - case ExperimentsPackage.EXPERIMENT__STOP_CONDITIONS: - return !this.getStopConditions() - .isEmpty(); - case ExperimentsPackage.EXPERIMENT__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? this.getDescription() != null - : !DESCRIPTION_EDEFAULT.equals(this.getDescription()); - case ExperimentsPackage.EXPERIMENT__EXPERIMENT_DESIGN: - return this.getExperimentDesign() != null; - case ExperimentsPackage.EXPERIMENT__RESPONSE_MEASUREMENT: - return this.getResponseMeasurement() != null; - case ExperimentsPackage.EXPERIMENT__INITIAL_MODEL: - return this.getInitialModel() != null; - case ExperimentsPackage.EXPERIMENT__REPETITIONS: - return this.getRepetitions() != REPETITIONS_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // ExperimentImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentRepositoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentRepositoryImpl.java deleted file mode 100644 index 5dbc45a8..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentRepositoryImpl.java +++ /dev/null @@ -1,159 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import java.util.Collection; - -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.util.InternalEList; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentRepository; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; - -/** - * An implementation of the model object ' Experiment - * Repository'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExperimentRepositoryImpl#getExperiments - * Experiments}
  • - *
- * - * @generated - */ -public class ExperimentRepositoryImpl extends CDOObjectImpl implements ExperimentRepository { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected ExperimentRepositoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.EXPERIMENT_REPOSITORY; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public EList getExperiments() { - return (EList) this.eDynamicGet(ExperimentsPackage.EXPERIMENT_REPOSITORY__EXPERIMENTS, - ExperimentsPackage.Literals.EXPERIMENT_REPOSITORY__EXPERIMENTS, true, true); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, - final NotificationChain msgs) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY__EXPERIMENTS: - return ((InternalEList) this.getExperiments()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY__EXPERIMENTS: - return this.getExperiments(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY__EXPERIMENTS: - this.getExperiments() - .clear(); - this.getExperiments() - .addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY__EXPERIMENTS: - this.getExperiments() - .clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY__EXPERIMENTS: - return !this.getExperiments() - .isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ExperimentRepositoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentsFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentsFactoryImpl.java deleted file mode 100644 index 03be3de7..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentsFactoryImpl.java +++ /dev/null @@ -1,368 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentRepository; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsFactory; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.InitialModel; -import org.palladiosimulator.experimentautomation.experiments.JMXMeasurement; -import org.palladiosimulator.experimentautomation.experiments.LinearValueProvider; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ObjectModification; -import org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime; -import org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign; -import org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder; -import org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification; -import org.palladiosimulator.experimentautomation.experiments.SetValueProvider; -import org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement; -import org.palladiosimulator.experimentautomation.experiments.Variation; - -/** - * An implementation of the model Factory. - * - * @generated - */ -public class ExperimentsFactoryImpl extends EFactoryImpl implements ExperimentsFactory { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates the default factory implementation. - * - * @generated - */ - public static ExperimentsFactory init() { - try { - final ExperimentsFactory theExperimentsFactory = (ExperimentsFactory) EPackage.Registry.INSTANCE - .getEFactory(ExperimentsPackage.eNS_URI); - if (theExperimentsFactory != null) { - return theExperimentsFactory; - } - } catch (final Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ExperimentsFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public ExperimentsFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(final EClass eClass) { - switch (eClass.getClassifierID()) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY: - return this.createExperimentRepository(); - case ExperimentsPackage.EXPERIMENT: - return this.createExperiment(); - case ExperimentsPackage.VARIATION: - return this.createVariation(); - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER: - return this.createPolynomialValueProvider(); - case ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER: - return this.createExponentialValueProvider(); - case ExperimentsPackage.SET_VALUE_PROVIDER: - return this.createSetValueProvider(); - case ExperimentsPackage.PLACKET_BURMAN_DESIGN: - return this.createPlacketBurmanDesign(); - case ExperimentsPackage.FULL_FACTORIAL_DESIGN: - return this.createFullFactorialDesign(); - case ExperimentsPackage.FRACTIONAL_FACTORIAL_DESIGN: - return this.createFractionalFactorialDesign(); - case ExperimentsPackage.ONE_FACTOR_AT_ATIME: - return this.createOneFactorAtATime(); - case ExperimentsPackage.SIMULATION_DURATION_MEASUREMENT: - return this.createSimulationDurationMeasurement(); - case ExperimentsPackage.PROFILING_MEASUREMENT: - return this.createProfilingMeasurement(); - case ExperimentsPackage.JMX_MEASUREMENT: - return this.createJMXMeasurement(); - case ExperimentsPackage.LINEAR_VALUE_PROVIDER: - return this.createLinearValueProvider(); - case ExperimentsPackage.OBJECT_MODIFICATION: - return this.createObjectModification(); - case ExperimentsPackage.INITIAL_MODEL: - return this.createInitialModel(); - case ExperimentsPackage.RECONFIGURATION_RULES_FOLDER: - return this.createReconfigurationRulesFolder(); - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER: - return this.createNestedIntervalsDoubleValueProvider(); - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER: - return this.createNestedIntervalsLongValueProvider(); - case ExperimentsPackage.SCHEDULING_POLICY2_DELAY_MODIFICATION: - return this.createSchedulingPolicy2DelayModification(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public ExperimentRepository createExperimentRepository() { - final ExperimentRepositoryImpl experimentRepository = new ExperimentRepositoryImpl(); - return experimentRepository; - } - - /** - * - * - * @generated - */ - @Override - public Experiment createExperiment() { - final ExperimentImpl experiment = new ExperimentImpl(); - return experiment; - } - - /** - * - * - * @generated - */ - @Override - public Variation createVariation() { - final VariationImpl variation = new VariationImpl(); - return variation; - } - - /** - * - * - * @generated - */ - @Override - public PolynomialValueProvider createPolynomialValueProvider() { - final PolynomialValueProviderImpl polynomialValueProvider = new PolynomialValueProviderImpl(); - return polynomialValueProvider; - } - - /** - * - * - * @generated - */ - @Override - public ExponentialValueProvider createExponentialValueProvider() { - final ExponentialValueProviderImpl exponentialValueProvider = new ExponentialValueProviderImpl(); - return exponentialValueProvider; - } - - /** - * - * - * @generated - */ - @Override - public SetValueProvider createSetValueProvider() { - final SetValueProviderImpl setValueProvider = new SetValueProviderImpl(); - return setValueProvider; - } - - /** - * - * - * @generated - */ - @Override - public PlacketBurmanDesign createPlacketBurmanDesign() { - final PlacketBurmanDesignImpl placketBurmanDesign = new PlacketBurmanDesignImpl(); - return placketBurmanDesign; - } - - /** - * - * - * @generated - */ - @Override - public FullFactorialDesign createFullFactorialDesign() { - final FullFactorialDesignImpl fullFactorialDesign = new FullFactorialDesignImpl(); - return fullFactorialDesign; - } - - /** - * - * - * @generated - */ - @Override - public FractionalFactorialDesign createFractionalFactorialDesign() { - final FractionalFactorialDesignImpl fractionalFactorialDesign = new FractionalFactorialDesignImpl(); - return fractionalFactorialDesign; - } - - /** - * - * - * @generated - */ - @Override - public OneFactorAtATime createOneFactorAtATime() { - final OneFactorAtATimeImpl oneFactorAtATime = new OneFactorAtATimeImpl(); - return oneFactorAtATime; - } - - /** - * - * - * @generated - */ - @Override - public SimulationDurationMeasurement createSimulationDurationMeasurement() { - final SimulationDurationMeasurementImpl simulationDurationMeasurement = new SimulationDurationMeasurementImpl(); - return simulationDurationMeasurement; - } - - /** - * - * - * @generated - */ - @Override - public ProfilingMeasurement createProfilingMeasurement() { - final ProfilingMeasurementImpl profilingMeasurement = new ProfilingMeasurementImpl(); - return profilingMeasurement; - } - - /** - * - * - * @generated - */ - @Override - public JMXMeasurement createJMXMeasurement() { - final JMXMeasurementImpl jmxMeasurement = new JMXMeasurementImpl(); - return jmxMeasurement; - } - - /** - * - * - * @generated - */ - @Override - public LinearValueProvider createLinearValueProvider() { - final LinearValueProviderImpl linearValueProvider = new LinearValueProviderImpl(); - return linearValueProvider; - } - - /** - * - * - * @generated - */ - @Override - public ObjectModification createObjectModification() { - final ObjectModificationImpl objectModification = new ObjectModificationImpl(); - return objectModification; - } - - /** - * - * - * @generated - */ - @Override - public InitialModel createInitialModel() { - final InitialModelImpl initialModel = new InitialModelImpl(); - return initialModel; - } - - /** - * - * - * @generated - */ - @Override - public ReconfigurationRulesFolder createReconfigurationRulesFolder() { - final ReconfigurationRulesFolderImpl reconfigurationRulesFolder = new ReconfigurationRulesFolderImpl(); - return reconfigurationRulesFolder; - } - - /** - * - * - * @generated - */ - @Override - public NestedIntervalsDoubleValueProvider createNestedIntervalsDoubleValueProvider() { - final NestedIntervalsDoubleValueProviderImpl nestedIntervalsDoubleValueProvider = new NestedIntervalsDoubleValueProviderImpl(); - return nestedIntervalsDoubleValueProvider; - } - - /** - * - * - * @generated - */ - @Override - public NestedIntervalsLongValueProvider createNestedIntervalsLongValueProvider() { - final NestedIntervalsLongValueProviderImpl nestedIntervalsLongValueProvider = new NestedIntervalsLongValueProviderImpl(); - return nestedIntervalsLongValueProvider; - } - - /** - * - * - * @generated - */ - @Override - public SchedulingPolicy2DelayModification createSchedulingPolicy2DelayModification() { - final SchedulingPolicy2DelayModificationImpl schedulingPolicy2DelayModification = new SchedulingPolicy2DelayModificationImpl(); - return schedulingPolicy2DelayModification; - } - - /** - * - * - * @generated - */ - @Override - public ExperimentsPackage getExperimentsPackage() { - return (ExperimentsPackage) this.getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ExperimentsPackage getPackage() { - return ExperimentsPackage.eINSTANCE; - } - -} // ExperimentsFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentsPackageImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentsPackageImpl.java deleted file mode 100644 index e786427f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExperimentsPackageImpl.java +++ /dev/null @@ -1,1547 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.palladiosimulator.edp2.models.ExperimentData.ExperimentDataPackage; -import org.palladiosimulator.edp2.models.measuringpoint.MeasuringpointPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentDesign; -import org.palladiosimulator.experimentautomation.experiments.ExperimentRepository; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsFactory; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.InitialModel; -import org.palladiosimulator.experimentautomation.experiments.JMXMeasurement; -import org.palladiosimulator.experimentautomation.experiments.LinearValueProvider; -import org.palladiosimulator.experimentautomation.experiments.Modification; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ObjectModification; -import org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime; -import org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign; -import org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder; -import org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement; -import org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification; -import org.palladiosimulator.experimentautomation.experiments.SetValueProvider; -import org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; -import org.palladiosimulator.experimentautomation.experiments.ValueProvider; -import org.palladiosimulator.experimentautomation.experiments.Variation; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl; -import org.palladiosimulator.metricspec.MetricSpecPackage; -import org.palladiosimulator.monitorrepository.MonitorRepositoryPackage; -import org.palladiosimulator.pcm.PcmPackage; -import org.palladiosimulator.pcm.allocation.AllocationPackage; -import org.palladiosimulator.pcm.repository.RepositoryPackage; -import org.palladiosimulator.pcm.resourceenvironment.ResourceenvironmentPackage; -import org.palladiosimulator.pcm.system.SystemPackage; -import org.palladiosimulator.pcm.usagemodel.UsagemodelPackage; -import org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage; -import org.scaledl.usageevolution.UsageevolutionPackage; - -import de.uka.ipd.sdq.identifier.IdentifierPackage; -import de.uka.ipd.sdq.probfunction.ProbfunctionPackage; -import de.uka.ipd.sdq.stoex.StoexPackage; -import de.uka.ipd.sdq.units.UnitsPackage; -import tools.descartes.dlim.DlimPackage; - -/** - * An implementation of the model Package. - * - * @generated - */ -public class ExperimentsPackageImpl extends EPackageImpl implements ExperimentsPackage { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - private EClass experimentRepositoryEClass = null; - - /** - * - * - * @generated - */ - private EClass experimentEClass = null; - - /** - * - * - * @generated - */ - private EClass variationEClass = null; - - /** - * - * - * @generated - */ - private EClass valueProviderEClass = null; - - /** - * - * - * @generated - */ - private EClass toolConfigurationEClass = null; - - /** - * - * - * @generated - */ - private EClass experimentDesignEClass = null; - - /** - * - * - * @generated - */ - private EClass responseMeasurementEClass = null; - - /** - * - * - * @generated - */ - private EClass polynomialValueProviderEClass = null; - - /** - * - * - * @generated - */ - private EClass exponentialValueProviderEClass = null; - - /** - * - * - * @generated - */ - private EClass setValueProviderEClass = null; - - /** - * - * - * @generated - */ - private EClass placketBurmanDesignEClass = null; - - /** - * - * - * @generated - */ - private EClass fullFactorialDesignEClass = null; - - /** - * - * - * @generated - */ - private EClass fractionalFactorialDesignEClass = null; - - /** - * - * - * @generated - */ - private EClass oneFactorAtATimeEClass = null; - - /** - * - * - * @generated - */ - private EClass simulationDurationMeasurementEClass = null; - - /** - * - * - * @generated - */ - private EClass profilingMeasurementEClass = null; - - /** - * - * - * @generated - */ - private EClass jmxMeasurementEClass = null; - - /** - * - * - * @generated - */ - private EClass linearValueProviderEClass = null; - - /** - * - * - * @generated - */ - private EClass objectModificationEClass = null; - - /** - * - * - * @generated - */ - private EClass initialModelEClass = null; - - /** - * - * - * @generated - */ - private EClass reconfigurationRulesFolderEClass = null; - - /** - * - * - * @generated - */ - private EClass nestedIntervalsDoubleValueProviderEClass = null; - - /** - * - * - * @generated - */ - private EClass nestedIntervalsLongValueProviderEClass = null; - - /** - * - * - * @generated - */ - private EClass modificationEClass = null; - - /** - * - * - * @generated - */ - private EClass schedulingPolicy2DelayModificationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI - * value. - *

- * Note: the correct way to create the package is via the static factory method {@link #init - * init()}, which also performs initialization of the package, or returns the registered - * package, if one already exists. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage#eNS_URI - * @see #init() - * @generated - */ - private ExperimentsPackageImpl() { - super(eNS_URI, ExperimentsFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others - * upon which it depends. - * - *

- * This method is used to initialize {@link ExperimentsPackage#eINSTANCE} when that field is - * accessed. Clients should not invoke it directly. Instead, they should simply access that - * field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ExperimentsPackage init() { - if (isInited) { - return (ExperimentsPackage) EPackage.Registry.INSTANCE.getEPackage(ExperimentsPackage.eNS_URI); - } - - // Obtain or create and register package - final Object registeredExperimentsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - final ExperimentsPackageImpl theExperimentsPackage = registeredExperimentsPackage instanceof ExperimentsPackageImpl - ? (ExperimentsPackageImpl) registeredExperimentsPackage - : new ExperimentsPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - DlimPackage.eINSTANCE.eClass(); - ExperimentDataPackage.eINSTANCE.eClass(); - org.palladiosimulator.edp2.models.Repository.RepositoryPackage.eINSTANCE.eClass(); - MeasuringpointPackage.eINSTANCE.eClass(); - IdentifierPackage.eINSTANCE.eClass(); - MetricSpecPackage.eINSTANCE.eClass(); - MonitorRepositoryPackage.eINSTANCE.eClass(); - PcmPackage.eINSTANCE.eClass(); - ProbfunctionPackage.eINSTANCE.eClass(); - ServicelevelObjectivePackage.eINSTANCE.eClass(); - StoexPackage.eINSTANCE.eClass(); - UnitsPackage.eINSTANCE.eClass(); - UsageevolutionPackage.eINSTANCE.eClass(); - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(VariationPackage.eNS_URI); - final VariationPackageImpl theVariationPackage = (VariationPackageImpl) (registeredPackage instanceof VariationPackageImpl - ? registeredPackage - : VariationPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(AbstractsimulationPackage.eNS_URI); - final AbstractsimulationPackageImpl theAbstractsimulationPackage = (AbstractsimulationPackageImpl) (registeredPackage instanceof AbstractsimulationPackageImpl - ? registeredPackage - : AbstractsimulationPackage.eINSTANCE); - - // Create package meta-data objects - theExperimentsPackage.createPackageContents(); - theVariationPackage.createPackageContents(); - theAbstractsimulationPackage.createPackageContents(); - - // Initialize created meta-data - theExperimentsPackage.initializePackageContents(); - theVariationPackage.initializePackageContents(); - theAbstractsimulationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theExperimentsPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ExperimentsPackage.eNS_URI, theExperimentsPackage); - return theExperimentsPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getExperimentRepository() { - return this.experimentRepositoryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperimentRepository_Experiments() { - return (EReference) this.experimentRepositoryEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getExperiment() { - return this.experimentEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperiment_Variations() { - return (EReference) this.experimentEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperiment_Modifications() { - return (EReference) this.experimentEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getExperiment_Id() { - return (EAttribute) this.experimentEClass.getEStructuralFeatures() - .get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getExperiment_Name() { - return (EAttribute) this.experimentEClass.getEStructuralFeatures() - .get(3); - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperiment_ToolConfiguration() { - return (EReference) this.experimentEClass.getEStructuralFeatures() - .get(4); - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperiment_StopConditions() { - return (EReference) this.experimentEClass.getEStructuralFeatures() - .get(5); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getExperiment_Description() { - return (EAttribute) this.experimentEClass.getEStructuralFeatures() - .get(6); - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperiment_ExperimentDesign() { - return (EReference) this.experimentEClass.getEStructuralFeatures() - .get(7); - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperiment_ResponseMeasurement() { - return (EReference) this.experimentEClass.getEStructuralFeatures() - .get(8); - } - - /** - * - * - * @generated - */ - @Override - public EReference getExperiment_InitialModel() { - return (EReference) this.experimentEClass.getEStructuralFeatures() - .get(9); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getExperiment_Repetitions() { - return (EAttribute) this.experimentEClass.getEStructuralFeatures() - .get(10); - } - - /** - * - * - * @generated - */ - @Override - public EClass getVariation() { - return this.variationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getVariation_Type() { - return (EReference) this.variationEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getVariation_ValueProvider() { - return (EReference) this.variationEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariation_MinValue() { - return (EAttribute) this.variationEClass.getEStructuralFeatures() - .get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariation_MaxValue() { - return (EAttribute) this.variationEClass.getEStructuralFeatures() - .get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariation_MaxVariations() { - return (EAttribute) this.variationEClass.getEStructuralFeatures() - .get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariation_VariedObjectId() { - return (EAttribute) this.variationEClass.getEStructuralFeatures() - .get(5); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariation_Name() { - return (EAttribute) this.variationEClass.getEStructuralFeatures() - .get(6); - } - - /** - * - * - * @generated - */ - @Override - public EClass getValueProvider() { - return this.valueProviderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getToolConfiguration() { - return this.toolConfigurationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getToolConfiguration_Name() { - return (EAttribute) this.toolConfigurationEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getExperimentDesign() { - return this.experimentDesignEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getResponseMeasurement() { - return this.responseMeasurementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getPolynomialValueProvider() { - return this.polynomialValueProviderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getPolynomialValueProvider_Exponent() { - return (EAttribute) this.polynomialValueProviderEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getPolynomialValueProvider_Factor() { - return (EAttribute) this.polynomialValueProviderEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getExponentialValueProvider() { - return this.exponentialValueProviderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getExponentialValueProvider_Base() { - return (EAttribute) this.exponentialValueProviderEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getSetValueProvider() { - return this.setValueProviderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getSetValueProvider_Values() { - return (EAttribute) this.setValueProviderEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPlacketBurmanDesign() { - return this.placketBurmanDesignEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getFullFactorialDesign() { - return this.fullFactorialDesignEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getFractionalFactorialDesign() { - return this.fractionalFactorialDesignEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getOneFactorAtATime() { - return this.oneFactorAtATimeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getSimulationDurationMeasurement() { - return this.simulationDurationMeasurementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getProfilingMeasurement() { - return this.profilingMeasurementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getJMXMeasurement() { - return this.jmxMeasurementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getJMXMeasurement_PollingPeriod() { - return (EAttribute) this.jmxMeasurementEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getLinearValueProvider() { - return this.linearValueProviderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getLinearValueProvider_Summand() { - return (EAttribute) this.linearValueProviderEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getLinearValueProvider_Factor() { - return (EAttribute) this.linearValueProviderEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getObjectModification() { - return this.objectModificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getObjectModification_Type() { - return (EReference) this.objectModificationEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getObjectModification_Name() { - return (EAttribute) this.objectModificationEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getObjectModification_VariedObjectId() { - return (EAttribute) this.objectModificationEClass.getEStructuralFeatures() - .get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getObjectModification_Value() { - return (EAttribute) this.objectModificationEClass.getEStructuralFeatures() - .get(3); - } - - /** - * - * - * @generated - */ - @Override - public EClass getInitialModel() { - return this.initialModelEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_UsageModel() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_Allocation() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_MiddlewareRepository() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_EventMiddleWareRepository() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(3); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_ReconfigurationRules() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(4); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_MonitorRepository() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(5); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_ServiceLevelObjectives() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(6); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_Repository() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(7); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_System() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(8); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_ResourceEnvironment() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(9); - } - - /** - * - * - * @generated - */ - @Override - public EReference getInitialModel_UsageEvolution() { - return (EReference) this.initialModelEClass.getEStructuralFeatures() - .get(10); - } - - /** - * - * - * @generated - */ - @Override - public EClass getReconfigurationRulesFolder() { - return this.reconfigurationRulesFolderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getReconfigurationRulesFolder_FolderUri() { - return (EAttribute) this.reconfigurationRulesFolderEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getNestedIntervalsDoubleValueProvider() { - return this.nestedIntervalsDoubleValueProviderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getNestedIntervalsDoubleValueProvider_MinValue() { - return (EAttribute) this.nestedIntervalsDoubleValueProviderEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getNestedIntervalsDoubleValueProvider_MaxValue() { - return (EAttribute) this.nestedIntervalsDoubleValueProviderEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getNestedIntervalsLongValueProvider() { - return this.nestedIntervalsLongValueProviderEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getNestedIntervalsLongValueProvider_MinValue() { - return (EAttribute) this.nestedIntervalsLongValueProviderEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getNestedIntervalsLongValueProvider_MaxValue() { - return (EAttribute) this.nestedIntervalsLongValueProviderEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getModification() { - return this.modificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getSchedulingPolicy2DelayModification() { - return this.schedulingPolicy2DelayModificationEClass; - } - - /** - * - * - * @generated - */ - @Override - public ExperimentsFactory getExperimentsFactory() { - return (ExperimentsFactory) this.getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on - * any invocation but its first. - * - * @generated - */ - public void createPackageContents() { - if (this.isCreated) { - return; - } - this.isCreated = true; - - // Create classes and their features - this.experimentRepositoryEClass = this.createEClass(EXPERIMENT_REPOSITORY); - this.createEReference(this.experimentRepositoryEClass, EXPERIMENT_REPOSITORY__EXPERIMENTS); - - this.experimentEClass = this.createEClass(EXPERIMENT); - this.createEReference(this.experimentEClass, EXPERIMENT__VARIATIONS); - this.createEReference(this.experimentEClass, EXPERIMENT__MODIFICATIONS); - this.createEAttribute(this.experimentEClass, EXPERIMENT__ID); - this.createEAttribute(this.experimentEClass, EXPERIMENT__NAME); - this.createEReference(this.experimentEClass, EXPERIMENT__TOOL_CONFIGURATION); - this.createEReference(this.experimentEClass, EXPERIMENT__STOP_CONDITIONS); - this.createEAttribute(this.experimentEClass, EXPERIMENT__DESCRIPTION); - this.createEReference(this.experimentEClass, EXPERIMENT__EXPERIMENT_DESIGN); - this.createEReference(this.experimentEClass, EXPERIMENT__RESPONSE_MEASUREMENT); - this.createEReference(this.experimentEClass, EXPERIMENT__INITIAL_MODEL); - this.createEAttribute(this.experimentEClass, EXPERIMENT__REPETITIONS); - - this.variationEClass = this.createEClass(VARIATION); - this.createEReference(this.variationEClass, VARIATION__TYPE); - this.createEReference(this.variationEClass, VARIATION__VALUE_PROVIDER); - this.createEAttribute(this.variationEClass, VARIATION__MIN_VALUE); - this.createEAttribute(this.variationEClass, VARIATION__MAX_VALUE); - this.createEAttribute(this.variationEClass, VARIATION__MAX_VARIATIONS); - this.createEAttribute(this.variationEClass, VARIATION__VARIED_OBJECT_ID); - this.createEAttribute(this.variationEClass, VARIATION__NAME); - - this.valueProviderEClass = this.createEClass(VALUE_PROVIDER); - - this.toolConfigurationEClass = this.createEClass(TOOL_CONFIGURATION); - this.createEAttribute(this.toolConfigurationEClass, TOOL_CONFIGURATION__NAME); - - this.experimentDesignEClass = this.createEClass(EXPERIMENT_DESIGN); - - this.responseMeasurementEClass = this.createEClass(RESPONSE_MEASUREMENT); - - this.polynomialValueProviderEClass = this.createEClass(POLYNOMIAL_VALUE_PROVIDER); - this.createEAttribute(this.polynomialValueProviderEClass, POLYNOMIAL_VALUE_PROVIDER__EXPONENT); - this.createEAttribute(this.polynomialValueProviderEClass, POLYNOMIAL_VALUE_PROVIDER__FACTOR); - - this.exponentialValueProviderEClass = this.createEClass(EXPONENTIAL_VALUE_PROVIDER); - this.createEAttribute(this.exponentialValueProviderEClass, EXPONENTIAL_VALUE_PROVIDER__BASE); - - this.setValueProviderEClass = this.createEClass(SET_VALUE_PROVIDER); - this.createEAttribute(this.setValueProviderEClass, SET_VALUE_PROVIDER__VALUES); - - this.placketBurmanDesignEClass = this.createEClass(PLACKET_BURMAN_DESIGN); - - this.fullFactorialDesignEClass = this.createEClass(FULL_FACTORIAL_DESIGN); - - this.fractionalFactorialDesignEClass = this.createEClass(FRACTIONAL_FACTORIAL_DESIGN); - - this.oneFactorAtATimeEClass = this.createEClass(ONE_FACTOR_AT_ATIME); - - this.simulationDurationMeasurementEClass = this.createEClass(SIMULATION_DURATION_MEASUREMENT); - - this.profilingMeasurementEClass = this.createEClass(PROFILING_MEASUREMENT); - - this.jmxMeasurementEClass = this.createEClass(JMX_MEASUREMENT); - this.createEAttribute(this.jmxMeasurementEClass, JMX_MEASUREMENT__POLLING_PERIOD); - - this.linearValueProviderEClass = this.createEClass(LINEAR_VALUE_PROVIDER); - this.createEAttribute(this.linearValueProviderEClass, LINEAR_VALUE_PROVIDER__SUMMAND); - this.createEAttribute(this.linearValueProviderEClass, LINEAR_VALUE_PROVIDER__FACTOR); - - this.objectModificationEClass = this.createEClass(OBJECT_MODIFICATION); - this.createEReference(this.objectModificationEClass, OBJECT_MODIFICATION__TYPE); - this.createEAttribute(this.objectModificationEClass, OBJECT_MODIFICATION__NAME); - this.createEAttribute(this.objectModificationEClass, OBJECT_MODIFICATION__VARIED_OBJECT_ID); - this.createEAttribute(this.objectModificationEClass, OBJECT_MODIFICATION__VALUE); - - this.initialModelEClass = this.createEClass(INITIAL_MODEL); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__USAGE_MODEL); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__ALLOCATION); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__MIDDLEWARE_REPOSITORY); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__RECONFIGURATION_RULES); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__MONITOR_REPOSITORY); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__REPOSITORY); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__SYSTEM); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__RESOURCE_ENVIRONMENT); - this.createEReference(this.initialModelEClass, INITIAL_MODEL__USAGE_EVOLUTION); - - this.reconfigurationRulesFolderEClass = this.createEClass(RECONFIGURATION_RULES_FOLDER); - this.createEAttribute(this.reconfigurationRulesFolderEClass, RECONFIGURATION_RULES_FOLDER__FOLDER_URI); - - this.nestedIntervalsDoubleValueProviderEClass = this.createEClass(NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER); - this.createEAttribute(this.nestedIntervalsDoubleValueProviderEClass, - NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE); - this.createEAttribute(this.nestedIntervalsDoubleValueProviderEClass, - NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE); - - this.nestedIntervalsLongValueProviderEClass = this.createEClass(NESTED_INTERVALS_LONG_VALUE_PROVIDER); - this.createEAttribute(this.nestedIntervalsLongValueProviderEClass, - NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE); - this.createEAttribute(this.nestedIntervalsLongValueProviderEClass, - NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE); - - this.modificationEClass = this.createEClass(MODIFICATION); - - this.schedulingPolicy2DelayModificationEClass = this.createEClass(SCHEDULING_POLICY2_DELAY_MODIFICATION); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have - * no affect on any invocation but its first. - * - * @generated - */ - public void initializePackageContents() { - if (this.isInitialized) { - return; - } - this.isInitialized = true; - - // Initialize package - this.setName(eNAME); - this.setNsPrefix(eNS_PREFIX); - this.setNsURI(eNS_URI); - - // Obtain other dependent packages - final AbstractsimulationPackage theAbstractsimulationPackage = (AbstractsimulationPackage) EPackage.Registry.INSTANCE - .getEPackage(AbstractsimulationPackage.eNS_URI); - final VariationPackage theVariationPackage = (VariationPackage) EPackage.Registry.INSTANCE - .getEPackage(VariationPackage.eNS_URI); - final UsagemodelPackage theUsagemodelPackage = (UsagemodelPackage) EPackage.Registry.INSTANCE - .getEPackage(UsagemodelPackage.eNS_URI); - final AllocationPackage theAllocationPackage = (AllocationPackage) EPackage.Registry.INSTANCE - .getEPackage(AllocationPackage.eNS_URI); - final RepositoryPackage theRepositoryPackage_1 = (RepositoryPackage) EPackage.Registry.INSTANCE - .getEPackage(RepositoryPackage.eNS_URI); - final MonitorRepositoryPackage theMonitorRepositoryPackage = (MonitorRepositoryPackage) EPackage.Registry.INSTANCE - .getEPackage(MonitorRepositoryPackage.eNS_URI); - final ServicelevelObjectivePackage theServicelevelObjectivePackage = (ServicelevelObjectivePackage) EPackage.Registry.INSTANCE - .getEPackage(ServicelevelObjectivePackage.eNS_URI); - final SystemPackage theSystemPackage = (SystemPackage) EPackage.Registry.INSTANCE - .getEPackage(SystemPackage.eNS_URI); - final ResourceenvironmentPackage theResourceenvironmentPackage = (ResourceenvironmentPackage) EPackage.Registry.INSTANCE - .getEPackage(ResourceenvironmentPackage.eNS_URI); - final UsageevolutionPackage theUsageevolutionPackage = (UsageevolutionPackage) EPackage.Registry.INSTANCE - .getEPackage(UsageevolutionPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - this.polynomialValueProviderEClass.getESuperTypes() - .add(this.getValueProvider()); - this.exponentialValueProviderEClass.getESuperTypes() - .add(this.getValueProvider()); - this.setValueProviderEClass.getESuperTypes() - .add(this.getValueProvider()); - this.fullFactorialDesignEClass.getESuperTypes() - .add(this.getExperimentDesign()); - this.oneFactorAtATimeEClass.getESuperTypes() - .add(this.getExperimentDesign()); - this.simulationDurationMeasurementEClass.getESuperTypes() - .add(this.getResponseMeasurement()); - this.profilingMeasurementEClass.getESuperTypes() - .add(this.getResponseMeasurement()); - this.jmxMeasurementEClass.getESuperTypes() - .add(this.getResponseMeasurement()); - this.linearValueProviderEClass.getESuperTypes() - .add(this.getValueProvider()); - this.objectModificationEClass.getESuperTypes() - .add(this.getModification()); - this.nestedIntervalsDoubleValueProviderEClass.getESuperTypes() - .add(this.getValueProvider()); - this.nestedIntervalsLongValueProviderEClass.getESuperTypes() - .add(this.getValueProvider()); - this.schedulingPolicy2DelayModificationEClass.getESuperTypes() - .add(this.getModification()); - - // Initialize classes and features; add operations and parameters - this.initEClass(this.experimentRepositoryEClass, ExperimentRepository.class, "ExperimentRepository", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEReference(this.getExperimentRepository_Experiments(), this.getExperiment(), null, "experiments", null, - 0, -1, ExperimentRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.experimentEClass, Experiment.class, "Experiment", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - this.initEReference(this.getExperiment_Variations(), this.getVariation(), null, "variations", null, 0, -1, - Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getExperiment_Modifications(), this.getModification(), null, "modifications", null, 0, - -1, Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEAttribute(this.getExperiment_Id(), this.ecorePackage.getEString(), "id", null, 1, 1, Experiment.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - !IS_ORDERED); - this.initEAttribute(this.getExperiment_Name(), this.ecorePackage.getEString(), "name", null, 1, 1, - Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getExperiment_ToolConfiguration(), this.getToolConfiguration(), null, - "toolConfiguration", null, 1, -1, Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getExperiment_StopConditions(), theAbstractsimulationPackage.getStopCondition(), null, - "stopConditions", null, 0, -1, Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getExperiment_Description(), this.ecorePackage.getEString(), "description", null, 1, 1, - Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getExperiment_ExperimentDesign(), this.getExperimentDesign(), null, "experimentDesign", - null, 1, 1, Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getExperiment_ResponseMeasurement(), this.getResponseMeasurement(), null, - "responseMeasurement", null, 1, 1, Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getExperiment_InitialModel(), this.getInitialModel(), null, "initialModel", null, 1, 1, - Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEAttribute(this.getExperiment_Repetitions(), this.ecorePackage.getEInt(), "repetitions", null, 1, 1, - Experiment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.variationEClass, Variation.class, "Variation", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - this.initEReference(this.getVariation_Type(), theVariationPackage.getVariationType(), null, "type", null, 1, 1, - Variation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEReference(this.getVariation_ValueProvider(), this.getValueProvider(), null, "valueProvider", null, 1, - 1, Variation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getVariation_MinValue(), this.ecorePackage.getEDouble(), "minValue", null, 1, 1, - Variation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getVariation_MaxValue(), this.ecorePackage.getEDouble(), "maxValue", null, 1, 1, - Variation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getVariation_MaxVariations(), this.ecorePackage.getELong(), "maxVariations", null, 1, - 1, Variation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getVariation_VariedObjectId(), this.ecorePackage.getEString(), "variedObjectId", null, - 1, 1, Variation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getVariation_Name(), this.ecorePackage.getEString(), "name", null, 1, 1, - Variation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.valueProviderEClass, ValueProvider.class, "ValueProvider", IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.toolConfigurationEClass, ToolConfiguration.class, "ToolConfiguration", IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getToolConfiguration_Name(), this.ecorePackage.getEString(), "name", null, 1, 1, - ToolConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.experimentDesignEClass, ExperimentDesign.class, "ExperimentDesign", IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.responseMeasurementEClass, ResponseMeasurement.class, "ResponseMeasurement", IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.polynomialValueProviderEClass, PolynomialValueProvider.class, "PolynomialValueProvider", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getPolynomialValueProvider_Exponent(), this.ecorePackage.getEDouble(), "exponent", - null, 1, 1, PolynomialValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getPolynomialValueProvider_Factor(), this.ecorePackage.getEDouble(), "factor", null, 1, - 1, PolynomialValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.exponentialValueProviderEClass, ExponentialValueProvider.class, "ExponentialValueProvider", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getExponentialValueProvider_Base(), this.ecorePackage.getEDouble(), "base", null, 1, 1, - ExponentialValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.setValueProviderEClass, SetValueProvider.class, "SetValueProvider", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getSetValueProvider_Values(), this.ecorePackage.getEString(), "values", null, 1, 1, - SetValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.placketBurmanDesignEClass, PlacketBurmanDesign.class, "PlacketBurmanDesign", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.fullFactorialDesignEClass, FullFactorialDesign.class, "FullFactorialDesign", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.fractionalFactorialDesignEClass, FractionalFactorialDesign.class, - "FractionalFactorialDesign", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.oneFactorAtATimeEClass, OneFactorAtATime.class, "OneFactorAtATime", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.simulationDurationMeasurementEClass, SimulationDurationMeasurement.class, - "SimulationDurationMeasurement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.profilingMeasurementEClass, ProfilingMeasurement.class, "ProfilingMeasurement", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.jmxMeasurementEClass, JMXMeasurement.class, "JMXMeasurement", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getJMXMeasurement_PollingPeriod(), this.ecorePackage.getEIntegerObject(), - "pollingPeriod", null, 1, 1, JMXMeasurement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.linearValueProviderEClass, LinearValueProvider.class, "LinearValueProvider", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getLinearValueProvider_Summand(), this.ecorePackage.getEDouble(), "summand", null, 1, - 1, LinearValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getLinearValueProvider_Factor(), this.ecorePackage.getEDouble(), "factor", null, 1, 1, - LinearValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.objectModificationEClass, ObjectModification.class, "ObjectModification", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEReference(this.getObjectModification_Type(), theVariationPackage.getVariationType(), null, "type", - null, 0, 1, ObjectModification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEAttribute(this.getObjectModification_Name(), this.ecorePackage.getEString(), "name", null, 1, 1, - ObjectModification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getObjectModification_VariedObjectId(), this.ecorePackage.getEString(), - "variedObjectId", null, 1, 1, ObjectModification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getObjectModification_Value(), this.ecorePackage.getELong(), "value", null, 1, 1, - ObjectModification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.initialModelEClass, InitialModel.class, "InitialModel", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - this.initEReference(this.getInitialModel_UsageModel(), theUsagemodelPackage.getUsageModel(), null, "usageModel", - null, 0, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_Allocation(), theAllocationPackage.getAllocation(), null, "allocation", - null, 0, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_MiddlewareRepository(), theRepositoryPackage_1.getRepository(), null, - "middlewareRepository", null, 1, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_EventMiddleWareRepository(), theRepositoryPackage_1.getRepository(), - null, "eventMiddleWareRepository", null, 1, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_ReconfigurationRules(), this.getReconfigurationRulesFolder(), null, - "reconfigurationRules", null, 0, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_MonitorRepository(), - theMonitorRepositoryPackage.getMonitorRepository(), null, "monitorRepository", null, 0, 1, - InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_ServiceLevelObjectives(), - theServicelevelObjectivePackage.getServiceLevelObjectiveRepository(), null, "serviceLevelObjectives", - null, 0, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_Repository(), theRepositoryPackage_1.getRepository(), null, - "repository", null, 0, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_System(), theSystemPackage.getSystem(), null, "system", null, 0, 1, - InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_ResourceEnvironment(), - theResourceenvironmentPackage.getResourceEnvironment(), null, "resourceEnvironment", null, 0, 1, - InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEReference(this.getInitialModel_UsageEvolution(), theUsageevolutionPackage.getUsageEvolution(), null, - "usageEvolution", null, 0, 1, InitialModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - this.initEClass(this.reconfigurationRulesFolderEClass, ReconfigurationRulesFolder.class, - "ReconfigurationRulesFolder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getReconfigurationRulesFolder_FolderUri(), this.ecorePackage.getEString(), "folderUri", - null, 1, 1, ReconfigurationRulesFolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - this.initEClass(this.nestedIntervalsDoubleValueProviderEClass, NestedIntervalsDoubleValueProvider.class, - "NestedIntervalsDoubleValueProvider", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getNestedIntervalsDoubleValueProvider_MinValue(), this.ecorePackage.getEDouble(), - "minValue", null, 1, 1, NestedIntervalsDoubleValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEAttribute(this.getNestedIntervalsDoubleValueProvider_MaxValue(), this.ecorePackage.getEDouble(), - "maxValue", null, 1, 1, NestedIntervalsDoubleValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - this.initEClass(this.nestedIntervalsLongValueProviderEClass, NestedIntervalsLongValueProvider.class, - "NestedIntervalsLongValueProvider", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getNestedIntervalsLongValueProvider_MinValue(), this.ecorePackage.getELong(), - "minValue", null, 1, 1, NestedIntervalsLongValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - this.initEAttribute(this.getNestedIntervalsLongValueProvider_MaxValue(), this.ecorePackage.getELong(), - "maxValue", null, 1, 1, NestedIntervalsLongValueProvider.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - this.initEClass(this.modificationEClass, Modification.class, "Modification", IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.schedulingPolicy2DelayModificationEClass, SchedulingPolicy2DelayModification.class, - "SchedulingPolicy2DelayModification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Create resource - this.createResource(eNS_URI); - } - -} // ExperimentsPackageImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExponentialValueProviderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExponentialValueProviderImpl.java deleted file mode 100644 index 1a3c9b28..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ExponentialValueProviderImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider; - -/** - * An implementation of the model object ' Exponential Value - * Provider'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ExponentialValueProviderImpl#getBase - * Base}
  • - *
- * - * @generated - */ -public class ExponentialValueProviderImpl extends ValueProviderImpl implements ExponentialValueProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getBase() Base}' attribute. - * - * @see #getBase() - * @generated - * @ordered - */ - protected static final double BASE_EDEFAULT = 0.0; - - /** - * - * - * @generated - */ - protected ExponentialValueProviderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.EXPONENTIAL_VALUE_PROVIDER; - } - - /** - * - * - * @generated - */ - @Override - public double getBase() { - return (Double) this.eDynamicGet(ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER__BASE, - ExperimentsPackage.Literals.EXPONENTIAL_VALUE_PROVIDER__BASE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setBase(final double newBase) { - this.eDynamicSet(ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER__BASE, - ExperimentsPackage.Literals.EXPONENTIAL_VALUE_PROVIDER__BASE, newBase); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER__BASE: - return this.getBase(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER__BASE: - this.setBase((Double) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER__BASE: - this.setBase(BASE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER__BASE: - return this.getBase() != BASE_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // ExponentialValueProviderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/FractionalFactorialDesignImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/FractionalFactorialDesignImpl.java deleted file mode 100644 index 542acc5f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/FractionalFactorialDesignImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign; - -/** - * An implementation of the model object ' Fractional Factorial - * Design'. - * - * @generated - */ -public class FractionalFactorialDesignImpl extends CDOObjectImpl implements FractionalFactorialDesign { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected FractionalFactorialDesignImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.FRACTIONAL_FACTORIAL_DESIGN; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - -} // FractionalFactorialDesignImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/FullFactorialDesignImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/FullFactorialDesignImpl.java deleted file mode 100644 index bc8d2ecb..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/FullFactorialDesignImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign; - -/** - * An implementation of the model object ' Full Factorial - * Design'. - * - * @generated - */ -public class FullFactorialDesignImpl extends ExperimentDesignImpl implements FullFactorialDesign { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected FullFactorialDesignImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.FULL_FACTORIAL_DESIGN; - } - -} // FullFactorialDesignImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/InitialModelImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/InitialModelImpl.java deleted file mode 100644 index 687033bf..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/InitialModelImpl.java +++ /dev/null @@ -1,634 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.InitialModel; -import org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder; -import org.palladiosimulator.monitorrepository.MonitorRepository; -import org.palladiosimulator.pcm.allocation.Allocation; -import org.palladiosimulator.pcm.repository.Repository; -import org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment; -import org.palladiosimulator.pcm.usagemodel.UsageModel; -import org.palladiosimulator.servicelevelobjective.ServiceLevelObjectiveRepository; -import org.scaledl.usageevolution.UsageEvolution; - -/** - * An implementation of the model object 'Initial Model'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getUsageModel - * Usage Model}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getAllocation - * Allocation}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getMiddlewareRepository - * Middleware Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getEventMiddleWareRepository - * Event Middle Ware Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getReconfigurationRules - * Reconfiguration Rules}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getMonitorRepository - * Monitor Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getServiceLevelObjectives - * Service Level Objectives}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getRepository - * Repository}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getSystem - * System}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getResourceEnvironment - * Resource Environment}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.InitialModelImpl#getUsageEvolution - * Usage Evolution}
  • - *
- * - * @generated - */ -public class InitialModelImpl extends CDOObjectImpl implements InitialModel { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected InitialModelImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.INITIAL_MODEL; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @Override - public UsageModel getUsageModel() { - return (UsageModel) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__USAGE_MODEL, - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_MODEL, true, true); - } - - /** - * - * - * @generated - */ - public UsageModel basicGetUsageModel() { - return (UsageModel) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__USAGE_MODEL, - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_MODEL, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setUsageModel(final UsageModel newUsageModel) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__USAGE_MODEL, - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_MODEL, newUsageModel); - } - - /** - * - * - * @generated - */ - @Override - public Allocation getAllocation() { - return (Allocation) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__ALLOCATION, - ExperimentsPackage.Literals.INITIAL_MODEL__ALLOCATION, true, true); - } - - /** - * - * - * @generated - */ - public Allocation basicGetAllocation() { - return (Allocation) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__ALLOCATION, - ExperimentsPackage.Literals.INITIAL_MODEL__ALLOCATION, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setAllocation(final Allocation newAllocation) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__ALLOCATION, - ExperimentsPackage.Literals.INITIAL_MODEL__ALLOCATION, newAllocation); - } - - /** - * - * - * @generated - */ - @Override - public Repository getMiddlewareRepository() { - return (Repository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__MIDDLEWARE_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__MIDDLEWARE_REPOSITORY, true, true); - } - - /** - * - * - * @generated - */ - public Repository basicGetMiddlewareRepository() { - return (Repository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__MIDDLEWARE_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__MIDDLEWARE_REPOSITORY, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMiddlewareRepository(final Repository newMiddlewareRepository) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__MIDDLEWARE_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__MIDDLEWARE_REPOSITORY, newMiddlewareRepository); - } - - /** - * - * - * @generated - */ - @Override - public Repository getEventMiddleWareRepository() { - return (Repository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY, true, true); - } - - /** - * - * - * @generated - */ - public Repository basicGetEventMiddleWareRepository() { - return (Repository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setEventMiddleWareRepository(final Repository newEventMiddleWareRepository) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY, newEventMiddleWareRepository); - } - - /** - * - * - * @generated - */ - @Override - public ReconfigurationRulesFolder getReconfigurationRules() { - return (ReconfigurationRulesFolder) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__RECONFIGURATION_RULES, - ExperimentsPackage.Literals.INITIAL_MODEL__RECONFIGURATION_RULES, true, true); - } - - /** - * - * - * @generated - */ - public ReconfigurationRulesFolder basicGetReconfigurationRules() { - return (ReconfigurationRulesFolder) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__RECONFIGURATION_RULES, - ExperimentsPackage.Literals.INITIAL_MODEL__RECONFIGURATION_RULES, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setReconfigurationRules(final ReconfigurationRulesFolder newReconfigurationRules) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__RECONFIGURATION_RULES, - ExperimentsPackage.Literals.INITIAL_MODEL__RECONFIGURATION_RULES, newReconfigurationRules); - } - - /** - * - * - * @generated - */ - @Override - public MonitorRepository getMonitorRepository() { - return (MonitorRepository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__MONITOR_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__MONITOR_REPOSITORY, true, true); - } - - /** - * - * - * @generated - */ - public MonitorRepository basicGetMonitorRepository() { - return (MonitorRepository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__MONITOR_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__MONITOR_REPOSITORY, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMonitorRepository(final MonitorRepository newMonitorRepository) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__MONITOR_REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__MONITOR_REPOSITORY, newMonitorRepository); - } - - /** - * - * - * @generated - */ - @Override - public ServiceLevelObjectiveRepository getServiceLevelObjectives() { - return (ServiceLevelObjectiveRepository) this.eDynamicGet( - ExperimentsPackage.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES, - ExperimentsPackage.Literals.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES, true, true); - } - - /** - * - * - * @generated - */ - public ServiceLevelObjectiveRepository basicGetServiceLevelObjectives() { - return (ServiceLevelObjectiveRepository) this.eDynamicGet( - ExperimentsPackage.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES, - ExperimentsPackage.Literals.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setServiceLevelObjectives(final ServiceLevelObjectiveRepository newServiceLevelObjectives) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES, - ExperimentsPackage.Literals.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES, newServiceLevelObjectives); - } - - /** - * - * - * @generated - */ - @Override - public Repository getRepository() { - return (Repository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__REPOSITORY, true, true); - } - - /** - * - * - * @generated - */ - public Repository basicGetRepository() { - return (Repository) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__REPOSITORY, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setRepository(final Repository newRepository) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__REPOSITORY, - ExperimentsPackage.Literals.INITIAL_MODEL__REPOSITORY, newRepository); - } - - /** - * - * - * @generated - */ - @Override - public org.palladiosimulator.pcm.system.System getSystem() { - return (org.palladiosimulator.pcm.system.System) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__SYSTEM, - ExperimentsPackage.Literals.INITIAL_MODEL__SYSTEM, true, true); - } - - /** - * - * - * @generated - */ - public org.palladiosimulator.pcm.system.System basicGetSystem() { - return (org.palladiosimulator.pcm.system.System) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__SYSTEM, - ExperimentsPackage.Literals.INITIAL_MODEL__SYSTEM, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSystem(final org.palladiosimulator.pcm.system.System newSystem) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__SYSTEM, ExperimentsPackage.Literals.INITIAL_MODEL__SYSTEM, - newSystem); - } - - /** - * - * - * @generated - */ - @Override - public ResourceEnvironment getResourceEnvironment() { - return (ResourceEnvironment) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__RESOURCE_ENVIRONMENT, - ExperimentsPackage.Literals.INITIAL_MODEL__RESOURCE_ENVIRONMENT, true, true); - } - - /** - * - * - * @generated - */ - public ResourceEnvironment basicGetResourceEnvironment() { - return (ResourceEnvironment) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__RESOURCE_ENVIRONMENT, - ExperimentsPackage.Literals.INITIAL_MODEL__RESOURCE_ENVIRONMENT, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setResourceEnvironment(final ResourceEnvironment newResourceEnvironment) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__RESOURCE_ENVIRONMENT, - ExperimentsPackage.Literals.INITIAL_MODEL__RESOURCE_ENVIRONMENT, newResourceEnvironment); - } - - /** - * - * - * @generated - */ - @Override - public UsageEvolution getUsageEvolution() { - return (UsageEvolution) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__USAGE_EVOLUTION, - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_EVOLUTION, true, true); - } - - /** - * - * - * @generated - */ - public UsageEvolution basicGetUsageEvolution() { - return (UsageEvolution) this.eDynamicGet(ExperimentsPackage.INITIAL_MODEL__USAGE_EVOLUTION, - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_EVOLUTION, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setUsageEvolution(final UsageEvolution newUsageEvolution) { - this.eDynamicSet(ExperimentsPackage.INITIAL_MODEL__USAGE_EVOLUTION, - ExperimentsPackage.Literals.INITIAL_MODEL__USAGE_EVOLUTION, newUsageEvolution); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.INITIAL_MODEL__USAGE_MODEL: - if (resolve) { - return this.getUsageModel(); - } - return this.basicGetUsageModel(); - case ExperimentsPackage.INITIAL_MODEL__ALLOCATION: - if (resolve) { - return this.getAllocation(); - } - return this.basicGetAllocation(); - case ExperimentsPackage.INITIAL_MODEL__MIDDLEWARE_REPOSITORY: - if (resolve) { - return this.getMiddlewareRepository(); - } - return this.basicGetMiddlewareRepository(); - case ExperimentsPackage.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY: - if (resolve) { - return this.getEventMiddleWareRepository(); - } - return this.basicGetEventMiddleWareRepository(); - case ExperimentsPackage.INITIAL_MODEL__RECONFIGURATION_RULES: - if (resolve) { - return this.getReconfigurationRules(); - } - return this.basicGetReconfigurationRules(); - case ExperimentsPackage.INITIAL_MODEL__MONITOR_REPOSITORY: - if (resolve) { - return this.getMonitorRepository(); - } - return this.basicGetMonitorRepository(); - case ExperimentsPackage.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES: - if (resolve) { - return this.getServiceLevelObjectives(); - } - return this.basicGetServiceLevelObjectives(); - case ExperimentsPackage.INITIAL_MODEL__REPOSITORY: - if (resolve) { - return this.getRepository(); - } - return this.basicGetRepository(); - case ExperimentsPackage.INITIAL_MODEL__SYSTEM: - if (resolve) { - return this.getSystem(); - } - return this.basicGetSystem(); - case ExperimentsPackage.INITIAL_MODEL__RESOURCE_ENVIRONMENT: - if (resolve) { - return this.getResourceEnvironment(); - } - return this.basicGetResourceEnvironment(); - case ExperimentsPackage.INITIAL_MODEL__USAGE_EVOLUTION: - if (resolve) { - return this.getUsageEvolution(); - } - return this.basicGetUsageEvolution(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.INITIAL_MODEL__USAGE_MODEL: - this.setUsageModel((UsageModel) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__ALLOCATION: - this.setAllocation((Allocation) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__MIDDLEWARE_REPOSITORY: - this.setMiddlewareRepository((Repository) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY: - this.setEventMiddleWareRepository((Repository) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__RECONFIGURATION_RULES: - this.setReconfigurationRules((ReconfigurationRulesFolder) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__MONITOR_REPOSITORY: - this.setMonitorRepository((MonitorRepository) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES: - this.setServiceLevelObjectives((ServiceLevelObjectiveRepository) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__REPOSITORY: - this.setRepository((Repository) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__SYSTEM: - this.setSystem((org.palladiosimulator.pcm.system.System) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__RESOURCE_ENVIRONMENT: - this.setResourceEnvironment((ResourceEnvironment) newValue); - return; - case ExperimentsPackage.INITIAL_MODEL__USAGE_EVOLUTION: - this.setUsageEvolution((UsageEvolution) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.INITIAL_MODEL__USAGE_MODEL: - this.setUsageModel((UsageModel) null); - return; - case ExperimentsPackage.INITIAL_MODEL__ALLOCATION: - this.setAllocation((Allocation) null); - return; - case ExperimentsPackage.INITIAL_MODEL__MIDDLEWARE_REPOSITORY: - this.setMiddlewareRepository((Repository) null); - return; - case ExperimentsPackage.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY: - this.setEventMiddleWareRepository((Repository) null); - return; - case ExperimentsPackage.INITIAL_MODEL__RECONFIGURATION_RULES: - this.setReconfigurationRules((ReconfigurationRulesFolder) null); - return; - case ExperimentsPackage.INITIAL_MODEL__MONITOR_REPOSITORY: - this.setMonitorRepository((MonitorRepository) null); - return; - case ExperimentsPackage.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES: - this.setServiceLevelObjectives((ServiceLevelObjectiveRepository) null); - return; - case ExperimentsPackage.INITIAL_MODEL__REPOSITORY: - this.setRepository((Repository) null); - return; - case ExperimentsPackage.INITIAL_MODEL__SYSTEM: - this.setSystem((org.palladiosimulator.pcm.system.System) null); - return; - case ExperimentsPackage.INITIAL_MODEL__RESOURCE_ENVIRONMENT: - this.setResourceEnvironment((ResourceEnvironment) null); - return; - case ExperimentsPackage.INITIAL_MODEL__USAGE_EVOLUTION: - this.setUsageEvolution((UsageEvolution) null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.INITIAL_MODEL__USAGE_MODEL: - return this.basicGetUsageModel() != null; - case ExperimentsPackage.INITIAL_MODEL__ALLOCATION: - return this.basicGetAllocation() != null; - case ExperimentsPackage.INITIAL_MODEL__MIDDLEWARE_REPOSITORY: - return this.basicGetMiddlewareRepository() != null; - case ExperimentsPackage.INITIAL_MODEL__EVENT_MIDDLE_WARE_REPOSITORY: - return this.basicGetEventMiddleWareRepository() != null; - case ExperimentsPackage.INITIAL_MODEL__RECONFIGURATION_RULES: - return this.basicGetReconfigurationRules() != null; - case ExperimentsPackage.INITIAL_MODEL__MONITOR_REPOSITORY: - return this.basicGetMonitorRepository() != null; - case ExperimentsPackage.INITIAL_MODEL__SERVICE_LEVEL_OBJECTIVES: - return this.basicGetServiceLevelObjectives() != null; - case ExperimentsPackage.INITIAL_MODEL__REPOSITORY: - return this.basicGetRepository() != null; - case ExperimentsPackage.INITIAL_MODEL__SYSTEM: - return this.basicGetSystem() != null; - case ExperimentsPackage.INITIAL_MODEL__RESOURCE_ENVIRONMENT: - return this.basicGetResourceEnvironment() != null; - case ExperimentsPackage.INITIAL_MODEL__USAGE_EVOLUTION: - return this.basicGetUsageEvolution() != null; - } - return super.eIsSet(featureID); - } - -} // InitialModelImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/JMXMeasurementImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/JMXMeasurementImpl.java deleted file mode 100644 index d3427d0c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/JMXMeasurementImpl.java +++ /dev/null @@ -1,140 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.JMXMeasurement; - -/** - * An implementation of the model object 'JMX Measurement'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.JMXMeasurementImpl#getPollingPeriod - * Polling Period}
  • - *
- * - * @generated - */ -public class JMXMeasurementImpl extends ResponseMeasurementImpl implements JMXMeasurement { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getPollingPeriod() Polling Period}' attribute. - * - * - * @see #getPollingPeriod() - * @generated - * @ordered - */ - protected static final Integer POLLING_PERIOD_EDEFAULT = null; - - /** - * - * - * @generated - */ - protected JMXMeasurementImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.JMX_MEASUREMENT; - } - - /** - * - * - * @generated - */ - @Override - public Integer getPollingPeriod() { - return (Integer) this.eDynamicGet(ExperimentsPackage.JMX_MEASUREMENT__POLLING_PERIOD, - ExperimentsPackage.Literals.JMX_MEASUREMENT__POLLING_PERIOD, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setPollingPeriod(final Integer newPollingPeriod) { - this.eDynamicSet(ExperimentsPackage.JMX_MEASUREMENT__POLLING_PERIOD, - ExperimentsPackage.Literals.JMX_MEASUREMENT__POLLING_PERIOD, newPollingPeriod); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.JMX_MEASUREMENT__POLLING_PERIOD: - return this.getPollingPeriod(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.JMX_MEASUREMENT__POLLING_PERIOD: - this.setPollingPeriod((Integer) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.JMX_MEASUREMENT__POLLING_PERIOD: - this.setPollingPeriod(POLLING_PERIOD_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.JMX_MEASUREMENT__POLLING_PERIOD: - return POLLING_PERIOD_EDEFAULT == null ? this.getPollingPeriod() != null - : !POLLING_PERIOD_EDEFAULT.equals(this.getPollingPeriod()); - } - return super.eIsSet(featureID); - } - -} // JMXMeasurementImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/LinearValueProviderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/LinearValueProviderImpl.java deleted file mode 100644 index 500402ba..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/LinearValueProviderImpl.java +++ /dev/null @@ -1,184 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.LinearValueProvider; - -/** - * An implementation of the model object ' Linear Value - * Provider'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.LinearValueProviderImpl#getSummand - * Summand}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.LinearValueProviderImpl#getFactor - * Factor}
  • - *
- * - * @generated - */ -public class LinearValueProviderImpl extends ValueProviderImpl implements LinearValueProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getSummand() Summand}' attribute. - * - * @see #getSummand() - * @generated - * @ordered - */ - protected static final double SUMMAND_EDEFAULT = 0.0; - - /** - * The default value of the '{@link #getFactor() Factor}' attribute. - * - * @see #getFactor() - * @generated - * @ordered - */ - protected static final double FACTOR_EDEFAULT = 0.0; - - /** - * - * - * @generated - */ - protected LinearValueProviderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.LINEAR_VALUE_PROVIDER; - } - - /** - * - * - * @generated - */ - @Override - public double getSummand() { - return (Double) this.eDynamicGet(ExperimentsPackage.LINEAR_VALUE_PROVIDER__SUMMAND, - ExperimentsPackage.Literals.LINEAR_VALUE_PROVIDER__SUMMAND, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setSummand(final double newSummand) { - this.eDynamicSet(ExperimentsPackage.LINEAR_VALUE_PROVIDER__SUMMAND, - ExperimentsPackage.Literals.LINEAR_VALUE_PROVIDER__SUMMAND, newSummand); - } - - /** - * - * - * @generated - */ - @Override - public double getFactor() { - return (Double) this.eDynamicGet(ExperimentsPackage.LINEAR_VALUE_PROVIDER__FACTOR, - ExperimentsPackage.Literals.LINEAR_VALUE_PROVIDER__FACTOR, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setFactor(final double newFactor) { - this.eDynamicSet(ExperimentsPackage.LINEAR_VALUE_PROVIDER__FACTOR, - ExperimentsPackage.Literals.LINEAR_VALUE_PROVIDER__FACTOR, newFactor); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__SUMMAND: - return this.getSummand(); - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__FACTOR: - return this.getFactor(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__SUMMAND: - this.setSummand((Double) newValue); - return; - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__FACTOR: - this.setFactor((Double) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__SUMMAND: - this.setSummand(SUMMAND_EDEFAULT); - return; - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__FACTOR: - this.setFactor(FACTOR_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__SUMMAND: - return this.getSummand() != SUMMAND_EDEFAULT; - case ExperimentsPackage.LINEAR_VALUE_PROVIDER__FACTOR: - return this.getFactor() != FACTOR_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // LinearValueProviderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ModificationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ModificationImpl.java deleted file mode 100644 index 7efd6b20..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ModificationImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.Modification; - -/** - * An implementation of the model object 'Modification'. - * - * - * @generated - */ -public abstract class ModificationImpl extends CDOObjectImpl implements Modification { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected ModificationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.MODIFICATION; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - -} // ModificationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/NestedIntervalsDoubleValueProviderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/NestedIntervalsDoubleValueProviderImpl.java deleted file mode 100644 index e9c73b56..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/NestedIntervalsDoubleValueProviderImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider; - -/** - * An implementation of the model object ' Nested Intervals Double - * Value Provider'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsDoubleValueProviderImpl#getMinValue - * Min Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsDoubleValueProviderImpl#getMaxValue - * Max Value}
  • - *
- * - * @generated - */ -public class NestedIntervalsDoubleValueProviderImpl extends ValueProviderImpl - implements NestedIntervalsDoubleValueProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getMinValue() Min Value}' attribute. - * - * @see #getMinValue() - * @generated - * @ordered - */ - protected static final double MIN_VALUE_EDEFAULT = 0.0; - - /** - * The default value of the '{@link #getMaxValue() Max Value}' attribute. - * - * @see #getMaxValue() - * @generated - * @ordered - */ - protected static final double MAX_VALUE_EDEFAULT = 0.0; - - /** - * - * - * @generated - */ - protected NestedIntervalsDoubleValueProviderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER; - } - - /** - * - * - * @generated - */ - @Override - public double getMinValue() { - return (Double) this.eDynamicGet(ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMinValue(final double newMinValue) { - this.eDynamicSet(ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE, newMinValue); - } - - /** - * - * - * @generated - */ - @Override - public double getMaxValue() { - return (Double) this.eDynamicGet(ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMaxValue(final double newMaxValue) { - this.eDynamicSet(ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE, newMaxValue); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE: - return this.getMinValue(); - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE: - return this.getMaxValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE: - this.setMinValue((Double) newValue); - return; - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE: - this.setMaxValue((Double) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE: - this.setMinValue(MIN_VALUE_EDEFAULT); - return; - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE: - this.setMaxValue(MAX_VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MIN_VALUE: - return this.getMinValue() != MIN_VALUE_EDEFAULT; - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER__MAX_VALUE: - return this.getMaxValue() != MAX_VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // NestedIntervalsDoubleValueProviderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/NestedIntervalsLongValueProviderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/NestedIntervalsLongValueProviderImpl.java deleted file mode 100644 index f9c1ee6c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/NestedIntervalsLongValueProviderImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider; - -/** - * An implementation of the model object ' Nested Intervals Long - * Value Provider'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsLongValueProviderImpl#getMinValue - * Min Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.NestedIntervalsLongValueProviderImpl#getMaxValue - * Max Value}
  • - *
- * - * @generated - */ -public class NestedIntervalsLongValueProviderImpl extends ValueProviderImpl - implements NestedIntervalsLongValueProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getMinValue() Min Value}' attribute. - * - * @see #getMinValue() - * @generated - * @ordered - */ - protected static final long MIN_VALUE_EDEFAULT = 0L; - - /** - * The default value of the '{@link #getMaxValue() Max Value}' attribute. - * - * @see #getMaxValue() - * @generated - * @ordered - */ - protected static final long MAX_VALUE_EDEFAULT = 0L; - - /** - * - * - * @generated - */ - protected NestedIntervalsLongValueProviderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.NESTED_INTERVALS_LONG_VALUE_PROVIDER; - } - - /** - * - * - * @generated - */ - @Override - public long getMinValue() { - return (Long) this.eDynamicGet(ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMinValue(final long newMinValue) { - this.eDynamicSet(ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE, newMinValue); - } - - /** - * - * - * @generated - */ - @Override - public long getMaxValue() { - return (Long) this.eDynamicGet(ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMaxValue(final long newMaxValue) { - this.eDynamicSet(ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE, - ExperimentsPackage.Literals.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE, newMaxValue); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE: - return this.getMinValue(); - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE: - return this.getMaxValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE: - this.setMinValue((Long) newValue); - return; - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE: - this.setMaxValue((Long) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE: - this.setMinValue(MIN_VALUE_EDEFAULT); - return; - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE: - this.setMaxValue(MAX_VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MIN_VALUE: - return this.getMinValue() != MIN_VALUE_EDEFAULT; - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER__MAX_VALUE: - return this.getMaxValue() != MAX_VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // NestedIntervalsLongValueProviderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ObjectModificationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ObjectModificationImpl.java deleted file mode 100644 index bb63d8e0..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ObjectModificationImpl.java +++ /dev/null @@ -1,277 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ObjectModification; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -/** - * An implementation of the model object ' Object - * Modification'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl#getType - * Type}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl#getName - * Name}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl#getVariedObjectId - * Varied Object Id}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ObjectModificationImpl#getValue - * Value}
  • - *
- * - * @generated - */ -public class ObjectModificationImpl extends ModificationImpl implements ObjectModification { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The default value of the '{@link #getVariedObjectId() Varied Object Id}' attribute. - * - * - * @see #getVariedObjectId() - * @generated - * @ordered - */ - protected static final String VARIED_OBJECT_ID_EDEFAULT = null; - - /** - * The default value of the '{@link #getValue() Value}' attribute. - * - * @see #getValue() - * @generated - * @ordered - */ - protected static final long VALUE_EDEFAULT = 0L; - - /** - * - * - * @generated - */ - protected ObjectModificationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.OBJECT_MODIFICATION; - } - - /** - * - * - * @generated - */ - @Override - public VariationType getType() { - return (VariationType) this.eDynamicGet(ExperimentsPackage.OBJECT_MODIFICATION__TYPE, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__TYPE, true, true); - } - - /** - * - * - * @generated - */ - public VariationType basicGetType() { - return (VariationType) this.eDynamicGet(ExperimentsPackage.OBJECT_MODIFICATION__TYPE, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__TYPE, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setType(final VariationType newType) { - this.eDynamicSet(ExperimentsPackage.OBJECT_MODIFICATION__TYPE, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__TYPE, newType); - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return (String) this.eDynamicGet(ExperimentsPackage.OBJECT_MODIFICATION__NAME, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__NAME, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setName(final String newName) { - this.eDynamicSet(ExperimentsPackage.OBJECT_MODIFICATION__NAME, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__NAME, newName); - } - - /** - * - * - * @generated - */ - @Override - public String getVariedObjectId() { - return (String) this.eDynamicGet(ExperimentsPackage.OBJECT_MODIFICATION__VARIED_OBJECT_ID, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__VARIED_OBJECT_ID, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setVariedObjectId(final String newVariedObjectId) { - this.eDynamicSet(ExperimentsPackage.OBJECT_MODIFICATION__VARIED_OBJECT_ID, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__VARIED_OBJECT_ID, newVariedObjectId); - } - - /** - * - * - * @generated - */ - @Override - public long getValue() { - return (Long) this.eDynamicGet(ExperimentsPackage.OBJECT_MODIFICATION__VALUE, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__VALUE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setValue(final long newValue) { - this.eDynamicSet(ExperimentsPackage.OBJECT_MODIFICATION__VALUE, - ExperimentsPackage.Literals.OBJECT_MODIFICATION__VALUE, newValue); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.OBJECT_MODIFICATION__TYPE: - if (resolve) { - return this.getType(); - } - return this.basicGetType(); - case ExperimentsPackage.OBJECT_MODIFICATION__NAME: - return this.getName(); - case ExperimentsPackage.OBJECT_MODIFICATION__VARIED_OBJECT_ID: - return this.getVariedObjectId(); - case ExperimentsPackage.OBJECT_MODIFICATION__VALUE: - return this.getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.OBJECT_MODIFICATION__TYPE: - this.setType((VariationType) newValue); - return; - case ExperimentsPackage.OBJECT_MODIFICATION__NAME: - this.setName((String) newValue); - return; - case ExperimentsPackage.OBJECT_MODIFICATION__VARIED_OBJECT_ID: - this.setVariedObjectId((String) newValue); - return; - case ExperimentsPackage.OBJECT_MODIFICATION__VALUE: - this.setValue((Long) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.OBJECT_MODIFICATION__TYPE: - this.setType((VariationType) null); - return; - case ExperimentsPackage.OBJECT_MODIFICATION__NAME: - this.setName(NAME_EDEFAULT); - return; - case ExperimentsPackage.OBJECT_MODIFICATION__VARIED_OBJECT_ID: - this.setVariedObjectId(VARIED_OBJECT_ID_EDEFAULT); - return; - case ExperimentsPackage.OBJECT_MODIFICATION__VALUE: - this.setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.OBJECT_MODIFICATION__TYPE: - return this.basicGetType() != null; - case ExperimentsPackage.OBJECT_MODIFICATION__NAME: - return NAME_EDEFAULT == null ? this.getName() != null : !NAME_EDEFAULT.equals(this.getName()); - case ExperimentsPackage.OBJECT_MODIFICATION__VARIED_OBJECT_ID: - return VARIED_OBJECT_ID_EDEFAULT == null ? this.getVariedObjectId() != null - : !VARIED_OBJECT_ID_EDEFAULT.equals(this.getVariedObjectId()); - case ExperimentsPackage.OBJECT_MODIFICATION__VALUE: - return this.getValue() != VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // ObjectModificationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/OneFactorAtATimeImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/OneFactorAtATimeImpl.java deleted file mode 100644 index ae8096de..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/OneFactorAtATimeImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime; - -/** - * An implementation of the model object ' One Factor At - * ATime'. - * - * @generated - */ -public class OneFactorAtATimeImpl extends ExperimentDesignImpl implements OneFactorAtATime { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected OneFactorAtATimeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.ONE_FACTOR_AT_ATIME; - } - -} // OneFactorAtATimeImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/PlacketBurmanDesignImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/PlacketBurmanDesignImpl.java deleted file mode 100644 index d7ea2be3..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/PlacketBurmanDesignImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign; - -/** - * An implementation of the model object ' Placket Burman - * Design'. - * - * @generated - */ -public class PlacketBurmanDesignImpl extends CDOObjectImpl implements PlacketBurmanDesign { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected PlacketBurmanDesignImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.PLACKET_BURMAN_DESIGN; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - -} // PlacketBurmanDesignImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/PolynomialValueProviderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/PolynomialValueProviderImpl.java deleted file mode 100644 index 6f405940..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/PolynomialValueProviderImpl.java +++ /dev/null @@ -1,184 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider; - -/** - * An implementation of the model object ' Polynomial Value - * Provider'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.PolynomialValueProviderImpl#getExponent - * Exponent}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.PolynomialValueProviderImpl#getFactor - * Factor}
  • - *
- * - * @generated - */ -public class PolynomialValueProviderImpl extends ValueProviderImpl implements PolynomialValueProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getExponent() Exponent}' attribute. - * - * @see #getExponent() - * @generated - * @ordered - */ - protected static final double EXPONENT_EDEFAULT = 0.0; - - /** - * The default value of the '{@link #getFactor() Factor}' attribute. - * - * @see #getFactor() - * @generated - * @ordered - */ - protected static final double FACTOR_EDEFAULT = 0.0; - - /** - * - * - * @generated - */ - protected PolynomialValueProviderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.POLYNOMIAL_VALUE_PROVIDER; - } - - /** - * - * - * @generated - */ - @Override - public double getExponent() { - return (Double) this.eDynamicGet(ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__EXPONENT, - ExperimentsPackage.Literals.POLYNOMIAL_VALUE_PROVIDER__EXPONENT, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setExponent(final double newExponent) { - this.eDynamicSet(ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__EXPONENT, - ExperimentsPackage.Literals.POLYNOMIAL_VALUE_PROVIDER__EXPONENT, newExponent); - } - - /** - * - * - * @generated - */ - @Override - public double getFactor() { - return (Double) this.eDynamicGet(ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__FACTOR, - ExperimentsPackage.Literals.POLYNOMIAL_VALUE_PROVIDER__FACTOR, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setFactor(final double newFactor) { - this.eDynamicSet(ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__FACTOR, - ExperimentsPackage.Literals.POLYNOMIAL_VALUE_PROVIDER__FACTOR, newFactor); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__EXPONENT: - return this.getExponent(); - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__FACTOR: - return this.getFactor(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__EXPONENT: - this.setExponent((Double) newValue); - return; - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__FACTOR: - this.setFactor((Double) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__EXPONENT: - this.setExponent(EXPONENT_EDEFAULT); - return; - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__FACTOR: - this.setFactor(FACTOR_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__EXPONENT: - return this.getExponent() != EXPONENT_EDEFAULT; - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER__FACTOR: - return this.getFactor() != FACTOR_EDEFAULT; - } - return super.eIsSet(featureID); - } - -} // PolynomialValueProviderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ProfilingMeasurementImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ProfilingMeasurementImpl.java deleted file mode 100644 index f8cf7b4e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ProfilingMeasurementImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement; - -/** - * An implementation of the model object ' Profiling - * Measurement'. - * - * @generated - */ -public class ProfilingMeasurementImpl extends ResponseMeasurementImpl implements ProfilingMeasurement { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected ProfilingMeasurementImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.PROFILING_MEASUREMENT; - } - -} // ProfilingMeasurementImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ReconfigurationRulesFolderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ReconfigurationRulesFolderImpl.java deleted file mode 100644 index b377a81f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ReconfigurationRulesFolderImpl.java +++ /dev/null @@ -1,151 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder; - -/** - * An implementation of the model object ' Reconfiguration Rules - * Folder'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ReconfigurationRulesFolderImpl#getFolderUri - * Folder Uri}
  • - *
- * - * @generated - */ -public class ReconfigurationRulesFolderImpl extends CDOObjectImpl implements ReconfigurationRulesFolder { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getFolderUri() Folder Uri}' attribute. - * - * @see #getFolderUri() - * @generated - * @ordered - */ - protected static final String FOLDER_URI_EDEFAULT = null; - - /** - * - * - * @generated - */ - protected ReconfigurationRulesFolderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.RECONFIGURATION_RULES_FOLDER; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @Override - public String getFolderUri() { - return (String) this.eDynamicGet(ExperimentsPackage.RECONFIGURATION_RULES_FOLDER__FOLDER_URI, - ExperimentsPackage.Literals.RECONFIGURATION_RULES_FOLDER__FOLDER_URI, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setFolderUri(final String newFolderUri) { - this.eDynamicSet(ExperimentsPackage.RECONFIGURATION_RULES_FOLDER__FOLDER_URI, - ExperimentsPackage.Literals.RECONFIGURATION_RULES_FOLDER__FOLDER_URI, newFolderUri); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.RECONFIGURATION_RULES_FOLDER__FOLDER_URI: - return this.getFolderUri(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.RECONFIGURATION_RULES_FOLDER__FOLDER_URI: - this.setFolderUri((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.RECONFIGURATION_RULES_FOLDER__FOLDER_URI: - this.setFolderUri(FOLDER_URI_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.RECONFIGURATION_RULES_FOLDER__FOLDER_URI: - return FOLDER_URI_EDEFAULT == null ? this.getFolderUri() != null - : !FOLDER_URI_EDEFAULT.equals(this.getFolderUri()); - } - return super.eIsSet(featureID); - } - -} // ReconfigurationRulesFolderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ResponseMeasurementImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ResponseMeasurementImpl.java deleted file mode 100644 index 82889bbe..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ResponseMeasurementImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement; - -/** - * An implementation of the model object ' Response - * Measurement'. - * - * @generated - */ -public abstract class ResponseMeasurementImpl extends CDOObjectImpl implements ResponseMeasurement { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected ResponseMeasurementImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.RESPONSE_MEASUREMENT; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - -} // ResponseMeasurementImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SchedulingPolicy2DelayModificationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SchedulingPolicy2DelayModificationImpl.java deleted file mode 100644 index f6e70f5a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SchedulingPolicy2DelayModificationImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification; - -/** - * An implementation of the model object ' Scheduling Policy2 Delay - * Modification'. - * - * @generated - */ -public class SchedulingPolicy2DelayModificationImpl extends ModificationImpl - implements SchedulingPolicy2DelayModification { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected SchedulingPolicy2DelayModificationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.SCHEDULING_POLICY2_DELAY_MODIFICATION; - } - -} // SchedulingPolicy2DelayModificationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SetValueProviderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SetValueProviderImpl.java deleted file mode 100644 index 768ee9f7..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SetValueProviderImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.SetValueProvider; - -/** - * An implementation of the model object 'Set Value Provider - * '. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.SetValueProviderImpl#getValues - * Values}
  • - *
- * - * @generated - */ -public class SetValueProviderImpl extends ValueProviderImpl implements SetValueProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getValues() Values}' attribute. - * - * @see #getValues() - * @generated - * @ordered - */ - protected static final String VALUES_EDEFAULT = null; - - /** - * - * - * @generated - */ - protected SetValueProviderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.SET_VALUE_PROVIDER; - } - - /** - * - * - * @generated - */ - @Override - public String getValues() { - return (String) this.eDynamicGet(ExperimentsPackage.SET_VALUE_PROVIDER__VALUES, - ExperimentsPackage.Literals.SET_VALUE_PROVIDER__VALUES, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setValues(final String newValues) { - this.eDynamicSet(ExperimentsPackage.SET_VALUE_PROVIDER__VALUES, - ExperimentsPackage.Literals.SET_VALUE_PROVIDER__VALUES, newValues); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.SET_VALUE_PROVIDER__VALUES: - return this.getValues(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.SET_VALUE_PROVIDER__VALUES: - this.setValues((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.SET_VALUE_PROVIDER__VALUES: - this.setValues(VALUES_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.SET_VALUE_PROVIDER__VALUES: - return VALUES_EDEFAULT == null ? this.getValues() != null : !VALUES_EDEFAULT.equals(this.getValues()); - } - return super.eIsSet(featureID); - } - -} // SetValueProviderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SimulationDurationMeasurementImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SimulationDurationMeasurementImpl.java deleted file mode 100644 index 22c63a0a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/SimulationDurationMeasurementImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement; - -/** - * An implementation of the model object ' Simulation Duration - * Measurement'. - * - * @generated - */ -public class SimulationDurationMeasurementImpl extends ResponseMeasurementImpl - implements SimulationDurationMeasurement { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected SimulationDurationMeasurementImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.SIMULATION_DURATION_MEASUREMENT; - } - -} // SimulationDurationMeasurementImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ToolConfigurationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ToolConfigurationImpl.java deleted file mode 100644 index d74051df..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ToolConfigurationImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; - -/** - * An implementation of the model object 'Tool Configuration - * '. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.ToolConfigurationImpl#getName - * Name}
  • - *
- * - * @generated - */ -public abstract class ToolConfigurationImpl extends CDOObjectImpl implements ToolConfiguration { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * - * - * @generated - */ - protected ToolConfigurationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.TOOL_CONFIGURATION; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return (String) this.eDynamicGet(ExperimentsPackage.TOOL_CONFIGURATION__NAME, - ExperimentsPackage.Literals.TOOL_CONFIGURATION__NAME, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setName(final String newName) { - this.eDynamicSet(ExperimentsPackage.TOOL_CONFIGURATION__NAME, - ExperimentsPackage.Literals.TOOL_CONFIGURATION__NAME, newName); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.TOOL_CONFIGURATION__NAME: - return this.getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.TOOL_CONFIGURATION__NAME: - this.setName((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.TOOL_CONFIGURATION__NAME: - this.setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.TOOL_CONFIGURATION__NAME: - return NAME_EDEFAULT == null ? this.getName() != null : !NAME_EDEFAULT.equals(this.getName()); - } - return super.eIsSet(featureID); - } - -} // ToolConfigurationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ValueProviderImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ValueProviderImpl.java deleted file mode 100644 index 009b5e24..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/ValueProviderImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ValueProvider; - -/** - * An implementation of the model object 'Value Provider'. - * - * - * @generated - */ -public abstract class ValueProviderImpl extends CDOObjectImpl implements ValueProvider { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected ValueProviderImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.VALUE_PROVIDER; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - -} // ValueProviderImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/VariationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/VariationImpl.java deleted file mode 100644 index cafd7d43..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/impl/VariationImpl.java +++ /dev/null @@ -1,437 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.impl; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ValueProvider; -import org.palladiosimulator.experimentautomation.experiments.Variation; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -/** - * An implementation of the model object 'Variation'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl#getType - * Type}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl#getValueProvider - * Value Provider}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl#getMinValue - * Min Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl#getMaxValue - * Max Value}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl#getMaxVariations - * Max Variations}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl#getVariedObjectId - * Varied Object Id}
  • - *
  • {@link org.palladiosimulator.experimentautomation.experiments.impl.VariationImpl#getName - * Name}
  • - *
- * - * @generated - */ -public class VariationImpl extends CDOObjectImpl implements Variation { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getMinValue() Min Value}' attribute. - * - * @see #getMinValue() - * @generated - * @ordered - */ - protected static final double MIN_VALUE_EDEFAULT = 0.0; - - /** - * The default value of the '{@link #getMaxValue() Max Value}' attribute. - * - * @see #getMaxValue() - * @generated - * @ordered - */ - protected static final double MAX_VALUE_EDEFAULT = 0.0; - - /** - * The default value of the '{@link #getMaxVariations() Max Variations}' attribute. - * - * - * @see #getMaxVariations() - * @generated - * @ordered - */ - protected static final long MAX_VARIATIONS_EDEFAULT = 0L; - - /** - * The default value of the '{@link #getVariedObjectId() Varied Object Id}' attribute. - * - * - * @see #getVariedObjectId() - * @generated - * @ordered - */ - protected static final String VARIED_OBJECT_ID_EDEFAULT = null; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * - * - * @generated - */ - protected VariationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ExperimentsPackage.Literals.VARIATION; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @Override - public VariationType getType() { - return (VariationType) this.eDynamicGet(ExperimentsPackage.VARIATION__TYPE, - ExperimentsPackage.Literals.VARIATION__TYPE, true, true); - } - - /** - * - * - * @generated - */ - public VariationType basicGetType() { - return (VariationType) this.eDynamicGet(ExperimentsPackage.VARIATION__TYPE, - ExperimentsPackage.Literals.VARIATION__TYPE, false, true); - } - - /** - * - * - * @generated - */ - @Override - public void setType(final VariationType newType) { - this.eDynamicSet(ExperimentsPackage.VARIATION__TYPE, ExperimentsPackage.Literals.VARIATION__TYPE, newType); - } - - /** - * - * - * @generated - */ - @Override - public ValueProvider getValueProvider() { - return (ValueProvider) this.eDynamicGet(ExperimentsPackage.VARIATION__VALUE_PROVIDER, - ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, true, true); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetValueProvider(final ValueProvider newValueProvider, NotificationChain msgs) { - msgs = this.eDynamicInverseAdd((InternalEObject) newValueProvider, ExperimentsPackage.VARIATION__VALUE_PROVIDER, - msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setValueProvider(final ValueProvider newValueProvider) { - this.eDynamicSet(ExperimentsPackage.VARIATION__VALUE_PROVIDER, - ExperimentsPackage.Literals.VARIATION__VALUE_PROVIDER, newValueProvider); - } - - /** - * - * - * @generated - */ - @Override - public double getMinValue() { - return (Double) this.eDynamicGet(ExperimentsPackage.VARIATION__MIN_VALUE, - ExperimentsPackage.Literals.VARIATION__MIN_VALUE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMinValue(final double newMinValue) { - this.eDynamicSet(ExperimentsPackage.VARIATION__MIN_VALUE, ExperimentsPackage.Literals.VARIATION__MIN_VALUE, - newMinValue); - } - - /** - * - * - * @generated - */ - @Override - public double getMaxValue() { - return (Double) this.eDynamicGet(ExperimentsPackage.VARIATION__MAX_VALUE, - ExperimentsPackage.Literals.VARIATION__MAX_VALUE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMaxValue(final double newMaxValue) { - this.eDynamicSet(ExperimentsPackage.VARIATION__MAX_VALUE, ExperimentsPackage.Literals.VARIATION__MAX_VALUE, - newMaxValue); - } - - /** - * - * - * @generated - */ - @Override - public long getMaxVariations() { - return (Long) this.eDynamicGet(ExperimentsPackage.VARIATION__MAX_VARIATIONS, - ExperimentsPackage.Literals.VARIATION__MAX_VARIATIONS, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setMaxVariations(final long newMaxVariations) { - this.eDynamicSet(ExperimentsPackage.VARIATION__MAX_VARIATIONS, - ExperimentsPackage.Literals.VARIATION__MAX_VARIATIONS, newMaxVariations); - } - - /** - * - * - * @generated - */ - @Override - public String getVariedObjectId() { - return (String) this.eDynamicGet(ExperimentsPackage.VARIATION__VARIED_OBJECT_ID, - ExperimentsPackage.Literals.VARIATION__VARIED_OBJECT_ID, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setVariedObjectId(final String newVariedObjectId) { - this.eDynamicSet(ExperimentsPackage.VARIATION__VARIED_OBJECT_ID, - ExperimentsPackage.Literals.VARIATION__VARIED_OBJECT_ID, newVariedObjectId); - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return (String) this.eDynamicGet(ExperimentsPackage.VARIATION__NAME, - ExperimentsPackage.Literals.VARIATION__NAME, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setName(final String newName) { - this.eDynamicSet(ExperimentsPackage.VARIATION__NAME, ExperimentsPackage.Literals.VARIATION__NAME, newName); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, - final NotificationChain msgs) { - switch (featureID) { - case ExperimentsPackage.VARIATION__VALUE_PROVIDER: - return this.basicSetValueProvider(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case ExperimentsPackage.VARIATION__TYPE: - if (resolve) { - return this.getType(); - } - return this.basicGetType(); - case ExperimentsPackage.VARIATION__VALUE_PROVIDER: - return this.getValueProvider(); - case ExperimentsPackage.VARIATION__MIN_VALUE: - return this.getMinValue(); - case ExperimentsPackage.VARIATION__MAX_VALUE: - return this.getMaxValue(); - case ExperimentsPackage.VARIATION__MAX_VARIATIONS: - return this.getMaxVariations(); - case ExperimentsPackage.VARIATION__VARIED_OBJECT_ID: - return this.getVariedObjectId(); - case ExperimentsPackage.VARIATION__NAME: - return this.getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case ExperimentsPackage.VARIATION__TYPE: - this.setType((VariationType) newValue); - return; - case ExperimentsPackage.VARIATION__VALUE_PROVIDER: - this.setValueProvider((ValueProvider) newValue); - return; - case ExperimentsPackage.VARIATION__MIN_VALUE: - this.setMinValue((Double) newValue); - return; - case ExperimentsPackage.VARIATION__MAX_VALUE: - this.setMaxValue((Double) newValue); - return; - case ExperimentsPackage.VARIATION__MAX_VARIATIONS: - this.setMaxVariations((Long) newValue); - return; - case ExperimentsPackage.VARIATION__VARIED_OBJECT_ID: - this.setVariedObjectId((String) newValue); - return; - case ExperimentsPackage.VARIATION__NAME: - this.setName((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case ExperimentsPackage.VARIATION__TYPE: - this.setType((VariationType) null); - return; - case ExperimentsPackage.VARIATION__VALUE_PROVIDER: - this.setValueProvider((ValueProvider) null); - return; - case ExperimentsPackage.VARIATION__MIN_VALUE: - this.setMinValue(MIN_VALUE_EDEFAULT); - return; - case ExperimentsPackage.VARIATION__MAX_VALUE: - this.setMaxValue(MAX_VALUE_EDEFAULT); - return; - case ExperimentsPackage.VARIATION__MAX_VARIATIONS: - this.setMaxVariations(MAX_VARIATIONS_EDEFAULT); - return; - case ExperimentsPackage.VARIATION__VARIED_OBJECT_ID: - this.setVariedObjectId(VARIED_OBJECT_ID_EDEFAULT); - return; - case ExperimentsPackage.VARIATION__NAME: - this.setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case ExperimentsPackage.VARIATION__TYPE: - return this.basicGetType() != null; - case ExperimentsPackage.VARIATION__VALUE_PROVIDER: - return this.getValueProvider() != null; - case ExperimentsPackage.VARIATION__MIN_VALUE: - return this.getMinValue() != MIN_VALUE_EDEFAULT; - case ExperimentsPackage.VARIATION__MAX_VALUE: - return this.getMaxValue() != MAX_VALUE_EDEFAULT; - case ExperimentsPackage.VARIATION__MAX_VARIATIONS: - return this.getMaxVariations() != MAX_VARIATIONS_EDEFAULT; - case ExperimentsPackage.VARIATION__VARIED_OBJECT_ID: - return VARIED_OBJECT_ID_EDEFAULT == null ? this.getVariedObjectId() != null - : !VARIED_OBJECT_ID_EDEFAULT.equals(this.getVariedObjectId()); - case ExperimentsPackage.VARIATION__NAME: - return NAME_EDEFAULT == null ? this.getName() != null : !NAME_EDEFAULT.equals(this.getName()); - } - return super.eIsSet(featureID); - } - -} // VariationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsAdapterFactory.java deleted file mode 100644 index 1145e444..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsAdapterFactory.java +++ /dev/null @@ -1,626 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentDesign; -import org.palladiosimulator.experimentautomation.experiments.ExperimentRepository; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.InitialModel; -import org.palladiosimulator.experimentautomation.experiments.JMXMeasurement; -import org.palladiosimulator.experimentautomation.experiments.LinearValueProvider; -import org.palladiosimulator.experimentautomation.experiments.Modification; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ObjectModification; -import org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime; -import org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign; -import org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder; -import org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement; -import org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification; -import org.palladiosimulator.experimentautomation.experiments.SetValueProvider; -import org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; -import org.palladiosimulator.experimentautomation.experiments.ValueProvider; -import org.palladiosimulator.experimentautomation.experiments.Variation; - -/** - * The Adapter Factory for the model. It provides an adapter - * createXXX method for each class of the model. - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage - * @generated - */ -public class ExperimentsAdapterFactory extends AdapterFactoryImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The cached model package. - * - * @generated - */ - protected static ExperimentsPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * @generated - */ - public ExperimentsAdapterFactory() { - if (modelPackage == null) { - modelPackage = ExperimentsPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package - * or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(final Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass() - .getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * @generated - */ - protected ExperimentsSwitch modelSwitch = new ExperimentsSwitch() { - @Override - public Adapter caseExperimentRepository(final ExperimentRepository object) { - return ExperimentsAdapterFactory.this.createExperimentRepositoryAdapter(); - } - - @Override - public Adapter caseExperiment(final Experiment object) { - return ExperimentsAdapterFactory.this.createExperimentAdapter(); - } - - @Override - public Adapter caseVariation(final Variation object) { - return ExperimentsAdapterFactory.this.createVariationAdapter(); - } - - @Override - public Adapter caseValueProvider(final ValueProvider object) { - return ExperimentsAdapterFactory.this.createValueProviderAdapter(); - } - - @Override - public Adapter caseToolConfiguration(final ToolConfiguration object) { - return ExperimentsAdapterFactory.this.createToolConfigurationAdapter(); - } - - @Override - public Adapter caseExperimentDesign(final ExperimentDesign object) { - return ExperimentsAdapterFactory.this.createExperimentDesignAdapter(); - } - - @Override - public Adapter caseResponseMeasurement(final ResponseMeasurement object) { - return ExperimentsAdapterFactory.this.createResponseMeasurementAdapter(); - } - - @Override - public Adapter casePolynomialValueProvider(final PolynomialValueProvider object) { - return ExperimentsAdapterFactory.this.createPolynomialValueProviderAdapter(); - } - - @Override - public Adapter caseExponentialValueProvider(final ExponentialValueProvider object) { - return ExperimentsAdapterFactory.this.createExponentialValueProviderAdapter(); - } - - @Override - public Adapter caseSetValueProvider(final SetValueProvider object) { - return ExperimentsAdapterFactory.this.createSetValueProviderAdapter(); - } - - @Override - public Adapter casePlacketBurmanDesign(final PlacketBurmanDesign object) { - return ExperimentsAdapterFactory.this.createPlacketBurmanDesignAdapter(); - } - - @Override - public Adapter caseFullFactorialDesign(final FullFactorialDesign object) { - return ExperimentsAdapterFactory.this.createFullFactorialDesignAdapter(); - } - - @Override - public Adapter caseFractionalFactorialDesign(final FractionalFactorialDesign object) { - return ExperimentsAdapterFactory.this.createFractionalFactorialDesignAdapter(); - } - - @Override - public Adapter caseOneFactorAtATime(final OneFactorAtATime object) { - return ExperimentsAdapterFactory.this.createOneFactorAtATimeAdapter(); - } - - @Override - public Adapter caseSimulationDurationMeasurement(final SimulationDurationMeasurement object) { - return ExperimentsAdapterFactory.this.createSimulationDurationMeasurementAdapter(); - } - - @Override - public Adapter caseProfilingMeasurement(final ProfilingMeasurement object) { - return ExperimentsAdapterFactory.this.createProfilingMeasurementAdapter(); - } - - @Override - public Adapter caseJMXMeasurement(final JMXMeasurement object) { - return ExperimentsAdapterFactory.this.createJMXMeasurementAdapter(); - } - - @Override - public Adapter caseLinearValueProvider(final LinearValueProvider object) { - return ExperimentsAdapterFactory.this.createLinearValueProviderAdapter(); - } - - @Override - public Adapter caseObjectModification(final ObjectModification object) { - return ExperimentsAdapterFactory.this.createObjectModificationAdapter(); - } - - @Override - public Adapter caseInitialModel(final InitialModel object) { - return ExperimentsAdapterFactory.this.createInitialModelAdapter(); - } - - @Override - public Adapter caseReconfigurationRulesFolder(final ReconfigurationRulesFolder object) { - return ExperimentsAdapterFactory.this.createReconfigurationRulesFolderAdapter(); - } - - @Override - public Adapter caseNestedIntervalsDoubleValueProvider(final NestedIntervalsDoubleValueProvider object) { - return ExperimentsAdapterFactory.this.createNestedIntervalsDoubleValueProviderAdapter(); - } - - @Override - public Adapter caseNestedIntervalsLongValueProvider(final NestedIntervalsLongValueProvider object) { - return ExperimentsAdapterFactory.this.createNestedIntervalsLongValueProviderAdapter(); - } - - @Override - public Adapter caseModification(final Modification object) { - return ExperimentsAdapterFactory.this.createModificationAdapter(); - } - - @Override - public Adapter caseSchedulingPolicy2DelayModification(final SchedulingPolicy2DelayModification object) { - return ExperimentsAdapterFactory.this.createSchedulingPolicy2DelayModificationAdapter(); - } - - @Override - public Adapter defaultCase(final EObject object) { - return ExperimentsAdapterFactory.this.createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(final Notifier target) { - return this.modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ExperimentRepository - * Experiment Repository}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentRepository - * @generated - */ - public Adapter createExperimentRepositoryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.Experiment - * Experiment}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.Experiment - * @generated - */ - public Adapter createExperimentAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.Variation - * Variation}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.Variation - * @generated - */ - public Adapter createVariationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ValueProvider Value - * Provider}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ValueProvider - * @generated - */ - public Adapter createValueProviderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ToolConfiguration Tool - * Configuration}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ToolConfiguration - * @generated - */ - public Adapter createToolConfigurationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ExperimentDesign - * Experiment Design}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentDesign - * @generated - */ - public Adapter createExperimentDesignAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement - * Response Measurement}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement - * @generated - */ - public Adapter createResponseMeasurementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider - * Polynomial Value Provider}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider - * @generated - */ - public Adapter createPolynomialValueProviderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider - * Exponential Value Provider}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider - * @generated - */ - public Adapter createExponentialValueProviderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.SetValueProvider Set Value - * Provider}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.SetValueProvider - * @generated - */ - public Adapter createSetValueProviderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign - * Placket Burman Design}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign - * @generated - */ - public Adapter createPlacketBurmanDesignAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign Full - * Factorial Design}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign - * @generated - */ - public Adapter createFullFactorialDesignAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign - * Fractional Factorial Design}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign - * @generated - */ - public Adapter createFractionalFactorialDesignAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime One - * Factor At ATime}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime - * @generated - */ - public Adapter createOneFactorAtATimeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement - * Simulation Duration Measurement}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement - * @generated - */ - public Adapter createSimulationDurationMeasurementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement - * Profiling Measurement}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement - * @generated - */ - public Adapter createProfilingMeasurementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.JMXMeasurement JMX - * Measurement}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.JMXMeasurement - * @generated - */ - public Adapter createJMXMeasurementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.LinearValueProvider Linear - * Value Provider}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.LinearValueProvider - * @generated - */ - public Adapter createLinearValueProviderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ObjectModification Object - * Modification}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ObjectModification - * @generated - */ - public Adapter createObjectModificationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.InitialModel Initial - * Model}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.InitialModel - * @generated - */ - public Adapter createInitialModelAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder - * Reconfiguration Rules Folder}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder - * @generated - */ - public Adapter createReconfigurationRulesFolderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider - * Nested Intervals Double Value Provider}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider - * @generated - */ - public Adapter createNestedIntervalsDoubleValueProviderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider - * Nested Intervals Long Value Provider}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider - * @generated - */ - public Adapter createNestedIntervalsLongValueProviderAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.Modification - * Modification}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.Modification - * @generated - */ - public Adapter createModificationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification - * Scheduling Policy2 Delay Modification}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification - * @generated - */ - public Adapter createSchedulingPolicy2DelayModificationAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. This default - * implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // ExperimentsAdapterFactory diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsResourceFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsResourceFactoryImpl.java deleted file mode 100644 index 032aeef1..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsResourceFactoryImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * The Resource Factory associated with the package. - * - * @see org.palladiosimulator.experimentautomation.experiments.util.ExperimentsResourceImpl - * @generated - */ -public class ExperimentsResourceFactoryImpl extends ResourceFactoryImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource factory. - * - * @generated - */ - public ExperimentsResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * @generated - */ - @Override - public Resource createResource(final URI uri) { - final XMLResource result = new ExperimentsResourceImpl(uri); - return result; - } - -} // ExperimentsResourceFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsResourceImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsResourceImpl.java deleted file mode 100644 index 82d247ec..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsResourceImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * The Resource associated with the package. - * - * @see org.palladiosimulator.experimentautomation.experiments.util.ExperimentsResourceFactoryImpl - * @generated - */ -public class ExperimentsResourceImpl extends XMLResourceImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource. - * - * @param uri - * the URI of the new resource. - * @generated - */ - public ExperimentsResourceImpl(final URI uri) { - super(uri); - } - -} // ExperimentsResourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsSwitch.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsSwitch.java deleted file mode 100644 index 14b87dce..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsSwitch.java +++ /dev/null @@ -1,748 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.palladiosimulator.experimentautomation.experiments.Experiment; -import org.palladiosimulator.experimentautomation.experiments.ExperimentDesign; -import org.palladiosimulator.experimentautomation.experiments.ExperimentRepository; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.ExponentialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.FractionalFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.FullFactorialDesign; -import org.palladiosimulator.experimentautomation.experiments.InitialModel; -import org.palladiosimulator.experimentautomation.experiments.JMXMeasurement; -import org.palladiosimulator.experimentautomation.experiments.LinearValueProvider; -import org.palladiosimulator.experimentautomation.experiments.Modification; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsDoubleValueProvider; -import org.palladiosimulator.experimentautomation.experiments.NestedIntervalsLongValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ObjectModification; -import org.palladiosimulator.experimentautomation.experiments.OneFactorAtATime; -import org.palladiosimulator.experimentautomation.experiments.PlacketBurmanDesign; -import org.palladiosimulator.experimentautomation.experiments.PolynomialValueProvider; -import org.palladiosimulator.experimentautomation.experiments.ProfilingMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ReconfigurationRulesFolder; -import org.palladiosimulator.experimentautomation.experiments.ResponseMeasurement; -import org.palladiosimulator.experimentautomation.experiments.SchedulingPolicy2DelayModification; -import org.palladiosimulator.experimentautomation.experiments.SetValueProvider; -import org.palladiosimulator.experimentautomation.experiments.SimulationDurationMeasurement; -import org.palladiosimulator.experimentautomation.experiments.ToolConfiguration; -import org.palladiosimulator.experimentautomation.experiments.ValueProvider; -import org.palladiosimulator.experimentautomation.experiments.Variation; - -/** - * The Switch for the model's inheritance hierarchy. It supports the - * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for - * each class of the model, starting with the actual class of the object and proceeding up the - * inheritance hierarchy until a non-null result is returned, which is the result of the switch. - * - * - * @see org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage - * @generated - */ -public class ExperimentsSwitch extends Switch { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The cached model package - * - * @generated - */ - protected static ExperimentsPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * @generated - */ - public ExperimentsSwitch() { - if (modelPackage == null) { - modelPackage = ExperimentsPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * @param ePackage - * the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(final EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; - * it yields that result. - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(final int classifierID, final EObject theEObject) { - switch (classifierID) { - case ExperimentsPackage.EXPERIMENT_REPOSITORY: { - final ExperimentRepository experimentRepository = (ExperimentRepository) theEObject; - T result = this.caseExperimentRepository(experimentRepository); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.EXPERIMENT: { - final Experiment experiment = (Experiment) theEObject; - T result = this.caseExperiment(experiment); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.VARIATION: { - final Variation variation = (Variation) theEObject; - T result = this.caseVariation(variation); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.VALUE_PROVIDER: { - final ValueProvider valueProvider = (ValueProvider) theEObject; - T result = this.caseValueProvider(valueProvider); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.TOOL_CONFIGURATION: { - final ToolConfiguration toolConfiguration = (ToolConfiguration) theEObject; - T result = this.caseToolConfiguration(toolConfiguration); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.EXPERIMENT_DESIGN: { - final ExperimentDesign experimentDesign = (ExperimentDesign) theEObject; - T result = this.caseExperimentDesign(experimentDesign); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.RESPONSE_MEASUREMENT: { - final ResponseMeasurement responseMeasurement = (ResponseMeasurement) theEObject; - T result = this.caseResponseMeasurement(responseMeasurement); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.POLYNOMIAL_VALUE_PROVIDER: { - final PolynomialValueProvider polynomialValueProvider = (PolynomialValueProvider) theEObject; - T result = this.casePolynomialValueProvider(polynomialValueProvider); - if (result == null) { - result = this.caseValueProvider(polynomialValueProvider); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.EXPONENTIAL_VALUE_PROVIDER: { - final ExponentialValueProvider exponentialValueProvider = (ExponentialValueProvider) theEObject; - T result = this.caseExponentialValueProvider(exponentialValueProvider); - if (result == null) { - result = this.caseValueProvider(exponentialValueProvider); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.SET_VALUE_PROVIDER: { - final SetValueProvider setValueProvider = (SetValueProvider) theEObject; - T result = this.caseSetValueProvider(setValueProvider); - if (result == null) { - result = this.caseValueProvider(setValueProvider); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.PLACKET_BURMAN_DESIGN: { - final PlacketBurmanDesign placketBurmanDesign = (PlacketBurmanDesign) theEObject; - T result = this.casePlacketBurmanDesign(placketBurmanDesign); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.FULL_FACTORIAL_DESIGN: { - final FullFactorialDesign fullFactorialDesign = (FullFactorialDesign) theEObject; - T result = this.caseFullFactorialDesign(fullFactorialDesign); - if (result == null) { - result = this.caseExperimentDesign(fullFactorialDesign); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.FRACTIONAL_FACTORIAL_DESIGN: { - final FractionalFactorialDesign fractionalFactorialDesign = (FractionalFactorialDesign) theEObject; - T result = this.caseFractionalFactorialDesign(fractionalFactorialDesign); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.ONE_FACTOR_AT_ATIME: { - final OneFactorAtATime oneFactorAtATime = (OneFactorAtATime) theEObject; - T result = this.caseOneFactorAtATime(oneFactorAtATime); - if (result == null) { - result = this.caseExperimentDesign(oneFactorAtATime); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.SIMULATION_DURATION_MEASUREMENT: { - final SimulationDurationMeasurement simulationDurationMeasurement = (SimulationDurationMeasurement) theEObject; - T result = this.caseSimulationDurationMeasurement(simulationDurationMeasurement); - if (result == null) { - result = this.caseResponseMeasurement(simulationDurationMeasurement); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.PROFILING_MEASUREMENT: { - final ProfilingMeasurement profilingMeasurement = (ProfilingMeasurement) theEObject; - T result = this.caseProfilingMeasurement(profilingMeasurement); - if (result == null) { - result = this.caseResponseMeasurement(profilingMeasurement); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.JMX_MEASUREMENT: { - final JMXMeasurement jmxMeasurement = (JMXMeasurement) theEObject; - T result = this.caseJMXMeasurement(jmxMeasurement); - if (result == null) { - result = this.caseResponseMeasurement(jmxMeasurement); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.LINEAR_VALUE_PROVIDER: { - final LinearValueProvider linearValueProvider = (LinearValueProvider) theEObject; - T result = this.caseLinearValueProvider(linearValueProvider); - if (result == null) { - result = this.caseValueProvider(linearValueProvider); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.OBJECT_MODIFICATION: { - final ObjectModification objectModification = (ObjectModification) theEObject; - T result = this.caseObjectModification(objectModification); - if (result == null) { - result = this.caseModification(objectModification); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.INITIAL_MODEL: { - final InitialModel initialModel = (InitialModel) theEObject; - T result = this.caseInitialModel(initialModel); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.RECONFIGURATION_RULES_FOLDER: { - final ReconfigurationRulesFolder reconfigurationRulesFolder = (ReconfigurationRulesFolder) theEObject; - T result = this.caseReconfigurationRulesFolder(reconfigurationRulesFolder); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.NESTED_INTERVALS_DOUBLE_VALUE_PROVIDER: { - final NestedIntervalsDoubleValueProvider nestedIntervalsDoubleValueProvider = (NestedIntervalsDoubleValueProvider) theEObject; - T result = this.caseNestedIntervalsDoubleValueProvider(nestedIntervalsDoubleValueProvider); - if (result == null) { - result = this.caseValueProvider(nestedIntervalsDoubleValueProvider); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.NESTED_INTERVALS_LONG_VALUE_PROVIDER: { - final NestedIntervalsLongValueProvider nestedIntervalsLongValueProvider = (NestedIntervalsLongValueProvider) theEObject; - T result = this.caseNestedIntervalsLongValueProvider(nestedIntervalsLongValueProvider); - if (result == null) { - result = this.caseValueProvider(nestedIntervalsLongValueProvider); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.MODIFICATION: { - final Modification modification = (Modification) theEObject; - T result = this.caseModification(modification); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case ExperimentsPackage.SCHEDULING_POLICY2_DELAY_MODIFICATION: { - final SchedulingPolicy2DelayModification schedulingPolicy2DelayModification = (SchedulingPolicy2DelayModification) theEObject; - T result = this.caseSchedulingPolicy2DelayModification(schedulingPolicy2DelayModification); - if (result == null) { - result = this.caseModification(schedulingPolicy2DelayModification); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - default: - return this.defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Experiment - * Repository'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Experiment - * Repository'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseExperimentRepository(final ExperimentRepository object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Experiment'. This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Experiment'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseExperiment(final Experiment object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Variation'. This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Variation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseVariation(final Variation object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Value Provider'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Value Provider'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseValueProvider(final ValueProvider object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Tool - * Configuration'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Tool - * Configuration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseToolConfiguration(final ToolConfiguration object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Experiment Design'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Experiment Design'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseExperimentDesign(final ExperimentDesign object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Response - * Measurement'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Response - * Measurement'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseResponseMeasurement(final ResponseMeasurement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Polynomial Value - * Provider'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Polynomial Value - * Provider'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T casePolynomialValueProvider(final PolynomialValueProvider object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Exponential Value - * Provider'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Exponential Value - * Provider'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseExponentialValueProvider(final ExponentialValueProvider object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Set Value - * Provider'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Set Value - * Provider'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSetValueProvider(final SetValueProvider object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Placket Burman - * Design'. This implementation returns null; returning a non-null - * result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Placket Burman - * Design'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T casePlacketBurmanDesign(final PlacketBurmanDesign object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Full Factorial - * Design'. This implementation returns null; returning a non-null - * result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Full Factorial - * Design'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFullFactorialDesign(final FullFactorialDesign object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Fractional Factorial - * Design'. This implementation returns null; returning a non-null - * result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Fractional Factorial - * Design'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFractionalFactorialDesign(final FractionalFactorialDesign object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'One Factor At - * ATime'. This implementation returns null; returning a non-null - * result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'One Factor At - * ATime'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOneFactorAtATime(final OneFactorAtATime object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Simulation Duration - * Measurement'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Simulation Duration - * Measurement'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSimulationDurationMeasurement(final SimulationDurationMeasurement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Profiling - * Measurement'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Profiling - * Measurement'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProfilingMeasurement(final ProfilingMeasurement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'JMX Measurement'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'JMX Measurement'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseJMXMeasurement(final JMXMeasurement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Linear Value - * Provider'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Linear Value - * Provider'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseLinearValueProvider(final LinearValueProvider object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Object - * Modification'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Object - * Modification'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseObjectModification(final ObjectModification object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Initial Model'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Initial Model'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInitialModel(final InitialModel object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Reconfiguration Rules - * Folder'. This implementation returns null; returning a non-null - * result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Reconfiguration Rules - * Folder'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseReconfigurationRulesFolder(final ReconfigurationRulesFolder object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Nested Intervals Double - * Value Provider'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Nested Intervals Double - * Value Provider'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNestedIntervalsDoubleValueProvider(final NestedIntervalsDoubleValueProvider object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Nested Intervals Long - * Value Provider'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Nested Intervals Long - * Value Provider'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNestedIntervalsLongValueProvider(final NestedIntervalsLongValueProvider object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Modification'. This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Modification'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseModification(final Modification object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Scheduling Policy2 Delay - * Modification'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Scheduling Policy2 Delay - * Modification'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSchedulingPolicy2DelayModification(final SchedulingPolicy2DelayModification object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will - * terminate the switch, but this is the last case anyway. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(final EObject object) { - return null; - } - -} // ExperimentsSwitch diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsXMLProcessor.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsXMLProcessor.java deleted file mode 100644 index a9b135fc..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/experiments/util/ExperimentsXMLProcessor.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.experiments.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * @generated - */ -public class ExperimentsXMLProcessor extends XMLProcessor { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Public constructor to instantiate the helper. - * - * @generated - */ - public ExperimentsXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - ExperimentsPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the ExperimentsResourceFactoryImpl factory. - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (this.registrations == null) { - super.getRegistrations(); - this.registrations.put(XML_EXTENSION, new ExperimentsResourceFactoryImpl()); - this.registrations.put(STAR_EXTENSION, new ExperimentsResourceFactoryImpl()); - } - return this.registrations; - } - -} // ExperimentsXMLProcessor diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/util/ExperimentAutomationResourceFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/util/ExperimentAutomationResourceFactoryImpl.java deleted file mode 100644 index 4b227801..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/util/ExperimentAutomationResourceFactoryImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * The Resource Factory associated with the package. - * - * @see org.palladiosimulator.experimentautomation.util.ExperimentAutomationResourceImpl - * @generated - */ -public class ExperimentAutomationResourceFactoryImpl extends ResourceFactoryImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource factory. - * - * @generated - */ - public ExperimentAutomationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * @generated - */ - @Override - public Resource createResource(final URI uri) { - final XMLResource result = new ExperimentAutomationResourceImpl(uri); - return result; - } - -} // ExperimentAutomationResourceFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/util/ExperimentAutomationResourceImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/util/ExperimentAutomationResourceImpl.java deleted file mode 100644 index 6ad47ceb..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/util/ExperimentAutomationResourceImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * The Resource associated with the package. - * - * @see org.palladiosimulator.experimentautomation.util.ExperimentAutomationResourceFactoryImpl - * @generated - */ -public class ExperimentAutomationResourceImpl extends XMLResourceImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource. - * - * @param uri - * the URI of the new resource. - * @generated - */ - public ExperimentAutomationResourceImpl(final URI uri) { - super(uri); - } - -} // ExperimentAutomationResourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/StructuralVariation.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/StructuralVariation.java deleted file mode 100644 index 83f37926..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/StructuralVariation.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation; - -/** - * A representation of the model object ' Structural - * Variation'. - * - * - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getStructuralVariation() - * @model - * @generated - */ -public interface StructuralVariation extends VariationType { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // StructuralVariation diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/ValueVariation.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/ValueVariation.java deleted file mode 100644 index 361073ab..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/ValueVariation.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation; - -/** - * A representation of the model object 'Value Variation'. - * - * - * - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getValueVariation() - * @model - * @generated - */ -public interface ValueVariation extends VariationType { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; -} // ValueVariation diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationFactory.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationFactory.java deleted file mode 100644 index 08a5f769..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationFactory.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation; - -import org.eclipse.emf.ecore.EFactory; - -/** - * The Factory for the model. It provides a create method for each - * non-abstract class of the model. - * - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage - * @generated - */ -public interface VariationFactory extends EFactory { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The singleton instance of the factory. - * - * @generated - */ - VariationFactory eINSTANCE = org.palladiosimulator.experimentautomation.variation.impl.VariationFactoryImpl.init(); - - /** - * Returns a new object of class 'Value Variation'. - * - * @return a new object of class 'Value Variation'. - * @generated - */ - ValueVariation createValueVariation(); - - /** - * Returns a new object of class 'Structural Variation'. - * - * @return a new object of class 'Structural Variation'. - * @generated - */ - StructuralVariation createStructuralVariation(); - - /** - * Returns a new object of class 'Repository'. - * - * @return a new object of class 'Repository'. - * @generated - */ - VariationRepository createVariationRepository(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - VariationPackage getVariationPackage(); - -} // VariationFactory diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationPackage.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationPackage.java deleted file mode 100644 index a9f97235..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationPackage.java +++ /dev/null @@ -1,454 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import de.uka.ipd.sdq.identifier.IdentifierPackage; - -/** - * The Package for the model. It contains accessors for the meta - * objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @see org.palladiosimulator.experimentautomation.variation.VariationFactory - * @model kind="package" - * @generated - */ -public interface VariationPackage extends EPackage { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The package name. - * - * @generated - */ - String eNAME = "variation"; - - /** - * The package namespace URI. - * - * @generated - */ - String eNS_URI = "http://palladiosimulator.org/ExperimentAutomation/Variation/1.0"; - - /** - * The package namespace name. - * - * @generated - */ - String eNS_PREFIX = "ExperimentAutomation.Variation"; - - /** - * The singleton instance of the package. - * - * @generated - */ - VariationPackage eINSTANCE = org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl.init(); - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.VariationTypeImpl - * Type}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationTypeImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getVariationType() - * @generated - */ - int VARIATION_TYPE = 0; - - /** - * The feature id for the 'Id' attribute. - * - * @generated - * @ordered - */ - int VARIATION_TYPE__ID = IdentifierPackage.IDENTIFIER__ID; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int VARIATION_TYPE__NAME = IdentifierPackage.IDENTIFIER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Strategy Class' attribute. - * - * - * @generated - * @ordered - */ - int VARIATION_TYPE__STRATEGY_CLASS = IdentifierPackage.IDENTIFIER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Varied Entity Interface' attribute. - * - * @generated - * @ordered - */ - int VARIATION_TYPE__VARIED_ENTITY_INTERFACE = IdentifierPackage.IDENTIFIER_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Type' class. - * - * @generated - * @ordered - */ - int VARIATION_TYPE_FEATURE_COUNT = IdentifierPackage.IDENTIFIER_FEATURE_COUNT + 3; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.ValueVariationImpl - * Value Variation}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.ValueVariationImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getValueVariation() - * @generated - */ - int VALUE_VARIATION = 1; - - /** - * The feature id for the 'Id' attribute. - * - * @generated - * @ordered - */ - int VALUE_VARIATION__ID = VARIATION_TYPE__ID; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int VALUE_VARIATION__NAME = VARIATION_TYPE__NAME; - - /** - * The feature id for the 'Strategy Class' attribute. - * - * - * @generated - * @ordered - */ - int VALUE_VARIATION__STRATEGY_CLASS = VARIATION_TYPE__STRATEGY_CLASS; - - /** - * The feature id for the 'Varied Entity Interface' attribute. - * - * @generated - * @ordered - */ - int VALUE_VARIATION__VARIED_ENTITY_INTERFACE = VARIATION_TYPE__VARIED_ENTITY_INTERFACE; - - /** - * The number of structural features of the 'Value Variation' class. - * - * @generated - * @ordered - */ - int VALUE_VARIATION_FEATURE_COUNT = VARIATION_TYPE_FEATURE_COUNT + 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.StructuralVariationImpl - * Structural Variation}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.StructuralVariationImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getStructuralVariation() - * @generated - */ - int STRUCTURAL_VARIATION = 2; - - /** - * The feature id for the 'Id' attribute. - * - * @generated - * @ordered - */ - int STRUCTURAL_VARIATION__ID = VARIATION_TYPE__ID; - - /** - * The feature id for the 'Name' attribute. - * - * @generated - * @ordered - */ - int STRUCTURAL_VARIATION__NAME = VARIATION_TYPE__NAME; - - /** - * The feature id for the 'Strategy Class' attribute. - * - * - * @generated - * @ordered - */ - int STRUCTURAL_VARIATION__STRATEGY_CLASS = VARIATION_TYPE__STRATEGY_CLASS; - - /** - * The feature id for the 'Varied Entity Interface' attribute. - * - * @generated - * @ordered - */ - int STRUCTURAL_VARIATION__VARIED_ENTITY_INTERFACE = VARIATION_TYPE__VARIED_ENTITY_INTERFACE; - - /** - * The number of structural features of the 'Structural Variation' class. - * - * @generated - * @ordered - */ - int STRUCTURAL_VARIATION_FEATURE_COUNT = VARIATION_TYPE_FEATURE_COUNT + 0; - - /** - * The meta object id for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.VariationRepositoryImpl - * Repository}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationRepositoryImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getVariationRepository() - * @generated - */ - int VARIATION_REPOSITORY = 3; - - /** - * The feature id for the 'Variation' containment reference list. - * - * @generated - * @ordered - */ - int VARIATION_REPOSITORY__VARIATION = 0; - - /** - * The number of structural features of the 'Repository' class. - * - * - * @generated - * @ordered - */ - int VARIATION_REPOSITORY_FEATURE_COUNT = 1; - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType Type}'. - * - * - * @return the meta object for class 'Type'. - * @see org.palladiosimulator.experimentautomation.variation.VariationType - * @generated - */ - EClass getVariationType(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType#getName - * Name}'. - * - * @return the meta object for the attribute 'Name'. - * @see org.palladiosimulator.experimentautomation.variation.VariationType#getName() - * @see #getVariationType() - * @generated - */ - EAttribute getVariationType_Name(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType#getStrategyClass - * Strategy Class}'. - * - * @return the meta object for the attribute 'Strategy Class'. - * @see org.palladiosimulator.experimentautomation.variation.VariationType#getStrategyClass() - * @see #getVariationType() - * @generated - */ - EAttribute getVariationType_StrategyClass(); - - /** - * Returns the meta object for the attribute - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType#getVariedEntityInterface - * Varied Entity Interface}'. - * - * @return the meta object for the attribute 'Varied Entity Interface'. - * @see org.palladiosimulator.experimentautomation.variation.VariationType#getVariedEntityInterface() - * @see #getVariationType() - * @generated - */ - EAttribute getVariationType_VariedEntityInterface(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.variation.ValueVariation Value - * Variation}'. - * - * @return the meta object for class 'Value Variation'. - * @see org.palladiosimulator.experimentautomation.variation.ValueVariation - * @generated - */ - EClass getValueVariation(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.variation.StructuralVariation - * Structural Variation}'. - * - * @return the meta object for class 'Structural Variation'. - * @see org.palladiosimulator.experimentautomation.variation.StructuralVariation - * @generated - */ - EClass getStructuralVariation(); - - /** - * Returns the meta object for class - * '{@link org.palladiosimulator.experimentautomation.variation.VariationRepository - * Repository}'. - * - * @return the meta object for class 'Repository'. - * @see org.palladiosimulator.experimentautomation.variation.VariationRepository - * @generated - */ - EClass getVariationRepository(); - - /** - * Returns the meta object for the containment reference list - * '{@link org.palladiosimulator.experimentautomation.variation.VariationRepository#getVariation - * Variation}'. - * - * @return the meta object for the containment reference list 'Variation'. - * @see org.palladiosimulator.experimentautomation.variation.VariationRepository#getVariation() - * @see #getVariationRepository() - * @generated - */ - EReference getVariationRepository_Variation(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - VariationFactory getVariationFactory(); - - /** - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * - * @generated - */ - interface Literals { - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.VariationTypeImpl - * Type}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationTypeImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getVariationType() - * @generated - */ - EClass VARIATION_TYPE = eINSTANCE.getVariationType(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * @generated - */ - EAttribute VARIATION_TYPE__NAME = eINSTANCE.getVariationType_Name(); - - /** - * The meta object literal for the 'Strategy Class' attribute feature. - * - * @generated - */ - EAttribute VARIATION_TYPE__STRATEGY_CLASS = eINSTANCE.getVariationType_StrategyClass(); - - /** - * The meta object literal for the 'Varied Entity Interface' attribute - * feature. - * - * @generated - */ - EAttribute VARIATION_TYPE__VARIED_ENTITY_INTERFACE = eINSTANCE.getVariationType_VariedEntityInterface(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.ValueVariationImpl - * Value Variation}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.ValueVariationImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getValueVariation() - * @generated - */ - EClass VALUE_VARIATION = eINSTANCE.getValueVariation(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.StructuralVariationImpl - * Structural Variation}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.StructuralVariationImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getStructuralVariation() - * @generated - */ - EClass STRUCTURAL_VARIATION = eINSTANCE.getStructuralVariation(); - - /** - * The meta object literal for the - * '{@link org.palladiosimulator.experimentautomation.variation.impl.VariationRepositoryImpl - * Repository}' class. - * - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationRepositoryImpl - * @see org.palladiosimulator.experimentautomation.variation.impl.VariationPackageImpl#getVariationRepository() - * @generated - */ - EClass VARIATION_REPOSITORY = eINSTANCE.getVariationRepository(); - - /** - * The meta object literal for the 'Variation' containment reference list - * feature. - * - * @generated - */ - EReference VARIATION_REPOSITORY__VARIATION = eINSTANCE.getVariationRepository_Variation(); - - } - -} // VariationPackage diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationRepository.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationRepository.java deleted file mode 100644 index d68cc65f..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationRepository.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation; - -import org.eclipse.emf.cdo.CDOObject; -import org.eclipse.emf.common.util.EList; - -/** - * A representation of the model object 'Repository'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.variation.VariationRepository#getVariation - * Variation}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getVariationRepository() - * @model - * @extends CDOObject - * @generated - */ -public interface VariationRepository extends CDOObject { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Variation' containment reference list. The list - * contents are of type - * {@link org.palladiosimulator.experimentautomation.variation.VariationType}. - *

- * If the meaning of the 'Variation' containment reference list isn't clear, there - * really should be more of a description here... - *

- * - * - * @return the value of the 'Variation' containment reference list. - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getVariationRepository_Variation() - * @model containment="true" ordered="false" - * @generated - */ - EList getVariation(); - -} // VariationRepository diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationType.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationType.java deleted file mode 100644 index bb2f9348..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/VariationType.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation; - -import de.uka.ipd.sdq.identifier.Identifier; - -/** - * A representation of the model object 'Type'. - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.variation.VariationType#getName - * Name}
  • - *
  • {@link org.palladiosimulator.experimentautomation.variation.VariationType#getStrategyClass - * Strategy Class}
  • - *
  • {@link org.palladiosimulator.experimentautomation.variation.VariationType#getVariedEntityInterface - * Varied Entity Interface}
  • - *
- * - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getVariationType() - * @model abstract="true" - * @generated - */ -public interface VariationType extends Identifier { - - /** - * - * - * @generated - */ - String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Returns the value of the 'Name' attribute. - *

- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a - * description here... - *

- * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getVariationType_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType#getName - * Name}' attribute. - * - * @param value - * the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Strategy Class' attribute. - *

- * If the meaning of the 'Strategy Class' attribute isn't clear, there really should be - * more of a description here... - *

- * - * - * @return the value of the 'Strategy Class' attribute. - * @see #setStrategyClass(String) - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getVariationType_StrategyClass() - * @model required="true" ordered="false" - * @generated - */ - String getStrategyClass(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType#getStrategyClass - * Strategy Class}' attribute. - * - * @param value - * the new value of the 'Strategy Class' attribute. - * @see #getStrategyClass() - * @generated - */ - void setStrategyClass(String value); - - /** - * Returns the value of the 'Varied Entity Interface' attribute. - *

- * If the meaning of the 'Varied Entity Interface' attribute isn't clear, there really - * should be more of a description here... - *

- * - * - * @return the value of the 'Varied Entity Interface' attribute. - * @see #setVariedEntityInterface(String) - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#getVariationType_VariedEntityInterface() - * @model required="true" ordered="false" - * @generated - */ - String getVariedEntityInterface(); - - /** - * Sets the value of the - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType#getVariedEntityInterface - * Varied Entity Interface}' attribute. - * - * @param value - * the new value of the 'Varied Entity Interface' attribute. - * @see #getVariedEntityInterface() - * @generated - */ - void setVariedEntityInterface(String value); - -} // VariationType diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/StructuralVariationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/StructuralVariationImpl.java deleted file mode 100644 index 6921ef3c..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/StructuralVariationImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.variation.StructuralVariation; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; - -/** - * An implementation of the model object ' Structural - * Variation'. - * - * @generated - */ -public class StructuralVariationImpl extends VariationTypeImpl implements StructuralVariation { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected StructuralVariationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return VariationPackage.Literals.STRUCTURAL_VARIATION; - } - -} // StructuralVariationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/ValueVariationImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/ValueVariationImpl.java deleted file mode 100644 index db9196ff..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/ValueVariationImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.variation.ValueVariation; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; - -/** - * An implementation of the model object 'Value Variation'. - * - * - * @generated - */ -public class ValueVariationImpl extends VariationTypeImpl implements ValueVariation { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected ValueVariationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return VariationPackage.Literals.VALUE_VARIATION; - } - -} // ValueVariationImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationFactoryImpl.java deleted file mode 100644 index 71373850..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationFactoryImpl.java +++ /dev/null @@ -1,130 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.palladiosimulator.experimentautomation.variation.StructuralVariation; -import org.palladiosimulator.experimentautomation.variation.ValueVariation; -import org.palladiosimulator.experimentautomation.variation.VariationFactory; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationRepository; - -/** - * An implementation of the model Factory. - * - * @generated - */ -public class VariationFactoryImpl extends EFactoryImpl implements VariationFactory { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates the default factory implementation. - * - * @generated - */ - public static VariationFactory init() { - try { - final VariationFactory theVariationFactory = (VariationFactory) EPackage.Registry.INSTANCE - .getEFactory(VariationPackage.eNS_URI); - if (theVariationFactory != null) { - return theVariationFactory; - } - } catch (final Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new VariationFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public VariationFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(final EClass eClass) { - switch (eClass.getClassifierID()) { - case VariationPackage.VALUE_VARIATION: - return this.createValueVariation(); - case VariationPackage.STRUCTURAL_VARIATION: - return this.createStructuralVariation(); - case VariationPackage.VARIATION_REPOSITORY: - return this.createVariationRepository(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public ValueVariation createValueVariation() { - final ValueVariationImpl valueVariation = new ValueVariationImpl(); - return valueVariation; - } - - /** - * - * - * @generated - */ - @Override - public StructuralVariation createStructuralVariation() { - final StructuralVariationImpl structuralVariation = new StructuralVariationImpl(); - return structuralVariation; - } - - /** - * - * - * @generated - */ - @Override - public VariationRepository createVariationRepository() { - final VariationRepositoryImpl variationRepository = new VariationRepositoryImpl(); - return variationRepository; - } - - /** - * - * - * @generated - */ - @Override - public VariationPackage getVariationPackage() { - return (VariationPackage) this.getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static VariationPackage getPackage() { - return VariationPackage.eINSTANCE; - } - -} // VariationFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationPackageImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationPackageImpl.java deleted file mode 100644 index 4a628d93..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationPackageImpl.java +++ /dev/null @@ -1,370 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.palladiosimulator.edp2.models.ExperimentData.ExperimentDataPackage; -import org.palladiosimulator.edp2.models.Repository.RepositoryPackage; -import org.palladiosimulator.edp2.models.measuringpoint.MeasuringpointPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.AbstractsimulationPackage; -import org.palladiosimulator.experimentautomation.abstractsimulation.impl.AbstractsimulationPackageImpl; -import org.palladiosimulator.experimentautomation.experiments.ExperimentsPackage; -import org.palladiosimulator.experimentautomation.experiments.impl.ExperimentsPackageImpl; -import org.palladiosimulator.experimentautomation.variation.StructuralVariation; -import org.palladiosimulator.experimentautomation.variation.ValueVariation; -import org.palladiosimulator.experimentautomation.variation.VariationFactory; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationRepository; -import org.palladiosimulator.experimentautomation.variation.VariationType; -import org.palladiosimulator.metricspec.MetricSpecPackage; -import org.palladiosimulator.monitorrepository.MonitorRepositoryPackage; -import org.palladiosimulator.pcm.PcmPackage; -import org.palladiosimulator.servicelevelobjective.ServicelevelObjectivePackage; -import org.scaledl.usageevolution.UsageevolutionPackage; - -import de.uka.ipd.sdq.identifier.IdentifierPackage; -import de.uka.ipd.sdq.probfunction.ProbfunctionPackage; -import de.uka.ipd.sdq.stoex.StoexPackage; -import de.uka.ipd.sdq.units.UnitsPackage; -import tools.descartes.dlim.DlimPackage; - -/** - * An implementation of the model Package. - * - * @generated - */ -public class VariationPackageImpl extends EPackageImpl implements VariationPackage { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - private EClass variationTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass valueVariationEClass = null; - - /** - * - * - * @generated - */ - private EClass structuralVariationEClass = null; - - /** - * - * - * @generated - */ - private EClass variationRepositoryEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI - * value. - *

- * Note: the correct way to create the package is via the static factory method {@link #init - * init()}, which also performs initialization of the package, or returns the registered - * package, if one already exists. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage#eNS_URI - * @see #init() - * @generated - */ - private VariationPackageImpl() { - super(eNS_URI, VariationFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others - * upon which it depends. - * - *

- * This method is used to initialize {@link VariationPackage#eINSTANCE} when that field is - * accessed. Clients should not invoke it directly. Instead, they should simply access that - * field to obtain the package. - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static VariationPackage init() { - if (isInited) { - return (VariationPackage) EPackage.Registry.INSTANCE.getEPackage(VariationPackage.eNS_URI); - } - - // Obtain or create and register package - final Object registeredVariationPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - final VariationPackageImpl theVariationPackage = registeredVariationPackage instanceof VariationPackageImpl - ? (VariationPackageImpl) registeredVariationPackage - : new VariationPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - DlimPackage.eINSTANCE.eClass(); - ExperimentDataPackage.eINSTANCE.eClass(); - RepositoryPackage.eINSTANCE.eClass(); - MeasuringpointPackage.eINSTANCE.eClass(); - IdentifierPackage.eINSTANCE.eClass(); - MetricSpecPackage.eINSTANCE.eClass(); - MonitorRepositoryPackage.eINSTANCE.eClass(); - PcmPackage.eINSTANCE.eClass(); - ProbfunctionPackage.eINSTANCE.eClass(); - ServicelevelObjectivePackage.eINSTANCE.eClass(); - StoexPackage.eINSTANCE.eClass(); - UnitsPackage.eINSTANCE.eClass(); - UsageevolutionPackage.eINSTANCE.eClass(); - EcorePackage.eINSTANCE.eClass(); - - // Obtain or create and register interdependencies - Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(ExperimentsPackage.eNS_URI); - final ExperimentsPackageImpl theExperimentsPackage = (ExperimentsPackageImpl) (registeredPackage instanceof ExperimentsPackageImpl - ? registeredPackage - : ExperimentsPackage.eINSTANCE); - registeredPackage = EPackage.Registry.INSTANCE.getEPackage(AbstractsimulationPackage.eNS_URI); - final AbstractsimulationPackageImpl theAbstractsimulationPackage = (AbstractsimulationPackageImpl) (registeredPackage instanceof AbstractsimulationPackageImpl - ? registeredPackage - : AbstractsimulationPackage.eINSTANCE); - - // Create package meta-data objects - theVariationPackage.createPackageContents(); - theExperimentsPackage.createPackageContents(); - theAbstractsimulationPackage.createPackageContents(); - - // Initialize created meta-data - theVariationPackage.initializePackageContents(); - theExperimentsPackage.initializePackageContents(); - theAbstractsimulationPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theVariationPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(VariationPackage.eNS_URI, theVariationPackage); - return theVariationPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getVariationType() { - return this.variationTypeEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariationType_Name() { - return (EAttribute) this.variationTypeEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariationType_StrategyClass() { - return (EAttribute) this.variationTypeEClass.getEStructuralFeatures() - .get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getVariationType_VariedEntityInterface() { - return (EAttribute) this.variationTypeEClass.getEStructuralFeatures() - .get(2); - } - - /** - * - * - * @generated - */ - @Override - public EClass getValueVariation() { - return this.valueVariationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getStructuralVariation() { - return this.structuralVariationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getVariationRepository() { - return this.variationRepositoryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getVariationRepository_Variation() { - return (EReference) this.variationRepositoryEClass.getEStructuralFeatures() - .get(0); - } - - /** - * - * - * @generated - */ - @Override - public VariationFactory getVariationFactory() { - return (VariationFactory) this.getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on - * any invocation but its first. - * - * @generated - */ - public void createPackageContents() { - if (this.isCreated) { - return; - } - this.isCreated = true; - - // Create classes and their features - this.variationTypeEClass = this.createEClass(VARIATION_TYPE); - this.createEAttribute(this.variationTypeEClass, VARIATION_TYPE__NAME); - this.createEAttribute(this.variationTypeEClass, VARIATION_TYPE__STRATEGY_CLASS); - this.createEAttribute(this.variationTypeEClass, VARIATION_TYPE__VARIED_ENTITY_INTERFACE); - - this.valueVariationEClass = this.createEClass(VALUE_VARIATION); - - this.structuralVariationEClass = this.createEClass(STRUCTURAL_VARIATION); - - this.variationRepositoryEClass = this.createEClass(VARIATION_REPOSITORY); - this.createEReference(this.variationRepositoryEClass, VARIATION_REPOSITORY__VARIATION); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have - * no affect on any invocation but its first. - * - * @generated - */ - public void initializePackageContents() { - if (this.isInitialized) { - return; - } - this.isInitialized = true; - - // Initialize package - this.setName(eNAME); - this.setNsPrefix(eNS_PREFIX); - this.setNsURI(eNS_URI); - - // Obtain other dependent packages - final IdentifierPackage theIdentifierPackage = (IdentifierPackage) EPackage.Registry.INSTANCE - .getEPackage(IdentifierPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - this.variationTypeEClass.getESuperTypes() - .add(theIdentifierPackage.getIdentifier()); - this.valueVariationEClass.getESuperTypes() - .add(this.getVariationType()); - this.structuralVariationEClass.getESuperTypes() - .add(this.getVariationType()); - - // Initialize classes and features; add operations and parameters - this.initEClass(this.variationTypeEClass, VariationType.class, "VariationType", IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - this.initEAttribute(this.getVariationType_Name(), this.ecorePackage.getEString(), "name", null, 1, 1, - VariationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getVariationType_StrategyClass(), this.ecorePackage.getEString(), "strategyClass", - null, 1, 1, VariationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - this.initEAttribute(this.getVariationType_VariedEntityInterface(), this.ecorePackage.getEString(), - "variedEntityInterface", null, 1, 1, VariationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - this.initEClass(this.valueVariationEClass, ValueVariation.class, "ValueVariation", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.structuralVariationEClass, StructuralVariation.class, "StructuralVariation", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - this.initEClass(this.variationRepositoryEClass, VariationRepository.class, "VariationRepository", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - this.initEReference(this.getVariationRepository_Variation(), this.getVariationType(), null, "variation", null, - 0, -1, VariationRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - // Create resource - this.createResource(eNS_URI); - } - -} // VariationPackageImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationRepositoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationRepositoryImpl.java deleted file mode 100644 index a289b659..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationRepositoryImpl.java +++ /dev/null @@ -1,159 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.impl; - -import java.util.Collection; - -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.util.InternalEList; -import org.eclipse.emf.internal.cdo.CDOObjectImpl; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationRepository; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -/** - * An implementation of the model object 'Repository'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.variation.impl.VariationRepositoryImpl#getVariation - * Variation}
  • - *
- * - * @generated - */ -public class VariationRepositoryImpl extends CDOObjectImpl implements VariationRepository { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * - * - * @generated - */ - protected VariationRepositoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return VariationPackage.Literals.VARIATION_REPOSITORY; - } - - /** - * - * - * @generated - */ - @Override - protected int eStaticFeatureCount() { - return 0; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public EList getVariation() { - return (EList) this.eDynamicGet(VariationPackage.VARIATION_REPOSITORY__VARIATION, - VariationPackage.Literals.VARIATION_REPOSITORY__VARIATION, true, true); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, - final NotificationChain msgs) { - switch (featureID) { - case VariationPackage.VARIATION_REPOSITORY__VARIATION: - return ((InternalEList) this.getVariation()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case VariationPackage.VARIATION_REPOSITORY__VARIATION: - return this.getVariation(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case VariationPackage.VARIATION_REPOSITORY__VARIATION: - this.getVariation() - .clear(); - this.getVariation() - .addAll((Collection) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case VariationPackage.VARIATION_REPOSITORY__VARIATION: - this.getVariation() - .clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case VariationPackage.VARIATION_REPOSITORY__VARIATION: - return !this.getVariation() - .isEmpty(); - } - return super.eIsSet(featureID); - } - -} // VariationRepositoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationTypeImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationTypeImpl.java deleted file mode 100644 index 2a070feb..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/impl/VariationTypeImpl.java +++ /dev/null @@ -1,232 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.impl; - -import org.eclipse.emf.ecore.EClass; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -import de.uka.ipd.sdq.identifier.impl.IdentifierImpl; - -/** - * An implementation of the model object 'Type'. - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.palladiosimulator.experimentautomation.variation.impl.VariationTypeImpl#getName - * Name}
  • - *
  • {@link org.palladiosimulator.experimentautomation.variation.impl.VariationTypeImpl#getStrategyClass - * Strategy Class}
  • - *
  • {@link org.palladiosimulator.experimentautomation.variation.impl.VariationTypeImpl#getVariedEntityInterface - * Varied Entity Interface}
  • - *
- * - * @generated - */ -public abstract class VariationTypeImpl extends IdentifierImpl implements VariationType { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The default value of the '{@link #getStrategyClass() Strategy Class}' attribute. - * - * - * @see #getStrategyClass() - * @generated - * @ordered - */ - protected static final String STRATEGY_CLASS_EDEFAULT = null; - - /** - * The default value of the '{@link #getVariedEntityInterface() Varied Entity - * Interface}' attribute. - * - * @see #getVariedEntityInterface() - * @generated - * @ordered - */ - protected static final String VARIED_ENTITY_INTERFACE_EDEFAULT = null; - - /** - * - * - * @generated - */ - protected VariationTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return VariationPackage.Literals.VARIATION_TYPE; - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return (String) this.eDynamicGet(VariationPackage.VARIATION_TYPE__NAME, - VariationPackage.Literals.VARIATION_TYPE__NAME, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setName(final String newName) { - this.eDynamicSet(VariationPackage.VARIATION_TYPE__NAME, VariationPackage.Literals.VARIATION_TYPE__NAME, - newName); - } - - /** - * - * - * @generated - */ - @Override - public String getStrategyClass() { - return (String) this.eDynamicGet(VariationPackage.VARIATION_TYPE__STRATEGY_CLASS, - VariationPackage.Literals.VARIATION_TYPE__STRATEGY_CLASS, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setStrategyClass(final String newStrategyClass) { - this.eDynamicSet(VariationPackage.VARIATION_TYPE__STRATEGY_CLASS, - VariationPackage.Literals.VARIATION_TYPE__STRATEGY_CLASS, newStrategyClass); - } - - /** - * - * - * @generated - */ - @Override - public String getVariedEntityInterface() { - return (String) this.eDynamicGet(VariationPackage.VARIATION_TYPE__VARIED_ENTITY_INTERFACE, - VariationPackage.Literals.VARIATION_TYPE__VARIED_ENTITY_INTERFACE, true, true); - } - - /** - * - * - * @generated - */ - @Override - public void setVariedEntityInterface(final String newVariedEntityInterface) { - this.eDynamicSet(VariationPackage.VARIATION_TYPE__VARIED_ENTITY_INTERFACE, - VariationPackage.Literals.VARIATION_TYPE__VARIED_ENTITY_INTERFACE, newVariedEntityInterface); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { - switch (featureID) { - case VariationPackage.VARIATION_TYPE__NAME: - return this.getName(); - case VariationPackage.VARIATION_TYPE__STRATEGY_CLASS: - return this.getStrategyClass(); - case VariationPackage.VARIATION_TYPE__VARIED_ENTITY_INTERFACE: - return this.getVariedEntityInterface(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(final int featureID, final Object newValue) { - switch (featureID) { - case VariationPackage.VARIATION_TYPE__NAME: - this.setName((String) newValue); - return; - case VariationPackage.VARIATION_TYPE__STRATEGY_CLASS: - this.setStrategyClass((String) newValue); - return; - case VariationPackage.VARIATION_TYPE__VARIED_ENTITY_INTERFACE: - this.setVariedEntityInterface((String) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(final int featureID) { - switch (featureID) { - case VariationPackage.VARIATION_TYPE__NAME: - this.setName(NAME_EDEFAULT); - return; - case VariationPackage.VARIATION_TYPE__STRATEGY_CLASS: - this.setStrategyClass(STRATEGY_CLASS_EDEFAULT); - return; - case VariationPackage.VARIATION_TYPE__VARIED_ENTITY_INTERFACE: - this.setVariedEntityInterface(VARIED_ENTITY_INTERFACE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(final int featureID) { - switch (featureID) { - case VariationPackage.VARIATION_TYPE__NAME: - return NAME_EDEFAULT == null ? this.getName() != null : !NAME_EDEFAULT.equals(this.getName()); - case VariationPackage.VARIATION_TYPE__STRATEGY_CLASS: - return STRATEGY_CLASS_EDEFAULT == null ? this.getStrategyClass() != null - : !STRATEGY_CLASS_EDEFAULT.equals(this.getStrategyClass()); - case VariationPackage.VARIATION_TYPE__VARIED_ENTITY_INTERFACE: - return VARIED_ENTITY_INTERFACE_EDEFAULT == null ? this.getVariedEntityInterface() != null - : !VARIED_ENTITY_INTERFACE_EDEFAULT.equals(this.getVariedEntityInterface()); - } - return super.eIsSet(featureID); - } - -} // VariationTypeImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationAdapterFactory.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationAdapterFactory.java deleted file mode 100644 index 7dd4fd62..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationAdapterFactory.java +++ /dev/null @@ -1,206 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.palladiosimulator.experimentautomation.variation.StructuralVariation; -import org.palladiosimulator.experimentautomation.variation.ValueVariation; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationRepository; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -import de.uka.ipd.sdq.identifier.Identifier; - -/** - * The Adapter Factory for the model. It provides an adapter - * createXXX method for each class of the model. - * - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage - * @generated - */ -public class VariationAdapterFactory extends AdapterFactoryImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The cached model package. - * - * @generated - */ - protected static VariationPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * @generated - */ - public VariationAdapterFactory() { - if (modelPackage == null) { - modelPackage = VariationPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package - * or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(final Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass() - .getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * @generated - */ - protected VariationSwitch modelSwitch = new VariationSwitch() { - @Override - public Adapter caseVariationType(final VariationType object) { - return VariationAdapterFactory.this.createVariationTypeAdapter(); - } - - @Override - public Adapter caseValueVariation(final ValueVariation object) { - return VariationAdapterFactory.this.createValueVariationAdapter(); - } - - @Override - public Adapter caseStructuralVariation(final StructuralVariation object) { - return VariationAdapterFactory.this.createStructuralVariationAdapter(); - } - - @Override - public Adapter caseVariationRepository(final VariationRepository object) { - return VariationAdapterFactory.this.createVariationRepositoryAdapter(); - } - - @Override - public Adapter caseIdentifier(final Identifier object) { - return VariationAdapterFactory.this.createIdentifierAdapter(); - } - - @Override - public Adapter defaultCase(final EObject object) { - return VariationAdapterFactory.this.createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * @param target - * the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(final Notifier target) { - return this.modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.variation.VariationType Type}'. - * 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.variation.VariationType - * @generated - */ - public Adapter createVariationTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.variation.ValueVariation Value - * Variation}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.variation.ValueVariation - * @generated - */ - public Adapter createValueVariationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.variation.StructuralVariation - * Structural Variation}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.variation.StructuralVariation - * @generated - */ - public Adapter createStructuralVariationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class - * '{@link org.palladiosimulator.experimentautomation.variation.VariationRepository - * Repository}'. 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. - * - * @return the new adapter. - * @see org.palladiosimulator.experimentautomation.variation.VariationRepository - * @generated - */ - public Adapter createVariationRepositoryAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier - * Identifier}'. 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. - * - * @return the new adapter. - * @see de.uka.ipd.sdq.identifier.Identifier - * @generated - */ - public Adapter createIdentifierAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. This default - * implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // VariationAdapterFactory diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationResourceFactoryImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationResourceFactoryImpl.java deleted file mode 100644 index 4be6b474..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationResourceFactoryImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * The Resource Factory associated with the package. - * - * @see org.palladiosimulator.experimentautomation.variation.util.VariationResourceImpl - * @generated - */ -public class VariationResourceFactoryImpl extends ResourceFactoryImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource factory. - * - * @generated - */ - public VariationResourceFactoryImpl() { - super(); - } - - /** - * Creates an instance of the resource. - * - * @generated - */ - @Override - public Resource createResource(final URI uri) { - final XMLResource result = new VariationResourceImpl(uri); - return result; - } - -} // VariationResourceFactoryImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationResourceImpl.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationResourceImpl.java deleted file mode 100644 index f08e499a..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationResourceImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * The Resource associated with the package. - * - * @see org.palladiosimulator.experimentautomation.variation.util.VariationResourceFactoryImpl - * @generated - */ -public class VariationResourceImpl extends XMLResourceImpl { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Creates an instance of the resource. - * - * @param uri - * the URI of the new resource. - * @generated - */ - public VariationResourceImpl(final URI uri) { - super(uri); - } - -} // VariationResourceImpl diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationSwitch.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationSwitch.java deleted file mode 100644 index a7561095..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationSwitch.java +++ /dev/null @@ -1,220 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.palladiosimulator.experimentautomation.variation.StructuralVariation; -import org.palladiosimulator.experimentautomation.variation.ValueVariation; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; -import org.palladiosimulator.experimentautomation.variation.VariationRepository; -import org.palladiosimulator.experimentautomation.variation.VariationType; - -import de.uka.ipd.sdq.identifier.Identifier; - -/** - * The Switch for the model's inheritance hierarchy. It supports the - * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for - * each class of the model, starting with the actual class of the object and proceeding up the - * inheritance hierarchy until a non-null result is returned, which is the result of the switch. - * - * - * @see org.palladiosimulator.experimentautomation.variation.VariationPackage - * @generated - */ -public class VariationSwitch extends Switch { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - /** - * The cached model package - * - * @generated - */ - protected static VariationPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * @generated - */ - public VariationSwitch() { - if (modelPackage == null) { - modelPackage = VariationPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * @param ePackage - * the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(final EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; - * it yields that result. - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(final int classifierID, final EObject theEObject) { - switch (classifierID) { - case VariationPackage.VARIATION_TYPE: { - final VariationType variationType = (VariationType) theEObject; - T result = this.caseVariationType(variationType); - if (result == null) { - result = this.caseIdentifier(variationType); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case VariationPackage.VALUE_VARIATION: { - final ValueVariation valueVariation = (ValueVariation) theEObject; - T result = this.caseValueVariation(valueVariation); - if (result == null) { - result = this.caseVariationType(valueVariation); - } - if (result == null) { - result = this.caseIdentifier(valueVariation); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case VariationPackage.STRUCTURAL_VARIATION: { - final StructuralVariation structuralVariation = (StructuralVariation) theEObject; - T result = this.caseStructuralVariation(structuralVariation); - if (result == null) { - result = this.caseVariationType(structuralVariation); - } - if (result == null) { - result = this.caseIdentifier(structuralVariation); - } - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - case VariationPackage.VARIATION_REPOSITORY: { - final VariationRepository variationRepository = (VariationRepository) theEObject; - T result = this.caseVariationRepository(variationRepository); - if (result == null) { - result = this.defaultCase(theEObject); - } - return result; - } - default: - return this.defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Type'. This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseVariationType(final VariationType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Value Variation'. - * This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Value Variation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseValueVariation(final ValueVariation object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Structural - * Variation'. This implementation returns null; returning a - * non-null result will terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Structural - * Variation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStructuralVariation(final StructuralVariation object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Repository'. This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Repository'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseVariationRepository(final VariationRepository object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Identifier'. This implementation returns null; returning a non-null result will - * terminate the switch. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'Identifier'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIdentifier(final Identifier object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will - * terminate the switch, but this is the last case anyway. - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(final EObject object) { - return null; - } - -} // VariationSwitch diff --git a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationXMLProcessor.java b/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationXMLProcessor.java deleted file mode 100644 index ac2f4e5e..00000000 --- a/bundles/org.palladiosimulator.experimentautomation/src/org/palladiosimulator/experimentautomation/variation/util/VariationXMLProcessor.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - */ -package org.palladiosimulator.experimentautomation.variation.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.palladiosimulator.experimentautomation.variation.VariationPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * - * @generated - */ -public class VariationXMLProcessor extends XMLProcessor { - - /** - * - * - * @generated - */ - public static final String copyright = "Palladiosimulator.org 2008-2017"; - - /** - * Public constructor to instantiate the helper. - * - * @generated - */ - public VariationXMLProcessor() { - super((EPackage.Registry.INSTANCE)); - VariationPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the VariationResourceFactoryImpl factory. - * - * @generated - */ - @Override - protected Map getRegistrations() { - if (this.registrations == null) { - super.getRegistrations(); - this.registrations.put(XML_EXTENSION, new VariationResourceFactoryImpl()); - this.registrations.put(STAR_EXTENSION, new VariationResourceFactoryImpl()); - } - return this.registrations; - } - -} // VariationXMLProcessor diff --git a/releng/org.palladiosimulator.experimentautomation.workflow/.classpath b/releng/org.palladiosimulator.experimentautomation.workflow/.classpath new file mode 100644 index 00000000..a25c7689 --- /dev/null +++ b/releng/org.palladiosimulator.experimentautomation.workflow/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/releng/org.palladiosimulator.experimentautomation.workflow/.project b/releng/org.palladiosimulator.experimentautomation.workflow/.project new file mode 100644 index 00000000..940f91b4 --- /dev/null +++ b/releng/org.palladiosimulator.experimentautomation.workflow/.project @@ -0,0 +1,34 @@ + + + org.palladiosimulator.experimentautomation.workflow + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/releng/org.palladiosimulator.experimentautomation.workflow/.settings/org.eclipse.jdt.core.prefs b/releng/org.palladiosimulator.experimentautomation.workflow/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..c9545f06 --- /dev/null +++ b/releng/org.palladiosimulator.experimentautomation.workflow/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,9 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 +org.eclipse.jdt.core.compiler.compliance=11 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=11 diff --git a/releng/org.palladiosimulator.experimentautomation.workflow/META-INF/MANIFEST.MF b/releng/org.palladiosimulator.experimentautomation.workflow/META-INF/MANIFEST.MF new file mode 100644 index 00000000..2e31062a --- /dev/null +++ b/releng/org.palladiosimulator.experimentautomation.workflow/META-INF/MANIFEST.MF @@ -0,0 +1,19 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Workflow +Bundle-SymbolicName: org.palladiosimulator.experimentautomation.workflow +Bundle-Version: 1.0.0.qualifier +Automatic-Module-Name: org.palladiosimulator.experimentautomation.workflow +Bundle-RequiredExecutionEnvironment: JavaSE-11 +Require-Bundle: tools.mdsd.ecoreworkflow.mwe2lib;bundle-version="0.2.0", + org.eclipse.emf.mwe2.launch;bundle-version="2.12.0", + org.apache.log4j;bundle-version="1.2.15", + org.eclipse.core.runtime;bundle-version="3.20.0", + org.eclipse.emf.mwe2.lib;bundle-version="2.12.0", + org.objectweb.asm;bundle-version="9.0.0", + org.eclipse.uml2.codegen.ecore;bundle-version="2.5.0", + org.palladiosimulator.pcm;bundle-version="5.0.0", + org.palladiosimulator.edp2;bundle-version="5.0.0", + org.palladiosimulator.monitorrepository;bundle-version="5.0.0", + org.palladiosimulator.servicelevelobjective;bundle-version="5.0.0", + org.scaledl.usageevolution;bundle-version="5.0.0" diff --git a/releng/org.palladiosimulator.experimentautomation.workflow/build.properties b/releng/org.palladiosimulator.experimentautomation.workflow/build.properties new file mode 100644 index 00000000..34d2e4d2 --- /dev/null +++ b/releng/org.palladiosimulator.experimentautomation.workflow/build.properties @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . diff --git a/releng/org.palladiosimulator.experimentautomation.workflow/workflow/clean.mwe2 b/releng/org.palladiosimulator.experimentautomation.workflow/workflow/clean.mwe2 new file mode 100644 index 00000000..9ad52155 --- /dev/null +++ b/releng/org.palladiosimulator.experimentautomation.workflow/workflow/clean.mwe2 @@ -0,0 +1,31 @@ + +module clean + +import org.eclipse.emf.mwe2.ecore.EcoreGenerator +import tools.mdsd.ecoreworkflow.mwe2lib.bean.EclipseRCPSupportingStandaloneSetup +import tools.mdsd.ecoreworkflow.mwe2lib.component.ContextDependentMapping +import tools.mdsd.ecoreworkflow.mwe2lib.component.RegexComponent +import tools.mdsd.ecoreworkflow.mwe2lib.component.URISupportingDirectoryCleaner +import tools.mdsd.ecoreworkflow.mwe2lib.component.GenPatternPostProcessor + +var workspaceRoot = "../../" + +Workflow { + bean = EclipseRCPSupportingStandaloneSetup { + scanClassPath = true + platformUri = workspaceRoot + } + + component = URISupportingDirectoryCleaner { + exclude = ".gitkeep" + directory = "platform:/resource/org.palladiosimulator.experimentautomation/src-gen" + directory = "platform:/resource/org.palladiosimulator.experimentautomation.edit/src-gen" + directory = "platform:/resource/org.palladiosimulator.experimentautomation.editor/src-gen" + + directory = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/src-gen" + directory = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model.edit/src-gen" + + directory = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/src-gen" + directory = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model.edit/src-gen" + } +} \ No newline at end of file diff --git a/releng/org.palladiosimulator.experimentautomation.workflow/workflow/generate.mwe2 b/releng/org.palladiosimulator.experimentautomation.workflow/workflow/generate.mwe2 new file mode 100644 index 00000000..517cd4af --- /dev/null +++ b/releng/org.palladiosimulator.experimentautomation.workflow/workflow/generate.mwe2 @@ -0,0 +1,190 @@ +module generate.core + +import org.eclipse.emf.mwe2.ecore.EcoreGenerator +import tools.mdsd.ecoreworkflow.mwe2lib.bean.EclipseRCPSupportingStandaloneSetup +import tools.mdsd.ecoreworkflow.mwe2lib.component.ContextDependentMapping +import tools.mdsd.ecoreworkflow.mwe2lib.component.URISupportingDirectoryCleaner +import tools.mdsd.ecoreworkflow.mwe2lib.component.GapPatternPostProcessor +import tools.mdsd.ecoreworkflow.mwe2lib.component.RegexComponent + +var workspaceRoot = "../../" + +Workflow { + bean = EclipseRCPSupportingStandaloneSetup { + scanClassPath = true + platformUri = workspaceRoot + uriMap = { + from = "platform:/plugin/org.palladiosimulator.experimentautomation/model/experimentautomation.ecore" + to = "platform:/resource/org.palladiosimulator.experimentautomation/model/experimentautomation.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.experimentautomation/model/experimentautomation.genmodel" + to = "platform:/resource/org.palladiosimulator.experimentautomation/model/experimentautomation.genmodel" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.ecore" + to = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel" + to = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.ecore" + to = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel" + to = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel" + } + + uriMap = { + from = "platform:/plugin/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.ecore" + to = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.ecore" + } + + uriMap = { + from = "platform:/plugin/org.palladiosimulator.edp2/model/EDP2.ecore" + to = "platform:/resource/org.palladiosimulator.edp2/model/EDP2.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.edp2/model/EDP2.genmodel" + to = "platform:/resource/org.palladiosimulator.edp2/model/EDP2.genmodel" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.metricspec/model/metricspec.ecore" + to = "platform:/resource/org.palladiosimulator.metricspec/model/metricspec.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.metricspec/model/metricspec.genmodel" + to = "platform:/resource/org.palladiosimulator.metricspec/model/metricspec.genmodel" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.monitorrepository/model/monitorrepository.ecore" + to = "platform:/resource/org.palladiosimulator.monitorrepository/model/monitorrepository.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.monitorrepository/model/monitorrepository.genmodel" + to = "platform:/resource/org.palladiosimulator.monitorrepository/model/monitorrepository.genmodel" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.pcm/model/pcm.ecore" + to = "platform:/resource/org.palladiosimulator.pcm/model/pcm.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.pcm/model/pcm.genmodel" + to = "platform:/resource/org.palladiosimulator.pcm/model/pcm.genmodel" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.servicelevelobjective/model/servicelevelobjective.ecore" + to = "platform:/resource/org.palladiosimulator.servicelevelobjective/model/servicelevelobjective.ecore" + } + uriMap = { + from = "platform:/plugin/org.palladiosimulator.servicelevelobjective/model/servicelevelobjective.genmodel" + to = "platform:/resource/org.palladiosimulator.servicelevelobjective/model/servicelevelobjective.genmodel" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.identifier/model/identifier.ecore" + to = "platform:/resource/de.uka.ipd.sdq.identifier/model/identifier.ecore" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.identifier/model/identifier.genmodel" + to = "platform:/resource/de.uka.ipd.sdq.identifier/model/identifier.genmodel" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.stoex/model/stoex.ecore" + to = "platform:/resource/de.uka.ipd.sdq.stoex/model/stoex.ecore" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.stoex/model/stoex.genmodel" + to = "platform:/resource/de.uka.ipd.sdq.stoex/model/stoex.genmodel" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.units/model/Units.ecore" + to = "platform:/resource/de.uka.ipd.sdq.units/model/Units.ecore" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.units/model/Units.genmodel" + to = "platform:/resource/de.uka.ipd.sdq.units/model/Units.genmodel" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.probfunction/model/ProbabilityFunction.ecore" + to = "platform:/resource/de.uka.ipd.sdq.probfunction/model/ProbabilityFunction.ecore" + } + uriMap = { + from = "platform:/plugin/de.uka.ipd.sdq.probfunction/model/ProbabilityFunction.genmodel" + to = "platform:/resource/de.uka.ipd.sdq.probfunction/model/ProbabilityFunction.genmodel" + } + + uriMap = { + from = "platform:/plugin/org.scaledl.usageevolution/model/usageevolution.ecore" + to = "platform:/resource/org.scaledl.usageevolution/model/usageevolution.ecore" + } + uriMap = { + from = "platform:/plugin/org.scaledl.usageevolution/model/usageevolution.genmodel" + to = "platform:/resource/org.scaledl.usageevolution/model/usageevolution.genmodel" + } + uriMap = { + from = "platform:/plugin/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.genmodel" + to = "platform:/resource/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.genmodel" + } + uriMap = { + from = "platform:/plugin/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.ecore" + to = "platform:/resource/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.ecore" + } + + uriMap = { + from = "platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore" + to = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore" + } + uriMap = { + from = "platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel" + to = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel" + } + + registerGenModelFile = "platform:/resource/org.palladiosimulator.experimentautomation/model/experimentautomation.genmodel" + registerGenModelFile = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel" + registerGenModelFile = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel" + + registerGenModelFile = "platform:/resource/org.palladiosimulator.edp2/model/EDP2.genmodel" + registerGenModelFile = "platform:/resource/org.palladiosimulator.metricspec/model/metricspec.genmodel" + registerGenModelFile = "platform:/resource/org.palladiosimulator.monitorrepository/model/monitorrepository.genmodel" + registerGenModelFile = "platform:/resource/org.palladiosimulator.pcm/model/pcm.genmodel" + registerGenModelFile = "platform:/resource/org.palladiosimulator.servicelevelobjective/model/servicelevelobjective.genmodel" + + registerGenModelFile = "platform:/resource/de.uka.ipd.sdq.identifier/model/identifier.genmodel" + registerGenModelFile = "platform:/resource/de.uka.ipd.sdq.stoex/model/stoex.genmodel" + registerGenModelFile = "platform:/resource/de.uka.ipd.sdq.units/model/Units.genmodel" + registerGenModelFile = "platform:/resource/de.uka.ipd.sdq.probfunction/model/ProbabilityFunction.genmodel" + + registerGenModelFile = "platform:/resource/org.scaledl.usageevolution/model/usageevolution.genmodel" + registerGenModelFile = "platform:/resource/tools.descartes.dlim.generator/src/tools/descartes/dlim/model/dlim.genmodel" + + registerGenModelFile = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel" + registerGeneratedEPackage = "org.eclipse.uml2.codegen.ecore.genmodel.GenModelPackage" + + } + + component = EcoreGenerator { + generateEdit = true + generateEditor = true + genModel = "platform:/resource/org.palladiosimulator.experimentautomation/model/experimentautomation.genmodel" + srcPath = "platform:/resource/org.palladiosimulator.experimentautomation/src-gen" + } + + component = EcoreGenerator { + generateEdit = true + generateEditor = false + genModel = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simucom.model/model/simucomtooladapter.genmodel" + srcPath = "platform:/resource/org.palladiosimulator.experimentautomation/src-gen" + } + + + component = EcoreGenerator { + generateEdit = true + generateEditor = false + genModel = "platform:/resource/org.palladiosimulator.experimentautomation.application.tooladapter.simulizar.model/model/simulizartooladapter.genmodel" + srcPath = "platform:/resource/org.palladiosimulator.experimentautomation/src-gen" + } + +} diff --git a/releng/pom.xml b/releng/pom.xml index cc0058cc..bd2da382 100644 --- a/releng/pom.xml +++ b/releng/pom.xml @@ -13,6 +13,7 @@ org.palladiosimulator.experimentautomation.updatesite + org.palladiosimulator.experimentautomation.workflow