Class LoadAdaptationBehaviorRepositoryIntoBlackBoardJob
- 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<BlackboardType>
-
- de.uka.ipd.sdq.workflow.extension.AbstractWorkflowExtensionJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
-
- org.palladiosimulator.simulizar.action.jobs.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 anAbstractWorkflowExtensionJob
implementation to load aAdaptationBehaviorRepository
model (which is specified by an URI) into anMDSDBlackboard
instance.
-
-
Constructor Summary
Constructors Constructor Description LoadAdaptationBehaviorRepositoryIntoBlackBoardJob()
Initializes a new instance of theLoadAdaptationBehaviorRepositoryIntoBlackBoardJob
class.
-
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 anLoadAdaptationBehaviorRepositoryIntoBlackboardJobConfig
which contains the path of theAdaptationBehaviorRepository
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.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 java.util.List
replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
LoadAdaptationBehaviorRepositoryIntoBlackBoardJob
public LoadAdaptationBehaviorRepositoryIntoBlackBoardJob()
Initializes a new instance of theLoadAdaptationBehaviorRepositoryIntoBlackBoardJob
class.
-
-
Method Detail
-
setJobConfiguration
public void setJobConfiguration(de.uka.ipd.sdq.workflow.extension.AbstractExtensionJobConfiguration configuration) throws IllegalArgumentException
In this case, the passed configuration must be anLoadAdaptationBehaviorRepositoryIntoBlackboardJobConfig
which contains the path of theAdaptationBehaviorRepository
that will be loaded by this job.- Overrides:
setJobConfiguration
in classde.uka.ipd.sdq.workflow.extension.AbstractWorkflowExtensionJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
- Throws:
IllegalArgumentException
- In case the given configuration is not aLoadActionRepositoryIntoBlackboardJobConfig
.
-
setBlackboard
public void setBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard) throws IllegalArgumentException
- Specified by:
setBlackboard
in interfacede.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
- Overrides:
setBlackboard
in classde.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>
- Throws:
IllegalArgumentException
- In case the given blackboard isnull
.
-
getBlackboard
public de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard getBlackboard()
- Overrides:
getBlackboard
in classde.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 interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Overrides:
cleanup
in classde.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, anAdaptationBehaviorRepositoryResourceSetPartition
is created and added to the blackboard.- Specified by:
execute
in interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Overrides:
execute
in classde.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 interfacede.uka.ipd.sdq.workflow.jobs.IJob
- Overrides:
getName
in classde.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
-
-