Class MiddlewareCompletionAwareDemandCalculator
- java.lang.Object
-
- org.palladiosimulator.simulizar.interpreter.linking.impl.MiddlewareCompletionAwareDemandCalculator
-
- All Implemented Interfaces:
ITransmissionPayloadDemandCalculator<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>,Double>
public class MiddlewareCompletionAwareDemandCalculator extends Object implements ITransmissionPayloadDemandCalculator<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>,Double>
This calculator realizes a demand calculation compatible with the middleware marshalling palladio model completion. It assumes, that the completion ensures, that the amount of data to be transmitted is already precalculated and given as "BYTESIZE" characteristic of an element "stream" on the stack frame.
-
-
Constructor Summary
Constructors Constructor Description MiddlewareCompletionAwareDemandCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
calculatePayloadDemand(de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> payload)
Calculate the demand induced by transmitting payload.
-
-
-
Method Detail
-
calculatePayloadDemand
public Double calculatePayloadDemand(de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> payload)
Description copied from interface:ITransmissionPayloadDemandCalculator
Calculate the demand induced by transmitting payload.- Specified by:
calculatePayloadDemand
in interfaceITransmissionPayloadDemandCalculator<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>,Double>
- Parameters:
payload
- the payload to transmit- Returns:
- the induced demand
-
-