Class HenshinReconfigurator

java.lang.Object
org.palladiosimulator.simulizar.reconfiguration.AbstractReconfigurator
org.palladiosimulator.simulizar.reconfiguration.henshin.HenshinReconfigurator
All Implemented Interfaces:
Extension, IReconfigurationEngine

public class HenshinReconfigurator extends AbstractReconfigurator
  • Constructor Details

    • HenshinReconfigurator

      public HenshinReconfigurator()
      Henshin reconfigurator default constructor.
  • Method Details

    • setConfiguration

      public void setConfiguration(SimuLizarWorkflowConfiguration configuration)
      Specified by:
      setConfiguration in interface IReconfigurationEngine
      Overrides:
      setConfiguration in class AbstractReconfigurator
    • 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: 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(List<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
      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.
    • runExecute

      public boolean runExecute(List<? extends ModelTransformation<? extends Object>> actions, EObject monitoredElement, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, Map<String,Object> configParams)