Interface Lock

All Known Implementing Classes:
CombinedLock, OccupancyLock, RouteLock, TimeLock, TrafficLock, TrafficRelay, TurnoutLock

public interface Lock
A Lock is the base interface for implementations that check layout conditions.

Locks are used in multiple places: Machine and Field. They can be used to lock out various operations: Turnout, Signal. Those contexts are handled in how Locks are configured into other objects.

  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  Lock.Valid  
  • Field Summary

    Modifier and Type Field Description
    static LockLogger lockLogger  
  • Method Summary

    Modifier and Type Method Description
    static boolean checkLocksClear​(List<Lock> locks)
    Check a collection of Locks, handling the logging etc as needed.
    boolean isLockClear()
    Test the lock conditions