Package jmri

Interface ConsistManager

    • Method Detail

      • getConsist

        Consist getConsist​(LocoAddress address)
        Find a Consist with this consist address, and return it. If the Consist doesn't exit, create it.
        Parameters:
        address - the consist address
        Returns:
        an existing or new consist
      • delConsist

        void delConsist​(LocoAddress address)
        Remove an old Consist.
        Parameters:
        address - the consist address
      • isCommandStationConsistPossible

        boolean isCommandStationConsistPossible()
        Does this implementation support Command Station Consists?
        Returns:
        true if command station consists are supported; false otherwise
      • csConsistNeedsSeperateAddress

        boolean csConsistNeedsSeperateAddress()
        Does a command station consist require a separate consist address from locomotives in consist?
        Returns:
        true is command station consist requires separate address; false otherwise
      • decodeErrorCode

        String decodeErrorCode​(int errorCode)
        Translate Error Codes relieved by a consistListener into Strings
        Parameters:
        errorCode - the code
        Returns:
        the description
      • requestUpdateFromLayout

        void requestUpdateFromLayout()
        Request an update from the layout, loading Consists from the command station.
      • addConsistListListener

        void addConsistListListener​(ConsistListListener listener)
        Register a ConsistListListener object with this ConsistManager
        Parameters:
        listener - a Consist List Listener object.
      • notifyConsistListChanged

        void notifyConsistListChanged()
        Notify the registered ConsistListListener objects that the ConsistList has changed.