In reply to SharonBeaulah:
Do you mean something like this?
master_agent my_master_agent[num_agent];
foreach(my_master_agent)
begin
my_master_agent[i] = master_agent::tpye_id::create(my_master_agent, this);
end
You can take num_agent from environment. You can use config_db or directly assign like “agent_inst.num_agent = 12”