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

Function tutorial_event

python/tutorial/T18-Event.py:17–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def tutorial_event():
18 pipeline = GPipeline()
19 a, b, c, d = MyWriteParamNode(), MyEventNode(), MyNode1(), MyEventNode()
20
21 pipeline.registerGElement(a, set(), "nodeA")
22 pipeline.registerGElement(b, {a}, "eventNodeB")
23 pipeline.registerGElement(c, {b}, "nodeC")
24 pipeline.registerGElement(d, {c}, "eventNodeD")
25
26 pipeline.addGEvent(MyPrintEvent(), "event1")
27
28 pipeline.process()
29
30
31if __name__ == '__main__':

Callers 1

T18-Event.pyFile · 0.70

Calls 6

processMethod · 0.95
MyWriteParamNodeClass · 0.90
MyEventNodeClass · 0.90
MyNode1Class · 0.90
MyPrintEventClass · 0.90
GPipelineClass · 0.85

Tested by

no test coverage detected