Interface BeveragePipelineDelegate


public interface BeveragePipelineDelegate
Delegate for pour pipeline. Allows the pipeline to access key data that originates in other parts of the system.
Since:
1.0
Version:
2023-09-07
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    Return a volume in milliliters for a given name.
    double
    Return the max pour volume in milliliters for the platform.
  • Method Details

    • getMaxPourVolume

      double getMaxPourVolume()
      Return the max pour volume in milliliters for the platform. This is used as the volume when using PourBuilder.addMaxPourVolume() . It does not limit the volume poured using other builder methods which take volumes as arguments.
    • getFixedVolumeByName

      default double getFixedVolumeByName(String name)
      Return a volume in milliliters for a given name. This is typically used to resolve cup names to fixed volumes but can be used for resolving any named volume based on the needs of the application.
      Parameters:
      name - the name of the volume to return
      Returns:
      the requested volume in milliliters or zero for no pour