1 | package de.uka.ipd.sdq.pcmsolver.runconfig; |
2 | |
3 | import org.eclipse.debug.core.ILaunch; |
4 | |
5 | import de.uka.ipd.sdq.workflow.IJob; |
6 | import de.uka.ipd.sdq.workflow.pcm.configurations.AbstractPCMWorkflowRunConfiguration; |
7 | import de.uka.ipd.sdq.workflow.pcm.jobs.PCMWorkflowJobBuilder; |
8 | |
9 | /** |
10 | * This class creates a workflow for a PCM solver analysis. |
11 | * |
12 | * The top-level job of this workflow is the PCMSolverJob. |
13 | * |
14 | * @author brosch |
15 | * |
16 | */ |
17 | public class PCMSolverWorkflowJobBuilder extends PCMWorkflowJobBuilder { |
18 | |
19 | /** |
20 | * Eclipse launch object which is passed to the top-level job. |
21 | */ |
22 | private ILaunch launch; |
23 | |
24 | /** |
25 | * The constructor. |
26 | * @param launch the launch object |
27 | */ |
28 | public PCMSolverWorkflowJobBuilder(ILaunch launch) { |
29 | this.launch = launch; |
30 | } |
31 | |
32 | /* |
33 | * (non-Javadoc) |
34 | * @see de.uka.ipd.sdq.workflow.pcm.jobs.PCMWorkflowJobBuilder#buildJob(de.uka.ipd.sdq.workflow.pcm.configurations.AbstractPCMWorkflowRunConfiguration) |
35 | */ |
36 | public IJob buildJob(AbstractPCMWorkflowRunConfiguration config) { |
37 | return new PCMSolverJob( |
38 | (PCMSolverWorkflowRunConfiguration) config, launch); |
39 | } |
40 | |
41 | } |