Question about dynamic agent creation during cougaar execution

daniel domingue ddomingue at gmail.com
Mon Jun 4 08:39:38 EDT 2007


Thank you for the information,

I have been able to obtain a working prototype that enables dynamic
creation of agents at runtime.

Reading through the different threads you pointed me towards, I saw
there were issues with the .xml  specification file when creating many
different agents .

I use a simple solution where the agent plugin that creates the new
agent writes a <agent_name>.xml with the required plugins  in the
local directory before calling the
mobilityFactory.createAgentControl(), and the created agent has the
responsibility to remove the aforementioned file, enabling.

I would like to know if using this method had any design/performance
issues, it seems to be working ok for me with acceptable time for the
whole step of creating an agent with its own .xml file.

Also, in the AddExampleAgentPlugin.java you redirected me to,
the blackboard.startTransaction() and
blackboard.closeTransaction() calls were missing around the

  blackboard.publishAdd(ac);

Thanks again for your time,
-- 
Daniel Domingue



More information about the Cougaar-developers mailing list