2
我有3個代理(p1,p2和p3)共享相同的代碼(participant.asl)。我想知道是否可以使用一些命令來實例化50個這樣的代理,比如數組,像「p [1..50]參與者」?有沒有什麼辦法在Jason中實例化代理的「數組」?
MAS testMAS {
infrastructure: Centralised
agents:
p1 participant;
p2 participant;
p3 participant;
aslSourcePath:
"src/asl";
}