Package jmri.jmrit.ussctc
Class LockLogger
java.lang.Object
jmri.jmrit.ussctc.LockLogger
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
statusMap
-
logMemoryName
-
memory
-
log
-
-
Constructor Details
-
LockLogger
LockLogger(String name)
-
-
Method Details
-
setStatus
Set the current status of some Lock- Parameters:
logger- The object providing statusstatus- The new status value, "" for "nothing of interest"
-
clear
-
log
Log a copy of the status. Intended to be overridden by specific LockLogger implementations.- Parameters:
message- The status message, all filled out
-