Class ReconfigurationProcess

java.lang.Object
de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
de.uka.ipd.sdq.simucomframework.SimuComSimProcess
org.palladiosimulator.simulizar.reconfiguration.ReconfigurationProcess
All Implemented Interfaces:
de.uka.ipd.sdq.scheduler.ISchedulableProcess, de.uka.ipd.sdq.simulation.abstractsimengine.IEntity, de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess, de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener

public class ReconfigurationProcess extends de.uka.ipd.sdq.simucomframework.SimuComSimProcess
SimuComSimProcess implementation which is responsible for executing reconfigurations during Simulizar runs.
See Also:
  • Field Summary

    Fields inherited from class de.uka.ipd.sdq.simucomframework.SimuComSimProcess

    currentSessionId, LOGGER

    Fields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity

    NULL
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ReconfigurationProcess(de.uka.ipd.sdq.simucomframework.model.SimuComModel model, Set<IReconfigurationEngine> reconfigurators, Set<AbstractReconfigurationLoader> reconfigurationLoaders, SimuLizarWorkflowConfiguration configuration, IReconfigurationListener reconfigurationEventDispatcher, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationTimeProvider simTimeProvider)
    Initializes a new instance of the ReconfigurationProcess class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Appends the given notification about model change due to a reconfiguration that takes place.
    protected void
     
    void
    reschedule(double d)
     

    Methods inherited from class de.uka.ipd.sdq.simucomframework.SimuComSimProcess

    addProcessToSimStatus, addTerminatedObserver, fireTerminated, getCurrentSessionId, getModel, getPriority, getRequestContext, getRootProcess, getSimProcessStatus, hold, isFinished, lifeCycle, notifyResuming, notifySuspending, notifyTerminated, removeProcessFromSimStatus, removeTerminatedObserver, setPriority, timeout, updateNewSessionID

    Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator

    addProcessListener, getId, getRawId, isTerminated, passivate, passivate, preempt, removeProcessListener, scheduleAt

    Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator

    getEncapsulatedEntity, isScheduled

    Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement

    getName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity

    isScheduled

    Methods inherited from interface de.uka.ipd.sdq.scheduler.ISchedulableProcess

    getId, passivate
  • Constructor Details

    • ReconfigurationProcess

      @AssistedInject protected ReconfigurationProcess(de.uka.ipd.sdq.simucomframework.model.SimuComModel model, Set<IReconfigurationEngine> reconfigurators, Set<AbstractReconfigurationLoader> reconfigurationLoaders, SimuLizarWorkflowConfiguration configuration, IReconfigurationListener reconfigurationEventDispatcher, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager, de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationTimeProvider simTimeProvider)
      Initializes a new instance of the ReconfigurationProcess class.
      Parameters:
      model - The SimuComModel that is in used during the current simulation run.
      reconfigurators - An Iterable containing all IReconfigurator that shall be used.
      reconfigurator - The Reconfigurator instance that manages and triggers reconfigurations.
      Throws:
      NullPointerException - In case any of the given parameters is null.
  • Method Details

    • appendReconfigurationNotification

      public void appendReconfigurationNotification(Notification notification)
      Appends the given notification about model change due to a reconfiguration that takes place.
      Parameters:
      notification - A Notification that describe model changes due to reconfiguration.
    • activate

      public void activate()
      Specified by:
      activate in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      Overrides:
      activate in class de.uka.ipd.sdq.simucomframework.SimuComSimProcess
    • reschedule

      public void reschedule(double d)
      Specified by:
      reschedule in interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
      Overrides:
      reschedule in class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
    • internalLifeCycle

      protected void internalLifeCycle()
      Specified by:
      internalLifeCycle in class de.uka.ipd.sdq.simucomframework.SimuComSimProcess