SprytnyTraktor/plant.py

12 lines
468 B
Python
Raw Normal View History

2021-03-21 12:40:13 +01:00
class Plant:
2021-03-21 15:17:34 +01:00
def __init__(self, current_state, maximum_state):
2021-03-21 13:45:20 +01:00
self.current_state = current_state
self.maximum_state = maximum_state
def get_current_state(self):
return self.current_state
def set_current_state(self, current_state):
self.current_state = current_state
def get_maximum_state(self):
return self.maximum_state
def set_maximum_state(self, maximum_state):
2021-03-21 15:17:34 +01:00
self.maximum_state = maximum_state