Closed L-Piao closed 5 years ago
Along with this I have 4 minor questions about SPADE in general:
The former calls the latter and sleeps every 0.1 second, but generally creates an error like "Could not disconnect from server: ."
What if I need hundreds of agents running together: could I run agents locally rather than on xmpp.jp, etc. (instead of AgentA (“A1@xmpp.jp”, ”password”), …, AgentX(“A100@xmpp.jp”, ”password”)?
Is there any GUI for the SPADE agent management system, or are you planning to work on this? Which tools/packages are helpful in building a GUI (like the ones in JADE)?
And most importantly, where could we get the answers for above questions? I haven’t found a detailed manual for the agent classes, behavior, and methods mentioned in SPADE.
Self-answered: Thanks and I've seen the API for SPADE: http://spade.gti-ia.dsic.upv.es/api/html/index.html
Again, thank you soooo much for releasing SPADE 3.0.1!
Best regards, Piao
Hi @L-Piao I'll try to answer all your questions.
Regarding your first issue with the connection, it is an SSL issue and I've asked the main developer of aioxmpp to try to understand what is happening. It looks that the server is trying to multiplex STARTTLS-based XMPP and XMPP-over-TLS on the same port, and that is probably why it fails sometimes. At this moment by best advice would be to use another server (you can even install your own server, I recommend prosody.im) or to talk to the xmpp.jp administrators to fix that issue.
.stop() stops the agent and all its behaviours. .kill() is not available for agent, it is for behaviors and it stops such behavior.
If you don't use different JIDs you may have a mess when sending messages (every agent would receive every sent message). However there is a possible trick if you use resources (https://wiki.xmpp.org/web/Jabber_Resources) by appending a /something to the jid (agent@server/agent1, agent@server/agent2, etc), but I should check first if this works.
Yes. There is a web interface. Please refer to the documentation: https://spade-mas.readthedocs.io/en/latest/web.html
That's an old documentation (that I'm going to remove, thanks for remember me that it exists). The new documentation is at http://spade-mas.readthedocs.io. And, for some reason, the API chapter has not been rendered. Need to fix it.
Dear Javi @javipalanca ,
Thank you for your prompt response! I will try with your answers and continue exploring SPADE 3. By the way, thanks for creating a nice web interface for SPADE!
Best regards, Piao
Description
Firstly, thanks for releasing SPADE 3.0.1! Congratulations! I have been playing with the develop version (3.0.0) and was very excited to test the stable version. I did encounter a problem with the basic example DummyAgent.py as follows:
What I Did
I ran this simple code on Win10/PowerShell, and on Mac/Terminal, but I got almost the same error on different platforms. It was not this case with SPADE 3.0.0.
And strange is that if I run the same code again, the error simply disappears:
Has anyone experienced a similar issue? Thanks for any hints!
Best regards, Piao