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
    • Field Summary

      • Fields inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob

        myBlackboard
      • Fields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob

        myExecutedJobs, myJobs
      • Fields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractJob

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanup​(IProgressMonitor arg0)  
      void execute​(IProgressMonitor arg0)

      In this implementation, the action repository model is loaded into the blackboard.
      de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard getBlackboard()  
      String getName()  
      void setBlackboard​(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)
      void setJobConfiguration​(de.uka.ipd.sdq.workflow.extension.AbstractExtensionJobConfiguration configuration)

      In this case, the passed configuration must be an LoadAdaptationBehaviorRepositoryIntoBlackboardJobConfig which contains the path of the AdaptationBehaviorRepository that will be loaded by this job.
      • Methods inherited from class de.uka.ipd.sdq.workflow.extension.AbstractWorkflowExtensionJob

        getJobConfiguration
      • Methods inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialJob

        executeWithDelayedCleanUp, executeWithImmediateCleanUp
      • Methods inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob

        add, add, addAll, addAll, addFirst, addJob, addLast, clear, clone, contains, containsAll, descendingIterator, element, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeAll, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, retainAll, set, setName, size, subList, toArray, toArray, toString
    • 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