Interface ContainerSliceTroubleIface

All Superinterfaces:
com.tccc.kos.commons.core.service.trouble.TroubleIface
All Known Implementing Classes:
ContainerSliceTrouble, SliceSoldOutTrouble, UnknownIngredientTrouble

public interface ContainerSliceTroubleIface extends com.tccc.kos.commons.core.service.trouble.TroubleIface
Interface for Troubles that implements the slice iface. This is a standard way to describe to external systems that the Trouble includes container slice information in a standard format.

Implementations must call ContainerSliceTroubleiface.addIface(trouble) to ensure that external systems know the Trouble implements this interface.

This indicates the slice interface is implemented and the following data is available:

  • slicePos : Slice position the trouble is for
Since:
1.0
Version:
2023-02-05
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addIface(com.tccc.kos.commons.core.service.trouble.Trouble trouble)
    Adds the iface to the specified Trouble .
    int
    Return the slice position.
  • Method Details

    • addIface

      static void addIface(com.tccc.kos.commons.core.service.trouble.Trouble trouble)
      Adds the iface to the specified Trouble . Should be called in the Trouble constructor.
      Parameters:
      trouble - the Trouble to add the iface to
    • getSlicePos

      int getSlicePos()
      Return the slice position.