Hello Prashant,
Since your resource is the "trucks", you can define an "Entity Generator" block that mimics the loading behaviour for the "truck".
Here is how you can achieve this:
- Add an "Resource Pool" block namely "truck" along with an "Entity Generator" block and open it's dialog box.
- Set the "Generation method" to "Time-based" and set a "Period", time required to load the "truck".
- Navigate to "Entity type" and create attributes for each material "a","b" and "c" with initial value set to "0". Add an additional attribute say "plate" to identify different "trucks".
- Navigate to "Event actions", under "Generation action" and add the following code:
entity.Plate = number_plate;
number_plate = number_plate + 1;
- Add other blocks like "Resource Acquirer", "Entity Server" etc as per your modelling requirements.
- At last unload the "truck" using an "Entity Terminator" block.
I have attached an example model that I have created for your reference.