【正文】
om in the queue. If the label value is 0 then send to channel 1. Queue1 to Queue5: queue for the platforms Send to: 2. An open channel (First channel first): search, starting from the first channel, and send to the first open channel found. Stop 1a to Stop 5b: Stop 1a to Stop 5bCycletime: if(label([Depart],first(c))time120,120,label([Depart],first(c))time)假如出發(fā)時間距到達時間不足2分鐘,公交車必須等待2分鐘,因此,周期時間為2分鐘。否則,等待時間是出發(fā)時間和當前時間的差值。后車位設置: Trigger on Entry: closeinput(out(2,c)) Trigger on Exit: openinput(out(2,c)) 前車位設置: Trigger on Entry: closeoutput(in(2,c)) Trigger on Exit: openoutput(in(2,c))方案2 該方案的布局設置在41圖中。Source:公交車生成器Interarrival time: excelread(output(c)+2,8) Trigger on Exit: do( setlabel([Depart],excelread(input(c)+1,6),i), setlabel([Platform],excelread(input(c)+1,7),i), if(output(c)=275,closeoutput(c)) )此外,由于該模型跟方案1的標簽名稱相同,所以,模型的其他部分保持不變。7 /