Interface PumpOpListener

All Superinterfaces:
IngredientPipelineListener

public interface PumpOpListener extends IngredientPipelineListener
A PumpIntent is constructed from a sequence of PumpOp operations. This interface allows listeners to receive start and stop events for every individual PumpOp. To receive events for the start and stop of the overall intent, use PumpIntentListener.
Since:
1.0
Version:
2024-01-08
  • Method Details

    • onPumpOpStart

      void onPumpOpStart(IngredientNozzlePipeline pipeline, Pump<?> pump, PumpIntent intent, PumpOp op, com.tccc.kos.commons.util.concurrent.future.FutureWork f)
      Called when a PumpOp is about to start.
      Parameters:
      pipeline - the pipeline generating the event
      pump - the pump performing the intent
      intent - the intent containing the PumpOp
      op - the pump op
      f - the associated future
    • onPumpOpStop

      void onPumpOpStop(IngredientNozzlePipeline pipeline, Pump<?> pump, PumpIntent intent, PumpOp op, com.tccc.kos.commons.util.concurrent.future.FutureWork f)
      Called when a PumpOp is done. The end state of the future indicates whether the op was successful or not.
      Parameters:
      pipeline - the pipeline generating the event
      pump - the pump performing the intent
      intent - the intent being performed
      op - the pump op
      f - the associated future