java.lang.Object
com.tccc.kos.ext.freestyle.hardware.can.subnode.carbtank.CarbTank
All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>, com.tccc.kos.commons.core.service.handle.HandleAware, com.tccc.kos.commons.core.service.state.StateAware<CarbAgitatorState>, com.tccc.kos.ext.dispense.service.pumpevent.PumpEventListener, com.tccc.kos.ext.dispense.service.pumpevent.PumpListener

public class CarbTank extends Object implements com.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>, com.tccc.kos.commons.core.service.state.StateAware<CarbAgitatorState>, com.tccc.kos.ext.dispense.service.pumpevent.PumpEventListener
Carb tank
Version:
Nov-7-17
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new carb agitator using the specified board to perform the actual agitation.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.tccc.kos.commons.core.service.handle.Handle
     
     
    void
    linkWater(AbstractCANPump<?> waterPump)
    Link water with carb agitator.
    void
    onConfigChanged(com.tccc.kos.commons.core.service.config.BeanChanges changes)
     
    void
    onPumpStart(com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline pipeline, com.tccc.kos.ext.dispense.Pump<?> pump)
     
    void
    onPumpStop(com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline pipeline, com.tccc.kos.ext.dispense.Pump<?> pump)
     
    void
     
    void
    setEnabled(boolean enabled)
    Change the enabled state of the carb agitator setting.
    com.tccc.kos.commons.util.concurrent.future.FutureWork
    Perform a test agitation.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware

    onConfigSet

    Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware

    addHandleChild, getName, getPath
  • Constructor Details

    • CarbTank

      public CarbTank(String name, CarbAgitatorAware board)
      Create a new carb agitator using the specified board to perform the actual agitation.
      Parameters:
      name - the name of the agitator
      board - the node that will perform the agitation
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Change the enabled state of the carb agitator setting.
    • testAgitation

      public com.tccc.kos.commons.util.concurrent.future.FutureWork testAgitation()
      Perform a test agitation.
    • onConfigChanged

      public void onConfigChanged(com.tccc.kos.commons.core.service.config.BeanChanges changes)
      Specified by:
      onConfigChanged in interface com.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>
    • getState

      public CarbAgitatorState getState()
      Specified by:
      getState in interface com.tccc.kos.commons.core.service.state.StateAware<CarbAgitatorState>
    • linkWater

      public void linkWater(AbstractCANPump<?> waterPump) throws IOException
      Link water with carb agitator.
      Throws:
      IOException - if there is an error
    • onPumpStart

      public void onPumpStart(com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline pipeline, com.tccc.kos.ext.dispense.Pump<?> pump)
      Specified by:
      onPumpStart in interface com.tccc.kos.ext.dispense.service.pumpevent.PumpEventListener
    • onPumpStop

      public void onPumpStop(com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline pipeline, com.tccc.kos.ext.dispense.Pump<?> pump)
      Specified by:
      onPumpStop in interface com.tccc.kos.ext.dispense.service.pumpevent.PumpEventListener
    • getHandle

      public com.tccc.kos.commons.core.service.handle.Handle getHandle()
      Specified by:
      getHandle in interface com.tccc.kos.commons.core.service.handle.HandleAware
    • getConfig

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

      public void setConfig(CarbTankConfig config)
      Specified by:
      setConfig in interface com.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>