26 comp = salome.lcc.FindOrLoadComponent(
"YACSContainer",
"YACS" )
32 procEx = yacsgen.LoadProc(
"samples/legendre7.xml")
33 procEx.setExecMode(YACS_ORB.CONTINUE)
41 state = procEx.getExecutorState()
42 isRunning = (state < 304)
43 print "executorState: ", state
46 procEx.saveState(
"res.xml")
47 numids,names = procEx.getIds()
52 dico[name] = numids[i]
56 print procEx.getOutPortValue(dico[
"poly_7"],
"Pn")
57 print procEx.getInPortValue(dico[
"poly_7"],
"x")
58 print procEx.getInPortValue(dico[
"poly_7"],
"notAPort")
59 print procEx.getInPortValue(dico[
"Legendre.loopIter"],
"nsteps")
64 procEx = yacsgen.LoadProc(
"samples/aschema.xml")
65 procEx.setExecMode(YACS_ORB.CONTINUE)
73 state = procEx.getExecutorState()
74 isRunning = (state < 304)
75 print "executorState: ", state
78 procEx.saveState(
"res2.xml")
79 numids,names = procEx.getIds()
84 dico[name] = numids[i]
88 print procEx.getErrorDetails(dico[
"c1"])
89 print procEx.getErrorDetails(dico[
"node13"])
94 procEx = yacsgen.LoadProc(
"samples/triangle5error.xml")
95 procEx.setExecMode(YACS_ORB.CONTINUE)
96 procEx.setStopOnError(1,
"execError2.xml")
103 state = procEx.getExecutorState()
104 isRunning = (state < 304)
105 print "executorState: ", state
110 procEx.saveState(
"res3.xml")
115 procEx = yacsgen.LoadProc(
"samples/legendre7.xml")
116 procEx.setListOfBreakPoints([
"Legendre.loopIter.deuxIter.iter2"])
117 procEx.setExecMode(YACS_ORB.STOPBEFORENODES)
123 state = procEx.getExecutorState()
124 isRunning = (state < 304)
125 print "executorState: ", state
128 procEx.saveState(
"partialExec.xml")
130 procEx = yacsgen.LoadProc(
"samples/legendre7.xml")
131 procEx.setExecMode(YACS_ORB.CONTINUE)
132 procEx.RunFromState(
"partialExec.xml")
137 state = procEx.getExecutorState()
138 isRunning = (state < 304)
139 print "executorState: ", state
142 procEx.saveState(
"finishExec.xml")