Class LockLogger

java.lang.Object
jmri.jmrit.ussctc.LockLogger

public class LockLogger extends Object
Manages user-level logging information from Locks and Lock-like functions. Locking objects store their status as a string, which is kept for them until overwritten by a newer one.

This implementation stores one (if more than one) in a Memory for display.

  • Field Details

  • Constructor Details

  • Method Details

    • setStatus

      public void setStatus(@Nonnull Object logger, @Nonnull String status)
      Set the current status of some Lock
      Parameters:
      logger - The object providing status
      status - The new status value, "" for "nothing of interest"
    • clear

      public void clear()
    • log

      void log(String message)
      Log a copy of the status. Intended to be overridden by specific LockLogger implementations.
      Parameters:
      message - The status message, all filled out