Ciba
Ciba

Reputation: 47

Multi Agent Sysytem - JADE - exchanging arrays as a message

I'm developing a multi agent system via JADE in eclipse. I've managed to develop the code of exchanging messages between agents in different platforms, now I'm trying to make the agents send arrays to each other to be used in queries but couldn't get the hand of it. Any suggestions on how to pass it?

Upvotes: 1

Views: 568

Answers (1)

Milad
Milad

Reputation: 638

You can use the method setContentObject(Serializable s) of the ACLMessage class. Just make sure that your objects within the array are Serializable.

Upvotes: 3

Related Questions