Class XNetLocoFunctionMomentaryStatusReplyFormatter
- java.lang.Object
-
- jmri.jmrix.lenz.messageformatters.XNetLocoFunctionMomentaryStatusReplyFormatter
-
- All Implemented Interfaces:
XPressNetMessageFormatter
,MessageFormatter
public class XNetLocoFunctionMomentaryStatusReplyFormatter extends java.lang.Object implements XPressNetMessageFormatter
Format replies for XPressNet Command Station reply for Loco Function Status.
-
-
Constructor Summary
Constructors Constructor Description XNetLocoFunctionMomentaryStatusReplyFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatMessage(Message m)
Format the message into a stringboolean
handlesMessage(Message m)
Determine if this formatter can handle the messageprotected java.lang.String
parseFunctionMomentaryStatus(int element3, int element4)
Parse the Momentary status of functions.
-
-
-
Constructor Detail
-
XNetLocoFunctionMomentaryStatusReplyFormatter
public XNetLocoFunctionMomentaryStatusReplyFormatter()
-
-
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
-
parseFunctionMomentaryStatus
protected java.lang.String parseFunctionMomentaryStatus(int element3, int element4)
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
-
-