Currently the AGV transporter only gets seized by one material agent at a time before it moves to a point and processes the material and returning to source for next pickup. It goes like source -> queue -> seizeTransporter -> moveByTransporter -> delay…
Now I want to simulate picking up multiple materials at once from the source, processing them one by one, dropping all of them at exit point and then returning to the source to pickup next batch.
Please suggest how to implement this.
I tried adding batch element after queue or seize block but it throws error in both cases. I also tried adding an arraylist in the transporter class to represent the products being added in a batch and then added a condition in ‘on seize transporter’ to check if the arraylist has reached the required number before moving on to processing block but it doesn’t work.
Ayusee Swain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.