|
在process9里加了任务序列,最后一步吸取下起始点的位置OK
$ I! h Y* m4 d* Q/ L# Xtreenode dispatcher = current.centerObjects[1]; // the dispatcher or task executer7 e: {/ { {9 s2 |: b
( M1 X5 B; b; U/ \; Rtreenode ts = createemptytasksequence(dispatcher,priority,preempt);
* H6 m9 O+ e* Y& T9 N& M: _/ U. Z6 V( Q' ]* o" K
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);
2 H$ V @! E! c+ u, l. einserttask(ts,TASKTYPE_LOAD,item,current,port);8 h" Y6 ~0 v3 j! l% z! G
inserttask(ts,TASKTYPE_BREAK,NULL,NULL); V8 X c% l& g) [+ t
inserttask(ts,TASKTYPE_TRAVEL, destination,NULL);6 t3 ^1 |. x; p3 {# c# V# P
inserttask(ts,TASKTYPE_UNLOAD,item, destination,opipno(current,port));* j) K6 s2 O! a% _" | d# ^
inserttask(ts,TASKTYPE_TRAVEL,Model.find("NN18"));
! h7 y. ]9 O/ d/ }& H. ]$ Q; |$ H+ C7 }" p: z
dispatchtasksequence(ts); |
|