|
在process9里加了任务序列,最后一步吸取下起始点的位置OK- g! T: Z% _5 j' \4 j! @8 M
treenode dispatcher = current.centerObjects[1]; // the dispatcher or task executer7 K* D; F& S7 m, K4 ?
9 ^% { U1 |+ C: Ftreenode ts = createemptytasksequence(dispatcher,priority,preempt);
' p6 n/ ~9 h N/ Q2 j( ]4 W. r+ ?8 K/ \) l% q5 m8 q
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);, M c# L4 C1 a" U# I; d
inserttask(ts,TASKTYPE_LOAD,item,current,port); \, F$ M3 Y/ M n
inserttask(ts,TASKTYPE_BREAK,NULL,NULL);6 c9 A3 g* p, H& r- s' g5 q1 Q0 _
inserttask(ts,TASKTYPE_TRAVEL, destination,NULL);8 S8 G/ d) c; F. Q! |
inserttask(ts,TASKTYPE_UNLOAD,item, destination,opipno(current,port));# [$ a, t$ V0 {0 T6 M
inserttask(ts,TASKTYPE_TRAVEL,Model.find("NN18"));
% G: Q' [1 h+ |! h6 m! g# J" k& D/ t& {1 B
dispatchtasksequence(ts); |
|