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
- Version:
- 8
-
Method Summary
Modifier and TypeMethodDescriptiondefault doublegetFixedVolumeByName(String name) Deprecated.doubleReturn the max pour volume in milliliters for the platform.default doublegetNamedVolume(String name) Return a volume in milliliters for a given name.
-
Method Details
-
getMaxPourVolume
double getMaxPourVolume()Return the max pour volume in milliliters for the platform. This is used as the volume when usingPourBuilder.addMaxPourVolume(). It does not limit the volume poured using other builder methods which take volumes as arguments.- Since:
- 1
-
getFixedVolumeByName
Deprecated.UsegetNamedVolume(java.lang.String). The default implementation callsgetFixedVolumeByNameto maintain compatibility.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
- Since:
- 1
-
getNamedVolume
Return a volume in milliliters for a given name. This is typically used to resolve cup names to 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
- Since:
- 8
-
getNamedVolume(java.lang.String).