Class CANBoard<T extends CANBoardConfig>
java.lang.Object
com.tccc.kos.core.service.hardware.Board
com.tccc.kos.ext.dispense.PumpBoard
com.tccc.kos.ext.freestyle.hardware.can.board.CANBoard<T>
- All Implemented Interfaces:
ConfigAware<T>
,HandleAware
,AssemblyAware
,BoardIdentifier
,PumpOpLimitAware
,PourAvailability
- Direct Known Subclasses:
AbstractMicroBoard
,FlexMacroBoard
,KSMBoard
,MacKSMBoard
,MacroBoard
,RCGPBoard
This represents a single board on the CAN bus. The various CAN related
endpoints use these beans to map hardware addresses to these logical boards
which enables us to talk to them an bind pumps to logical positions on these
boards.
- Version:
- May-18-17
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tccc.kos.ext.dispense.PourAvailability
PourAvailability.Type
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCANBoard()
Dummy constructor for codeGenCANBoard
(Assembly assembly, String name, String type, int instanceId, PumpInfoResolver resolver) Create a new board with the specified type which is used to match the board bean with the physical board found during CAN bus enumeration and discovery. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(CANBoardActivateListener listener) Add an activation listener to the list.void
Fold-back/Rate Error threshold for each zonevoid
Fold-back/Rate Error Zone Settingvoid
EnableFoldbackRateErr
(boolean foldBack_enable, boolean rateError_enable, double minConcentration) Enable/Disable Fold-back/Rate Errorint
Get the CANOpen nodeId of this board.double
getType()
void
onLink
(HardwareLink link) void
onUnlink
(HardwareLink link) Resolve pump info.void
void
setSourceWeight
(double sourceWeight) toString()
Methods inherited from class com.tccc.kos.ext.dispense.PumpBoard
checkPumpOpLimits, getBeverageAvailabilityLock, getIngredientAvailabilityLock, getPumpOpGrantLimit, setPumpOpGrantLimit
Methods inherited from class com.tccc.kos.core.service.hardware.Board
addLinkListener, addReadyListener, boardReady, getAssembly, getHandle, getLink, getLinkCount, isLinked, isOptional, isReady, isSticky, onBoardReady, removeListener, setOptional, setSticky, verifyLinked
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.tccc.kos.core.service.assembly.AssemblyAware
getAssemblyName
Methods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware
onConfigChanged, onConfigSet
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getHandle, 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
-
CANBoard
public CANBoard()Dummy constructor for codeGen -
CANBoard
public CANBoard(Assembly assembly, String name, String type, int instanceId, PumpInfoResolver resolver) Create a new board with the specified type which is used to match the board bean with the physical board found during CAN bus enumeration and discovery.- Parameters:
assembly
- assembly the board is part ofname
- name of the boardtype
- the board typeinstanceId
- used to identify a given board in multi-board configsresolver
- resolve pump info
-
-
Method Details
-
resolve
Resolve pump info. -
getType
- Specified by:
getType
in interfaceBoardIdentifier
-
getNodeId
public int getNodeId()Get the CANOpen nodeId of this board.- Returns:
- the nodeId for this board
-
onLink
-
onUnlink
-
addListener
Add an activation listener to the list.- Parameters:
listener
- the listener to add
-
EnableFoldbackRateErr
public void EnableFoldbackRateErr(boolean foldBack_enable, boolean rateError_enable, double minConcentration) throws IOException Enable/Disable Fold-back/Rate Error- Parameters:
foldBack_enable
- True: foldback enabled False: foldback disabledrateError_enable
- True: rate err enabled False: rate err disabledminConcentration
- Minimum concentration (Ex.0.332)- Throws:
IOException
-
configureZone
Fold-back/Rate Error Zone Setting- Throws:
IOException
-
configureFoldbackRateErr
Fold-back/Rate Error threshold for each zone- Throws:
IOException
-
toString
-
getTroubleService
-
getInstanceId
- Specified by:
getInstanceId
in interfaceBoardIdentifier
-
getConfig
- Specified by:
getConfig
in interfaceConfigAware<T extends CANBoardConfig>
-
setConfig
- Specified by:
setConfig
in interfaceConfigAware<T extends CANBoardConfig>
-
getDiagnosticsLock
-
getCriticalDataReady
-
getSourceWeight
public double getSourceWeight() -
setSourceWeight
public void setSourceWeight(double sourceWeight)
-