Package de.uka.ipd.sdq.workflow.mdsd.emf
Class CheckEMFConstraintsJob
java.lang.Object
de.uka.ipd.sdq.workflow.mdsd.validation.ModelValidationJob
de.uka.ipd.sdq.workflow.mdsd.emf.CheckEMFConstraintsJob
- All Implemented Interfaces:
IBlackboardInteractingJob<MDSDBlackboard>,IJob
A job which checks all model constraints implemented by EMF directly or generated using the EMF
OCL extension.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckEMFConstraintsJob(de.uka.ipd.sdq.errorhandling.core.SeverityEnum errorLevel, String partitionName) Create a new constrains check job. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(IProgressMonitor monitor) Execute the job.getName()Supply a name of this job.voidsetBlackboard(MDSDBlackboard blackboard) Sets the blackboard of this job to the given blackboard.Methods inherited from class de.uka.ipd.sdq.workflow.mdsd.validation.ModelValidationJob
cleanup, getErrorLevel, getResult, setJobResult
-
Constructor Details
-
CheckEMFConstraintsJob
public CheckEMFConstraintsJob(de.uka.ipd.sdq.errorhandling.core.SeverityEnum errorLevel, String partitionName) Create a new constrains check job.- Parameters:
errorLevel- the error levelpartitionName- The blackboard partition containing the model to be checked
-
-
Method Details
-
execute
Description copied from interface:IJobExecute the job. In case of an error throw an exception with a meaningful name which can be understood by a user.- Parameters:
monitor- the monitor- Throws:
JobFailedException- the job failedUserCanceledException- the user has chosen to abort the job
-
getName
Description copied from interface:IJobSupply a name of this job. This could be used for a progress monitor.- Returns:
- the name of the job
-
setBlackboard
Description copied from interface:IBlackboardInteractingJobSets the blackboard of this job to the given blackboard.- Parameters:
blackboard- The blackboard to be used by this job
-