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?
Asked
Active
Viewed 560 times
1

Keshan De Silva
- 839
- 1
- 11
- 25

Ciba
- 47
- 8
-
The Jade tag is for the HTML template language, I don't think you meant to use that – OneCricketeer Apr 20 '16 at 05:34
-
Anyways, assuming you can pass simple string messages, then you can use any multi-platform serialization format. JSON is just one example – OneCricketeer Apr 20 '16 at 05:36
1 Answers
3
You can use the method setContentObject(Serializable s)
of the ACLMessage
class. Just make sure that your objects within the array are Serializable.

Milad
- 608
- 1
- 6
- 14