package nomadgui.Telemetry;

import distinct.rpc.*;

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

public class epsDerivedState implements XDRType {
  public int genFuel;
  public int upsCharge;
  public int upsLastTrigger;
  public int upsStateMask;
  public int msecs;
  public int week;

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

public epsDerivedState()
{}

/**
 * Creates an object of class epsDerivedState.
 * @param     arg_genFuel The value of the genFuel component.
 * @param     arg_upsCharge The value of the upsCharge component.
 * @param     arg_upsLastTrigger The value of the upsLastTrigger component.
 * @param     arg_upsStateMask The value of the upsStateMask component.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public epsDerivedState(int arg_genFuel, int arg_upsCharge, int arg_upsLastTrigger, int arg_upsStateMask, int arg_msecs, int arg_week)
{
  genFuel = arg_genFuel;
  upsCharge = arg_upsCharge;
  upsLastTrigger = arg_upsLastTrigger;
  upsStateMask = arg_upsStateMask;
  msecs = arg_msecs;
  week = arg_week;
}

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

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_int(genFuel);
  xdrs.xdr_encode_int(upsCharge);
  xdrs.xdr_encode_int(upsLastTrigger);
  xdrs.xdr_encode_int(upsStateMask);
  xdrs.xdr_encode_int(msecs);
  xdrs.xdr_encode_int(week);
}

/**
 * Decodes an object of class epsDerivedState 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
{
  genFuel = xdrs.xdr_decode_int();
  upsCharge = xdrs.xdr_decode_int();
  upsLastTrigger = xdrs.xdr_decode_int();
  upsStateMask = xdrs.xdr_decode_int();
  msecs = xdrs.xdr_decode_int();
  week = xdrs.xdr_decode_int();
}
}
