Class DemandModifyingBehavior
java.lang.Object
de.uka.ipd.sdq.simucomframework.resources.DemandModifyingBehavior
A DemandModifyingBehavior has a scalingFactor for the throughput or
processingrate of the resource and a value for the delay or latency.
AbstractScheduledResources use this behavior to modify the demand of time
units for a computation.
-
Constructor Summary
ConstructorDescriptionDemandModifyingBehavior
(String scalingFactor, String delay) Creates a newDemandModifyingBehavior
. -
Method Summary
Modifier and TypeMethodDescriptionmodifyDemand
(double previousDemand) Scales a demand with the scalingFactor (newDemand = prevDemand / scalingFactor).
-
Constructor Details
-
DemandModifyingBehavior
Creates a newDemandModifyingBehavior
.- Parameters:
scalingFactor
- value for scaling throughput or processingratedelay
- value for delay or latency of the resource
-
-
Method Details
-
modifyDemand
Scales a demand with the scalingFactor (newDemand = prevDemand / scalingFactor). Returns the scaled demand and an additive demand of time units (delay, latency).- Parameters:
previousDemand
-- Returns:
- A Demand Modification Data Transfer Object which store the two values.
-