Class QVTOReconfigurator
java.lang.Object
org.palladiosimulator.simulizar.core.reconfiguration.AbstractReconfigurator
org.palladiosimulator.simulizar.reconfiguration.qvto.QVTOReconfigurator
- All Implemented Interfaces:
IReconfigurationEngine,Extension
A reconfigurator implementation which relies on QVTo to do the reconfiguration. The QVTo rules
both check their reconfiguration precondition and perform the actual reconfiguration.
-
Field Summary
Fields inherited from class org.palladiosimulator.simulizar.core.reconfiguration.AbstractReconfigurator
configuration, pcmPartitionManagerFields inherited from interface org.palladiosimulator.simulizar.core.reconfiguration.IReconfigurationEngine
RECONFIGURATION_CHECK_FAILED, RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE, RECONFIGURATION_CHECK_SUCCEEDED, RECONFIGURATION_EXECUTION_FAILED, RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE, RECONFIGURATION_EXECUTION_SUCCEEDED -
Constructor Summary
ConstructorsConstructorDescriptionQVTOReconfigurator(SimuLizarWorkflowConfiguration configuration, PCMPartitionManager partitionManager) QVTO Reconfigurator default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanrunCheck(List<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, Map<String, Object> configParams) Trigger a condition check of the model@runtime.booleanrunExecute(List<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Trigger a reconfiguration of the model@runtime.booleanrunExecute(List<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, Map<String, Object> configParams) Methods inherited from class org.palladiosimulator.simulizar.core.reconfiguration.AbstractReconfigurator
setConfiguration, setPCMPartitionManager
-
Constructor Details
-
QVTOReconfigurator
@Inject public QVTOReconfigurator(SimuLizarWorkflowConfiguration configuration, PCMPartitionManager partitionManager) QVTO Reconfigurator default constructor.
-
-
Method Details
-
runCheck
public boolean runCheck(List<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, Map<String, Object> configParams) Description copied from interface:IReconfigurationEngineTrigger a condition check of the model@runtime. Engines should check whether they should reconfigure.monitoredElement- PCM model element for which a new sensor measurement arrived.- Returns:
trueif the check was positive/matched,falseif it was negative/did not match
-
runExecute
public boolean runExecute(List<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) Description copied from interface:IReconfigurationEngineTrigger a reconfiguration of the model@runtime. This method should only be called if the prior check was positive, i.e., engines should only do the reconfiguration if the prior check was positive.monitoredElement- PCM model element for which a new sensor measurement arrived.- Returns:
trueif the reconfiguration was executed,falseif it was not executed or did not succeed.
-
runExecute
-