Class SliceSoldOutTrouble

All Implemented Interfaces:
com.kosdev.kos.commons.core.service.trouble.TroubleIface, com.kosdev.kos.commons.util.ClientAttributeAware, HolderBlockTrouble, SoldOutAware, ContainerSliceTroubleIface, ContainerTroubleIface, HolderTroubleIface

public class SliceSoldOutTrouble extends ContainerSliceTrouble implements SoldOutAware
Trouble that indicates that a container slice is sold out.
Since:
1
Version:
1
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.kosdev.kos.commons.core.service.trouble.Trouble

    com.kosdev.kos.commons.core.service.trouble.Trouble.TroubleView

    Nested classes/interfaces inherited from interface com.kosdev.kos.commons.util.ClientAttributeAware

    com.kosdev.kos.commons.util.ClientAttributeAware.Hidden
  • Field Summary

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

    IFACE_CONTAINER
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new SliceSoldOutTrouble for the specified container slice.
  • Method Summary

    Methods inherited from class com.kosdev.kos.ext.dispense.service.insertion.troubles.ContainerSliceTrouble

    getSlice, getSlicePos

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

    getContainerId, getHolderNames, getHolderPaths, getIngredients, getPourBlockType

    Methods inherited from class com.kosdev.kos.ext.dispense.PourAvailabilityTrouble

    blockBeveragePour, blockIngredientPour, blockPour

    Methods inherited from class com.kosdev.kos.commons.core.service.trouble.Trouble

    _getClientAttributeMap, addIface, addImpacted, addLink, addTag, equals, getClientData, getCount, getCreateTime, getGroup, getId, getIfaces, getImpacted, 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

    Methods inherited from interface com.kosdev.kos.commons.util.ClientAttributeAware

    getClientAttribute, getClientAttributes, removeClientAttribute, setClientAttribute, setHiddenClientAttribute

    Methods inherited from interface com.kosdev.kos.ext.dispense.service.soldout.SoldOutAware

    isSoldOut
  • Constructor Details

    • SliceSoldOutTrouble

      public SliceSoldOutTrouble(ContainerSlice slice, String reason)
      Create a new SliceSoldOutTrouble for the specified container slice. Sets the soldOut flag on the slice as a side effect.
      Parameters:
      slice - the slice that is sold out
      reason - the reason for the sold out
      Since:
      1