Package de.uka.ipd.sdq.workflow
Class BlackboardBasedWorkflow<T extends Blackboard<?>>
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.Workflow
de.uka.ipd.sdq.workflow.BlackboardBasedWorkflow<T>
- Type Parameters:
T- The type of the blackboard which the jobs in the workflow can access
- All Implemented Interfaces:
ICompositeJob,IJob,Iterable<IJob>,Collection<IJob>,List<IJob>
- Direct Known Subclasses:
UIBasedWorkflow
A workflow implementation which may contain jobs which need to access a blackboard.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.workflow.Workflow
exceptionHandlerFields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
myExecutedJobs, myJobsFields inherited from class de.uka.ipd.sdq.workflow.jobs.AbstractJob
logger -
Constructor Summary
ConstructorsConstructorDescriptionBlackboardBasedWorkflow(IJob job, WorkflowExceptionHandler handler, T blackboard) Instantiates a new blackboard based workflow.BlackboardBasedWorkflow(IJob job, IProgressMonitor monitor, WorkflowExceptionHandler handler, T blackboard) Instantiates a new blackboard based workflow.BlackboardBasedWorkflow(IJob job, T blackboard) Instantiates a new blackboard based workflow. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(IProgressMonitor monitor) Executes all contained jobs, i.e.Methods inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialJob
cleanup, executeWithDelayedCleanUp, executeWithImmediateCleanUpMethods 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, getName, 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, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface de.uka.ipd.sdq.workflow.jobs.ICompositeJob
addJobMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
BlackboardBasedWorkflow
Instantiates a new blackboard based workflow.- Parameters:
job- the jobblackboard- the blackboard
-
BlackboardBasedWorkflow
Instantiates a new blackboard based workflow.- Parameters:
job- the jobhandler- the handlerblackboard- the blackboard
-
BlackboardBasedWorkflow
public BlackboardBasedWorkflow(IJob job, IProgressMonitor monitor, WorkflowExceptionHandler handler, T blackboard) Instantiates a new blackboard based workflow.- Parameters:
job- the jobmonitor- the monitorhandler- the handlerblackboard- the blackboard
-
-
Method Details
-
execute
Description copied from class:SequentialJobExecutes all contained jobs, i.e. call execute() for them. Contained jobs can thus re-implement this method with functionality that should be executed.- Specified by:
executein interfaceIJob- Overrides:
executein classSequentialJob- Parameters:
monitor- the monitor- Throws:
JobFailedException- the job failed exceptionUserCanceledException- the user canceled exception
-