tuwien.auto.eibxlator
Class PointPDUXlator_3BitControlled
public class PointPDUXlator_3BitControlled
This class implements the KNX DPT 3. Minor type dimming, blinds and boiler.
This type consists of a increase, decrease bit and a 3 bit value.
DPT_Control_Blinds
public static final String[] DPT_Control_Blinds
Nr. 1.008 Data Point Type Blinds Control; Values are boolean.updown
DPT_Control_Dimming
public static final String[] DPT_Control_Dimming
Nr. 1.007 Data Point Type Dimming Control; Values are boolean.step
DPT_Mode_Boiler
public static final String[] DPT_Mode_Boiler
Nr. 1.014 Data Point Type Boiler Mode; Values are boolean.inputsource
PointPDUXlator_3BitControlled
public PointPDUXlator_3BitControlled()
Dummy constructor only used for initialising the eiclMap. Don't use this.
PointPDUXlator_3BitControlled
public PointPDUXlator_3BitControlled(String _PointType_Minor_Key)
throws EICLException
Inits the object with the given minor type
_PointType_Minor_Key
- the requested 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
getASDUControlBit
public boolean getASDUControlBit()
Retrieves the increase decrease boolean value
- True if the value is decrease. False if the message is an
increase value.
getASDUValueFieldScaled
public float getASDUValueFieldScaled()
Returns the encapsulated ASDU value scaled in percent as float.
getASDUValueFieldUnscaled
public short getASDUValueFieldUnscaled()
Return the ASDU value unscaled as short.
getASDUasString
public String getASDUasString()
Returns a String composed by the control bit value, the step value and
the to the minor type corresponding unit of measurement.
- getASDUasString in interface PointPDUXlator
- The string interpretation of the ASDU.
setASDUControlBit
public void setASDUControlBit(boolean _Direction)
Sets the ASDU control bit to the specified direction. false is
interpreted as negative (decrease), whereas true is interpreted as
positive value(increase).
_Direction
- The ASDU direction to be set.
setASDUValueFieldScaled
public void setASDUValueFieldScaled(float stepValue)
throws EICLException
Sets the ASDU value form a scaled float value. Note that 000 corresponds
to a step break.
stepValue
- The ASDU value.
setASDUValueFieldUnsigned
public void setASDUValueFieldUnsigned(short stepValue)
throws EICLException
Sets the ASDU value from a unsigned unscaled short value. Note that 000
corresponds to a step break.
stepValue
- The ASDU value.
setASDUfromString
public void setASDUfromString(String _ASDU)
throws EICLException
Sets the ASDU from a String. The string must be composed of the
corresponding minor type control flag value separated by a blank from the
value itself. Note that all values are interpreted unsigned short.
- setASDUfromString in interface PointPDUXlator