Class CGPPump
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<CGPPumpConfig>
com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.CGPPump
- All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<CGPPumpConfig>,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
Represents a CGP 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet the air vent to automatic fill mode.intReturn the CGP version.Get the ASCII serial number of the pump.getType()voidingredientChanged(com.tccc.kos.ext.dispense.service.ingredient.IngredientService service, Ingredient ingredient) Methods inherited from class com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.AbstractCANPump
isAborted, toString, tpour, vpourMethods inherited from class com.tccc.kos.ext.freestyle.FreestylePump
isFixedRatePump, setFixedRatePumpMethods inherited from class com.tccc.kos.ext.dispense.Pump
abort, cancel, getAltType, 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, setAltType, setConfig, setLastStartTime, setPour, setPrevIngredientId, setUnavailableReasons, sinceLastStartedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware
onConfigChanged, onConfigSetMethods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPathMethods inherited from interface com.tccc.kos.ext.dispense.PourAvailability
getAvailbilityLock
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
CGPPump
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 withinfo- info about the pumpsubNodeId- the CAN bus sub-node for this pumpairVentSubNodeId- the subNodeId for the air vent
-
-
Method Details
-
getType
- Specified by:
getTypein classcom.tccc.kos.ext.dispense.Pump<CGPPumpConfig>
-
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
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(com.tccc.kos.ext.dispense.service.ingredient.IngredientService service, Ingredient ingredient)
-