Class MSVPump
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<MSVPumpConfig>
com.tccc.kos.ext.freestyle.hardware.can.subnode.pump.MSVPump
- All Implemented Interfaces:
ConfigAware<MSVPumpConfig>
,HandleAware
,Abortable
,Cancelable
,Terminable
,CriticalDataSource
,PourAvailability
Represents a MSV pump.
- Version:
- Jun-15-17
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tccc.kos.ext.dispense.PourAvailability
PourAvailability.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the ASCII serial number of the pump.int
getType()
static PumpInfo
Return default pump info for nutrative sweetener.boolean
setCriticalData
(byte[] bytes) void
setOpenLoop
(boolean openLoop) Enable open loopvoid
setOpenLoopPercentage
(int percentage) Set open loop percentageMethods 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:
-
TYPE
- See Also:
-
CALIBRATION_CURVE_HFCS
public static final int CALIBRATION_CURVE_HFCS- See Also:
-
CALIBRATION_CURVE_FIS
public static final int CALIBRATION_CURVE_FIS- See Also:
-
-
Constructor Details
-
MSVPump
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 pump
-
-
Method Details
-
pumpInfoNS
Return default pump info for nutrative sweetener. -
getType
- Specified by:
getType
in classPump<MSVPumpConfig>
-
getSerialNum
Get the ASCII serial number of the pump.- Returns:
- the serial number in string
-
setOpenLoop
Enable open loop- Throws:
IOException
-
setOpenLoopPercentage
Set open loop percentage- Throws:
IOException
-
getSourceMaxLength
public int getSourceMaxLength()- Specified by:
getSourceMaxLength
in interfaceCriticalDataSource
-
getCriticalData
- Specified by:
getCriticalData
in interfaceCriticalDataSource
- Throws:
Exception
-
setCriticalData
- Specified by:
setCriticalData
in interfaceCriticalDataSource
- Throws:
Exception
-
getCriticalDataReady
- Specified by:
getCriticalDataReady
in interfaceCriticalDataSource
-