Class SDReconfigurator
- java.lang.Object
-
- org.palladiosimulator.simulizar.reconfiguration.AbstractReconfigurator
-
- org.palladiosimulator.simulizar.reconfiguration.storydiagram.SDReconfigurator
-
- All Implemented Interfaces:
IReconfigurationEngine
public class SDReconfigurator extends AbstractReconfigurator
A reconfigurator implementation which relies on story diagrams to do the reconfiguration. The story diagrams both check their reconfiguration precondition and perform the actual reconfiguration.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.simulizar.reconfiguration.AbstractReconfigurator
configuration, pcmPartitionManager
-
Fields inherited from interface org.palladiosimulator.simulizar.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
Constructors Constructor Description SDReconfigurator()
Story diagram reconfigurator default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
runCheck(EList<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement)
Trigger a condition check of the model@runtime.boolean
runExecute(EList<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement)
Trigger a reconfiguration of the model@runtime.-
Methods inherited from class org.palladiosimulator.simulizar.reconfiguration.AbstractReconfigurator
setConfiguration, setPCMPartitionManager
-
-
-
-
Method Detail
-
runCheck
public boolean runCheck(EList<? extends ModelTransformation<? extends Object>> checks, EObject monitoredElement)
Description copied from interface:IReconfigurationEngine
Trigger 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:
true
if the check was positive/matched,false
if it was negative/did not match
-
runExecute
public boolean runExecute(EList<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement)
Description copied from interface:IReconfigurationEngine
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.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.
-
-