import nddsJava.*;
import Science.*;

public class weatherStateCallback extends nddsCallback {
  // This constructor is required for any class that extends nddsCallback
  public weatherStateCallback(weatherState msg) {
    super(msg);
  }

  public void exec(Object o) {
    weatherState m = (weatherState) msg;
    NomadFrame nframe = (NomadFrame)o;
    
    nframe.setTemp(m.insideTemperature, m.outsideTemperature); // .1 deg F
    nframe.setPressure(m.barometer); // .001 inches of mercury
    nframe.setWind(m.windSpeed,      // mph
		   m.windGust,       // mph
		   m.WindChill,      // .1 degrees F
		   m.windDirection); // 10 degrees (?)
  }
}
