package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class lasNav implements XDRType {
  public int[] laserHazards = new int[180];
  public int ignoreMe;
  public int msecs;
  public int week;

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

public lasNav()
{}

/**
 * Creates an object of class lasNav.
 * @param     arg_laserHazards The value of the laserHazards component.
 * @param     arg_ignoreMe The value of the ignoreMe component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public lasNav(int[] arg_laserHazards, int arg_ignoreMe, int arg_msecs, int arg_week)
{
  laserHazards = arg_laserHazards;
  ignoreMe = arg_ignoreMe;
  msecs = arg_msecs;
  week = arg_week;
}

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

public void xdr_encode(XDRStream xdrs)
{
  for (int i_v = 0; i_v < 180; i_v++){
    xdrs.xdr_encode_int(laserHazards[i_v]);
  }
  xdrs.xdr_encode_int(ignoreMe);
  xdrs.xdr_encode_int(msecs);
  xdrs.xdr_encode_int(week);
}

/**
 * Decodes an object of class lasNav 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
{
  laserHazards = new int[180];
  for (int i_v = 0; i_v < 180; i_v++){
    laserHazards[i_v] = xdrs.xdr_decode_int();
  }
  ignoreMe = xdrs.xdr_decode_int();
  msecs = xdrs.xdr_decode_int();
  week = xdrs.xdr_decode_int();
}
}
