Package com.kosdev.kos.ext.dispense
Class PourAvailabilityTrouble
java.lang.Object
com.kosdev.kos.commons.core.service.trouble.Trouble
com.kosdev.kos.ext.dispense.PourAvailabilityTrouble
- All Implemented Interfaces:
com.kosdev.kos.commons.util.ClientAttributeAware
- Direct Known Subclasses:
ContainerHolderTrouble,ContainerTrouble,PumpTrouble
public class PourAvailabilityTrouble
extends com.kosdev.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
- Version:
- 1
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kosdev.kos.commons.core.service.trouble.Trouble
com.kosdev.kos.commons.core.service.trouble.Trouble.TroubleViewNested classes/interfaces inherited from interface com.kosdev.kos.commons.util.ClientAttributeAware
com.kosdev.kos.commons.util.ClientAttributeAware.Hidden -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSpecified object blocks beverage pouring for linked pumps.voidSpecified object blocks ingredient pouring for linked pumps.voidblockPour(PourAvailability bean, PourAvailability.Type type) Block pouring of the specified type using the specified object.Methods inherited from class com.kosdev.kos.commons.core.service.trouble.Trouble
_getClientAttributeMap, addIface, addImpacted, addLink, addTag, equals, getClientData, getCount, getCreateTime, getGroup, getId, getIfaces, getImpacted, getLinked, getReason, getTags, getType, hashCode, incCount, isImpacted, isLinked, isResolvable, isTagged, onRemoved, removeImpacted, removeLink, removeTag, resolvable, resolve, setReason, setResolvable, toStringMethods inherited from interface com.kosdev.kos.commons.util.ClientAttributeAware
getClientAttribute, getClientAttributes, removeClientAttribute, setClientAttribute, setHiddenClientAttribute
-
Constructor Details
-
PourAvailabilityTrouble
public PourAvailabilityTrouble()
-
-
Method Details
-
blockIngredientPour
Specified object blocks ingredient pouring for linked pumps.- Since:
- 1
-
blockBeveragePour
Specified object blocks beverage pouring for linked pumps.- Since:
- 1
-
blockPour
Block pouring of the specified type using the specified object. If either argument is null, no block will be applied.- Since:
- 1
-