Class AbstractCodeGenerationWorkflowRunConfiguration
java.lang.Object
de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedRunConfiguration
org.palladiosimulator.analyzer.workflow.configurations.AbstractPCMWorkflowRunConfiguration
org.palladiosimulator.analyzer.workflow.configurations.AbstractCodeGenerationWorkflowRunConfiguration
- All Implemented Interfaces:
de.uka.ipd.sdq.workflow.configuration.IJobConfiguration
,Cloneable
public abstract class AbstractCodeGenerationWorkflowRunConfiguration
extends AbstractPCMWorkflowRunConfiguration
implements Cloneable
Base class of workflow configuration objects where the corresponding workflow
transforms PCM models into some kind of code
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected List<SensitivityAnalysisConfiguration>
protected boolean
Fields inherited from class org.palladiosimulator.analyzer.workflow.configurations.AbstractPCMWorkflowRunConfiguration
accuracyInfluenceAnalysisEnabled, accuracyInfluenceAnalysisState, accuracyInfluenceIssueReceivingJob, accuracyInformationModelFile, allocationFiles, deleteTemporaryDataAfterAnalysis, eventMiddlewareFile, PCM_EPACKAGES, rmiMiddlewareFile, temporaryDataLocation, usageModelFile
Fields inherited from class de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedRunConfiguration
isDebug, isInteractive
Fields inherited from class de.uka.ipd.sdq.workflow.configuration.AbstractJobConfiguration
isFixed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCodeGenerationAdvice
(String advice) Setter methodvoid
addRequiredBundle
(String bundleid) Setter methodprotected Object
clone()
Getter methodGetter methodboolean
Returns whether the middleware files and completion files should be loaded, too.boolean
Get whether the code generation may overwrite any existing artifacts without asking the user.boolean
void
setCodeGenerationAdvicesFile
(AbstractCodeGenerationWorkflowRunConfiguration.CodeGenerationAdvice advice) void
setLoadMiddlewareAndCompletionFiles
(boolean loadMiddlewareAndCompletionFiles) Set whether the middleware files and completion files should be loaded, too.void
setOverwriteWithoutAsking
(boolean overwriteWithoutAsking) Set whether the code generation may overwrite any existing artifacts without asking the user.void
setSensitivityAnalysisConfiguration
(SensitivityAnalysisConfiguration sensitivityConfig) void
setSensitivityAnalysisConfigurationList
(List<SensitivityAnalysisConfiguration> sensitivityConfigList) void
setSensitivityAnalysisEnabled
(boolean sensitivityAnalysisEnabled) Methods inherited from class org.palladiosimulator.analyzer.workflow.configurations.AbstractPCMWorkflowRunConfiguration
getAccuracyInfluenceAnalysisState, getAccuracyInfluenceIssueReceivingJob, getAccuracyInformationModelFile, getAllocationFiles, getBaseProjectID, getClone, getEventMiddlewareFile, getGeneratedProjectPath, getModelPaths, getPCMModelFiles, getRMIMiddlewareFile, getUsageModelFile, isAccuracyInfluenceAnalysisEnabled, isDeleteTemporaryDataAfterAnalysis, setAccuracyInfluenceAnalysisEnabled, setAccuracyInfluenceAnalysisState, setAccuracyInfluenceIssueReceivingJob, setAccuracyInformationModelFile, setAllocationFiles, setBaseProjectID, setDeleteTemporaryDataAfterAnalysis, setEventMiddlewareFile, setGeneratedProjectPath, setModelPaths, setRMIMiddlewareFile, setStoragePluginID, setUsageModelFile, 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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uka.ipd.sdq.workflow.configuration.IJobConfiguration
getErrorMessage, isValid, setDefaults
-
Field Details
-
overwriteWithoutAsking
protected boolean overwriteWithoutAsking -
loadMiddlewareAndCompletionFiles
protected boolean loadMiddlewareAndCompletionFiles -
codeGenerationAdvice
-
sensitivityAnalysisConfigurationList
-
sensitivityAnalysisEnabled
protected boolean sensitivityAnalysisEnabled
-
-
Constructor Details
-
AbstractCodeGenerationWorkflowRunConfiguration
public AbstractCodeGenerationWorkflowRunConfiguration()Constructor
-
-
Method Details
-
getStoragePluginID
- Overrides:
getStoragePluginID
in classAbstractPCMWorkflowRunConfiguration
- Returns:
- Returns the ID of the Eclipse plugin to be generated by the code transformation. This is the name of the Eclipse project which will contain the generated code
-
setOverwriteWithoutAsking
public void setOverwriteWithoutAsking(boolean overwriteWithoutAsking) Set whether the code generation may overwrite any existing artifacts without asking the user. If set to false, the code generation has to ask the user first.- Overrides:
setOverwriteWithoutAsking
in classAbstractPCMWorkflowRunConfiguration
- Parameters:
overwriteWithoutAsking
-
-
isOverwriteWithoutAsking
public boolean isOverwriteWithoutAsking()Get whether the code generation may overwrite any existing artifacts without asking the user. If set to false, the code generation has to ask the user first.- Overrides:
isOverwriteWithoutAsking
in classAbstractPCMWorkflowRunConfiguration
- Returns:
- true if the code can be overwritten without asking, else false
-
setLoadMiddlewareAndCompletionFiles
public void setLoadMiddlewareAndCompletionFiles(boolean loadMiddlewareAndCompletionFiles) Set whether the middleware files and completion files should be loaded, too. This is for example required for the simulation of linking resources.- Parameters:
loadMiddlewareAndCompletionFiles
- the loadMiddlewareAndCompletionFiles to set
-
isLoadMiddlewareAndCompletionFiles
public boolean isLoadMiddlewareAndCompletionFiles()Returns whether the middleware files and completion files should be loaded, too. This is for example required for the simulation of linking resources.- Returns:
- the loadMiddlewareAndCompletionFiles
-
isSensitivityAnalysisEnabled
public boolean isSensitivityAnalysisEnabled() -
getSensitivityAnalysisConfigurations
-
setSensitivityAnalysisEnabled
public void setSensitivityAnalysisEnabled(boolean sensitivityAnalysisEnabled) -
setSensitivityAnalysisConfiguration
-
setSensitivityAnalysisConfigurationList
public void setSensitivityAnalysisConfigurationList(List<SensitivityAnalysisConfiguration> sensitivityConfigList) -
getCodeGenerationAdvice
public AbstractCodeGenerationWorkflowRunConfiguration.CodeGenerationAdvice getCodeGenerationAdvice() -
getCodeGenerationAdvicesFile
-
setCodeGenerationAdvicesFile
public void setCodeGenerationAdvicesFile(AbstractCodeGenerationWorkflowRunConfiguration.CodeGenerationAdvice advice) -
addCodeGenerationAdvice
Setter method- Parameters:
advice
- a code generation advice
-
addRequiredBundle
Setter method- Parameters:
advice
- a code generation advice
-
getCodeGenerationAdvices
Getter method- Returns:
- the codeGenerationAdvices list.
-
getCodeGenerationRequiredBundles
Getter method- Returns:
- the codeGenerationRequiredBundles list.
-
clone
- Overrides:
clone
in classAbstractPCMWorkflowRunConfiguration
- Throws:
CloneNotSupportedException
-