def __init__(self, params):
self._add_input_port('in')
- def _consume(self):
+ def _user_consume(self):
raise bt2.Stop
- def _graph_is_configured(self):
- pass
-
graph = bt2.Graph()
src = graph.add_component(MySource, 'src')
sink = graph.add_component(MySink, 'sink')
def __init__(self, params):
self._add_input_port('in')
- def _consume(self):
+ def _user_consume(self):
raise bt2.Stop
- def _graph_is_configured(self):
- pass
-
graph = bt2.Graph()
src = graph.add_component(MySource, 'src')
sink = graph.add_component(MySink, 'sink')
def __init__(self, params):
self._add_input_port('in')
- def _consume(self):
+ def _user_consume(self):
raise bt2.Stop
- def _graph_is_configured(self):
- pass
-
graph = bt2.Graph()
src = graph.add_component(MySource, 'src')
sink = graph.add_component(MySink, 'sink')