package nomadgui.Science;

import distinct.rpc.*;

/**
 * This class was automatically generated by Jrpcgen from the RPC/XDR file "weatherState.x".<br>
 * weatherState: was struct
 */

public class weatherState implements XDRType {
  public int insideTemperature;
  public int outsideTemperature;
  public int barometer;
  public short insideHumidity;
  public short outsideHumidity;
  public int DewPoint;
  public int rain;
  public short windSpeed;
  public short windGust;
  public int WindChill;
  public short windDirection;
  public int msecs;
  public short week;

/**
 * Default constructor for objects of class weatherState.
 */

public weatherState()
{}

/**
 * Creates an object of class weatherState.
 * @param     arg_insideTemperature The value of the insideTemperature component.
 * @param     arg_outsideTemperature The value of the outsideTemperature component.
 * @param     arg_barometer The value of the barometer component.
 * @param     arg_insideHumidity The value of the insideHumidity component.
 * @param     arg_outsideHumidity The value of the outsideHumidity component.
 * @param     arg_DewPoint The value of the DewPoint component.
 * @param     arg_rain The value of the rain component.
 * @param     arg_windSpeed The value of the windSpeed component.
 * @param     arg_windGust The value of the windGust component.
 * @param     arg_WindChill The value of the WindChill component.
 * @param     arg_windDirection The value of the windDirection component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public weatherState(int arg_insideTemperature, int arg_outsideTemperature, int arg_barometer, short arg_insideHumidity, short arg_outsideHumidity, int arg_DewPoint, int arg_rain, short arg_windSpeed, short arg_windGust, int arg_WindChill, short arg_windDirection, int arg_msecs, short arg_week)
{
  insideTemperature = arg_insideTemperature;
  outsideTemperature = arg_outsideTemperature;
  barometer = arg_barometer;
  insideHumidity = arg_insideHumidity;
  outsideHumidity = arg_outsideHumidity;
  DewPoint = arg_DewPoint;
  rain = arg_rain;
  windSpeed = arg_windSpeed;
  windGust = arg_windGust;
  WindChill = arg_WindChill;
  windDirection = arg_windDirection;
  msecs = arg_msecs;
  week = arg_week;
}

/**
 * Encodes an object of class weatherState in compliance to RFC 1832 (XDR).
 * @param     xdrs The XDR output stream.
 */

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_int(insideTemperature);
  xdrs.xdr_encode_int(outsideTemperature);
  xdrs.xdr_encode_int(barometer);
  xdrs.xdr_encode_short(insideHumidity);
  xdrs.xdr_encode_short(outsideHumidity);
  xdrs.xdr_encode_int(DewPoint);
  xdrs.xdr_encode_int(rain);
  xdrs.xdr_encode_short(windSpeed);
  xdrs.xdr_encode_short(windGust);
  xdrs.xdr_encode_int(WindChill);
  xdrs.xdr_encode_short(windDirection);
  xdrs.xdr_encode_int(msecs);
  xdrs.xdr_encode_short(week);
}

/**
 * Decodes an object of class weatherState in compliance to RFC 1832 (XDR).
 * @param     xdrs The XDR input stream.
 * @exception RPCError When the calls fails for any reason.
 */

public void xdr_decode(XDRStream xdrs) throws RPCError
{
  insideTemperature = xdrs.xdr_decode_int();
  outsideTemperature = xdrs.xdr_decode_int();
  barometer = xdrs.xdr_decode_int();
  insideHumidity = xdrs.xdr_decode_short();
  outsideHumidity = xdrs.xdr_decode_short();
  DewPoint = xdrs.xdr_decode_int();
  rain = xdrs.xdr_decode_int();
  windSpeed = xdrs.xdr_decode_short();
  windGust = xdrs.xdr_decode_short();
  WindChill = xdrs.xdr_decode_int();
  windDirection = xdrs.xdr_decode_short();
  msecs = xdrs.xdr_decode_int();
  week = xdrs.xdr_decode_short();
}
}
