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
      • getConsistList

        java.util.ArrayList<LocoAddressgetConsistList()
        Get a list of known consist addresses.
        Returns:
        list of addresses
      • decodeErrorCode

        java.lang.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.
      • canBeDisabled

        default boolean canBeDisabled()
        Can this consist manager be disabled?
        Returns:
        true if the manager can be disabled, false otherwise
      • isEnabled

        default boolean isEnabled()
        Check if this manager is enabled
        Returns:
        true if enabled