|
在process9里加了任务序列,最后一步吸取下起始点的位置OK% c+ o' K8 v; I; A9 s' Y% I
treenode dispatcher = current.centerObjects[1]; // the dispatcher or task executer2 U& p5 w: h0 {5 W) [) K. c6 h0 y
7 A. R3 K) e0 ~5 e; _9 H, f" c) {treenode ts = createemptytasksequence(dispatcher,priority,preempt);
/ h! a3 e/ ~2 M* X( Q9 g! C* ?* z" I: }$ C7 W( z$ I( o- }
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);, n- L# w6 X( N5 ^( W# H/ F$ |/ G1 P
inserttask(ts,TASKTYPE_LOAD,item,current,port);$ m* U$ @, O+ Y; Z
inserttask(ts,TASKTYPE_BREAK,NULL,NULL);' v# M- N ]: z' t2 {
inserttask(ts,TASKTYPE_TRAVEL, destination,NULL);: K1 w/ K. p: r1 q
inserttask(ts,TASKTYPE_UNLOAD,item, destination,opipno(current,port));# q5 n8 O, U8 c+ e* H& }: A
inserttask(ts,TASKTYPE_TRAVEL,Model.find("NN18"));2 x; S; r& L+ o! D$ W, |
$ ?4 o( G5 M8 T! w/ U2 G, e5 tdispatchtasksequence(ts); |
|