as below figure,a product need to through station S1--S2--S3--S4--S5，the product delivery between station per the transporter(one of the two transporters that is free)。when a station finished product,it will judge if the next station is free,if next station is free ,it will judge which transporter is free ,and waituntil one transporter is free.how can realize this. I find the code "waituntil" do not very well control transporter.for example at one moment ,one transporter is free ,but two station use "waituntil" ttay will not control
One possibility to check if a station is empty, is to attach an observer, set the value "empty".
Then you could directly call a method from there in the previous station;
and by the method in the previous station activate a regular stop for the vehicle on the track.
You can insert a condition if the transporter is empty.