Package com.tccc.kos.ext.dispense
Class PumpTrouble
java.lang.Object
com.tccc.kos.commons.core.service.trouble.Trouble
com.tccc.kos.ext.dispense.PourAvailabilityTrouble
com.tccc.kos.ext.dispense.PumpTrouble
- All Implemented Interfaces:
com.tccc.kos.commons.core.service.trouble.TroubleIface,HolderTroubleIface,NozzleTroubleIface,PumpTroubleIface
public class PumpTrouble
extends PourAvailabilityTrouble
implements PumpTroubleIface, HolderTroubleIface
Base trouble that provides convenience methods for blocking
beverage and ingredient pouring for the specified pump.
Implements PumpTroubleIface to provide standardized
data to external systems.
- Since:
- 1.0
- Version:
- 2023-09-27
-
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 TypeMethodDescriptionvoidBlock beverage pouring on the associated pump.voidBlock ingredient pouring on the associated pump.String[]Returns the holder names in the same order as the paths.String[]Returns the paths of the associated holders.Return the ingredientId assigned to the pump.Returns the path of the associated nozzle.Pump<?>getPump()Returns the path of the associated pump.toString()Methods inherited from class com.tccc.kos.ext.dispense.PourAvailabilityTrouble
blockBeveragePour, blockIngredientPour, blockPourMethods 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
-
Constructor Details
-
PumpTrouble
Constructor
-
-
Method Details
-
blockIngredientPour
public void blockIngredientPour()Block ingredient pouring on the associated pump. -
blockBeveragePour
public void blockBeveragePour()Block beverage pouring on the associated pump. -
getNozzlePath
Description copied from interface:NozzleTroubleIfaceReturns the path of the associated nozzle.- Specified by:
getNozzlePathin interfaceNozzleTroubleIface
-
getPumpPath
Description copied from interface:PumpTroubleIfaceReturns the path of the associated pump.- Specified by:
getPumpPathin interfacePumpTroubleIface
-
getIngredientId
Description copied from interface:PumpTroubleIfaceReturn the ingredientId assigned to the pump.- Specified by:
getIngredientIdin interfacePumpTroubleIface
-
getHolderPaths
Description copied from interface:HolderTroubleIfaceReturns the paths of the associated holders. ManyTroubles only impact a single holder, but some impact more than one, so this provides a uniform mechanism to handle all varieties.- Specified by:
getHolderPathsin interfaceHolderTroubleIface
-
getHolderNames
Description copied from interface:HolderTroubleIfaceReturns the holder names in the same order as the paths. This allowsTroubles to be rendered without needing to look up the holders from the paths to get the names.- Specified by:
getHolderNamesin interfaceHolderTroubleIface
-
toString
- Overrides:
toStringin classcom.tccc.kos.commons.core.service.trouble.Trouble
-
getPump
-