EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.workflow.pcm.jobs]

COVERAGE SUMMARY FOR SOURCE FILE [ValidatePCMModelsJob.java]

nameclass, %method, %block, %line, %
ValidatePCMModelsJob.java0%   (0/1)0%   (0/1)0%   (0/32)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ValidatePCMModelsJob0%   (0/1)0%   (0/1)0%   (0/32)0%   (0/9)
ValidatePCMModelsJob (AbstractPCMWorkflowRunConfiguration): void 0%   (0/1)0%   (0/32)0%   (0/9)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.workflow.pcm.jobs;
5 
6import de.uka.ipd.sdq.errorhandling.SeverityEnum;
7import de.uka.ipd.sdq.workflow.OrderPreservingBlackboardCompositeJob;
8import de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard;
9import de.uka.ipd.sdq.workflow.mdsd.emf.CheckEMFConstraintsJob;
10import de.uka.ipd.sdq.workflow.mdsd.oaw.PerformOAWCheckValidation;
11import de.uka.ipd.sdq.workflow.mdsd.validation.ModelValidationJob;
12import de.uka.ipd.sdq.workflow.mdsd.validation.ShowValidationErrorsJob;
13import de.uka.ipd.sdq.workflow.pcm.configurations.AbstractPCMWorkflowRunConfiguration;
14 
15 
16/**
17 * A job for running model validation checks. The job executes both, OCL and oAW check, validations on a PCM model instance.
18 * If errors are found, they are reported to the user for corrections.
19 * @author Steffen Becker
20 */
21public class ValidatePCMModelsJob 
22extends OrderPreservingBlackboardCompositeJob<MDSDBlackboard> {
23 
24        private static final String PCM_CHECK_FILENAME = "pcm";
25        
26        /* (non-Javadoc)
27         * @see de.uka.ipd.sdq.codegen.simucontroller.workflow.ISimulationJob#execute()
28         */
29        public ValidatePCMModelsJob(AbstractPCMWorkflowRunConfiguration configuration) {
30                super();
31                this.setName("Checking PCM model constraints");
32                this.addJob(new PerformOAWCheckValidation(
33                                LoadPCMModelsIntoBlackboardJob.PCM_MODELS_PARTITION_ID, 
34                                PCM_CHECK_FILENAME, 
35                                AbstractPCMWorkflowRunConfiguration.PCM_EPACKAGES));
36                this.addJob(new CheckEMFConstraintsJob(SeverityEnum.WARNING,LoadPCMModelsIntoBlackboardJob.PCM_MODELS_PARTITION_ID));
37                this.addJob(new ShowValidationErrorsJob(configuration, this.toArray(new ModelValidationJob[]{})));
38        }
39}

[all classes][de.uka.ipd.sdq.workflow.pcm.jobs]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov