Class LoadAdaptationBehaviorRepositoryIntoBlackBoardJob

  • All Implemented Interfaces:
    de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>, de.uka.ipd.sdq.workflow.jobs.ICompositeJob, de.uka.ipd.sdq.workflow.jobs.IJob, Iterable<de.uka.ipd.sdq.workflow.jobs.IJob>, Collection<de.uka.ipd.sdq.workflow.jobs.IJob>, List<de.uka.ipd.sdq.workflow.jobs.IJob>

    public class LoadAdaptationBehaviorRepositoryIntoBlackBoardJob
    extends de.uka.ipd.sdq.workflow.extension.AbstractWorkflowExtensionJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
    This class is an AbstractWorkflowExtensionJob implementation to load a AdaptationBehaviorRepository model (which is specified by an URI) into an MDSDBlackboard instance.
    See Also:
    LoadAdaptationBehaviorRepositoryIntoBlackboardJobConfig, LoadAdaptationBehaviorRepositoryIntoBlackboardJobConfigBuilder
    • Method Detail

      • setJobConfiguration

        public void setJobConfiguration​(de.uka.ipd.sdq.workflow.extension.AbstractExtensionJobConfiguration configuration)
                                 throws IllegalArgumentException

        In this case, the passed configuration must be an LoadAdaptationBehaviorRepositoryIntoBlackboardJobConfig which contains the path of the AdaptationBehaviorRepository that will be loaded by this job.
        Overrides:
        setJobConfiguration in class de.uka.ipd.sdq.workflow.extension.AbstractWorkflowExtensionJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
        Throws:
        IllegalArgumentException - In case the given configuration is not a LoadActionRepositoryIntoBlackboardJobConfig.
      • setBlackboard

        public void setBlackboard​(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)
                           throws IllegalArgumentException
        Specified by:
        setBlackboard in interface de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
        Overrides:
        setBlackboard in class de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
        Throws:
        IllegalArgumentException - In case the given blackboard is null.
      • getBlackboard

        public de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard getBlackboard()
        Overrides:
        getBlackboard in class de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
      • cleanup

        public void cleanup​(IProgressMonitor arg0)
                     throws de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
        Specified by:
        cleanup in interface de.uka.ipd.sdq.workflow.jobs.IJob
        Overrides:
        cleanup in class de.uka.ipd.sdq.workflow.jobs.SequentialJob
        Throws:
        de.uka.ipd.sdq.workflow.jobs.CleanupFailedException
      • execute

        public void execute​(IProgressMonitor arg0)
                     throws de.uka.ipd.sdq.workflow.jobs.JobFailedException,
                            de.uka.ipd.sdq.workflow.jobs.UserCanceledException

        In this implementation, the action repository model is loaded into the blackboard. Therefore, an AdaptationBehaviorRepositoryResourceSetPartition is created and added to the blackboard.
        Specified by:
        execute in interface de.uka.ipd.sdq.workflow.jobs.IJob
        Overrides:
        execute in class de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
        Throws:
        de.uka.ipd.sdq.workflow.jobs.JobFailedException
        de.uka.ipd.sdq.workflow.jobs.UserCanceledException
        See Also:
        ADAPTATION_BEHAVIOR__REPOSITORY_MODEL_PARTITION_ID
      • getName

        public String getName()
        Specified by:
        getName in interface de.uka.ipd.sdq.workflow.jobs.IJob
        Overrides:
        getName in class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob