Class Z21RMBusFeedbackReplyFormatter
- java.lang.Object
-
- jmri.jmrix.roco.z21.messageformatters.Z21RMBusFeedbackReplyFormatter
-
- All Implemented Interfaces:
MessageFormatter
,Z21MessageFormatter
public class Z21RMBusFeedbackReplyFormatter extends java.lang.Object implements Z21MessageFormatter
Class for formatting the Z21 RMBus Feedback Reply
-
-
Constructor Summary
Constructors Constructor Description Z21RMBusFeedbackReplyFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatMessage(Message m)
Format the message into a string(package private) java.lang.String
getState(int contact, boolean on)
boolean
handlesMessage(Message m)
Determine if this formatter can handle the message
-
-
-
Constructor Detail
-
Z21RMBusFeedbackReplyFormatter
public Z21RMBusFeedbackReplyFormatter()
-
-
Method Detail
-
handlesMessage
public boolean handlesMessage(Message m)
Description copied from interface:MessageFormatter
Determine if this formatter can handle the message- Specified by:
handlesMessage
in interfaceMessageFormatter
- Parameters:
m
- message to check- Returns:
- true if this formatter can handle the message
-
formatMessage
public java.lang.String formatMessage(Message m)
Description copied from interface:MessageFormatter
Format the message into a string- Specified by:
formatMessage
in interfaceMessageFormatter
- Parameters:
m
- message to format- Returns:
- formatted string
-
getState
java.lang.String getState(int contact, boolean on)
-
-