Class ContainerSlice

java.lang.Object
com.tccc.kos.ext.dispense.ContainerSlice

public class ContainerSlice extends Object
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 Details

    • ContainerSlice

      public ContainerSlice(String ingredientId)
      Creates a new container slice with the specified ingredient.
  • Method Details

    • isSoldOut

      public boolean isSoldOut()
      Return true if the slice is sold out.
    • getIngredientId

      public String getIngredientId()
    • getPos

      public int getPos()
    • getContainer

      public Container getContainer()
    • getHolder

      public Holder getHolder()