- made on-methods private

- added AStirrer::_on_process() for monitoring
This commit is contained in:
jens
2021-08-12 09:32:02 +02:00
parent 71b5ac848f
commit a95f5195d1
3 changed files with 17 additions and 8 deletions
+4 -1
View File
@@ -14,9 +14,12 @@ class StirrerSim(AStirrer):
return self.speed
return 0
def on_set_speed(self, speed):
def _on_set_speed(self, speed):
print("Set speed to {} %".format(speed))
def _on_process(self):
print("STATUS = OK!")
if __name__ == '__main__':
s = StirrerSim(1.0)