Package de.uka.ipd.sdq.dsexplore.helper
Class ConfigurationHelper
java.lang.Object
de.uka.ipd.sdq.dsexplore.helper.ConfigurationHelper
helps handling the
ILaunchConfiguration
needed during a Design Exploration. Offers methods to generate new ILaunchConfiguration
to run the simulation and also delete the generated ILaunchConfiguration
s again.
The ConfigurationHelper
is globally available as a singleton instance, you can also create a new ConfigurationHelper
for local use.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Deletes allILaunchConfiguration
this helper has generated before.void
copyAndMarkAttribute
(String id, ILaunchConfiguration original, ILaunchConfigurationWorkingCopy workingCopy) static ConfigurationHelper
Get the global singleton instance of this helper.updateConfig
(ILaunchConfiguration configuration) Creates a copy of the passedILaunchConfiguration
and updates the file names of the passedPCMInstance
.
-
Constructor Details
-
ConfigurationHelper
public ConfigurationHelper()
-
-
Method Details
-
updateConfig
Creates a copy of the passedILaunchConfiguration
and updates the file names of the passedPCMInstance
.- Parameters:
configuration
- The base configuration to copy frominstance
- thePCMInstance
to 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 allILaunchConfiguration
this helper has generated before. -
getInstance
Get the global singleton instance of this helper.- Returns:
-