Class UncertaintyVariationModelGenPcm


  • public class UncertaintyVariationModelGenPcm
    extends Object
    UncertaintyVariationModelGenPcm realizes the generation of the uncertainty varied palladio component model (pcm) based the specified uncertainty variation model.
    • Constructor Detail

      • UncertaintyVariationModelGenPcm

        public UncertaintyVariationModelGenPcm​(URI uncertaintyModelUri)
                                        throws CoreException
        Constructor
        Parameters:
        uncertaintyModelUri - specifies the uniform resource identifier (uri) which points to the uncertainty variation model to use. The uri must be of the platform type.
        Throws:
        CoreException - if result directory can not be created in the case it does not exist
        IllegalArgumentException - if the given URI of the uncertainty variation model is valid
      • UncertaintyVariationModelGenPcm

        public UncertaintyVariationModelGenPcm​(URI uncertaintyModelUri,
                                               String sourceDirName,
                                               String resultDirName,
                                               String variantDirName)
                                        throws CoreException
        Constructor
        Parameters:
        uncertaintyModelUri - specifies the uniform resource identifier (uri) which points to the uncertainty variation model to use. The uri must be of the platform type.
        sourceDirName - name of the directory in which the model templates for the variants will be searched in.
        resultDirName - name of the directory in which the all variants will be saved in
        variantDirName - name of the directory in which one variant will be saved in
        Throws:
        CoreException - if result directory can not be created in the case it does not exist
        IllegalArgumentException - if the given URI of the uncertainty variation model is valid
    • Method Detail

      • generateVariations

        public void generateVariations​(IProgressMonitor progressMonitor)
        generates the different scenarios, which will found under scenario directory of the current project, from the pcm based on the uncertainty variation model.
        Parameters:
        progressMonitor - progress monitor for status reporting