I create a spreadsheet with some properties (columns); then in Anylogic create an agent (population of agents) and load it from DB. Run model. Works perfectly, it shows I have an Agent population "products" with 6 agents.. (model has FluidSource, Pipe, Tank, Valve, FluidDispose, all basic configuration)
So now I open the FluidSource, select Custom batch and for Batch: products.get[0].productName
(productName is parameter of type string). I have also tried:
products[0];
products[0].productName;
products.get(0);
Now run again.. in model window it says "Error while drawing animation frame..." (orange block top right) and in model.Console it says: Error during model creation: Index: 0, Size: 0 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 ...
What am I doing wrong? How do I assign my FluidSource batch to one of my "Product" agents?