Add base farm automation code (main branch)
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
# Пакет farm_core
|
||||||
@@ -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"
|
||||||
@@ -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)]
|
||||||
Reference in New Issue
Block a user