package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class sysState implements XDRType {
  public int sysStateFlag;
  public int msecs;
  public int week;

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

public sysState()
{}

/**
 * Creates an object of class sysState.
 * @param     arg_sysStateFlag The value of the sysStateFlag component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public sysState(int arg_sysStateFlag, int arg_msecs, int arg_week)
{
  sysStateFlag = arg_sysStateFlag;
  msecs = arg_msecs;
  week = arg_week;
}

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

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

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