Class LoadPowerInfrastructureRepositoryIntoBlackboardJob
- 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.power.jobs.LoadPowerInfrastructureRepositoryIntoBlackboardJob
-
- 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 final class LoadPowerInfrastructureRepositoryIntoBlackboardJob extends de.uka.ipd.sdq.workflow.extension.AbstractWorkflowExtensionJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>This class is anAbstractWorkflowExtensionJobimplementation to load aPowerInfrastructureRepositorymodel (which is specified by an URI) into anMDSDBlackboardinstance.
-
-
Constructor Summary
Constructors Constructor Description LoadPowerInfrastructureRepositoryIntoBlackboardJob()Initializes a new instance of theLoadPowerInfrastructureRepositoryIntoBlackboardJobclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup(IProgressMonitor arg0)voidexecute(IProgressMonitor arg0)
In this implementation, the infrastructure model is loaded into the blackboard.de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboardgetBlackboard()StringgetName()voidsetBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard)voidsetJobConfiguration(de.uka.ipd.sdq.workflow.extension.AbstractExtensionJobConfiguration configuration)
In this case, the passed configuration must be anLoadPowerInfrastructureRepositoryIntoBlackboardJobConfigwhich contains the path of thePowerInfrastructureRepositorythat 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.SequentialJob
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 java.util.List
replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
LoadPowerInfrastructureRepositoryIntoBlackboardJob
public LoadPowerInfrastructureRepositoryIntoBlackboardJob()
Initializes a new instance of theLoadPowerInfrastructureRepositoryIntoBlackboardJobclass.
-
-
Method Detail
-
setJobConfiguration
public void setJobConfiguration(de.uka.ipd.sdq.workflow.extension.AbstractExtensionJobConfiguration configuration) throws IllegalArgumentException
In this case, the passed configuration must be anLoadPowerInfrastructureRepositoryIntoBlackboardJobConfigwhich contains the path of thePowerInfrastructureRepositorythat will be loaded by this job.- Overrides:
setJobConfigurationin classde.uka.ipd.sdq.workflow.extension.AbstractWorkflowExtensionJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>- Throws:
IllegalArgumentException- In case the given configuration is not aLoadPowerInfrastructureRepositoryIntoBlackboardJobConfig.
-
setBlackboard
public void setBlackboard(de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard) throws IllegalArgumentException- Specified by:
setBlackboardin interfacede.uka.ipd.sdq.workflow.jobs.IBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>- Overrides:
setBlackboardin 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:
getBlackboardin 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:
cleanupin interfacede.uka.ipd.sdq.workflow.jobs.IJob- Overrides:
cleanupin 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 infrastructure model is loaded into the blackboard. Therefore, aPowerInfrastructureRepositoryResourceSetPartitionis created and added to the blackboard.- Specified by:
executein interfacede.uka.ipd.sdq.workflow.jobs.IJob- Overrides:
executein classde.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob<de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard>- Throws:
de.uka.ipd.sdq.workflow.jobs.JobFailedExceptionde.uka.ipd.sdq.workflow.jobs.UserCanceledException- See Also:
LoadPowerInfrastructureRepositoryIntoBlackboardJob#POWER_INFRASTRUCTURE_REPOSITORY_MODEL_PARTITION_ID
-
getName
public String getName()
- Specified by:
getNamein interfacede.uka.ipd.sdq.workflow.jobs.IJob- Overrides:
getNamein classde.uka.ipd.sdq.workflow.jobs.AbstractCompositeJob
-
-