Package com.ed.edcom
Class DspFloat
java.lang.Object
com.ed.edcom.ADspData
com.ed.edcom.DspFloat
Float data representation.
-
Field Summary
Fields inherited from class com.ed.edcom.ADspData
bufRead, bufWrite, data, data_set, externalKey1, externalKey2
-
Constructor Summary
ConstructorDescriptionDspFloat
(String name, int len, DspVarListener listner, long refreshPeriod) Class constructor. -
Method Summary
Methods inherited from class com.ed.edcom.ADspData
addListener, canRead, canReadAfterModify, canWrite, enableReqOptionalField, getByte, getBytes, hasChanged, isValid, refresh, refreshTime, setKey2, setModifiedNow, setReqOptionalField, setSynchReadDspVar, setValidPeriod
-
Field Details
-
DSP_FLOAT_SIZE
public static final int DSP_FLOAT_SIZEIEEE 754 Float type size.- See Also:
-
-
Constructor Details
-
DspFloat
Class constructor.- Parameters:
name
- variable name (according to embedded software)len
- array length ('1' for non array)listner
- on change listenerrefreshPeriod
- required refresh period in milliseconds, '0' - no refresh required.- Throws:
Exception
- wrong parameters
-
-
Method Details
-
getValue
Get variable value by index. -
getFloat
Get float value by index.- Parameters:
ix
- index in float array ('0' for non array)- Returns:
- float value
- Throws:
IndexOutOfBoundsException
- If index is negative or not smaller than the limit
-
setFloat
Set float value by index.- Parameters:
fv
- new float valueix
- index in float array- Throws:
IndexOutOfBoundsException
- If index is negative or not smaller than the limit
-