Class XNetLocoInfoReplyUtilities
java.lang.Object
jmri.jmrix.lenz.messageformatters.XNetLocoInfoReplyUtilities
Utility methods for parsing the Loco Info Reply messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringparseFunctionHighStatus(int element3, int element4) Parse the status of functions F13-F28.static StringparseFunctionStatus(int element3, int element4) Parse the status of functions F0-F12.static StringparseSpeedAndDirection(int element1, int element2) Parse the speed step and the direction information for a locomotive.
-
Constructor Details
-
XNetLocoInfoReplyUtilities
public XNetLocoInfoReplyUtilities()
-
-
Method Details
-
parseSpeedAndDirection
Parse the speed step and the direction information for a locomotive.- Parameters:
element1- contains the speed step mode designation and availability informationelement2- contains the data byte including the step mode and availability information- Returns:
- readable version of message
-
parseFunctionStatus
Parse the status of functions F0-F12.- 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
-
parseFunctionHighStatus
Parse the status of functions F13-F28.- Parameters:
element3- contains F20,F19,F18,F17,F16,F15,F14,F13element4- contains F28,F27,F26,F25,F24,F23,F22,F21- Returns:
- readable version of message
-