|
在process9里加了任务序列,最后一步吸取下起始点的位置OK& R$ A4 ~' h' n
treenode dispatcher = current.centerObjects[1]; // the dispatcher or task executer$ p3 O0 \4 \7 d. L: Z5 x( |
' N/ X( Y0 u2 ?! _+ v1 I; s1 |treenode ts = createemptytasksequence(dispatcher,priority,preempt);& m- W( a0 g0 X! L. X
( m% P- s9 W0 w/ x% M" }9 v8 {inserttask(ts,TASKTYPE_TRAVEL,current,NULL);# S8 `+ t8 x$ K
inserttask(ts,TASKTYPE_LOAD,item,current,port);& R6 W5 ?9 p" z$ i$ g
inserttask(ts,TASKTYPE_BREAK,NULL,NULL);- h: Y# J4 m5 L1 y5 W3 S
inserttask(ts,TASKTYPE_TRAVEL, destination,NULL);2 f2 |- F) v! G' b9 \# Y
inserttask(ts,TASKTYPE_UNLOAD,item, destination,opipno(current,port));" e* s; P0 s0 q+ ~6 x& L: K
inserttask(ts,TASKTYPE_TRAVEL,Model.find("NN18"));
( L: K9 m# ~0 t5 K! X- ^) m
9 h; V# z; r9 A/ Bdispatchtasksequence(ts); |
|