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 String
FRAME_ACK
static String
FRAME_ACK_NACK_BUSY_START
static String
FRAME_BUSY_NACK
static String
FRAME_END
static String
FRAME_NACK
static String
FRAME_START
static String
FRAME_START_DIM
protected String
frameValue
-
Constructor Summary
Constructors Constructor Description OpenMessage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getFrameValue()
Gets the raw frame valueboolean
isACK()
Is this OpenMessage an ACK? (*#*1##
).boolean
isBUSY_NACK()
Is this OpenMessage an BUSY_NACK? (*#*6##
).abstract boolean
isCommand()
Is this OpenMessage a command? (*WHO..
).boolean
isNACK()
Is this OpenMessage an NACK? (*#*0##
).String
toString()
abstract String
toStringVerbose()
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
-
-