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.Handle
getState()
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
setConfig
(CarbTankConfig config) 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
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:
onConfigChanged
in interfacecom.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>
-
getState
- Specified by:
getState
in 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:
onPumpStart
in 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:
onPumpStop
in interfacecom.tccc.kos.ext.dispense.service.pumpevent.PumpEventListener
-
getHandle
public com.tccc.kos.commons.core.service.handle.Handle getHandle()- Specified by:
getHandle
in interfacecom.tccc.kos.commons.core.service.handle.HandleAware
-
getConfig
- Specified by:
getConfig
in interfacecom.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>
-
setConfig
- Specified by:
setConfig
in interfacecom.tccc.kos.commons.core.service.config.ConfigAware<CarbTankConfig>
-