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 TypeMethodDescriptionvoid
Block beverage pouring on the associated pump.void
Block 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, blockPour
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
-
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:NozzleTroubleIface
Returns the path of the associated nozzle.- Specified by:
getNozzlePath
in interfaceNozzleTroubleIface
-
getPumpPath
Description copied from interface:PumpTroubleIface
Returns the path of the associated pump.- Specified by:
getPumpPath
in interfacePumpTroubleIface
-
getIngredientId
Description copied from interface:PumpTroubleIface
Return the ingredientId assigned to the pump.- Specified by:
getIngredientId
in interfacePumpTroubleIface
-
getHolderPaths
Description copied from interface:HolderTroubleIface
Returns the paths of the associated holders. ManyTrouble
s only impact a single holder, but some impact more than one, so this provides a uniform mechanism to handle all varieties.- Specified by:
getHolderPaths
in interfaceHolderTroubleIface
-
getHolderNames
Description copied from interface:HolderTroubleIface
Returns the holder names in the same order as the paths. This allowsTrouble
s to be rendered without needing to look up the holders from the paths to get the names.- Specified by:
getHolderNames
in interfaceHolderTroubleIface
-
toString
- Overrides:
toString
in classcom.tccc.kos.commons.core.service.trouble.Trouble
-
getPump
-