Class DoubleRequest

java.lang.Object
com.mouseviator.fsuipc.datarequest.DataRequest
com.mouseviator.fsuipc.datarequest.primitives.DoubleRequest
All Implemented Interfaces:
IDataRequest<java.lang.Double>

public class DoubleRequest
extends DataRequest
implements IDataRequest<java.lang.Double>
This class implements double data request for use with FSUIPC class. The internal byte data buffer length will be 8 bytes (64 bit), matching FSUIPC 64bit signed floating point values. If you are familiar with FSUIPC lua functions, or other data type marking, thes will match data that you can read in lua with readDBL function.
Author:
Mouseviator
  • Constructor Details

    • DoubleRequest

      public DoubleRequest()
      Creates a new double data request.
    • DoubleRequest

      public DoubleRequest​(int offset) throws java.security.InvalidParameterException
      Creates a new double data request associated with given offset.
      Parameters:
      offset - An offset to associate this data request with.
      Throws:
      java.security.InvalidParameterException
    • DoubleRequest

      public DoubleRequest​(int offset, double value) throws java.security.InvalidParameterException
      Creates a new double data request associated with given offset and with given value.This also sets data request type to WRITE.
      Parameters:
      offset - An offset to associate this data request with.
      value - The actual value.
      Throws:
      java.security.InvalidParameterException
    • DoubleRequest

      public DoubleRequest​(int offset, java.lang.Double value) throws java.security.InvalidParameterException
      Creates a new double data request associated with given offset and with given value.This also sets data request type to WRITE.
      Parameters:
      offset - An offset to associate this data request with.
      value - The actual value.
      Throws:
      java.security.InvalidParameterException
  • Method Details

    • getValue

      public java.lang.Double getValue()
      Description copied from interface: IDataRequest
      Returns the value stored within this data request byte data buffer.
      Specified by:
      getValue in interface IDataRequest<java.lang.Double>
      Returns:
      The value stored within this data request.
    • setValue

      public void setValue​(java.lang.Double value)
      Description copied from interface: IDataRequest
      Sets the value to be stored in the byte data buffer of this data request.
      Specified by:
      setValue in interface IDataRequest<java.lang.Double>
      Parameters:
      value - The value to store.