package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class navWatchdogStatus implements XDRType {
  public int navStatusMask;
  public int stereoUptime;
  public int morphinUptime;
  public int arbiterUptime;
  public int centralUptime;
  public int frameGrabbingUptime;
  public int msecs;
  public int week;

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

public navWatchdogStatus()
{}

/**
 * Creates an object of class navWatchdogStatus.
 * @param     arg_navStatusMask The value of the navStatusMask component.
 * @param     arg_stereoUptime The value of the stereoUptime component.
 * @param     arg_morphinUptime The value of the morphinUptime component.
 * @param     arg_arbiterUptime The value of the arbiterUptime component.
 * @param     arg_centralUptime The value of the centralUptime component.
 * @param     arg_frameGrabbingUptime The value of the frameGrabbingUptime component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public navWatchdogStatus(int arg_navStatusMask, int arg_stereoUptime, int arg_morphinUptime, int arg_arbiterUptime, int arg_centralUptime, int arg_frameGrabbingUptime, int arg_msecs, int arg_week)
{
  navStatusMask = arg_navStatusMask;
  stereoUptime = arg_stereoUptime;
  morphinUptime = arg_morphinUptime;
  arbiterUptime = arg_arbiterUptime;
  centralUptime = arg_centralUptime;
  frameGrabbingUptime = arg_frameGrabbingUptime;
  msecs = arg_msecs;
  week = arg_week;
}

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

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_int(navStatusMask);
  xdrs.xdr_encode_int(stereoUptime);
  xdrs.xdr_encode_int(morphinUptime);
  xdrs.xdr_encode_int(arbiterUptime);
  xdrs.xdr_encode_int(centralUptime);
  xdrs.xdr_encode_int(frameGrabbingUptime);
  xdrs.xdr_encode_int(msecs);
  xdrs.xdr_encode_int(week);
}

/**
 * Decodes an object of class navWatchdogStatus 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
{
  navStatusMask = xdrs.xdr_decode_int();
  stereoUptime = xdrs.xdr_decode_int();
  morphinUptime = xdrs.xdr_decode_int();
  arbiterUptime = xdrs.xdr_decode_int();
  centralUptime = xdrs.xdr_decode_int();
  frameGrabbingUptime = xdrs.xdr_decode_int();
  msecs = xdrs.xdr_decode_int();
  week = xdrs.xdr_decode_int();
}
}
