All Implemented Interfaces:
ConfigAware<CGPPumpConfig>, HandleAware, Abortable, Cancelable, Terminable, PourAvailability

public class CGPPump extends AbstractCANPump<CGPPumpConfig>
Represents a CGP pump.
Version:
Jun-15-17
  • Field Details

  • Constructor Details

    • CGPPump

      public CGPPump(CANBoard<?> board, PumpInfo info, int subNodeId, int airVentSubNodeId)
      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
      airVentSubNodeId - the subNodeId for the air vent
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in class Pump<CGPPumpConfig>
    • getSerialNum

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

      public void fillAirVentAutomatic()
      Set the air vent to automatic fill mode. Simply calls the underlying air vent but catches and logs any exception.
    • getCGPVersion

      public int getCGPVersion() throws IOException
      Return the CGP version. This determines which pump tech data to use.
      Returns:
      the pump version
      Throws:
      IOException - if there is an error
    • ingredientChanged

      public void ingredientChanged(IngredientService service, Ingredient ingredient)