Class SimulatedLinkingResourceContainerTransmissionStrategy
java.lang.Object
org.palladiosimulator.simulizar.interpreter.linking.impl.SimulatedLinkingResourceContainerTransmissionStrategy
- All Implemented Interfaces:
ITransmissionSimulationStrategy<EntityReference<org.palladiosimulator.pcm.resourceenvironment.LinkingResource>,
Double, InterpreterDefaultContext>
public class SimulatedLinkingResourceContainerTransmissionStrategy
extends Object
implements ITransmissionSimulationStrategy<EntityReference<org.palladiosimulator.pcm.resourceenvironment.LinkingResource>,Double,InterpreterDefaultContext>
This class implements the simulation strategy using
SimulatedLinkingResource
s of the
SimuComFramework. Using a give ISimulatedModelEntityAccess
it determines the relevant
SimulatedLinkingResource
and issues the calculated demand to it.-
Constructor Summary
ConstructorDescriptionSimulatedLinkingResourceContainerTransmissionStrategy
(de.uka.ipd.sdq.simucomframework.resources.ISimulatedModelEntityAccess<org.palladiosimulator.pcm.resourceenvironment.LinkingResource, de.uka.ipd.sdq.simucomframework.resources.SimulatedLinkingResource> linkingResourceAccess) -
Method Summary
Modifier and TypeMethodDescriptionvoid
simulateTransmission
(EntityReference<org.palladiosimulator.pcm.resourceenvironment.LinkingResource> linkRef, Double demand, InterpreterDefaultContext context) Simulate a transmission ofdemand
throughlink
in the user context ofcontext
.
-
Constructor Details
-
SimulatedLinkingResourceContainerTransmissionStrategy
@Inject public SimulatedLinkingResourceContainerTransmissionStrategy(de.uka.ipd.sdq.simucomframework.resources.ISimulatedModelEntityAccess<org.palladiosimulator.pcm.resourceenvironment.LinkingResource, de.uka.ipd.sdq.simucomframework.resources.SimulatedLinkingResource> linkingResourceAccess)
-
-
Method Details
-
simulateTransmission
public void simulateTransmission(EntityReference<org.palladiosimulator.pcm.resourceenvironment.LinkingResource> linkRef, Double demand, InterpreterDefaultContext context) Description copied from interface:ITransmissionSimulationStrategy
Simulate a transmission ofdemand
throughlink
in the user context ofcontext
. This method blocks until the transmission is concluded.- Specified by:
simulateTransmission
in interfaceITransmissionSimulationStrategy<EntityReference<org.palladiosimulator.pcm.resourceenvironment.LinkingResource>,
Double, InterpreterDefaultContext> - Parameters:
linkRef
- the linkdemand
- the calculated demandcontext
- the context of current user activity
-