I have 3 agents (p1, p2 and p3) that are sharing the same code (participant.asl). I'd like to know if it is possible to use some command to instantiate like 50 of this agents, like an array, something like "p[1..50] participant"?
MAS testMAS {
infrastructure: Centralised
agents:
p1 participant;
p2 participant;
p3 participant;
aslSourcePath:
"src/asl";
}
Yes, you can use "#" directive to instantiate multiple agents of same type. In your code the exact correspondence is:
By this way the agents p1, p2 and p3 will be created using participant.asl code.