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