Package com.tccc.kos.ext.dispense
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
Specified object blocks beverage pouring for linked pumps.void
Specified object blocks ingredient pouring for linked pumps.void
blockPour
(PourAvailability bean, PourAvailability.Type type) 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
-
Constructor Details
-
PourAvailabilityTrouble
public PourAvailabilityTrouble()
-
-
Method Details
-
blockIngredientPour
Specified object blocks ingredient pouring for linked pumps. -
blockBeveragePour
Specified object blocks beverage pouring for linked pumps. -
blockPour
Block pouring of the specified type using the specified object. If either argument is null, no block will be applied.
-