Class ModelCompletionsJob

java.lang.Object
de.uka.ipd.sdq.workflow.jobs.AbstractJob
de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
de.uka.ipd.sdq.workflow.jobs.SequentialJob
de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
org.palladiosimulator.simulizar.launcher.jobs.ModelCompletionsJob
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>, Comparator<de.uka.ipd.sdq.workflow.jobs.IJob>, List<de.uka.ipd.sdq.workflow.jobs.IJob>, ModelCompletionJobContributor.Facade

public class ModelCompletionsJob extends de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard> implements de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>, ModelCompletionJobContributor.Facade, Comparator<de.uka.ipd.sdq.workflow.jobs.IJob>
This job executes all model completion contributions in order.
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelCompletionsJob(javax.inject.Provider<Set<ModelCompletionJobContributor>> modelCompletionJobs)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(de.uka.ipd.sdq.workflow.jobs.IJob o1, de.uka.ipd.sdq.workflow.jobs.IJob o2)
     
    void
    contribute(de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard> contribution)
    Contribute a blackboard interacting job, which will be executed after all models were loaded into the blackboard.
    void
     
     

    Methods inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob

    getBlackboard, setBlackboard

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

    cleanup, 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

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob

    setBlackboard

    Methods inherited from interface de.uka.ipd.sdq.workflow.jobs.IJob

    cleanup

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    replaceAll, sort, spliterator
  • Constructor Details

    • ModelCompletionsJob

      @Inject public ModelCompletionsJob(javax.inject.Provider<Set<ModelCompletionJobContributor>> modelCompletionJobs)
      Constructor
      Parameters:
      configuration - the SimuCom workflow configuration.
  • Method Details

    • execute

      public void execute(IProgressMonitor monitor) throws de.uka.ipd.sdq.workflow.jobs.JobFailedException, de.uka.ipd.sdq.workflow.jobs.UserCanceledException
      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
    • contribute

      public void contribute(de.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard> contribution)
      Description copied from interface: ModelCompletionJobContributor.Facade
      Contribute a blackboard interacting job, which will be executed after all models were loaded into the blackboard. If the contributed job has to be executed in a particular order with respect to an other job, have it implement Comparable<IJob>. Jobs are executed in the order small to large. Therefore, to signal job o1 should be executed before job o2, o1.compareTo(o2) needs to return a number < 0. Return 0 by default. All orderings are relative, two jobs imposing a contradictory ordering, will raise an IllegalStateException.
      Specified by:
      contribute in interface ModelCompletionJobContributor.Facade
      Parameters:
      contribution - the blackboard interacting job
    • compare

      public int compare(de.uka.ipd.sdq.workflow.jobs.IJob o1, de.uka.ipd.sdq.workflow.jobs.IJob o2)
      Specified by:
      compare in interface Comparator<de.uka.ipd.sdq.workflow.jobs.IJob>
    • 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