Package com.tccc.kos.ext.dispense
Interface PourAvailability
public interface PourAvailability
Interface for beans that can impact the ability pour ingredients / beverages
via troubles. This defines two lock objects, one for blocking beverage pouring
and one for blocking ingredient pouring. All it takes to block availability is
to put one of these lock objects into the impact list of a trouble.
Only certain objects implement this interface and these objects can all be traced to one or more pumps, such as boards, ingredient containers, holders and so on.
- Since:
- 1.0
- Version:
- 2023-01-16
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault AvailabilityLock
Return the availability lock based on the specified enum.Return the object add to a trouble impact list to block beverage pouring.Return the object add to a trouble impact list to block all pouring.
-
Method Details
-
getIngredientAvailabilityLock
AvailabilityLock getIngredientAvailabilityLock()Return the object add to a trouble impact list to block all pouring. -
getBeverageAvailabilityLock
AvailabilityLock getBeverageAvailabilityLock()Return the object add to a trouble impact list to block beverage pouring. -
getAvailbilityLock
Return the availability lock based on the specified enum.- Parameters:
type
- the availability type
-