FoodControl¶
- class hive.implementation.abstract_task.FoodControl(task: Task, increase_mode=False)¶
Bases:
objectfood devices control.
Attributes Summary
IDs of used food devices
Methods Summary
change_delivery_time(device, delivery[, force])change the food delivery for food device
empty([device])empty food device
fill([device])fill food device
give_food(device, *[, delivery, ...])dispense food.
read([device])read parameter from food device
reset(use_device)reset food device list
Attributes Documentation
- INC_DELIVERY_TIME = 50¶
- MAX_DELIVERY_TIME = 400¶
- RESET_DELIVERY_TIME = 150¶
- devices¶
IDs of used food devices
Methods Documentation
- change_delivery_time(device: str, delivery: int, force=False)¶
change the food delivery for food device
This control will cache the delivery setting and only update the device when necessary.
- Parameters
device – device id, None for all
delivery – new delivery time.
force – force update.
- give_food(device: str, *, delivery: Optional[int] = None, increase_mount=False, reset=False)¶
dispense food.
- Parameters
device – device id
delivery – change change delivery time temporarily
increase_mount – increase delivery time
reset – reset delivery time