Interface PourAvailability

All Known Implementing Classes:
Holder, Nozzle, Pump, PumpBoard

public interface PourAvailability
Interface for beans that can impact the ability pour ingredients / beverages via troubles. This defines two lock objects, one for blocking beverage pouring and one for blocking ingredient pouring. All it takes to block availability is to put one of these lock objects into the impact list of a trouble.

Only certain objects implement this interface and these objects can all be traced to one or more pumps, such as boards, ingredient containers, holders and so on.

Since:
1.0
Version:
2023-01-16
  • Method Details

    • getIngredientAvailabilityLock

      AvailabilityLock getIngredientAvailabilityLock()
      Return the object add to a trouble impact list to block all pouring.
    • getBeverageAvailabilityLock

      AvailabilityLock getBeverageAvailabilityLock()
      Return the object add to a trouble impact list to block beverage pouring.
    • getAvailbilityLock

      default AvailabilityLock getAvailbilityLock(PourAvailability.Type type)
      Return the availability lock based on the specified enum.
      Parameters:
      type - the availability type