SearchConstraints sc = new SearchConstraints();
try{
FIPAAppletRequestProto arp = new FIPAAppletRequestProto(this,df,FIPAManagementVocabulary.SEARCH,dfd,sc);
arp.doProto();
Iterator result = arp.getSearchResult().iterator();
ArrayList listOfAID = new ArrayList();
ArrayList listOfChildren = new ArrayList();
while(result.hasNext())
{
DFAgentDescription next = (DFAgentDescription)result.next();
listOfAID.add(next.getName());
if(isADF(next))
listOfChildren.add(next.getName());
}
//second request the df the parent
JADEAppletRequestProto getParent = new JADEAppletRequestProto(this,getDescriptionOfThisDF().getName(), DFAppletVocabulary.GETPARENTS,null,null);
getParent.doProto();
Iterator parents = getParent.getResult().iterator();
gui.refresh(listOfAID.iterator(), parents, listOfChildren.iterator());
}catch(FIPAAppletRequestProto.NotYetReady nyr){
nyr.printStackTrace();
}catch(JADEAppletRequestProto.NotYetReady ex){