Class IceAgitator
java.lang.Object
com.tccc.kos.ext.freestyle.hardware.can.subnode.ice.IceAgitator
- All Implemented Interfaces:
com.tccc.kos.commons.core.service.config.ConfigAware<IceAgitatorConfig>,com.tccc.kos.commons.core.service.handle.HandleAware,com.tccc.kos.commons.core.service.state.StateAware<IceAgitatorState>
public class IceAgitator
extends Object
implements com.tccc.kos.commons.core.service.config.ConfigAware<IceAgitatorConfig>, com.tccc.kos.commons.core.service.state.StateAware<IceAgitatorState>
Agitator for ice.
- Version:
- Aug-5-17
-
Method Summary
Modifier and TypeMethodDescriptionvoidagitate(int duration, boolean iceGate) Perform a custom agitation cycle.com.tccc.kos.commons.core.service.handle.HandlegetState()voidonConfigChanged(com.tccc.kos.commons.core.service.config.BeanChanges changes) voidsetConfig(IceAgitatorConfig config) voidstartIce()Dispense ice for the max allowable amount of time.voidstartIce(boolean force) Dispense ice for the max allowable amount of time.voidstartIce(int duration, boolean force) Dispense ice for the specified amount of time in seconds.voidstopIce()Stop any ice dispense that is in progress.voidPerform an ice agitator test.voidPerform an ice gate test.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.core.service.config.ConfigAware
onConfigSetMethods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
-
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 msforce- 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 secondsiceGate- 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(com.tccc.kos.commons.core.service.config.BeanChanges changes) - Specified by:
onConfigChangedin interfacecom.tccc.kos.commons.core.service.config.ConfigAware<IceAgitatorConfig>
-
getConfig
- Specified by:
getConfigin interfacecom.tccc.kos.commons.core.service.config.ConfigAware<IceAgitatorConfig>
-
setConfig
- Specified by:
setConfigin interfacecom.tccc.kos.commons.core.service.config.ConfigAware<IceAgitatorConfig>
-
getState
- Specified by:
getStatein interfacecom.tccc.kos.commons.core.service.state.StateAware<IceAgitatorState>
-
getHandle
public com.tccc.kos.commons.core.service.handle.Handle getHandle()- Specified by:
getHandlein interfacecom.tccc.kos.commons.core.service.handle.HandleAware
-