Class Doors.State.Builder

Enclosing class:
Doors.State

public static final class Doors.State.Builder extends SetCommand.Builder<Doors.State.Builder>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public Doors.State build()
      Overrides:
      build in class SetCommand.Builder<Doors.State.Builder>
    • setInsideLocks

      public Doors.State.Builder setInsideLocks(Property<Lock>[] insideLocks)
      Add an array of inside locks
      Parameters:
      insideLocks - The inside locks. Inside lock states for the given doors
      Returns:
      The builder
    • addInsideLock

      public Doors.State.Builder addInsideLock(Property<Lock> insideLock)
      Add a single inside lock
      Parameters:
      insideLock - The inside lock. Inside lock states for the given doors
      Returns:
      The builder
    • setLocks

      public Doors.State.Builder setLocks(Property<Lock>[] locks)
      Add an array of locks
      Parameters:
      locks - The locks. Lock states for the given doors
      Returns:
      The builder
    • addLock

      public Doors.State.Builder addLock(Property<Lock> lock)
      Add a single lock
      Parameters:
      lock - The lock. Lock states for the given doors
      Returns:
      The builder
    • setPositions

      public Doors.State.Builder setPositions(Property<DoorPosition>[] positions)
      Add an array of positions
      Parameters:
      positions - The positions. Door positions for the given doors
      Returns:
      The builder
    • addPosition

      public Doors.State.Builder addPosition(Property<DoorPosition> position)
      Add a single position
      Parameters:
      position - The position. Door positions for the given doors
      Returns:
      The builder
    • setInsideLocksState

      public Doors.State.Builder setInsideLocksState(Property<LockState> insideLocksState)
      Parameters:
      insideLocksState - Inside locks state for the whole vehicle (combines all specific lock states if available)
      Returns:
      The builder
    • setLocksState

      public Doors.State.Builder setLocksState(Property<LockState> locksState)
      Parameters:
      locksState - Locks state for the whole vehicle (combines all specific lock states if available)
      Returns:
      The builder