Class PumpBlockService
java.lang.Object
com.kosdev.kos.ext.dispense.service.pumpblock.PumpBlockService
Service that can block ingredient or beverage availability on a pump by creating
or removing
xxx and xxx troubles. This provides an easy way to test
availability changes without the need to generate pump errors or insert/remove
ingredients.- Since:
- 10
- Version:
- 10
-
Method Summary
Modifier and TypeMethodDescriptionvoidblockBeveragePour(Pump<?> pump) Block beverage pouring on a pump by creating aBlockBevPourPumpTroubleon the pump.voidblockIngredientPour(Pump<?> pump) Block ingredient pouring on a pump by creating aBlockIngPourPumpTroubleon the pump.voidunblockBeveragePour(Pump<?> pump) Remove theBlockBevPourPumpTroublefor the specified pump.voidunblockIngredientPour(Pump<?> pump) Remove theBlockIngPourPumpTroublefor the specified pump.
-
Method Details
-
blockIngredientPour
Block ingredient pouring on a pump by creating aBlockIngPourPumpTroubleon the pump. This will have the effect of preventing the pump from being used in any ingredient or beverage pours. If this trouble already exists, this will do nothing. -
unblockIngredientPour
Remove theBlockIngPourPumpTroublefor the specified pump. If this trouble is the only reason blocking ingredient pouring, it will have the effect of enabling ingredient pours. If no other troubles are blocking beverage pours, this will also enable beverage pouring as ingredient blocks also result in beverage blocks. If noBlockIngPourPumpTroubleexists for the pump, this does nothing. -
blockBeveragePour
Block beverage pouring on a pump by creating aBlockBevPourPumpTroubleon the pump. This will have the effect of preventing the pump from being used in any beverage pours. If this trouble already exists, this will do nothing. -
unblockBeveragePour
Remove theBlockBevPourPumpTroublefor the specified pump. If this trouble is the only reason blocking beverage pouring, it will have the effect of enabling beverage pours. If noBlockBevPourPumpTroubleexists for the pump, this does nothing.
-