Class AbstractSimuLizarRuntimeState
- java.lang.Object
-
- org.palladiosimulator.simulizar.runtimestate.AbstractSimuLizarRuntimeState
-
- Direct Known Subclasses:
SimuLizarRuntimeState
public abstract class AbstractSimuLizarRuntimeState extends Object
This class provides access to all simulation and SimuLizar related objects. This includes access to the original SimuComModel (containing the simulated resources, simulated processes, etc.), to SimuLizars central simulator event distribution object, and to simulated component instances (e.g. to access their current state of passive resources, etc.). Per simulation run, there should be exactly one instance of this class and all of its managed information objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected SimulationCancelationDelegate
cancelationDelegate
protected EventNotificationHelper
eventHelper
protected de.uka.ipd.sdq.simucomframework.model.SimuComModel
model
protected UsageEvolverFacade
usageEvolverFacade
-
Constructor Summary
Constructors Constructor Description AbstractSimuLizarRuntimeState(SimuLizarWorkflowConfiguration configuration, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard, SimulationCancelationDelegate cancelationDelegate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
ComponentInstanceRegistry
getComponentInstanceRegistry()
EventNotificationHelper
getEventNotificationHelper()
InterpreterDefaultContext
getMainContext()
de.uka.ipd.sdq.simucomframework.model.SimuComModel
getModel()
PCMPartitionManager
getPCMPartitionManager()
Reconfigurator
getReconfigurator()
Returns the reconfigurator responsible for executing reconfigurations and notifying listeners of changes.UsageEvolverFacade
getUsageEvolverFacade()
SimulatedUsageModels
getUsageModels()
protected abstract void
initializeInterpreterListeners(Reconfigurator reconfigurator)
boolean
isCanceled()
void
runSimulation()
-
-
-
Field Detail
-
model
protected final de.uka.ipd.sdq.simucomframework.model.SimuComModel model
-
eventHelper
protected final EventNotificationHelper eventHelper
-
cancelationDelegate
protected final SimulationCancelationDelegate cancelationDelegate
-
usageEvolverFacade
protected final UsageEvolverFacade usageEvolverFacade
-
-
Constructor Detail
-
AbstractSimuLizarRuntimeState
public AbstractSimuLizarRuntimeState(SimuLizarWorkflowConfiguration configuration, de.uka.ipd.sdq.workflow.mdsd.blackboard.MDSDBlackboard blackboard, SimulationCancelationDelegate cancelationDelegate)
- Parameters:
configuration
-modelAccess
-
-
-
Method Detail
-
getModel
public de.uka.ipd.sdq.simucomframework.model.SimuComModel getModel()
- Returns:
- the model
-
getEventNotificationHelper
public EventNotificationHelper getEventNotificationHelper()
-
getComponentInstanceRegistry
public final ComponentInstanceRegistry getComponentInstanceRegistry()
- Returns:
- the componentInstanceRegistry
-
getMainContext
public InterpreterDefaultContext getMainContext()
-
getUsageModels
public SimulatedUsageModels getUsageModels()
-
getPCMPartitionManager
public PCMPartitionManager getPCMPartitionManager()
-
isCanceled
public boolean isCanceled()
-
getReconfigurator
public Reconfigurator getReconfigurator()
Returns the reconfigurator responsible for executing reconfigurations and notifying listeners of changes.- Returns:
- The reconfigurator.
-
runSimulation
public void runSimulation()
-
cleanUp
public void cleanUp()
-
initializeInterpreterListeners
protected abstract void initializeInterpreterListeners(Reconfigurator reconfigurator)
-
getUsageEvolverFacade
public UsageEvolverFacade getUsageEvolverFacade()
-
-