me.getParameterSet(SFipa.RECEIVERS).removeValues(); me.getParameterSet(SFipa.RECEIVERS).addValue(agents.get(0)); sendMessage(me).get();
/** * Plan body. */ public void body() { Object cfp = getParameter("cfp").getValue(); Object cfp_info = getParameter("cfp_info").getValue(); NegotiationRecord[] history = (NegotiationRecord[])getParameterSet("history").getValues(); ParticipantProposal[] proposals = (ParticipantProposal[])getParameterSet("proposals").getValues(); IQueryNextroundInfo qnri = (IQueryNextroundInfo)cfp_info; IQueryNextroundInfo.NextroundInfo nri = new IQueryNextroundInfo.NextroundInfo(cfp, cfp_info, history[history.length-1].getParticipants()); boolean iterate = qnri.queryNextroundInfo(nri, history, proposals); getParameter("cfp").setValue(nri.getCfp()); getParameter("cfp_info").setValue(nri.getCfpInfo()); getParameterSet("participants").removeValues(); getParameterSet("participants").addValues(nri.getParticipants()); getParameter("iterate").setValue(Boolean.valueOf(iterate)); } }
getParameterSet(targetpara).removeValues(); Object[] vals = rplan.getParameterSet(mparam.getName()).getValues(); for(Object val: vals)