Class StackFrameBytesizeAccumulatingDemandCalculator
java.lang.Object
org.palladiosimulator.simulizar.interpreter.linking.impl.StackFrameBytesizeAccumulatingDemandCalculator
- All Implemented Interfaces:
ITransmissionPayloadDemandCalculator<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>,
Double>
public class StackFrameBytesizeAccumulatingDemandCalculator
extends Object
implements ITransmissionPayloadDemandCalculator<de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object>,Double>
This class implements the demand calculation logic of "Simulated throughput of linking
resources". The demand is determined by summing up all "BYTESIZE" characteristics on the stack
frame.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculatePayloadDemand
(de.uka.ipd.sdq.simucomframework.variables.stackframe.SimulatedStackframe<Object> payload) Calculate the demand induced by transmitting payload.
-
Constructor Details
-
StackFrameBytesizeAccumulatingDemandCalculator
@Inject public StackFrameBytesizeAccumulatingDemandCalculator()
-
-
Method Details
-
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
-