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:
com.tccc.kos.commons.core.service.config.ConfigAware<T>, com.tccc.kos.commons.core.service.handle.HandleAware, com.tccc.kos.core.service.assembly.AssemblyAware, com.tccc.kos.core.service.hardware.BoardIdentifier, com.tccc.kos.ext.dispense.pipeline.ingredient.grants.PumpOpLimitAware, com.tccc.kos.ext.dispense.PourAvailability
Direct Known Subclasses:
AbstractMicroBoard, FlexMacroBoard, KSMBoard, MacKSMBoard, MacroBoard, RCGPBoard

public class CANBoard<T extends CANBoardConfig> extends com.tccc.kos.ext.dispense.PumpBoard implements com.tccc.kos.commons.core.service.config.ConfigAware<T>
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

    com.tccc.kos.ext.dispense.PourAvailability.Type
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Dummy constructor for codeGen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add an activation listener to the list.
    void
    Fold-back/Rate Error threshold for each zone
    void
    Fold-back/Rate Error Zone Setting
    void
    EnableFoldbackRateErr(boolean foldBack_enable, boolean rateError_enable, double minConcentration)
    Enable/Disable Fold-back/Rate Error
     
    com.tccc.kos.commons.util.ready.ReadyIndicator
     
     
     
    int
    Get the CANOpen nodeId of this board.
    double
     
    com.tccc.kos.commons.core.service.trouble.TroubleService
     
     
    void
    onLink(com.tccc.kos.core.service.hardware.HardwareLink link)
     
    void
    onUnlink(com.tccc.kos.core.service.hardware.HardwareLink link)
     
    void
    setConfig(T config)
     
    void
    setSourceWeight(double sourceWeight)
     
     

    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, isReady, onBoardReady, removeListener, 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
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface com.tccc.kos.core.service.hardware.BoardIdentifier
    • getNodeId

      public int getNodeId()
      Get the CANOpen nodeId of this board.
      Returns:
      the nodeId for this board
    • onLink

      public void onLink(com.tccc.kos.core.service.hardware.HardwareLink link)
      Overrides:
      onLink in class com.tccc.kos.core.service.hardware.Board
    • onUnlink

      public void onUnlink(com.tccc.kos.core.service.hardware.HardwareLink link)
      Overrides:
      onUnlink in class com.tccc.kos.core.service.hardware.Board
    • addListener

      public void addListener(CANBoardActivateListener listener)
      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 disabled
      rateError_enable - True: rate err enabled False: rate err disabled
      minConcentration - Minimum concentration (Ex.0.332)
      Throws:
      IOException
    • configureZone

      public void configureZone() throws IOException
      Fold-back/Rate Error Zone Setting
      Throws:
      IOException
    • configureFoldbackRateErr

      public void configureFoldbackRateErr() throws IOException
      Fold-back/Rate Error threshold for each zone
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTroubleService

      public com.tccc.kos.commons.core.service.trouble.TroubleService getTroubleService()
    • getInstanceId

      public String getInstanceId()
      Specified by:
      getInstanceId in interface com.tccc.kos.core.service.hardware.BoardIdentifier
    • getConfig

      public T getConfig()
      Specified by:
      getConfig in interface com.tccc.kos.commons.core.service.config.ConfigAware<T extends CANBoardConfig>
    • setConfig

      public void setConfig(T config)
      Specified by:
      setConfig in interface com.tccc.kos.commons.core.service.config.ConfigAware<T extends CANBoardConfig>
    • getDiagnosticsLock

      public Object getDiagnosticsLock()
    • getCriticalDataReady

      public com.tccc.kos.commons.util.ready.ReadyIndicator getCriticalDataReady()
    • getSourceWeight

      public double getSourceWeight()
    • setSourceWeight

      public void setSourceWeight(double sourceWeight)