Package org.openwebnet4j.message
Class OpenMessage
- java.lang.Object
-
- org.openwebnet4j.message.OpenMessage
-
- Direct Known Subclasses:
AckOpenMessage,BaseOpenMessage
public abstract class OpenMessage extends Object
Abstract OpenWebNet messages.- Author:
- M. Valla - Initial contribution
-
-
Field Summary
Fields Modifier and Type Field Description static StringFRAME_ACKstatic StringFRAME_ACK_NACK_BUSY_STARTstatic StringFRAME_BUSY_NACKstatic StringFRAME_ENDstatic StringFRAME_NACKstatic StringFRAME_STARTstatic StringFRAME_START_DIMprotected StringframeValue
-
Constructor Summary
Constructors Constructor Description OpenMessage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFrameValue()Gets the raw frame valuebooleanisACK()Is this OpenMessage an ACK? (*#*1##).booleanisBUSY_NACK()Is this OpenMessage an BUSY_NACK? (*#*6##).abstract booleanisCommand()Is this OpenMessage a command? (*WHO..).booleanisNACK()Is this OpenMessage an NACK? (*#*0##).StringtoString()abstract StringtoStringVerbose()Get a verbose representation of this message.
-
-
-
Field Detail
-
FRAME_ACK
public static final String FRAME_ACK
- See Also:
- Constant Field Values
-
FRAME_NACK
public static final String FRAME_NACK
- See Also:
- Constant Field Values
-
FRAME_BUSY_NACK
public static final String FRAME_BUSY_NACK
- See Also:
- Constant Field Values
-
FRAME_ACK_NACK_BUSY_START
public static final String FRAME_ACK_NACK_BUSY_START
- See Also:
- Constant Field Values
-
FRAME_START
public static final String FRAME_START
- See Also:
- Constant Field Values
-
FRAME_START_DIM
public static final String FRAME_START_DIM
- See Also:
- Constant Field Values
-
FRAME_END
public static final String FRAME_END
- See Also:
- Constant Field Values
-
frameValue
protected String frameValue
-
-
Method Detail
-
getFrameValue
public String getFrameValue()
Gets the raw frame value- Returns:
- the raw frame value as String
-
isCommand
public abstract boolean isCommand()
Is this OpenMessage a command? (*WHO..).- Returns:
- true if it's a command frame
-
isACK
public boolean isACK()
Is this OpenMessage an ACK? (*#*1##).- Returns:
- true if it's an ACK
-
isNACK
public boolean isNACK()
Is this OpenMessage an NACK? (*#*0##).- Returns:
- true if it's an NACK
-
isBUSY_NACK
public boolean isBUSY_NACK()
Is this OpenMessage an BUSY_NACK? (*#*6##).- Returns:
- true if it's an BUSY_NACK
-
toStringVerbose
public abstract String toStringVerbose()
Get a verbose representation of this message.- Returns:
- verbose string representation
-
-