tuwien.auto.eibxlator
Class PointPDUXlator_8BitUnsigned
public class PointPDUXlator_8BitUnsigned
This class implements the KNX DPT 6 Application Layer type. The values are in
the range of 0-255.
DPT_ANGLE
public static final String[] DPT_ANGLE
Nr. 5.003 Data Point Type Angle; values form 0 to 360 %
DPT_SCALING
public static final String[] DPT_SCALING
Nr. 5.001 Data Point Type Scaling; values from 0 to 100 %
DPT_VALUE_1_UCOUNT
public static final String[] DPT_VALUE_1_UCOUNT
Nr. 5.010 Data Point Type value 1 ucount; values from 0 to 255 counter
pulses
PointPDUXlator_8BitUnsigned
public PointPDUXlator_8BitUnsigned()
Dummy constructor only used for initialising the eiclMap. Don't use this
PointPDUXlator_8BitUnsigned
public PointPDUXlator_8BitUnsigned(String _PointType_Minor_Key)
throws EICLException
Inits the object with the requested minor type.
_PointType_Minor_Key
- the minor type key.
getAPDUByteArray
public byte[] getAPDUByteArray()
Converts the input values in the requested APDU/ASDU format. The result
is the complete Application Layer encoding.
- getAPDUByteArray in interface PointPDUXlator
getASDUasShort
public short getASDUasShort()
Returns the ASDU byte as short value. Note that DPT_SCALING and DPT_ANGLE
are scaled.
getASDUasShortUnscaled
public short getASDUasShortUnscaled()
The ASDU as short unscaled value.
getASDUasString
public String getASDUasString()
Return a string interpretation of the ASDU byte. The string is composed
of the short value and the corresponding unit of measurement.
- getASDUasString in interface PointPDUXlator
setASDUfromShort
public void setASDUfromShort(short _ASDU)
throws EICLException
Sets the ASDU byte form a float. Note that DPT_SCALING and DPT_ANGLE
values are interpreted scaled.
_ASDU
- The ASDU short value.
setASDUfromShortUnscaled
public void setASDUfromShortUnscaled(short _ASDU)
Sets the ASDU byte from a unsigned unscaled short.
setASDUfromString
public void setASDUfromString(String _ASDU)
throws EICLException
Sets the ASDU byte by parsing a string. The String is interpreted as
short value. See setASDUfromShort() method for details.
- setASDUfromString in interface PointPDUXlator