Package org.openwebnet4j.message
Class WhereZigBee
- java.lang.Object
-
- org.openwebnet4j.message.Where
-
- org.openwebnet4j.message.WhereZigBee
-
public class WhereZigBee extends Where
WHERE for ZigBee Lighting and Automation frames- Author:
- M. Valla - Initial contribution
-
-
Constructor Summary
Constructors Constructor Description WhereZigBee(String w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddr()
Return the ADDR part by removing UNIT (e.g.String
getUnit()
Return the UNIT part (ex.: WHERE=123456702#9 -> UNIT=02)String
valueWithUnit(String u)
Returns a String with the value of this WHERE using the provided string as UNIT
-
-
-
Field Detail
-
UNIT_01
public static final String UNIT_01
- See Also:
- Constant Field Values
-
UNIT_02
public static final String UNIT_02
- See Also:
- Constant Field Values
-
UNIT_ALL
public static final String UNIT_ALL
- See Also:
- Constant Field Values
-
ZB_NETWORK
public static final String ZB_NETWORK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WhereZigBee
public WhereZigBee(String w) throws IllegalArgumentException, NullPointerException
-
-
Method Detail
-
valueWithUnit
public String valueWithUnit(String u)
Returns a String with the value of this WHERE using the provided string as UNIT- Parameters:
u
- the UNIT string- Returns:
- a String with the value of this WHERE ending with u as UNIT
-
getUnit
public String getUnit()
Return the UNIT part (ex.: WHERE=123456702#9 -> UNIT=02)- Returns:
- a String with the UNIT part of this address, null if no UNIT part is found
-
getAddr
public String getAddr()
Return the ADDR part by removing UNIT (e.g. '02') and network ('#9') Example: WHERE=123456702#9 -> ADDR=1234567- Returns:
- a String with the ADDR part of this address, null if no ADDR part is found
-
-