Class Doors.State

All Implemented Interfaces:
Iterable<Byte>, Collection<Byte>, List<Byte>
Enclosing class:
Doors

public static class Doors.State extends SetCommand
The doors state
  • Method Details

    • getInsideLocks

      public List<Property<Lock>> getInsideLocks()
      Returns:
      Inside lock states for the given doors
    • getLocks

      public List<Property<Lock>> getLocks()
      Returns:
      Lock states for the given doors
    • getPositions

      public List<Property<DoorPosition>> getPositions()
      Returns:
      Door positions for the given doors
    • getInsideLocksState

      public Property<LockState> getInsideLocksState()
      Returns:
      Inside locks state for the whole vehicle (combines all specific lock states if available)
    • getLocksState

      public Property<LockState> getLocksState()
      Returns:
      Locks state for the whole vehicle (combines all specific lock states if available)
    • getLock

      @Nullable public Property<Lock> getLock(Location doorLocation)
      Get the outside lock state for a specific door.
      Parameters:
      doorLocation - The door doorLocation.
      Returns:
      The outside lock state.
    • getInsideLock

      @Nullable public Property<Lock> getInsideLock(Location doorLocation)
      Get the inside lock state for a specific door.
      Parameters:
      doorLocation - The door doorLocation.
      Returns:
      The inside lock state.
    • getPosition

      @Nullable public Property<DoorPosition> getPosition(DoorPosition.Location doorLocation)
      Get the outside lock state for a specific door.
      Parameters:
      doorLocation - The door doorLocation.
      Returns:
      The outside lock state.