Class CreateWorkingCopyOfModelsJob
- java.lang.Object
-
- org.palladiosimulator.analyzer.workflow.jobs.CreateWorkingCopyOfModelsJob
-
- All Implemented Interfaces:
de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
,de.uka.ipd.sdq.workflow.jobs.IJob
public class CreateWorkingCopyOfModelsJob extends Object implements de.uka.ipd.sdq.workflow.jobs.IJob, de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
Job to create a working copy of the models to simulate. This ensures that any downstream job changing the models does not modify the original models. Prerequisite of this job: This job copies the models to the configured project created in the workflow. It has to exist to be able to store the model copy into it. The job currently only creates a working copy of the partition containing the pcm models:LoadPCMModelsIntoBlackboardJob
.PCM_MODELS_PARTITION_ID
-
-
Constructor Summary
Constructors Constructor Description CreateWorkingCopyOfModelsJob(AbstractPCMWorkflowRunConfiguration configuration)
Constructor requiring the necessary configuration object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup(IProgressMonitor monitor)
static URI
concatenateURIs(URI modelFolderURI, URI uri)
void
execute(IProgressMonitor monitor)
Execute this job and create the model copy.String
getName()
void
setBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)
-
-
-
Constructor Detail
-
CreateWorkingCopyOfModelsJob
public CreateWorkingCopyOfModelsJob(AbstractPCMWorkflowRunConfiguration configuration)
Constructor requiring the necessary configuration object.- Parameters:
configuration
- The configuration for this job.
-
-
Method Detail
-
execute
public void execute(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.JobFailedException, de.uka.ipd.sdq.workflow.jobs.UserCanceledException
Execute this job and create the model copy.- Specified by:
execute
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Throws:
de.uka.ipd.sdq.workflow.jobs.JobFailedException
de.uka.ipd.sdq.workflow.jobs.UserCanceledException
-
getName
public String getName()
- Specified by:
getName
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
-
cleanup
public void cleanup(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
- Specified by:
cleanup
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Throws:
de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
-
setBlackboard
public void setBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)
- Specified by:
setBlackboard
in interfacede.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
-
-