package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class kvhDerivedState implements XDRType {
  public int pitch;
  public int roll;
  public int magneticAzimuth;
  public int msecs;
  public int week;

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

public kvhDerivedState()
{}

/**
 * Creates an object of class kvhDerivedState.
 * @param     arg_pitch The value of the pitch component.
 * @param     arg_roll The value of the roll component.
 * @param     arg_magneticAzimuth The value of the magneticAzimuth component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public kvhDerivedState(int arg_pitch, int arg_roll, int arg_magneticAzimuth, int arg_msecs, int arg_week)
{
  pitch = arg_pitch;
  roll = arg_roll;
  magneticAzimuth = arg_magneticAzimuth;
  msecs = arg_msecs;
  week = arg_week;
}

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

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_int(pitch);
  xdrs.xdr_encode_int(roll);
  xdrs.xdr_encode_int(magneticAzimuth);
  xdrs.xdr_encode_int(msecs);
  xdrs.xdr_encode_int(week);
}

/**
 * Decodes an object of class kvhDerivedState 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
{
  pitch = xdrs.xdr_decode_int();
  roll = xdrs.xdr_decode_int();
  magneticAzimuth = xdrs.xdr_decode_int();
  msecs = xdrs.xdr_decode_int();
  week = xdrs.xdr_decode_int();
}
}
