最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - JADE sniffer not showing messages despite successful agent communication in console - Stack Overflow

programmeradmin3浏览0评论

I am developing a multi-agent system using JADE, where a PollueurAgent (polluter) requests cleaning services from NettoyeurAgents (cleaners). The communication works correctly as seen in the Eclipse console logs, but messages are not appearing in the Sniffer Agent GUI.

Agents start successfully using a Main class that initializes them inside a JADE MainContainer. Message exchange is visible in the Eclipse console (System.out.println logs confirm REQUEST, PROPOSE, and ACCEPT_PROPOSAL messages are sent and received).

The DFService (Directory Facilitator) GUI shows Nettoyeur agents, meaning they are correctly registered. Negotiation between agents works correctly, as seen in the console logs. Sniffer Agent does not show messages, even though agents are communicating normally in the console. Restarting Sniffer Agent and re-adding agents did not help

Main class code (agent initialization):

package TP2;

import jade.core.Runtime;
import jade.core.Profile;
import jade.core.ProfileImpl;
import jade.wrapper.AgentContainer;
import jade.wrapper.AgentController;
import jade.wrapper.StaleProxyException;

public class Main {
    public static void main(String[] args) {
        Runtime rt = Runtime.instance();
        Profile p = new ProfileImpl("localhost", 1099, null);
        p.setParameter(Profile.GUI, "true"); // Enable GUI to show RMA

        AgentContainer container = rt.createMainContainer(p);

        try {
            System.out.println("
发布评论

评论列表(0)

  1. 暂无评论