java.lang.Object
com.tccc.kos.ext.dispense.Pump<T>
All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<MSVPumpConfig>, 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.core.service.criticaldata.CriticalDataSource, com.tccc.kos.ext.dispense.PourAvailability

public class MSVPump extends AbstractCANPump<MSVPumpConfig> implements com.tccc.kos.core.service.criticaldata.CriticalDataSource
Represents a MSV pump.
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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MSVPump(CANBoard<?> board, PumpInfo info, int subNodeId)
    Create a pump with the specified CANOpen subNodeId that also contains an embedded air vent with the specified air vent subNodeId.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
    com.tccc.kos.commons.util.ready.ReadyIndicator
     
    Get the ASCII serial number of the pump.
    int
     
     
    boolean
    setCriticalData(byte[] bytes)
     
    void
    setOpenLoop(boolean openLoop)
    Enable open loop
    void
    setOpenLoopPercentage(int percentage)
    Set open loop percentage

    Methods inherited from class com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.AbstractCANPump

    isAborted, toString, tpour, vpour

    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, 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.core.service.criticaldata.CriticalDataSource

    getSourceWeight, isCriticalDataReady

    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
  • Field Details

  • Constructor Details

    • MSVPump

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

    • getType

      public String getType()
      Specified by:
      getType in class com.tccc.kos.ext.dispense.Pump<MSVPumpConfig>
    • getSerialNum

      public String getSerialNum()
      Get the ASCII serial number of the pump.
      Returns:
      the serial number in string
    • setOpenLoop

      public void setOpenLoop(boolean openLoop) throws IOException
      Enable open loop
      Throws:
      IOException
    • setOpenLoopPercentage

      public void setOpenLoopPercentage(int percentage) throws IOException
      Set open loop percentage
      Throws:
      IOException
    • getSourceMaxLength

      public int getSourceMaxLength()
      Specified by:
      getSourceMaxLength in interface com.tccc.kos.core.service.criticaldata.CriticalDataSource
    • getCriticalData

      public byte[] getCriticalData() throws Exception
      Specified by:
      getCriticalData in interface com.tccc.kos.core.service.criticaldata.CriticalDataSource
      Throws:
      Exception
    • setCriticalData

      public boolean setCriticalData(byte[] bytes) throws Exception
      Specified by:
      setCriticalData in interface com.tccc.kos.core.service.criticaldata.CriticalDataSource
      Throws:
      Exception
    • getCriticalDataReady

      public com.tccc.kos.commons.util.ready.ReadyIndicator getCriticalDataReady()
      Specified by:
      getCriticalDataReady in interface com.tccc.kos.core.service.criticaldata.CriticalDataSource