Class Reconfigurator
java.lang.Object
org.palladiosimulator.commons.designpatterns.AbstractObservable<IReconfigurationListener>
org.palladiosimulator.simulizar.reconfiguration.Reconfigurator
- All Implemented Interfaces:
org.palladiosimulator.commons.designpatterns.IAbstractObservable<IReconfigurationListener>,Extension,IModelObserver
public class Reconfigurator
extends org.palladiosimulator.commons.designpatterns.AbstractObservable<IReconfigurationListener>
implements IModelObserver
Class whose objects will listen on changes in the PCM@Runtime (i.e., they
track changes in the
RuntimeMeasurementModel) and trigger
reconfigurations respectively.-
Constructor Summary
ConstructorsConstructorDescriptionReconfigurator(org.palladiosimulator.analyzer.workflow.core.blackboard.PCMResourceSetPartition partition, ReconfigurationProcessFactory processFactory, de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationTimeProvider simTimeProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAndExecuteReconfigurations(Notification notification) Method which is called on a change in the RuntimeMeasurement.protected EObjectgetMonitoredElement(Notification notification) Retrieve the monitored PCM element from the RuntimeMeasurement change event.Gets the current reconfiguration process.voidvoidMethods inherited from class org.palladiosimulator.commons.designpatterns.AbstractObservable
addObserver, getEventDispatcher, getObservers, removeAllObserver, removeObserver
-
Constructor Details
-
Reconfigurator
public Reconfigurator(org.palladiosimulator.analyzer.workflow.core.blackboard.PCMResourceSetPartition partition, ReconfigurationProcessFactory processFactory, de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationTimeProvider simTimeProvider) Constructor.- Parameters:
model-modelAccessFactory- Access factory for model access interfaces.reconfigurators- Set of reconfigurators which will be triggered as soon as new, interesting monitoring data arrives.
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein interfaceIModelObserver
-
unregister
public void unregister()- Specified by:
unregisterin interfaceIModelObserver
-
checkAndExecuteReconfigurations
Method which is called on a change in the RuntimeMeasurement. All reconfigurators are informed and can check for potential reconfigurations.- Parameters:
notification- The notification event, which describes a change in the RuntimeMeasurement model.
-
getMonitoredElement
Retrieve the monitored PCM element from the RuntimeMeasurement change event.- Parameters:
notification- The RuntimeMeasurment change event.- Returns:
- The PCM element whose monitoring triggered the change event.
-
getReconfigurationProcess
Gets the current reconfiguration process.- Returns:
- The current
ReconfigurationProcess.
-