public class INTEGER extends ACompoundDataObject
Modifier and Type | Field and Description |
---|---|
static short |
dFormat
TINE data type.
|
byte[] |
hByteArray
Is the corresponding value as a byte array.
|
int |
ival
The current float field of this data element.
|
static int |
sizeInBytes
The size of bytes of this data element.
|
Constructor and Description |
---|
INTEGER()
Constructor.
|
INTEGER(int i)
Constructor.
|
INTEGER(INTEGER instance_)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
de.desy.tine.types.TCompoundDataObject |
clone() |
boolean |
equals(INTEGER 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(int 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 int ival
public static final int sizeInBytes
public static final short dFormat
public byte[] hByteArray
public INTEGER()
public INTEGER(int i)
f
.i
- public INTEGER(INTEGER instance_)
instance_
- Instance of a float value.public int getSizeInBytes()
de.desy.tine.types.TCompoundDataObject
public void setValues(int 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 int getIntegerValue()
de.desy.tine.types.TCompoundDataObject
public double getDoubleValue()
de.desy.tine.types.TCompoundDataObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(INTEGER 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 java.lang.String getTag()
de.desy.tine.types.TCompoundDataObject
public void toStruct()
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