public class HeatIndexDisplay extends java.lang.Object implements Observer, DisplayElement
Modifier and Type | Field and Description |
---|---|
(package private) float |
heatIndex |
Constructor and Description |
---|
HeatIndexDisplay(WeatherData weatherData) |
Modifier and Type | Method and Description |
---|---|
private float |
computeHeatIndex(float t,
float rh) |
void |
display() |
void |
update(float t,
float rh,
float pressure) |
float heatIndex
public HeatIndexDisplay(WeatherData weatherData)
public void update(float t, float rh, float pressure)
private float computeHeatIndex(float t, float rh)
public void display()
display
in interface DisplayElement