()
| 14 | |
| 15 | |
| 16 | def tutorial_aspect_param(): |
| 17 | a, b, c, d = MyNode1(), MyNode2(), MyNode1(), MyNode2() |
| 18 | |
| 19 | a.addGAspect(MyConnAspect('127.0.0.1', 6666)) |
| 20 | d.addGAspect(MyConnAspect('255.255.255.255', 9999)) |
| 21 | |
| 22 | pipeline = GPipeline() |
| 23 | pipeline.registerGElement(a, set(), 'nodeA') |
| 24 | pipeline.registerGElement(b, {a}, 'nodeB') |
| 25 | pipeline.registerGElement(c, {b}, 'nodeC') |
| 26 | pipeline.registerGElement(d, {c}, 'nodeD') |
| 27 | pipeline.process() |
| 28 | |
| 29 | |
| 30 | if __name__ == '__main__': |
no test coverage detected