Class FCMPump
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>
com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.AbstractFCMPump<FCMPumpConfig>
com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.FCMPump
- All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<FCMPumpConfig>,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 FCMPump
extends AbstractFCMPump<FCMPumpConfig>
implements com.tccc.kos.core.service.criticaldata.CriticalDataSource
Represents an FCM pump.
- Version:
- Jun-29-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
FieldsFields inherited from class com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.AbstractFCMPump
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]com.tccc.kos.commons.util.ready.ReadyIndicatorintGet field calibration countintGet day of year of the in-field calibration (e.g.intGet remote calibration countintGet day of year of the remote calibration pushintGet year of the remote calibration pushGet the ASCII serial number of the pump.intbooleanReturn true if softStart is supported.static PumpInfoReturn default pump info for carb.static PumpInfoReturn default pump info for water.booleansetCriticalData(byte[] bytes) voidsetFieldCalibDayOfYear(int doy) Set day of year of the in-field calibration (e.g.voidsetFieldCalibYear(int year) Set year of the in-field calibration (e.g.voidsetRemoteCalibDayOfYear(int doy) Set day of year of the remote calibration pushvoidsetRemoteCalibYear(int year) Set year of the remote calibration pushvoidsetSoftStart(boolean softStart) Set pump softstart flagMethods inherited from class com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.AbstractFCMPump
disableSlowStartAfterPour, getType, setCarbSolenoidEnable, setSlowStartMethods 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.core.service.criticaldata.CriticalDataSource
getSourceWeight, isCriticalDataReadyMethods 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
-
CRITICAL_DATA_EEPROM_ADDR
public static final int CRITICAL_DATA_EEPROM_ADDR- See Also:
-
-
Constructor Details
-
FCMPump
Create a pump with the specified CANOpen subNodeId.- Parameters:
board- the board the sub-node is associated withinfo- info about the pumpsubNodeId- the CAN bus sub-node for this pumptlx- true if this is a tlx pump
-
-
Method Details
-
pumpInfoWater
Return default pump info for water. -
pumpInfoCarb
Return default pump info for carb. -
isSoftStart
public boolean isSoftStart()Return true if softStart is supported. -
setSoftStart
public void setSoftStart(boolean softStart) Set pump softstart flag -
getSerialNum
Get the ASCII serial number of the pump.- Returns:
- the serial number in string
-
getSourceMaxLength
public int getSourceMaxLength()- Specified by:
getSourceMaxLengthin interfacecom.tccc.kos.core.service.criticaldata.CriticalDataSource
-
getCriticalData
- Specified by:
getCriticalDatain interfacecom.tccc.kos.core.service.criticaldata.CriticalDataSource- Throws:
Exception
-
setCriticalData
- Specified by:
setCriticalDatain interfacecom.tccc.kos.core.service.criticaldata.CriticalDataSource- Throws:
Exception
-
setRemoteCalibDayOfYear
Set day of year of the remote calibration push- Parameters:
doy- day number of the year (1=366)- Throws:
IOException
-
getRemoteCalibDayOfYear
Get day of year of the remote calibration push- Returns:
- doy day number of the year (1=366)
- Throws:
IOException
-
setRemoteCalibYear
Set year of the remote calibration push- Parameters:
year- calibration year- Throws:
IOException
-
getRemoteCalibYear
Get year of the remote calibration push- Returns:
- calibration year
- Throws:
IOException
-
setFieldCalibDayOfYear
Set day of year of the in-field calibration (e.g. recalibration from NCUI)- Parameters:
doy- day number of the year (1=366)- Throws:
IOException
-
getFieldCalibDayOfYear
Get day of year of the in-field calibration (e.g. recalibration from NCUI)- Returns:
- doy day number of the year (1=366)
- Throws:
IOException
-
setFieldCalibYear
Set year of the in-field calibration (e.g. recalibration from NCUI)- Parameters:
year- calibration year- Throws:
IOException
-
getRemoteCalibCount
Get remote calibration count- Returns:
- total count of remote calibration
- Throws:
IOException
-
getFieldCalibCount
Get field calibration count- Returns:
- total count of field calibration
- Throws:
IOException
-
getCriticalDataReady
public com.tccc.kos.commons.util.ready.ReadyIndicator getCriticalDataReady()- Specified by:
getCriticalDataReadyin interfacecom.tccc.kos.core.service.criticaldata.CriticalDataSource
-