2021-03-21 12:40:13 +01:00
|
|
|
class Plant:
|
2021-03-27 21:31:22 +01:00
|
|
|
def __init__(self, name, state):
|
|
|
|
self.name = name
|
2021-03-23 17:14:46 +01:00
|
|
|
self.state = state
|
2021-03-27 21:31:22 +01:00
|
|
|
def get_name(self):
|
|
|
|
return self.name
|
|
|
|
def set_name(self, name):
|
|
|
|
self.name = name
|
2021-03-23 17:14:46 +01:00
|
|
|
def get_state(self):
|
|
|
|
return self.state
|
|
|
|
def set_state(self, state):
|
|
|
|
self.state = state
|