Package jmri.jmrit.ussctc
Class TurnoutLock
java.lang.Object
jmri.jmrit.ussctc.TurnoutLock
- All Implemented Interfaces:
Lock
Lock if a turnout isn't in the desired state.
Can be used to e.g. lock when a call-on (turnout) is set
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.jmrit.ussctc.Lock
Lock.Valid -
Field Summary
FieldsModifier and TypeFieldDescription(package private) NamedBeanHandle<Turnout>(package private) intFields inherited from interface jmri.jmrit.ussctc.Lock
debugLockLogger, signalLockLogger, turnoutLockLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisLockClear(LockLogger lockLogger) Test the lock conditionstoString()
-
Field Details
-
turnout
-
value
int value
-
-
Constructor Details
-
TurnoutLock
- Parameters:
name- System or user name of turnout to monitorokValue- If this value isn't present, the operation is locked out
-
-
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
-