Hello, I am working on an agent based model using Anylogic 8.7. There is a point where I filter some agents sharing the same attributes to a collection, and then use Java looping method to grab some other attributes(e.g. impact) from the filtered agents.
for(population p: collection){
traceln(p.impact)
}
What I want to do is to grab each listed agent's impact from console, do some operations and I want to do this process on each one of them seperately. Is there a way to retrieve and release the printed data? If positive I would be grateful to know how to conduct it.
Thanks.