package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class steInternalState implements XDRType {
  public int stateMask;
  public int cameraDesignator;
  public int msecs;
  public int week;

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

public steInternalState()
{}

/**
 * Creates an object of class steInternalState.
 * @param     arg_stateMask The value of the stateMask component.
 * @param     arg_cameraDesignator The value of the cameraDesignator component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public steInternalState(int arg_stateMask, int arg_cameraDesignator, int arg_msecs, int arg_week)
{
  stateMask = arg_stateMask;
  cameraDesignator = arg_cameraDesignator;
  msecs = arg_msecs;
  week = arg_week;
}

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

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

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