MqttDispatcherPy/AbstractNextStage.py
Wolfgang Hottgenroth 3fcf6fe486 initial
2017-11-10 22:03:30 +01:00

19 lines
486 B
Python

from logger import Logger
class AbstractNextStage(object):
def __init__(self):
self.nextStage = None
def setNextStage(self, nextStage):
self.nextStage = nextStage
def executeNextStage(self, data):
if self.nextStage is not None:
self.nextStage.execute(data)
else:
Logger.log("no nextStage set")
def execute(self, data):
raise Exception("Not yet implemented")
# last step is to execute nextStage