public class LinearCoolingStrategy extends CoolingStrategy
Constructor and Description |
---|
LinearCoolingStrategy(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
float |
cool(float temperature)
The cool method takes the current temperature as a parameter and returns the cooled one according to the law implemented in it.
|
protected void |
generateCoolingStrategy(java.lang.String[] args)
An abstract method which takes as a parameter an array of String to tune the cooling strategy.
|
public float cool(float temperature)
CoolingStrategy
cool
in class CoolingStrategy
temperature
- The current temperature.protected void generateCoolingStrategy(java.lang.String[] args)
CoolingStrategy
generateCoolingStrategy
in class CoolingStrategy
args
- The array of arguments