Package jmri.jmrit.ussctc
Class TimeLock
- java.lang.Object
-
- jmri.jmrit.ussctc.TimeLock
-
-
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<BeanSetting>
beans
(package private) java.util.List<SignalHeadSection>
list
-
Fields inherited from interface jmri.jmrit.ussctc.Lock
debugLockLogger, signalLockLogger, turnoutLockLogger
-
-
Constructor Summary
Constructors Constructor Description TimeLock(java.util.List<SignalHeadSection> list)
TimeLock(java.util.List<SignalHeadSection> list, java.util.List<BeanSetting> beans)
TimeLock(SignalHeadSection head)
TimeLock(SignalHeadSection[] array)
TimeLock(SignalHeadSection[] array, BeanSetting[] beans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLockClear(LockLogger lockLogger)
Test the lock conditionsjava.lang.String
toString()
-
-
-
Field Detail
-
list
java.util.List<SignalHeadSection> list
-
beans
java.util.List<BeanSetting> beans
-
-
Constructor Detail
-
TimeLock
public TimeLock(java.util.List<SignalHeadSection> list)
- Parameters:
list
- SignalHeadSections that cover this route
-
TimeLock
public TimeLock(java.util.List<SignalHeadSection> list, java.util.List<BeanSetting> beans)
- Parameters:
list
- SignalHeadSections that cover this routebeans
- Defines the specific route
-
TimeLock
public TimeLock(SignalHeadSection[] array, BeanSetting[] beans)
- Parameters:
array
- SignalHeadSections that cover this routebeans
- Defines the specific route
-
TimeLock
public TimeLock(SignalHeadSection[] array)
- Parameters:
array
- SignalHeadSections that cover this route
-
TimeLock
public TimeLock(SignalHeadSection head)
- Parameters:
head
- SignalHeadSection that covers this route
-
-
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
-
-