Class ContainerSliceTrouble

java.lang.Object
com.tccc.kos.commons.core.service.trouble.Trouble
All Implemented Interfaces:
com.tccc.kos.commons.core.service.trouble.TroubleIface, HolderBlockTrouble, ContainerSliceTroubleIface, ContainerTroubleIface, HolderTroubleIface
Direct Known Subclasses:
SliceSoldOutTrouble, UnknownIngredientTrouble

public abstract class ContainerSliceTrouble extends ContainerTrouble implements ContainerSliceTroubleIface
Base class for troubles related to a container slice. This simply adds the slice position to the standard container information which allows external logic to know which part of the container is impacted.

This added the slice interface to the trouble which indicates the following data is available:

  • slicePos : The index into the slide array for the impacted slice.
Since:
1.0
Version:
2023-02-06
  • 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
  • Field Summary

    Fields inherited from class com.tccc.kos.ext.dispense.service.insertion.troubles.ContainerTrouble

    IFACE_CONTAINER
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    Return the slice position.

    Methods inherited from class com.tccc.kos.ext.dispense.service.insertion.troubles.ContainerTrouble

    getContainerId, getHolderNames, getHolderPaths, getIngredients, getPourBlockType

    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, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait