Package jmri.jmrit.ussctc
Class OccupancyLock
java.lang.Object
jmri.jmrit.ussctc.OccupancyLock
- All Implemented Interfaces:
Lock
Lock if any of a list of sensors isn't INACTIVE.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.jmrit.ussctc.Lock
Lock.Valid -
Field Summary
FieldsFields inherited from interface jmri.jmrit.ussctc.Lock
debugLockLogger, signalLockLogger, turnoutLockLogger -
Constructor Summary
ConstructorsConstructorDescriptionOccupancyLock(String sensor) OccupancyLock(String[] array) OccupancyLock(List<NamedBeanHandle<Sensor>> list) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLockClear(LockLogger lockLogger) Test the lock conditionstoString()
-
Field Details
-
list
-
-
Constructor Details
-
OccupancyLock
-
OccupancyLock
-
OccupancyLock
-
-
Method Details
-
isLockClear
Test the lock conditions- Specified by:
isLockClearin interfaceLock- Parameters:
lockLogger- the logger on which to emit status messages- Returns:
- True if lock is clear and operation permitted
-
toString
-