Class AbstractCANPump<T extends CANPumpConfig>

java.lang.Object
com.tccc.kos.ext.dispense.Pump<T>
com.tccc.kos.ext.freestyle.FreestylePump<T>
com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.AbstractCANPump<T>
All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<T>, com.tccc.kos.commons.core.service.handle.HandleAware, com.tccc.kos.commons.util.Abortable, com.tccc.kos.commons.util.Cancelable, com.tccc.kos.commons.util.Terminable, com.tccc.kos.ext.dispense.PourAvailability
Direct Known Subclasses:
AbstractFCMPump, AbstractMicroPump, CGPPump, MSVPump, VPump

public abstract class AbstractCANPump<T extends CANPumpConfig> extends FreestylePump<T>
Base class for CAN based pumps.
Version:
Jun-15-17
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.tccc.kos.ext.dispense.PourAvailability

    com.tccc.kos.ext.dispense.PourAvailability.Type
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractCANPump(CANBoard<?> board, PumpInfo info, int subNodeId)
    Create a pump with the specified CANOpen subNodeId.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    com.tccc.kos.commons.util.concurrent.future.FutureWork
    tpour(int duration, double rate)
     
    com.tccc.kos.commons.util.concurrent.future.FutureWork
    vpour(double volume, double rate)
     

    Methods inherited from class com.tccc.kos.ext.freestyle.FreestylePump

    isFixedRatePump, setFixedRatePump

    Methods inherited from class com.tccc.kos.ext.dispense.Pump

    abort, cancel, getBeverageAvailabilityLock, getBeverageLocks, getBoard, getCategory, getConfig, getEffectiveIngredientId, getHandle, getHolder, getIngredientAvailabilityLock, getIngredientId, getIngredientLocks, getIntent, getLastChangedTime, getLastStartTime, getNominalRate, getNozzle, getPour, getPrevIngredientId, getType, getUnavailableReasons, isBeveragePour, isIngredientPour, isInserted, postStop, pour, preStart, record, recordRate, setConfig, setLastStartTime, setPour, setPrevIngredientId, setUnavailableReasons, sinceLastStarted

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware

    onConfigChanged, onConfigSet

    Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware

    addHandleChild, getName, getPath

    Methods inherited from interface com.tccc.kos.ext.dispense.PourAvailability

    getAvailbilityLock
  • Constructor Details

    • AbstractCANPump

      public AbstractCANPump(CANBoard<?> board, PumpInfo info, int subNodeId)
      Create a pump with the specified CANOpen subNodeId.
      Parameters:
      board - the board this sub-node is associated with
      info - info about the pump
      subNodeId - the CAN bus sub-node for this pump
  • Method Details

    • tpour

      public com.tccc.kos.commons.util.concurrent.future.FutureWork tpour(int duration, double rate)
      Specified by:
      tpour in class com.tccc.kos.ext.dispense.Pump<T extends CANPumpConfig>
    • vpour

      public com.tccc.kos.commons.util.concurrent.future.FutureWork vpour(double volume, double rate)
      Specified by:
      vpour in class com.tccc.kos.ext.dispense.Pump<T extends CANPumpConfig>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isAborted

      public boolean isAborted()