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
public class BlackboardBasedWorkflow<T extends Blackboard<?>> extends Workflow
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
exceptionHandler
-
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 BlackboardBasedWorkflow(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(IProgressMonitor monitor)
Executes all contained jobs, i.e.-
Methods inherited from class de.uka.ipd.sdq.workflow.jobs.SequentialJob
cleanup
-
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, 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, 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.ICompositeJob
addJob
-
Methods 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 Detail
-
BlackboardBasedWorkflow
public BlackboardBasedWorkflow(IJob job, T blackboard)
Instantiates a new blackboard based workflow.- Parameters:
job
- the jobblackboard
- the blackboard
-
BlackboardBasedWorkflow
public BlackboardBasedWorkflow(IJob job, WorkflowExceptionHandler handler, T blackboard)
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 Detail
-
execute
public void execute(IProgressMonitor monitor) throws JobFailedException, UserCanceledException
Description copied from class:SequentialJob
Executes 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:
execute
in interfaceIJob
- Overrides:
execute
in classSequentialJob
- Parameters:
monitor
- the monitor- Throws:
JobFailedException
- the job failed exceptionUserCanceledException
- the user canceled exception
-
-