swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Help: SWARM platform


From: Marcus G. Daniels
Subject: Re: [Swarm-Support] Help: SWARM platform
Date: Wed, 12 Nov 2008 23:20:24 -0700
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

Bdellal wrote:
How can i program this (communication between two agents) with swarm platform in java language.
With Swarm, if you want an Actor model, first you'd probably want to have several independent simulations and then have them communicate. These simulations could implement sends and receives through XML-RPC, or MPI, or similar. You might look at http://gtelegin.googlepages.com/swarm for ideas.
I would like to contror and monitor the communication between agents. How can i do this with SWARM.
One way to do this is by using the GDB debugger. You can set a break point on -performCall in FCall.m and then print out the method name and then resume execution from a breakpoint command. Any scheduled call Swarm makes to Java will come through that method. There aren't inline debugging hooks in the main execution paths of Swarm, but if you have the Swarm source code, you can monitor all messages from the debugger. Fundamentally, Swarm is a message oriented simulator.

Marcus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]