Class CountNumbersDemand
- java.lang.Object
-
- org.palladiosimulator.protocom.resourcestrategies.activeresource.AbstractDemandStrategy
-
- org.palladiosimulator.protocom.resourcestrategies.activeresource.cpu.CountNumbersDemand
-
- All Implemented Interfaces:
IDemandStrategy
public class CountNumbersDemand extends AbstractDemandStrategy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.palladiosimulator.protocom.resourcestrategies.activeresource.AbstractDemandStrategy
AbstractDemandStrategy.ProcessingRate, AbstractDemandStrategy.Work
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.protocom.resourcestrategies.activeresource.AbstractDemandStrategy
CALIBRATION_PATH_CONFIG_KEY, defaultIterationCount, degreeOfAccuracy, WORKUNITS
-
-
Constructor Summary
Constructors Constructor Description CountNumbersDemand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Do cleanup work.String
getName()
Template method to return the name of this strategyResourceTypeEnum
getStrategysResource()
Template method to return the real hardware resource type simulated by this strategyvoid
run(long initial)
Template method.-
Methods inherited from class org.palladiosimulator.protocom.resourcestrategies.activeresource.AbstractDemandStrategy
calibrate, consume, debugEnabled, ensureCalibrationExists, formatDuration, getCalibrationFileName, getCalibrationPath, hasCalibrationTable, initializeStrategy, initializeStrategy, setCalibrationListener, setCalibrationTable, setDebug, setProperties, watchConsume
-
-
-
-
Method Detail
-
run
public void run(long initial)
Description copied from class:AbstractDemandStrategy
Template method. This starts running the strategy with the parameter load- Specified by:
run
in classAbstractDemandStrategy
- Parameters:
initial
- Complexity parameter. Algorithm should take longer if parameter is larger, i.e., ideally run(a) < run(b) <==> a < b
-
getStrategysResource
public ResourceTypeEnum getStrategysResource()
Description copied from class:AbstractDemandStrategy
Template method to return the real hardware resource type simulated by this strategy- Specified by:
getStrategysResource
in interfaceIDemandStrategy
- Specified by:
getStrategysResource
in classAbstractDemandStrategy
- Returns:
- The resource type we can simulate
- See Also:
IDemandStrategy.getStrategysResource()
-
getName
public String getName()
Description copied from class:AbstractDemandStrategy
Template method to return the name of this strategy- Specified by:
getName
in interfaceIDemandStrategy
- Specified by:
getName
in classAbstractDemandStrategy
- Returns:
- a string containing the name of the strategy
- See Also:
IDemandStrategy.getName()
-
cleanup
public void cleanup()
Description copied from interface:IDemandStrategy
Do cleanup work.
-
-