Examples of DFAgentDescription


Examples of jade.domain.FIPAAgentManagement.DFAgentDescription

    this.gui = gui;
  }
 
  public void actionPerformed(ActionEvent e)
  {
    DFAgentDescription dfd;
    AID df =null;
    AID name;
    int kind = gui.kindOfOperation();
   
    if ( kind == DFGUI.AGENT_VIEW || kind == DFGUI.CHILDREN_VIEW)
    {
      // Deregister an agent from the descriptor table   
      name = gui.getSelectedAgentInTable();
      if (name != null)
      {
        df = gui.myAgent.getDescriptionOfThisDF().getName();     
        dfd = new DFAgentDescription();
        dfd.setName(name);
      }
      else
        return;
    }
    else
    if (kind == DFGUI.PARENT_VIEW)
    {
      //Deregister the df from a selected parent

      df = gui.getSelectedAgentInTable();
      if (df != null)
          {
            dfd = gui.myAgent.getDescriptionOfThisDF(df);
            if(dfd == null)
              return; //should never happen
          }
      else
          return;
    }
    else // kind=LASTSEARCH_VIEW
    {
      name = gui.getSelectedAgentInTable();
      if (name != null)
      {
        df = gui.getLastDF();     
        dfd = new DFAgentDescription();
        dfd.setName(name);
      }
      else
        return;
    }
     
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.DFAgentDescription

  public void actionPerformed(ActionEvent e)
  {
    int kind = gui.kindOfOperation();
   
    AID name = gui.getSelectedAgentInTable();
    DFAgentDescription dfd = null;
    AID df = gui.myAgent.getDescriptionOfThisDF().getName();;

    if (name != null) //something was selected
    {
        if ( kind == DFGUI.AGENT_VIEW)
        try{
          dfd = gui.myAgent.getDFAgentDsc(name); //agent registered

        }catch(FIPAException fe){
          if(logger.isLoggable(Logger.WARNING))
            logger.log(Logger.WARNING, "No agent called " + name + " is currently registered with this DF");
          return;

        }
        else
        if(kind == DFGUI.LASTSEARCH_VIEW)
        {
          dfd = gui.getDFAgentSearchDsc(name); // the dsc is maintained in a variable of the gui
          df = gui.getLastDF();
        }
     

        DFAgentDscDlg dlg = new DFAgentDscDlg((Frame) gui);
        DFAgentDescription editedDfd = dlg.ShowDFDGui(dfd,true,true);
       
        if (editedDfd != null)
        {
          GuiEvent ev = new GuiEvent((Object)gui, DFGUIAdapter.MODIFY);
          ev.addParameter(df);
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.DFAgentDescription

            //this.model = VehicleContainer.MODEL;
            try{
                ServiceDescription sd = new ServiceDescription();
                sd.setType( "VehicleDriveAgent" );
                sd.setName( "GuestServiceDescription" );
                DFAgentDescription dfd = new DFAgentDescription();
                dfd.setName( getAID() );
                dfd.addServices( sd );
                // register the description with the DF
                DFService.register(this, dfd);

                this.model = (Auto)this.getArguments()[0];
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.DFAgentDescription

  }
 
  public void actionPerformed(ActionEvent e)
  {
      DFAgentDescription dfd = new DFAgentDescription();
      int kind = gui.kindOfOperation();
   
      AID name = gui.getSelectedAgentInTable();
   
      //something was selected
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.DFAgentDescription

    foundModel.clear();
    lastSearchResults.clear();
   
    Iterator it = l.iterator();
    while(it.hasNext()){
      DFAgentDescription dfd = (DFAgentDescription) it.next();
      foundModel.add(dfd.getName());
      lastSearchResults.put(dfd.getName(),dfd);
    }
    foundModel.fireTableDataChanged();
    foundTable.clearSelection();
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.