MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / tutorial_aspect_param

Function tutorial_aspect_param

python/tutorial/T10-AspectParam.py:16–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def 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
30if __name__ == '__main__':

Callers 1

T10-AspectParam.pyFile · 0.70

Calls 5

processMethod · 0.95
MyNode1Class · 0.90
MyNode2Class · 0.90
MyConnAspectClass · 0.90
GPipelineClass · 0.85

Tested by

no test coverage detected