tuwien.auto.eibxlator

Class PointPDUXlator_Boolean


public class PointPDUXlator_Boolean
extends PointPDUXlator

This class implements the KNX DPT 1 Application Layer service type BOOLEAN. The ASDU is encoded in the lower nibble of the second APDU byte.

Field Summary

static String[]
DPT_ALARM
Nr.
static String[]
DPT_BINARYVALUE
Nr.
static String[]
DPT_BOOL
Nr.
static String[]
DPT_DIMSENDSTYLE
Nr.
static String[]
DPT_ENABLE
Nr.
static String[]
DPT_INPUTSOURCE
Nr.
static String[]
DPT_INVERT
Nr.
static String[]
DPT_OPENCLOSE
Nr.
static String[]
DPT_RAMP
Nr.
static String[]
DPT_START
Nr.
static String[]
DPT_STATE
Nr.
static String[]
DPT_STEP
Nr.
static String[]
DPT_SWITCH
Nr.
static String[]
DPT_UPDOWN
Nr.

Fields inherited from class tuwien.auto.eibxlator.PointPDUXlator

A_GROUPVALUE_READ, A_GROUPVALUE_RESPONSE, A_GROUPVALUE_WRITE

Constructor Summary

PointPDUXlator_Boolean()
Default constructor
PointPDUXlator_Boolean(String _PointType_Minor_Key)
Inits the object with the passed key parameter.

Method Summary

byte[]
getAPDUByteArray()
Converts the input values in the requested APDU/ASDU format.
boolean
getASDUasBoolean()
Parses the ASDU message, and returns the corresponding boolean.
String
getASDUasString()
Returns the corresponding minor type value.
EICLMap
getMinorTypes()
Get the type specific minor types
String
getPointTypeMinor()
Returns the set minor type.
void
setASDUfromBoolean(boolean _ASDU)
Sets the ASDU bit from a boolean.
void
setASDUfromString(String _ASDU)
Accepts the ASDU values to the according minor type in string format.

Methods inherited from class tuwien.auto.eibxlator.PointPDUXlator

getAPDUByteArray, getASDUasString, getMinorTypes, getPointTypeMinor, getServiceType, setAPDUByteArray, setASDUfromString, setServiceType

Field Details

DPT_ALARM

public static final String[] DPT_ALARM
Nr. 1.005 Data Point Type Alarm; Vaues no alarm, alarm

DPT_BINARYVALUE

public static final String[] DPT_BINARYVALUE
Nr. 1.006 Data Point Type Binary Value; Values low, high

DPT_BOOL

public static final String[] DPT_BOOL
Nr. 1.002 Data Point Type Boolean; Values false true;

DPT_DIMSENDSTYLE

public static final String[] DPT_DIMSENDSTYLE
Nr. 1.013 Data Point Type DimSendStyle;Values Start/Stop,Cyclic

DPT_ENABLE

public static final String[] DPT_ENABLE
Nr. 1.003 Data Point Type Enable; Values enable disable;

DPT_INPUTSOURCE

public static final String[] DPT_INPUTSOURCE
Nr. 1.014 Data Point Type InputSource; Values Fixed,Calculated

DPT_INVERT

public static final String[] DPT_INVERT
Nr. 1.012 Data Point Type Invert; Values inverted, not inverted

DPT_OPENCLOSE

public static final String[] DPT_OPENCLOSE
Nr. 1.009 Data Point Type OpenClose; Values open close

DPT_RAMP

public static final String[] DPT_RAMP
Nr. 1.004 Data Point Type Ramp; Values no ramp, ramp

DPT_START

public static final String[] DPT_START
Nr. 1.010 Data Point Type Start; Values stop start

DPT_STATE

public static final String[] DPT_STATE
Nr. 1.011 Data Point Type State; Values inactive active

DPT_STEP

public static final String[] DPT_STEP
Nr. 1.007 Data Point Type Step; Values decrease increase

DPT_SWITCH

public static final String[] DPT_SWITCH
Nr. 1.001 Data Point Type Switch; Values off on

DPT_UPDOWN

public static final String[] DPT_UPDOWN
Nr. 1.008 Data Point Type UpDown; Values up down

Constructor Details

PointPDUXlator_Boolean

public PointPDUXlator_Boolean()
Default constructor

PointPDUXlator_Boolean

public PointPDUXlator_Boolean(String _PointType_Minor_Key)
            throws EICLException
Inits the object with the passed key parameter.
Parameters:
_PointType_Minor_Key - The minor type key.
Throws:
EICLException - If the minor type key doesn't exist

Method Details

getAPDUByteArray

public byte[] getAPDUByteArray()
Converts the input values in the requested APDU/ASDU format. The result is the complete Application Layer encoding.
Overrides:
getAPDUByteArray in interface PointPDUXlator
Returns:
the asdu byte[]

getASDUasBoolean

public boolean getASDUasBoolean()
Parses the ASDU message, and returns the corresponding boolean.
Returns:
The ASDU message boolean.

getASDUasString

public String getASDUasString()
Returns the corresponding minor type value.
Overrides:
getASDUasString in interface PointPDUXlator

getMinorTypes

public EICLMap getMinorTypes()
Get the type specific minor types
Overrides:
getMinorTypes in interface PointPDUXlator
Returns:
the minor types

getPointTypeMinor

public String getPointTypeMinor()
Returns the set minor type.
Overrides:
getPointTypeMinor in interface PointPDUXlator
Returns:
the minor type

setASDUfromBoolean

public void setASDUfromBoolean(boolean _ASDU)
Sets the ASDU bit from a boolean.
Parameters:
_ASDU - The boolean to be set.

setASDUfromString

public void setASDUfromString(String _ASDU)
            throws EICLException
Accepts the ASDU values to the according minor type in string format.
Overrides:
setASDUfromString in interface PointPDUXlator
Throws:
EICLException - If the value can't be found.