Add base farm automation code (main branch)

This commit is contained in:
Dmitry Belan
2026-07-01 13:47:06 +03:00
parent 95a1378fdb
commit 7291a46b6a
4 changed files with 30 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# Пакет farm_core
+8
View File
@@ -0,0 +1,8 @@
class FarmAgent:
def __init__(self, name, module):
self.name = name
self._module = module
@staticmethod
def get_manual():
return "Инструкция: pH 6.0"
+13
View File
@@ -0,0 +1,13 @@
class BioCulture:
def __init__(self, id):
self._id = id
self._stage = "Зеленый"
def grow(self):
# Заглушка, которая вызовет конфликт
raise NotImplementedError("Рост не реализован в main!")
class HydroponicModule:
def __init__(self, count):
self.cultures = [BioCulture(i) for i in range(count)]