public class NegativeExp extends CoolingStrategy
| Constructor and Description |
|---|
NegativeExp(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)
CoolingStrategycool in class CoolingStrategytemperature - The current temperature.protected void generateCoolingStrategy(java.lang.String[] args)
CoolingStrategygenerateCoolingStrategy in class CoolingStrategyargs - The array of arguments