Class SimulatedBasicComponentInstance
java.lang.Object
org.palladiosimulator.simulizar.runtimestate.SimulatedComponentInstance
org.palladiosimulator.simulizar.runtimestate.SimulatedBasicComponentInstance
-
Constructor Summary
ConstructorDescriptionSimulatedBasicComponentInstance
(InterpreterDefaultContext context, FQComponentID fqID, List<org.palladiosimulator.pcm.repository.PassiveResource> passiveResources, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition partition, CalculatorFactoryFacade calcFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acquirePassiveResource
(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, InterpreterDefaultContext context, boolean timeout, double timeoutValue) void
cleanUp()
Called upon shut down of the simulation in order to notify component instances of the necessity to clean up simulation runtime state (e.g.long
getAvailablePassiveResource
(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, InterpreterDefaultContext context) void
releasePassiveResource
(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, InterpreterDefaultContext context) Methods inherited from class org.palladiosimulator.simulizar.runtimestate.SimulatedComponentInstance
getFqn
-
Constructor Details
-
SimulatedBasicComponentInstance
@AssistedInject public SimulatedBasicComponentInstance(@Assisted InterpreterDefaultContext context, @Assisted FQComponentID fqID, @Assisted List<org.palladiosimulator.pcm.repository.PassiveResource> passiveResources, de.uka.ipd.sdq.simucomframework.model.SimuComModel simuComModel, org.palladiosimulator.analyzer.workflow.blackboard.PCMResourceSetPartition partition, CalculatorFactoryFacade calcFactory)
-
-
Method Details
-
acquirePassiveResource
public void acquirePassiveResource(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, InterpreterDefaultContext context, boolean timeout, double timeoutValue) -
releasePassiveResource
public void releasePassiveResource(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, InterpreterDefaultContext context) -
getAvailablePassiveResource
public long getAvailablePassiveResource(org.palladiosimulator.pcm.repository.PassiveResource passiveResource, InterpreterDefaultContext context) -
cleanUp
public void cleanUp()Description copied from class:SimulatedComponentInstance
Called upon shut down of the simulation in order to notify component instances of the necessity to clean up simulation runtime state (e.g. passive resources)- Overrides:
cleanUp
in classSimulatedComponentInstance
-