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 Details

    • CreateWorkingCopyOfModelsJob

      public CreateWorkingCopyOfModelsJob(AbstractPCMWorkflowRunConfiguration configuration)
      Constructor requiring the necessary configuration object.
      Parameters:
      configuration - The configuration for this job.
  • Method Details

    • 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 interface de.uka.ipd.sdq.workflow.jobs.IJob
      Throws:
      de.uka.ipd.sdq.workflow.jobs.JobFailedException
      de.uka.ipd.sdq.workflow.jobs.UserCanceledException
    • concatenateURIs

      public static URI concatenateURIs(URI modelFolderURI, URI uri)
    • getName

      public String getName()
      Specified by:
      getName in interface de.uka.ipd.sdq.workflow.jobs.IJob
    • cleanup

      public void cleanup(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
      Specified by:
      cleanup in interface de.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 interface de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>