Class PourAvailabilityTrouble

java.lang.Object
com.tccc.kos.commons.core.service.trouble.Trouble
com.tccc.kos.ext.dispense.PourAvailabilityTrouble
Direct Known Subclasses:
ContainerHolderTrouble, ContainerTrouble, PumpTrouble

public class PourAvailabilityTrouble extends Trouble
Base trouble that provides convenience methods for adding PourAvailability objects to a trouble so that they block different types of pouring by linked pumps.

Pumps support INGREDIENT and BEVERAGE availability which allows troubles to block the ability of a pump to perform a particular type of pour. This is accomplished by linking an AvailabilityLock to the trouble.

Since:
1.0
Version:
2023-08-25
  • Constructor Details

    • PourAvailabilityTrouble

      public PourAvailabilityTrouble()
  • Method Details

    • blockIngredientPour

      public void blockIngredientPour(PourAvailability bean)
      Specified object blocks ingredient pouring for linked pumps.
    • blockBeveragePour

      public void blockBeveragePour(PourAvailability bean)
      Specified object blocks beverage pouring for linked pumps.
    • blockPour

      public void blockPour(PourAvailability bean, PourAvailability.Type type)
      Block pouring of the specified type using the specified object. If either argument is null, no block will be applied.