|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.stz.bt.fnd.datapoints.FND_Value
Used to convert float and int-values into IEE754 floating point format and vice versa.
Field Summary | |
private int |
value
|
Constructor Summary | |
FND_Value()
Default constructor, doesn't do anything. |
|
FND_Value(byte[] byteValue)
Constructor, supplied value is stored in IEEE format. |
|
FND_Value(float floatValue)
Constructor, supplied value is stored in IEEE format. |
|
FND_Value(int intValue)
Constructor, supplied value is stored in IEEE format. |
Method Summary | |
float |
getFloatValue()
Returns float value of stored IEEE-value. |
int |
getIntValue()
Returns integer value of stored IEEE-value. |
byte[] |
getShortRealValue()
Returns the stored value as a four byte array. |
void |
setFloatValue(float floatValue)
Stores float-value as IEEE-value. |
void |
setIntValue(int intValue)
Stores Integer-Value in IEEE-format |
void |
setShortRealValue(byte[] byteValue)
Stores a byte array of four elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int value
Constructor Detail |
public FND_Value()
public FND_Value(float floatValue)
floatValue
- Value to be stored.public FND_Value(int intValue)
intValue
- Value to be stored.public FND_Value(byte[] byteValue) throws java.lang.IndexOutOfBoundsException
byteValue
- Value to be stored.Method Detail |
public void setIntValue(int intValue)
intValue
- public int getIntValue()
public void setFloatValue(float floatValue)
floatValue
- Float-value to be stored.public float getFloatValue()
public void setShortRealValue(byte[] byteValue) throws java.lang.IndexOutOfBoundsException
byteValue
- The byte array to be stored.
java.lang.IndexOutOfBoundsException
- If the array length is unequal to four.public byte[] getShortRealValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |