Class XNetLocoFunctionMomentaryStatusReplyFormatter
java.lang.Object
jmri.jmrix.lenz.messageformatters.XNetLocoFunctionMomentaryStatusReplyFormatter
- All Implemented Interfaces:
XPressNetMessageFormatter,MessageFormatter
public class XNetLocoFunctionMomentaryStatusReplyFormatter
extends Object
implements XPressNetMessageFormatter
Format replies for XPressNet Command Station reply for Loco Function Status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormat the message into a stringbooleanDetermine if this formatter can handle the messageprotected StringparseFunctionMomentaryStatus(int element3, int element4) Parse the Momentary status of functions.
-
Constructor Details
-
XNetLocoFunctionMomentaryStatusReplyFormatter
-
-
Method Details
-
handlesMessage
Description copied from interface:MessageFormatterDetermine if this formatter can handle the message- Specified by:
handlesMessagein interfaceMessageFormatter- Parameters:
m- message to check- Returns:
- true if this formatter can handle the message
-
formatMessage
Description copied from interface:MessageFormatterFormat the message into a string- Specified by:
formatMessagein interfaceMessageFormatter- Parameters:
m- message to format- Returns:
- formatted string
-
parseFunctionMomentaryStatus
Parse the Momentary status of functions.- Parameters:
element3- contains the data byte including F0,F1,F2,F3,F4element4- contains F12,F11,F10,F9,F8,F7,F6,F5- Returns:
- readable version of message
-