я новичок в jade, я хочу настроить агента аукциона, который дает время и количество предметов, а затем ... но я получаю эту ошибку
Нефритовый агент ошибки a1 умер без должного завершения. состояние ошибки 2 мои коды:
int timeout=Integer.parseInt(JOptionPane.showInputDialog("Какова продолжительность аукциона в секундах?"));
number=Integer.parseInt(JOptionPane.showInputDialog("What's the number of items?")); //service registration DFAgentDescription dfd = new DFAgentDescription(); dfd.setName(getAID()); ServiceDescription sd = new ServiceDescription(); sd.setType("Uniform-Price-Auction"); sd.setName("Uniform-Price-Auction"); dfd.addServices(sd); try { DFService.register(this, dfd); } catch (FIPAException fe) { fe.printStackTrace(); } // Add the behaviour serving queries from buyer agents addBehaviour(new getBids()); // Add the behaviour serving purchase orders from buyer agents addBehaviour(new DetermineWinner(this,timeout*1000)); gui=new ActioneerGUI(); gui.setVisible(true); gui.setlabel1("We want to sell "+number+" items"); gui.setlabel2("Auction is running...");