|
在process9里加了任务序列,最后一步吸取下起始点的位置OK3 X# y9 L9 z3 u0 \. w* l% a9 y+ j* ?
treenode dispatcher = current.centerObjects[1]; // the dispatcher or task executer- n/ c& \0 c! y, B6 E6 {1 n
0 j" h) j. ^2 x" i! x" k
treenode ts = createemptytasksequence(dispatcher,priority,preempt);, b* Z1 u; c3 q: s |# y* E
$ f2 K8 V( S8 l
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);
9 n2 g8 Y& K) r3 `inserttask(ts,TASKTYPE_LOAD,item,current,port);( h1 n$ o' r1 s: x2 w
inserttask(ts,TASKTYPE_BREAK,NULL,NULL);" l+ C5 N3 L' z' x/ G: J; @% J' A. p
inserttask(ts,TASKTYPE_TRAVEL, destination,NULL);
- _$ [) E* o9 g+ v$ v: F) finserttask(ts,TASKTYPE_UNLOAD,item, destination,opipno(current,port));- x- N5 _) o# S9 m
inserttask(ts,TASKTYPE_TRAVEL,Model.find("NN18"));
k) g; \' R; m/ D) E2 u" ]! f/ c- P* C3 x% \+ _# H' e
dispatchtasksequence(ts); |
|