Interface IReconfigurationEngine
-
- All Superinterfaces:
Extension
- All Known Implementing Classes:
AbstractReconfigurator
,HenshinReconfigurator
,QVTOReconfigurator
,SDReconfigurator
public interface IReconfigurationEngine extends Extension
Interface for a component that is able to reconfigure the PCM model@runtime.
-
-
Field Summary
Fields Modifier and Type Field Description static int
RECONFIGURATION_CHECK_FAILED
static int
RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE
static int
RECONFIGURATION_CHECK_SUCCEEDED
static int
RECONFIGURATION_EXECUTION_FAILED
static int
RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE
static int
RECONFIGURATION_EXECUTION_SUCCEEDED
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
runCheck(EList<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
Trigger a condition check of the model@runtime.boolean
runExecute(EList<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
Trigger a reconfiguration of the model@runtime.default void
setConfiguration(SimuLizarWorkflowConfiguration configuration)
default void
setPCMPartitionManager(PCMPartitionManager pcmPartitionManager)
-
-
-
Field Detail
-
RECONFIGURATION_CHECK_SUCCEEDED
static final int RECONFIGURATION_CHECK_SUCCEEDED
- See Also:
- Constant Field Values
-
RECONFIGURATION_CHECK_FAILED
static final int RECONFIGURATION_CHECK_FAILED
- See Also:
- Constant Field Values
-
RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE
static final int RECONFIGURATION_CHECK_NOT_APPLICABLE_BY_ENGINE
- See Also:
- Constant Field Values
-
RECONFIGURATION_EXECUTION_SUCCEEDED
static final int RECONFIGURATION_EXECUTION_SUCCEEDED
- See Also:
- Constant Field Values
-
RECONFIGURATION_EXECUTION_FAILED
static final int RECONFIGURATION_EXECUTION_FAILED
- See Also:
- Constant Field Values
-
RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE
static final int RECONFIGURATION_EXECUTION_NOT_APPLICABLE_BY_ENGINE
- See Also:
- Constant Field Values
-
-
Method Detail
-
runCheck
boolean runCheck(EList<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
Trigger a condition check of the model@runtime. Engines should check whether they should reconfigure.- Type Parameters:
T
-- Parameters:
monitoredElement
- PCM model element for which a new sensor measurement arrived.- Returns:
true
if the check was positive/matched,false
if it was negative/did not match
-
runExecute
boolean runExecute(EList<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
Trigger 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.- Parameters:
monitoredElement
- PCM model element for which a new sensor measurement arrived.- Returns:
true
if the reconfiguration was executed,false
if it was not executed or did not succeed.
-
setConfiguration
@Inject default void setConfiguration(SimuLizarWorkflowConfiguration configuration)
-
setPCMPartitionManager
@Inject default void setPCMPartitionManager(PCMPartitionManager pcmPartitionManager)
-
-