Class SimuLizarRuntimeState
java.lang.Object
org.palladiosimulator.simulizar.runtimestate.SimuLizarRuntimeState
Deprecated.
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.
NOTE: In an effort to improve testability, the number of class inter-dependencies need to be
reduced. Therefore, please refrain from referencing the RuntimeState to access dependencies. Use
dependency injection to retrieve the desired service / simulation entity directly.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EventDispatcher
Deprecated.protected final de.uka.ipd.sdq.simucomframework.model.SimuComModel
Deprecated.protected final UsageEvolverFacade
Deprecated. -
Constructor Summary
ConstructorDescriptionSimuLizarRuntimeState
(PCMPartitionManager pcmPartitionManager, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, EventDispatcher eventHelper, ComponentInstanceRegistry componentInstanceRegistry, SimulatedUsageModels simulatedUsageModels, Reconfigurator reconfigurator, UsageEvolverFacade usageEvolverFacade, dagger.Lazy<InterpreterDefaultContext> mainContext, SimulatedThreadComponent.Factory simulatedThreadComponentFactory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Use dependency injection to retrieve the ComponentInstanceRegistry instance.Deprecated.Use dependency injection to retrieve the EventNotificationHelper instance.Deprecated.Use dependency injection to retrieve the main context.de.uka.ipd.sdq.simucomframework.model.SimuComModel
getModel()
Deprecated.Use dependency injection to retrieve the SimuComModel instance.Deprecated.Use dependency injection to retrieve the PCMPartitionManager instance.Deprecated.Use dependency injection to retrieve the Reconfigurator instance.Deprecated.Deprecated.Use dependency injection to retrieve the UsageEvolverFacade instance.Deprecated.Use dependency injection to retrieve the SimulatedUsageModels instance.
-
Field Details
-
model
protected final de.uka.ipd.sdq.simucomframework.model.SimuComModel modelDeprecated. -
eventHelper
Deprecated. -
usageEvolverFacade
Deprecated.
-
-
Constructor Details
-
SimuLizarRuntimeState
@Inject public SimuLizarRuntimeState(PCMPartitionManager pcmPartitionManager, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, EventDispatcher eventHelper, ComponentInstanceRegistry componentInstanceRegistry, SimulatedUsageModels simulatedUsageModels, Reconfigurator reconfigurator, UsageEvolverFacade usageEvolverFacade, dagger.Lazy<InterpreterDefaultContext> mainContext, SimulatedThreadComponent.Factory simulatedThreadComponentFactory) Deprecated.- Parameters:
configuration
-modelAccess
-
-
-
Method Details
-
getModel
public de.uka.ipd.sdq.simucomframework.model.SimuComModel getModel()Deprecated.Use dependency injection to retrieve the SimuComModel instance.- Returns:
- the SimuCom model
-
getEventNotificationHelper
Deprecated.Use dependency injection to retrieve the EventNotificationHelper instance.- Returns:
- the event notification helper
-
getComponentInstanceRegistry
Deprecated.Use dependency injection to retrieve the ComponentInstanceRegistry instance.- Returns:
- the component instance registry
-
getMainContext
Deprecated.Use dependency injection to retrieve the main context.- Returns:
- the main Context
-
getUsageModels
Deprecated.Use dependency injection to retrieve the SimulatedUsageModels instance.- Returns:
- the simulated usage model singleton
-
getPCMPartitionManager
Deprecated.Use dependency injection to retrieve the PCMPartitionManager instance.- Returns:
- the PCM partition manager
-
getReconfigurator
Deprecated.Use dependency injection to retrieve the Reconfigurator instance.Returns the reconfigurator responsible for executing reconfigurations and notifying listeners of changes.- Returns:
- The reconfigurator.
-
getUsageEvolverFacade
Deprecated.Use dependency injection to retrieve the UsageEvolverFacade instance.- Returns:
- the Usage Evolver Facade
-
getSimulatedThreadComponentFactory
Deprecated.
-