/** * Inform the agent that a message has arrived. * @param message The message that arrived. */ public void streamArrived(final IConnection con) { // System.out.println("messageArrived: "+getAgentAdapter().getComponentIdentifier().getLocalName()+", "+message); Map<String, Object> msg = new HashMap<String, Object>(); msg.put(SFipa.CONTENT, con); msg.put(SFipa.SENDER, con.getInitiator()); msg.put(SFipa.RECEIVERS, new IComponentIdentifier[]{con.getParticipant()}); messageArrived(new DefaultMessageAdapter(msg, SFipa.FIPA_MESSAGE_TYPE)); }
tup2.getThirdEntity().close(); ret = IFuture.DONE;
tup2.getThirdEntity().close(); ret = IFuture.DONE;
tup2.getThirdEntity().close(); ret = IFuture.DONE;