Class CarbTank
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
ConstructorsConstructorDescriptionCarbTank(String name, CarbAgitatorAware board) Create a new carb agitator using the specified board to perform the actual agitation. -
Method Summary
Modifier and TypeMethodDescriptioncom.tccc.kos.commons.core.service.handle.HandlegetState()voidlinkWater(AbstractCANPump<?> waterPump) Link water with carb agitator.voidonConfigChanged(com.tccc.kos.commons.core.service.config.BeanChanges changes) voidonPumpStart(com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline pipeline, com.tccc.kos.ext.dispense.Pump<?> pump) voidonPumpStop(com.tccc.kos.ext.dispense.service.nozzle.NozzlePipeline pipeline, com.tccc.kos.ext.dispense.Pump<?> pump) voidsetConfig(CarbTankConfig config) voidsetEnabled(boolean enabled) Change the enabled state of the carb agitator setting.com.tccc.kos.commons.util.concurrent.future.FutureWorkPerform a test agitation.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
-
Constructor Details
-
CarbTank
Create a new carb agitator using the specified board to perform the actual agitation.- Parameters:
name- the name of the agitatorboard- 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:
onConfigChangedin interfacecom.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>
-
getState
- Specified by:
getStatein interfacecom.tccc.kos.commons.core.service.state.StateAware<CarbAgitatorState>
-
linkWater
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:
onPumpStartin interfacecom.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:
onPumpStopin interfacecom.tccc.kos.ext.dispense.service.pumpevent.PumpEventListener
-
getHandle
public com.tccc.kos.commons.core.service.handle.Handle getHandle()- Specified by:
getHandlein interfacecom.tccc.kos.commons.core.service.handle.HandleAware
-
getConfig
- Specified by:
getConfigin interfacecom.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>
-
setConfig
- Specified by:
setConfigin interfacecom.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>
-