Package com.mouseviator.fsuipc.helpers
Class LVarHelper.DoubleLVarReadRequest
java.lang.Object
com.mouseviator.fsuipc.datarequest.DataRequest
com.mouseviator.fsuipc.helpers.LVarHelper.DoubleLVarReadRequest
- All Implemented Interfaces:
IDataRequest<java.lang.Double>
,IReadOnlyRequest<java.lang.Double>
- Enclosing class:
- LVarHelper
public static class LVarHelper.DoubleLVarReadRequest extends DataRequest implements IReadOnlyRequest<java.lang.Double>
This class implements LVar read (read-only) request. The returned value will be Double (64-bit float value). The
only parameter for the only available constructor this class have is the offset at which the value of Lvar will
be found (where you told FSUIPC to store it). This class is best used with
LVarHelper.readLVar(java.lang.String, int, com.mouseviator.fsuipc.helpers.LVarHelper.LVarValueFormat)
function
or LVarHelper.readLVar(java.lang.String, int, com.mouseviator.fsuipc.helpers.LVarHelper.LVarValueFormat, com.mouseviator.fsuipc.FSUIPC, boolean)
function.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mouseviator.fsuipc.datarequest.IDataRequest
IDataRequest.RequestType
-
Field Summary
Fields inherited from class com.mouseviator.fsuipc.datarequest.DataRequest
BUFFER_LENGTH_BYTE, BUFFER_LENGTH_DOUBLE, BUFFER_LENGTH_FLOAT, BUFFER_LENGTH_INT, BUFFER_LENGTH_LONG, BUFFER_LENGTH_SHORT, dataBuffer, MAX_OFFSET_VALUE, MIN_OFFSET_VALUE, offset, type
-
Constructor Summary
Constructors Constructor Description DoubleLVarReadRequest(int offset)
Construct new LVar read request. -
Method Summary
Modifier and Type Method Description java.lang.Double
getValue()
Returns the double value stored in this read data request.Methods inherited from class com.mouseviator.fsuipc.datarequest.DataRequest
convertStringToByteArray, copyByteArray, getDataBuffer, getDouble, getFloat, getInt, getLong, getOffset, getShort, getSize, getType, getZeroTerminatedString, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, setOffset, setType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mouseviator.fsuipc.datarequest.IDataRequest
getDataBuffer, getOffset, getSize, getType, setOffset, setType
Methods inherited from interface com.mouseviator.fsuipc.datarequest.IReadOnlyRequest
setValue
-
Constructor Details
-
DoubleLVarReadRequest
public DoubleLVarReadRequest(int offset)Construct new LVar read request.- Parameters:
offset
- The offset at which the LVar value will be stored by FSUIPC.
-
-
Method Details
-
getValue
public java.lang.Double getValue()Returns the double value stored in this read data request.- Specified by:
getValue
in interfaceIDataRequest<java.lang.Double>
- Returns:
- The read request value.
-