package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class sasState implements XDRType {
  public char mode; // 0 = acquisition mode, 1 = identification mode
  public timeStamp time = new timeStamp();

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

public sasState()
{}

/**
 * Creates an object of class sasState.
 * @param     arg_mode The value of the mode component.
 * @param     arg_time The value of the time component.
 */

public sasState(char arg_mode, timeStamp arg_time)
{
  mode = arg_mode;
  time = arg_time;
}

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

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_char(mode);
  time.xdr_encode(xdrs);
}

/**
 * Decodes an object of class sasState 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
{
  mode = xdrs.xdr_decode_char();
  time = new timeStamp();
  time.xdr_decode(xdrs);
}
}
