Package jmri.jmrix

Interface Message

    • Method Detail

      • getElement

        int getElement​(int n)
        Get a particular element in a Message.
        Parameters:
        n - Element Index.
        Returns:
        single element of message.
      • getNumDataElements

        int getNumDataElements()
        Get the number of data elements in a Message.
        Returns:
        number elements.
      • setElement

        void setElement​(int n,
                        int v)
        Set a single Data Element at a particular index.
        Parameters:
        n - index of element.
        v - value of element.
      • toString

        java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toMonitorString

        default java.lang.String toMonitorString()
        Returns:
        a human-readable representation of the message.