Class BeverageNozzlePipeline
java.lang.Object
com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline
com.tccc.kos.ext.dispense.pipeline.beverage.BeverageNozzlePipeline
- All Implemented Interfaces:
com.tccc.kos.commons.core.service.handle.HandleAware
Nozzle pipeline that supports beverage pouring via a Pourable abstraction. This
provides a framework for typical pouring functionality but the actual pour
engine must be provided.
- Since:
- 1.0
- Version:
- 2023-02-06
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDelegate
(BeveragePipelineDelegate delegate) Set theBeveragePourServiceDelegate
for the pipeline.void
start()
Called when the pipeline is installed to the nozzle.void
stop()
Called when a pipeline is uninstalled from the nozzle.Methods inherited from class com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline
getCtx, getHandle, getNozzle, getPumpEventService, getTopicPrefix, isInstalled, send, send, send
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
-
Constructor Details
-
BeverageNozzlePipeline
-
-
Method Details
-
setDelegate
Set theBeveragePourServiceDelegate
for the pipeline. This can be used to manually set the delegate instead of using autowiring which allows the delegate to be set later, or changed over time.This is just a convenience wrapper for calling the setter on the
BeveragePipelineService
. -
start
public void start()Description copied from class:NozzlePipeline
Called when the pipeline is installed to the nozzle. The nozzle will be set and the pipeline context will be bound to the nozzle context before this is called. This allows the pipeline to prepare for use. Any controllers in the pipeline will be made active when this returns. Override as needed.- Overrides:
start
in classNozzlePipeline
-
stop
public void stop()Description copied from class:NozzlePipeline
Called when a pipeline is uninstalled from the nozzle. The nozzle will remain set until this returns. Any controllers in the pipeline will be disabled before this is called. Override as needed.- Overrides:
stop
in classNozzlePipeline
-
getEngine
-
getPourService
-