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

Class MyNode2

python/tutorial/MyGNode/MyNode2.py:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12from pycgraph import GNode, CStatus
13
14class MyNode2(GNode):
15 def init(self):
16 print("[INIT] [{0}], enter MyNode2 init function.".format(self.getName()))
17 return CStatus()
18
19 def run(self):
20 print("[{0}] {1}, enter MyNode2 run function. Sleep for 2 second ... ".format(datetime.now(), self.getName()))
21 time.sleep(2)
22 return CStatus()
23
24 def destroy(self):
25 print("[DESTROY] [{0}], enter MyNode2 destroy function.".format(self.getName()))
26 return CStatus()

Callers 14

tutorial_simpleFunction · 0.90
tutorial_fenceFunction · 0.90
tutorial_conditionFunction · 0.90
tutorial_cancelFunction · 0.90
tutorial_suspendFunction · 0.90
tutorial_aspect_paramFunction · 0.90
tutorial_trimFunction · 0.90
tutorial_regionFunction · 0.90
tutorial_complexFunction · 0.90
tutorial_aspectFunction · 0.90
tutorial_clusterFunction · 0.90
tutorial_timeoutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected