Class SimuLizarRuntimeState
- java.lang.Object
-
- org.palladiosimulator.simulizar.runtimestate.SimuLizarRuntimeState
-
@Deprecated public class SimuLizarRuntimeState extends Object
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
Fields Modifier and Type Field Description protected EventDispatcher
eventHelper
Deprecated.protected de.uka.ipd.sdq.simucomframework.model.SimuComModel
model
Deprecated.protected UsageEvolverFacade
usageEvolverFacade
Deprecated.
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ComponentInstanceRegistry
getComponentInstanceRegistry()
Deprecated.Use dependency injection to retrieve the ComponentInstanceRegistry instance.EventDispatcher
getEventNotificationHelper()
Deprecated.Use dependency injection to retrieve the EventNotificationHelper instance.InterpreterDefaultContext
getMainContext()
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.PCMPartitionManager
getPCMPartitionManager()
Deprecated.Use dependency injection to retrieve the PCMPartitionManager instance.Reconfigurator
getReconfigurator()
Deprecated.Use dependency injection to retrieve the Reconfigurator instance.SimulatedThreadComponent.Factory
getSimulatedThreadComponentFactory()
Deprecated.UsageEvolverFacade
getUsageEvolverFacade()
Deprecated.Use dependency injection to retrieve the UsageEvolverFacade instance.SimulatedUsageModels
getUsageModels()
Deprecated.Use dependency injection to retrieve the SimulatedUsageModels instance.
-
-
-
Field Detail
-
model
protected final de.uka.ipd.sdq.simucomframework.model.SimuComModel model
Deprecated.
-
eventHelper
protected final EventDispatcher eventHelper
Deprecated.
-
usageEvolverFacade
protected final UsageEvolverFacade usageEvolverFacade
Deprecated.
-
-
Constructor Detail
-
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 Detail
-
getModel
public de.uka.ipd.sdq.simucomframework.model.SimuComModel getModel()
Deprecated.Use dependency injection to retrieve the SimuComModel instance.- Returns:
- the SimuCom model
-
getEventNotificationHelper
public EventDispatcher getEventNotificationHelper()
Deprecated.Use dependency injection to retrieve the EventNotificationHelper instance.- Returns:
- the event notification helper
-
getComponentInstanceRegistry
public final ComponentInstanceRegistry getComponentInstanceRegistry()
Deprecated.Use dependency injection to retrieve the ComponentInstanceRegistry instance.- Returns:
- the component instance registry
-
getMainContext
@Deprecated public InterpreterDefaultContext getMainContext()
Deprecated.Use dependency injection to retrieve the main context.- Returns:
- the main Context
-
getUsageModels
@Deprecated public SimulatedUsageModels getUsageModels()
Deprecated.Use dependency injection to retrieve the SimulatedUsageModels instance.- Returns:
- the simulated usage model singleton
-
getPCMPartitionManager
@Deprecated public PCMPartitionManager getPCMPartitionManager()
Deprecated.Use dependency injection to retrieve the PCMPartitionManager instance.- Returns:
- the PCM partition manager
-
getReconfigurator
@Deprecated public Reconfigurator 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 public UsageEvolverFacade getUsageEvolverFacade()
Deprecated.Use dependency injection to retrieve the UsageEvolverFacade instance.- Returns:
- the Usage Evolver Facade
-
getSimulatedThreadComponentFactory
public SimulatedThreadComponent.Factory getSimulatedThreadComponentFactory()
Deprecated.
-
-