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.ReadyIndicator
int
Get field calibration countint
Get day of year of the in-field calibration (e.g.int
Get remote calibration countint
Get day of year of the remote calibration pushint
Get year of the remote calibration pushGet the ASCII serial number of the pump.int
boolean
Return true if softStart is supported.boolean
setCriticalData
(byte[] bytes) void
setFieldCalibDayOfYear
(int doy) Set day of year of the in-field calibration (e.g.void
setFieldCalibYear
(int year) Set year of the in-field calibration (e.g.void
setRemoteCalibDayOfYear
(int doy) Set day of year of the remote calibration pushvoid
setRemoteCalibYear
(int year) Set year of the remote calibration pushvoid
setSoftStart
(boolean softStart) Set pump softstart flagMethods inherited from class com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.AbstractFCMPump
disableSlowStartAfterPour, getType, setCarbSolenoidEnable, setSlowStart
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
-
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
-
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:
getSourceMaxLength
in interfacecom.tccc.kos.core.service.criticaldata.CriticalDataSource
-
getCriticalData
- Specified by:
getCriticalData
in interfacecom.tccc.kos.core.service.criticaldata.CriticalDataSource
- Throws:
Exception
-
setCriticalData
- Specified by:
setCriticalData
in 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:
getCriticalDataReady
in interfacecom.tccc.kos.core.service.criticaldata.CriticalDataSource
-