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:
-
Reconfigurator
IReconfigurator
-
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
ModifierConstructorDescriptionprotected
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 theReconfigurationProcess
class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
appendReconfigurationNotification
(Notification notification) 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 theReconfigurationProcess
class.- Parameters:
model
- TheSimuComModel
that is in used during the current simulation run.reconfigurators
- AnIterable
containing allIReconfigurator
that shall be used.reconfigurator
- TheReconfigurator
instance that manages and triggers reconfigurations.- Throws:
NullPointerException
- In case any of the given parameters isnull
.
-
-
Method Details
-
appendReconfigurationNotification
Appends the given notification about model change due to a reconfiguration that takes place.- Parameters:
notification
- ANotification
that describe model changes due to reconfiguration.
-
activate
public void activate()- Specified by:
activate
in interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
- Overrides:
activate
in classde.uka.ipd.sdq.simucomframework.SimuComSimProcess
-
reschedule
public void reschedule(double d) - Specified by:
reschedule
in interfacede.uka.ipd.sdq.simulation.abstractsimengine.IEntity
- Overrides:
reschedule
in classde.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
-
internalLifeCycle
protected void internalLifeCycle()- Specified by:
internalLifeCycle
in classde.uka.ipd.sdq.simucomframework.SimuComSimProcess
-