Package de.uka.ipd.sdq.dsexplore.helper
Class ConfigurationHelper
- java.lang.Object
-
- de.uka.ipd.sdq.dsexplore.helper.ConfigurationHelper
-
public class ConfigurationHelper extends Object
helps handling theILaunchConfigurationneeded during a Design Exploration. Offers methods to generate newILaunchConfigurationto run the simulation and also delete the generatedILaunchConfigurations again. TheConfigurationHelperis globally available as a singleton instance, you can also create a newConfigurationHelperfor local use.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Deletes allILaunchConfigurationthis helper has generated before.voidcopyAndMarkAttribute(String id, ILaunchConfiguration original, ILaunchConfigurationWorkingCopy workingCopy)static ConfigurationHelpergetInstance()Get the global singleton instance of this helper.ILaunchConfigurationupdateConfig(ILaunchConfiguration configuration)Creates a copy of the passedILaunchConfigurationand updates the file names of the passedPCMInstance.
-
-
-
Method Detail
-
updateConfig
public ILaunchConfiguration updateConfig(ILaunchConfiguration configuration) throws CoreException
Creates a copy of the passedILaunchConfigurationand updates the file names of the passedPCMInstance.- Parameters:
configuration- The base configuration to copy frominstance- thePCMInstanceto use the file names from.- Returns:
- a copy of configuration in which the filenames of the instance are used.
- Throws:
CoreException- if the configuration cannot be copied or the new configuration cannot be saved to the run dialogs
-
copyAndMarkAttribute
public void copyAndMarkAttribute(String id, ILaunchConfiguration original, ILaunchConfigurationWorkingCopy workingCopy) throws CoreException
- Throws:
CoreException
-
cleanUp
public void cleanUp()
Deletes allILaunchConfigurationthis helper has generated before.
-
getInstance
public static ConfigurationHelper getInstance()
Get the global singleton instance of this helper.- Returns:
-
-