java.lang.Object
com.tccc.kos.commons.core.service.trouble.Trouble
com.tccc.kos.ext.dispense.PourAvailabilityTrouble
com.tccc.kos.ext.dispense.service.insertion.troubles.ContainerTrouble
All Implemented Interfaces:
com.tccc.kos.commons.core.service.trouble.TroubleIface, HolderBlockTrouble, ContainerTroubleIface, HolderTroubleIface
Direct Known Subclasses:
ContainerSliceTrouble, ContainerSoldOutTrouble

public abstract class ContainerTrouble extends PourAvailabilityTrouble implements ContainerTroubleIface, HolderTroubleIface, HolderBlockTrouble
Base class for troubles related to containers. This will include holder information if available as is typically the case when the trouble is generated from an insertion filter since the insertion process links the slices of the container to the target holders.

If this is used for a trouble created prior to insertion then the holders will not be available so paths and names will be arrays of nulls.

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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the container ID.
    Returns the holder names in the same order as the paths.
    Returns the paths of the associated holders.
    Returns the ingredients in the container in slice order.
    Return the type of block to apply when linked to a holder.

    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