Class XNetLocoInfoReplyUtilities

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String parseFunctionHighStatus​(int element3, int element4)
      Parse the status of functions F13-F28.
      static java.lang.String parseFunctionStatus​(int element3, int element4)
      Parse the status of functions F0-F12.
      static java.lang.String parseSpeedAndDirection​(int element1, int element2)
      Parse the speed step and the direction information for a locomotive.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseSpeedAndDirection

        public static java.lang.String parseSpeedAndDirection​(int element1,
                                                              int element2)
        Parse the speed step and the direction information for a locomotive.
        Parameters:
        element1 - contains the speed step mode designation and availability information
        element2 - contains the data byte including the step mode and availability information
        Returns:
        readable version of message
      • parseFunctionStatus

        public static java.lang.String parseFunctionStatus​(int element3,
                                                           int element4)
        Parse the status of functions F0-F12.
        Parameters:
        element3 - contains the data byte including F0,F1,F2,F3,F4
        element4 - contains F12,F11,F10,F9,F8,F7,F6,F5
        Returns:
        readable version of message
      • parseFunctionHighStatus

        public static java.lang.String parseFunctionHighStatus​(int element3,
                                                               int element4)
        Parse the status of functions F13-F28.
        Parameters:
        element3 - contains F20,F19,F18,F17,F16,F15,F14,F13
        element4 - contains F28,F27,F26,F25,F24,F23,F22,F21
        Returns:
        readable version of message