package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class apsDerivedState implements XDRType {
  public int azimuth;
  public int elevation;
  public int msecs;
  public int week;

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

public apsDerivedState()
{}

/**
 * Creates an object of class apsDerivedState.
 * @param     arg_azimuth The value of the azimuth component.
 * @param     arg_elevation The value of the elevation component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public apsDerivedState(int arg_azimuth, int arg_elevation, int arg_msecs, int arg_week)
{
  azimuth = arg_azimuth;
  elevation = arg_elevation;
  msecs = arg_msecs;
  week = arg_week;
}

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

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_int(azimuth);
  xdrs.xdr_encode_int(elevation);
  xdrs.xdr_encode_int(msecs);
  xdrs.xdr_encode_int(week);
}

/**
 * Decodes an object of class apsDerivedState 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
{
  azimuth = xdrs.xdr_decode_int();
  elevation = xdrs.xdr_decode_int();
  msecs = xdrs.xdr_decode_int();
  week = xdrs.xdr_decode_int();
}
}
