2021-03-21 12:40:13 +01:00
|
|
|
class Soil:
|
2021-03-31 12:56:29 +02:00
|
|
|
def __init__(self, is_fertilized, state, water_level):
|
|
|
|
self.is_fertilized = is_fertilized
|
2021-03-21 12:40:13 +01:00
|
|
|
self.state = state
|
|
|
|
self.water_level = water_level
|
2021-03-31 12:56:29 +02:00
|
|
|
def get_is_fertilized(self):
|
|
|
|
return self.is_fertilized
|
|
|
|
def set_is_fertilized(self, is_fertilized):
|
|
|
|
self.is_fertilized = is_fertilized
|
2021-03-21 12:40:13 +01:00
|
|
|
def get_state(self):
|
|
|
|
return self.state
|
|
|
|
def set_state(self, state):
|
|
|
|
self.state = state
|
|
|
|
def get_water_level(self):
|
|
|
|
return self.water_level
|
2021-03-22 17:02:12 +01:00
|
|
|
def set_water_level(self, water_level):
|
2021-03-21 12:40:13 +01:00
|
|
|
self.water_level = water_level
|