Package com.tccc.kos.ext.dispense
Class ContainerSlice
java.lang.Object
com.tccc.kos.ext.dispense.ContainerSlice
Abstraction of a single ingredient within a
Container
.
While many ingredients are simply cardboard boxes with a plastic liner and contain a single ingredient, some devices use cartridges which contain more than one ingredient, in which case the container has more than one "slice".
Containers are built from slices, and when slices are added to the container, they are linked together.
- Since:
- 1.0
- Version:
- 2023-01-16
-
Constructor Summary
ConstructorsConstructorDescriptionContainerSlice
(String ingredientId) Creates a new container slice with the specified ingredient. -
Method Summary
-
Constructor Details
-
ContainerSlice
Creates a new container slice with the specified ingredient.
-
-
Method Details
-
isSoldOut
public boolean isSoldOut()Return true if the slice is sold out. -
getIngredientId
-
getPos
public int getPos() -
getContainer
-
getHolder
-