public final class SHORT extends ACompoundDataObject
The primitive TINE data type called SHORT
which currently doesn't
exist in the TINE framework.
ATTENTION: The methods of toStruct()
and
toByteArray()
doesn't react as expected, because the TINE method of
Swap.Short(..)
seems to be a little bit misleading. So both will
throw a runtime exception if they are called.
Modifier and Type | Field and Description |
---|---|
static short |
dFormat
TINE data type constant format.
|
byte[] |
hByteArray
Byte array of the primitive
short field. |
static int |
sizeInBytes
The size in bytes of this field.
|
short |
sval
Currently the primitive type of this object.
|
Constructor and Description |
---|
SHORT()
Initializes the current object with the value of 0.
|
SHORT(short short_)
Initializes the current object with the value of
short_ . |
SHORT(SHORT instance_)
Initializes the current object with a
SHORT instance. |
Modifier and Type | Method and Description |
---|---|
de.desy.tine.types.TCompoundDataObject |
clone() |
boolean |
equals(java.lang.Object obj) |
boolean |
equals(SHORT instance_)
Returns the equality of this instance with the delivered one.
|
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(short newValue_)
Sets the current value to the delivered
short one. |
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 short sval
public static final int sizeInBytes
public static final short dFormat
public byte[] hByteArray
short
field.public SHORT()
public SHORT(short short_)
short_
.short_
- Current short
value.public SHORT(SHORT instance_)
SHORT
instance.instance_
- The current instance of SHORT
.public void setValues(short newValue_)
short
one.newValue_
- Current value.public int getSizeInBytes()
de.desy.tine.types.TCompoundDataObject
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 getTag()
de.desy.tine.types.TCompoundDataObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(SHORT instance_)
instance_
- Delivered instance.true
if both instances are the same, i.e.
all fields are equal. Otherwise a false
is returned.public byte[] toByteArray()
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