Package jmri.jmrit.ussctc
Class CombinedLock
- java.lang.Object
-
- jmri.jmrit.ussctc.CombinedLock
-
- All Implemented Interfaces:
Lock
public class CombinedLock extends java.lang.Object implements Lock
Combines multiple locks into one with an AND operation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jmri.jmrit.ussctc.Lock
Lock.Valid
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<Lock>
list
-
Fields inherited from interface jmri.jmrit.ussctc.Lock
debugLockLogger, signalLockLogger, turnoutLockLogger
-
-
Constructor Summary
Constructors Constructor Description CombinedLock(java.util.List<Lock> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLockClear(LockLogger lockLogger)
Test the lock conditionsjava.lang.String
toString()
-
-
-
Constructor Detail
-
CombinedLock
public CombinedLock(java.util.List<Lock> list)
-
-
Method Detail
-
isLockClear
public boolean isLockClear(LockLogger lockLogger)
Test the lock conditions- Specified by:
isLockClear
in interfaceLock
- Parameters:
lockLogger
- the logger on which to emit status messages- Returns:
- True if lock is clear and operation permitted
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-