Class AbstractPCMWorkflowRunConfiguration
- java.lang.Object
-
- de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
-
- de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedRunConfiguration
-
- org.palladiosimulator.analyzer.workflow.configurations.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 Summary
Fields Modifier and Type Field Description protected boolean
accuracyInfluenceAnalysisEnabled
Activation state of the accuracy influence analysis.protected AccuracyInfluenceAnalysisState
accuracyInfluenceAnalysisState
State of the current accuracy influence analysis.protected IIssueReceiver
accuracyInfluenceIssueReceivingJob
Job receiving the issues occurred during accuracy influence analysis.protected String
accuracyInformationModelFile
Path to the file containing the accuracy information model.protected List<String>
allocationFiles
protected boolean
deleteTemporaryDataAfterAnalysis
State if temporary data (models and/or code) should be deleted after the analysis.protected String
eventMiddlewareFile
protected boolean
overwriteWithoutAsking
static EPackage[]
PCM_EPACKAGES
Contains All EPackages within or referenced by PCM.protected String
rmiMiddlewareFile
protected String
temporaryDataLocation
Storage for temporary models and code.protected String
usageModelFile
-
Constructor Summary
Constructors Constructor Description AbstractPCMWorkflowRunConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
clone()
AccuracyInfluenceAnalysisState
getAccuracyInfluenceAnalysisState()
IIssueReceiver
getAccuracyInfluenceIssueReceivingJob()
String
getAccuracyInformationModelFile()
List<String>
getAllocationFiles()
String
getBaseProjectID()
AbstractPCMWorkflowRunConfiguration
getClone()
String
getEventMiddlewareFile()
String
getGeneratedProjectPath()
List<String>
getModelPaths()
List<String>
getPCMModelFiles()
String
getRMIMiddlewareFile()
String
getStoragePluginID()
String
getUsageModelFile()
boolean
isAccuracyInfluenceAnalysisEnabled()
boolean
isDeleteTemporaryDataAfterAnalysis()
boolean
isOverwriteWithoutAsking()
void
setAccuracyInfluenceAnalysisEnabled(boolean enabled)
Set the activation state of the accuracy influence analysis.void
setAccuracyInfluenceAnalysisState(AccuracyInfluenceAnalysisState accuracyInfluenceAnalysisState)
Sets the accuracy influence analysis state.void
setAccuracyInfluenceIssueReceivingJob(IIssueReceiver accuracyInfluenceIssueReceivingJob)
void
setAccuracyInformationModelFile(String accuracyInformationModelFile)
Set the path to the file containing the accuracy information model.void
setAllocationFiles(List<String> allocationFile)
void
setBaseProjectID(String baseProjectID)
void
setDeleteTemporaryDataAfterAnalysis(boolean deleteTemporaryDataAfterAnalysis)
Sets the activation state for the deletion of temporary data after an analysis.void
setEventMiddlewareFile(String eventMiddlewareFile)
Sets the filename of the PCM's middleware completion repositoryvoid
setGeneratedProjectPath(String generatedProjectPath)
void
setModelPaths(List<String> modelPaths)
void
setOverwriteWithoutAsking(boolean overwriteWithoutAsking)
void
setRMIMiddlewareFile(String rmiMiddlewareFile)
Sets the filename of the PCM's RMI middleware repositoryvoid
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.void
setUsageModelFile(String usageModelFile)
void
validateAndFreeze()
-
Methods inherited from class de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedRunConfiguration
isDebug, isInteractive, setDebug, setInteractive
-
Methods inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
checkFixed, getErrorMessage, isFrozen, isValid, setDefaults
-
-
-
-
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
-
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
-
-
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
-
-
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)
-
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 classde.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
- Throws:
de.uka.ipd.sdq.workflow.configuration.InvalidWorkflowJobConfigurationException
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classde.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedRunConfiguration
- Throws:
CloneNotSupportedException
-
getClone
public AbstractPCMWorkflowRunConfiguration getClone()
-
-