java.lang.Object
com.tccc.kos.ext.freestyle.hardware.can.subnode.ice.IceAgitator
All Implemented Interfaces:
ConfigAware<IceAgitatorConfig>, HandleAware, StateAware<IceAgitatorState>

public class IceAgitator extends Object implements ConfigAware<IceAgitatorConfig>, StateAware<IceAgitatorState>
Agitator for ice.
Version:
Aug-5-17
  • Method Details

    • startIce

      public void startIce()
      Dispense ice for the max allowable amount of time.
    • startIce

      public void startIce(boolean force)
      Dispense ice for the max allowable amount of time.
      Parameters:
      force - if true, dispense even if paused
    • startIce

      public void startIce(int duration, boolean force)
      Dispense ice for the specified amount of time in seconds.
      Parameters:
      duration - the time in ms
      force - if true, start ice even if paused
    • stopIce

      public void stopIce()
      Stop any ice dispense that is in progress.
    • agitate

      public void agitate(int duration, boolean iceGate)
      Perform a custom agitation cycle.
      Parameters:
      duration - duration in seconds
      iceGate - true if the ice gate should be open
    • testIceGate

      public void testIceGate()
      Perform an ice gate test.
    • testAgitation

      public void testAgitation()
      Perform an ice agitator test.
    • onConfigChanged

      public void onConfigChanged(BeanChanges changes)
      Specified by:
      onConfigChanged in interface ConfigAware<IceAgitatorConfig>
    • getConfig

      public IceAgitatorConfig getConfig()
      Specified by:
      getConfig in interface ConfigAware<IceAgitatorConfig>
    • setConfig

      public void setConfig(IceAgitatorConfig config)
      Specified by:
      setConfig in interface ConfigAware<IceAgitatorConfig>
    • getState

      public IceAgitatorState getState()
      Specified by:
      getState in interface StateAware<IceAgitatorState>
    • getHandle

      public Handle getHandle()
      Specified by:
      getHandle in interface HandleAware