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 usingSimulatedLinkingResource
s of the SimuComFramework. Using a giveISimulatedModelEntityAccess
it determines the relevantSimulatedLinkingResource
and issues the calculated demand to it.
-
-
Constructor Summary
Constructors Constructor Description SimulatedLinkingResourceContainerTransmissionStrategy(de.uka.ipd.sdq.simucomframework.resources.ISimulatedModelEntityAccess<org.palladiosimulator.pcm.resourceenvironment.LinkingResource,de.uka.ipd.sdq.simucomframework.resources.SimulatedLinkingResource> linkingResourceAccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
simulateTransmission(EntityReference<org.palladiosimulator.pcm.resourceenvironment.LinkingResource> linkRef, Double demand, InterpreterDefaultContext context)
Simulate a transmission ofdemand
throughlink
in the user context ofcontext
.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-