Class XTextGeneratorBlackboardJob
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.mdsd.xtext.MWE2SequentialJob
de.uka.ipd.sdq.workflow.mdsd.xtext.generator.XTextGeneratorBlackboardJob
- All Implemented Interfaces:
IBlackboardInteractingJob<MDSDBlackboard>
,ICompositeJob
,IJob
,Iterable<IJob>
,Collection<IJob>
,List<IJob>
public class XTextGeneratorBlackboardJob
extends MWE2SequentialJob
implements IBlackboardInteractingJob<MDSDBlackboard>
The Class XTextGeneratorBlackboardCompositeJob.
An MWE2SequentialJob for executing XText Generators on models in the blackboard.
It heavily uses the
MWE2WorkflowComponentBridge
for using MWE2 in the WFE.-
Field Summary
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
ConstructorDescriptionInstantiates a new x text generator blackboard composite job.XTextGeneratorBlackboardJob
(XTextGeneratorConfiguration config, boolean cleanUpImmediately) Instantiates a new x text generator blackboard composite job.XTextGeneratorBlackboardJob
(XTextGeneratorConfiguration config, String name) Instantiates a new x text generator blackboard composite job.XTextGeneratorBlackboardJob
(XTextGeneratorConfiguration config, String name, boolean cleanUpImmediately) Instantiates a new x text generator blackboard composite job. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(IProgressMonitor monitor) Executes all contained jobs, i.e.void
setBlackboard
(MDSDBlackboard blackboard) Sets the blackboard of this job to the given blackboard.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, 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 java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
XTextGeneratorBlackboardJob
Instantiates a new x text generator blackboard composite job.- Parameters:
config
- the config
-
XTextGeneratorBlackboardJob
Instantiates a new x text generator blackboard composite job.- Parameters:
config
- the configname
- The name of the job sequence.
-
XTextGeneratorBlackboardJob
Instantiates a new x text generator blackboard composite job.- Parameters:
config
- the configcleanUpImmediately
- Flag if jobs should be cleaned up immediately or not.
-
XTextGeneratorBlackboardJob
public XTextGeneratorBlackboardJob(XTextGeneratorConfiguration config, String name, boolean cleanUpImmediately) Instantiates a new x text generator blackboard composite job.- Parameters:
config
- the configcleanUpImmediately
- Flag if jobs should be cleaned up immediately or not.name
- The name of the job sequence.
-
-
Method Details
-
execute
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 classMWE2SequentialJob
- Parameters:
monitor
- the monitor- Throws:
JobFailedException
- the job failed exceptionUserCanceledException
- the user canceled exception
-
setBlackboard
Description copied from interface:IBlackboardInteractingJob
Sets the blackboard of this job to the given blackboard.- Specified by:
setBlackboard
in interfaceIBlackboardInteractingJob<MDSDBlackboard>
- Parameters:
blackboard
- The blackboard to be used by this job
-