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 com.tccc.kos.commons.core.service.trouble.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
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.tccc.kos.commons.core.service.trouble.Trouble

    com.tccc.kos.commons.core.service.trouble.Trouble.TroubleView
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Specified object blocks beverage pouring for linked pumps.
    void
    Specified object blocks ingredient pouring for linked pumps.
    void
    Block pouring of the specified type using the specified object.

    Methods inherited from class com.tccc.kos.commons.core.service.trouble.Trouble

    addIface, addImpacted, addLink, addTag, equals, getClientData, getCount, getCreateTime, getGroup, getId, getIfaces, getImpacted, getInfo, getLinked, getReason, getTags, getType, hashCode, incCount, isImpacted, isLinked, isResolvable, isTagged, onRemoved, removeImpacted, removeLink, removeTag, resolvable, resolve, setReason, setResolvable, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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.