public final class FLOAT extends ACompoundDataObject
float
.Modifier and Type | Field and Description |
---|---|
static short |
dFormat
TINE data type.
|
float |
fval
The current float field of this data element.
|
byte[] |
hByteArray
Is the corresponding value as a byte array.
|
static int |
sizeInBytes
The size of bytes of this data element.
|
Constructor and Description |
---|
FLOAT()
Constructor.
|
FLOAT(float f)
Constructor.
|
FLOAT(FLOAT instance_)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
de.desy.tine.types.TCompoundDataObject |
clone() |
boolean |
equals(FLOAT instance_)
Checks if both value are equal and returns the corresponding boolean
value.
|
boolean |
equals(java.lang.Object obj) |
byte[] |
getByteArray()
Passive method that simple returns the reference to the underlying bytestream
Used by TDataType(), TTaggedStruct, and THistoryRecord.
|
double |
getDoubleValue()
Used only by the THistoryRecord class in retrieving the primary double floating
point value for this compound data object (if available).
|
short |
getFormat()
Used by TDataType, TTaggedStruct and other routines.
|
int |
getIntegerValue()
Used only by the THistoryRecord class in retrieving the primary 32-bit integer
value for this compound data object (if available).
|
int |
getSizeInBytes()
Used by TDataType, TTaggedStruct and other routines.
|
java.lang.String |
getTag()
Used by TDataType, TTaggedStruct and other routines.
|
int |
hashCode() |
void |
setByteArray(byte[] byteArray_)
Sets the underlying bytestream to that give
Used only by the HISTORY data type for manipulating compound data types.
|
void |
setValues(float newFValue_)
Sets the float value.
|
byte[] |
toByteArray()
Active method to convert the relevant data fields of this compound data
type into the underlying byte stream (data being sent).
|
java.lang.String |
toString() |
void |
toStruct()
Active method to convert the underlying byte stream to the relevant data fields of
this compound data type.
|
getCsvString
public float fval
public static final int sizeInBytes
public static final short dFormat
public byte[] hByteArray
public FLOAT()
public FLOAT(float f)
f
.f
- public FLOAT(FLOAT instance_)
instance_
- Instance of a float value.public int getSizeInBytes()
de.desy.tine.types.TCompoundDataObject
public void setValues(float newFValue_)
newFValue_
- Sets the current float value.public short getFormat()
de.desy.tine.types.TCompoundDataObject
public void setByteArray(byte[] byteArray_)
de.desy.tine.types.TCompoundDataObject
byteArray_
- a new reference to an underlying bytestreampublic byte[] getByteArray()
de.desy.tine.types.TCompoundDataObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(FLOAT instance_)
instance_
- Request the equality of the delivered instance of a float with
the current one.true
if both values are equal otherwise a
false
.public byte[] toByteArray()
de.desy.tine.types.TCompoundDataObject
public void toStruct()
de.desy.tine.types.TCompoundDataObject
public int getIntegerValue()
de.desy.tine.types.TCompoundDataObject
public double getDoubleValue()
de.desy.tine.types.TCompoundDataObject
public java.lang.String getTag()
de.desy.tine.types.TCompoundDataObject
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public de.desy.tine.types.TCompoundDataObject clone()
clone
in interface de.desy.tine.types.TCompoundDataObject
clone
in class ACompoundDataObject
14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft