Class AbstractPCMWorkflowRunConfiguration

  • All Implemented Interfaces:
    de.uka.ipd.sdq.workflow.configuration.IJobConfiguration, Cloneable
    Direct Known Subclasses:
    AbstractCodeGenerationWorkflowRunConfiguration

    public abstract class AbstractPCMWorkflowRunConfiguration
    extends de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedRunConfiguration
    implements Cloneable
    Base class of workflow configuration objects where the workflow has to deal with a PCM model instance. This configuration class holds the locations of the PCM model parts, and (for convinience) a static list of EPackages needed to read the files.
    • Field Detail

      • PCM_EPACKAGES

        public static final EPackage[] PCM_EPACKAGES
        Contains All EPackages within or referenced by PCM. Used, e.g., for OAW template generation.
      • rmiMiddlewareFile

        protected String rmiMiddlewareFile
      • eventMiddlewareFile

        protected String eventMiddlewareFile
      • allocationFiles

        protected List<String> allocationFiles
      • usageModelFile

        protected String usageModelFile
      • temporaryDataLocation

        protected String temporaryDataLocation
        Storage for temporary models and code.
      • deleteTemporaryDataAfterAnalysis

        protected boolean deleteTemporaryDataAfterAnalysis
        State if temporary data (models and/or code) should be deleted after the analysis.
      • accuracyInfluenceAnalysisEnabled

        protected boolean accuracyInfluenceAnalysisEnabled
        Activation state of the accuracy influence analysis.
      • accuracyInformationModelFile

        protected String accuracyInformationModelFile
        Path to the file containing the accuracy information model.
      • accuracyInfluenceAnalysisState

        protected AccuracyInfluenceAnalysisState accuracyInfluenceAnalysisState
        State of the current accuracy influence analysis.
      • accuracyInfluenceIssueReceivingJob

        protected IIssueReceiver accuracyInfluenceIssueReceivingJob
        Job receiving the issues occurred during accuracy influence analysis.
      • overwriteWithoutAsking

        protected boolean overwriteWithoutAsking
    • Constructor Detail

      • AbstractPCMWorkflowRunConfiguration

        public AbstractPCMWorkflowRunConfiguration()
    • Method Detail

      • getAccuracyInfluenceIssueReceivingJob

        public IIssueReceiver getAccuracyInfluenceIssueReceivingJob()
        Returns:
        Returns the receiving job for accuracy influence analysis issues
      • setAccuracyInfluenceIssueReceivingJob

        public void setAccuracyInfluenceIssueReceivingJob​(IIssueReceiver accuracyInfluenceIssueReceivingJob)
        Parameters:
        accuracyInfluenceIssueReceivingJob - Sets the receiving job for accuracy influence analysis issues.
      • getAccuracyInfluenceAnalysisState

        public AccuracyInfluenceAnalysisState getAccuracyInfluenceAnalysisState()
        Returns:
        Returns the current accuracy influence analysis state.
      • setAccuracyInfluenceAnalysisState

        public void setAccuracyInfluenceAnalysisState​(AccuracyInfluenceAnalysisState accuracyInfluenceAnalysisState)
        Sets the accuracy influence analysis state.
        Parameters:
        accuracyInfluenceAnalysisState - The new state.
      • isDeleteTemporaryDataAfterAnalysis

        public boolean isDeleteTemporaryDataAfterAnalysis()
        Returns:
        if deletion of temporary data after analysis is enabled.
      • setDeleteTemporaryDataAfterAnalysis

        public void setDeleteTemporaryDataAfterAnalysis​(boolean deleteTemporaryDataAfterAnalysis)
        Sets the activation state for the deletion of temporary data after an analysis.
        Parameters:
        deleteTemporaryDataAfterAnalysis -
      • isAccuracyInfluenceAnalysisEnabled

        public boolean isAccuracyInfluenceAnalysisEnabled()
        Returns:
        Returns the activation state of the accuracy influence analysis.
      • setAccuracyInfluenceAnalysisEnabled

        public void setAccuracyInfluenceAnalysisEnabled​(boolean enabled)
        Set the activation state of the accuracy influence analysis.
        Parameters:
        enabled - Activation state.
      • getAccuracyInformationModelFile

        public String getAccuracyInformationModelFile()
        Returns:
        Returns the string representation of the path to the file containing the accuracy information model.
      • setAccuracyInformationModelFile

        public void setAccuracyInformationModelFile​(String accuracyInformationModelFile)
        Set the path to the file containing the accuracy information model.
        Parameters:
        accuracyInformationModelFile -
      • getStoragePluginID

        public String getStoragePluginID()
        Returns:
        Returns the ID of the Eclipse plug-in project to be generated as temporary storage for models and, if applicable, code.
      • setStoragePluginID

        public void setStoragePluginID​(String pluginID)
        Sets the name of the Eclipse plug-in project which will be generated as temporary storage for models and, if applicable, code.
        Parameters:
        pluginID - The name of the project containing the generated code
      • getPCMModelFiles

        public List<String> getPCMModelFiles()
        Returns:
        Returns a list of string URIs containing all model files needed for a full PCM instance
      • getRMIMiddlewareFile

        public String getRMIMiddlewareFile()
        Returns:
        Returns the filename of the PCM's RMI middleware repository repository
      • setRMIMiddlewareFile

        public void setRMIMiddlewareFile​(String rmiMiddlewareFile)
        Sets the filename of the PCM's RMI middleware repository
        Parameters:
        middlewareFile -
      • getEventMiddlewareFile

        public String getEventMiddlewareFile()
        Returns:
        Returns the filename of the PCM's middleware completion repository. If the repository was not set before, the default file will be returned.
      • setEventMiddlewareFile

        public void setEventMiddlewareFile​(String eventMiddlewareFile)
        Sets the filename of the PCM's middleware completion repository
        Parameters:
        eventMiddlewareFile -
      • getAllocationFiles

        public List<String> getAllocationFiles()
      • setAllocationFiles

        public void setAllocationFiles​(List<String> allocationFile)
      • getUsageModelFile

        public String getUsageModelFile()
      • setUsageModelFile

        public void setUsageModelFile​(String usageModelFile)
      • isOverwriteWithoutAsking

        public boolean isOverwriteWithoutAsking()
      • setOverwriteWithoutAsking

        public void setOverwriteWithoutAsking​(boolean overwriteWithoutAsking)
      • getBaseProjectID

        public String getBaseProjectID()
      • setBaseProjectID

        public void setBaseProjectID​(String baseProjectID)
      • getModelPaths

        public List<String> getModelPaths()
      • setModelPaths

        public void setModelPaths​(List<String> modelPaths)
      • getGeneratedProjectPath

        public String getGeneratedProjectPath()
      • setGeneratedProjectPath

        public void setGeneratedProjectPath​(String generatedProjectPath)
      • validateAndFreeze

        public void validateAndFreeze()
                               throws de.uka.ipd.sdq.workflow.configuration.InvalidWorkflowJobConfigurationException
        Overrides:
        validateAndFreeze in class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
        Throws:
        de.uka.ipd.sdq.workflow.configuration.InvalidWorkflowJobConfigurationException