<commit_before>/*
  $Log$
  Revision 1.8  1999/02/03 10:05:44  rimassa
  Changed addContainer() signature: now it returns a String containing
  the IIOP address (in IOR or URL format).

  Revision 1.7  1998/11/03 00:28:56  rimassa
  Added an exeption specification to deadAgent() method.

  Revision 1.6  1998/10/11 19:21:32  rimassa
  Added the new name clash exception to bornAgent() throws clause.

  Revision 1.5  1998/10/04 18:01:00  rimassa
  Added a 'Log:' field to every source file.

*/

package jade.core;

import java.rmi.Remote;
import java.rmi.RemoteException;

/************************************************************************

  Name: AgentPlatform

  Responsibilities and Collaborations:

  + Provides a global access point for the agent platform as a whole.


  + Maintains a list of the Object Reference for every agent container.
    (AgentContainer)

  + Holds a complete table of agent descriptors, knowing the container
    which every agent is in.
    (AgentContainer, AgentDescriptor)

************************************************************************/
public interface AgentPlatform extends AgentContainer {
  public String addContainer(AgentContainer ac) throws RemoteException;
  public void removeContainer(AgentContainer ac) throws RemoteException;

  public void bornAgent(String name, AgentDescriptor desc) throws RemoteException, NameClashException;
  public void deadAgent(String name) throws RemoteException, NotFoundException;

  public AgentDescriptor lookup(String agentName) throws RemoteException, NotFoundException;
<commit_msg>Added some String constants to represent container names. Added a getAddress() method.<commit_after>/*
  $Log$
  Revision 1.9  1999/03/09 12:59:14  rimassa
  Added some String constants to represent container names.
  Added a getAddress() method.

  Revision 1.8  1999/02/03 10:05:44  rimassa
  Changed addContainer() signature: now it returns a String containing
  the IIOP address (in IOR or URL format).

  Revision 1.7  1998/11/03 00:28:56  rimassa
  Added an exeption specification to deadAgent() method.

  Revision 1.6  1998/10/11 19:21:32  rimassa
  Added the new name clash exception to bornAgent() throws clause.

  Revision 1.5  1998/10/04 18:01:00  rimassa
  Added a 'Log:' field to every source file.

*/

package jade.core;

import java.rmi.Remote;
import java.rmi.RemoteException;

/************************************************************************

  Name: AgentPlatform

  Responsibilities and Collaborations:

  + Provides a global access point for the agent platform as a whole.


  + Maintains a list of the Object Reference for every agent container.
    (AgentContainer)

  + Holds a complete table of agent descriptors, knowing the container
    which every agent is in.
    (AgentContainer, AgentDescriptor)

************************************************************************/
public interface AgentPlatform extends AgentContainer {

  public static final String MAIN_CONTAINER_NAME = "Front-End";
  public static final String AUX_CONTAINER_NAME = "Container-";

  public String getAddress() throws RemoteException;

  public String addContainer(AgentContainer ac) throws RemoteException;
  public void removeContainer(String name) throws RemoteException;

  public void bornAgent(String name, AgentDescriptor desc) throws RemoteException, NameClashException;
  public void deadAgent(String name) throws RemoteException, NotFoundException;

  public AgentDescriptor lookup(String agentName) throws RemoteException, NotFoundException;

{'fraction_non_alphanumeric': 0.13843556555993247, 'fraction_numerical': 0.04051772650534609, 'mean_word_length': 4.83743842364532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '950719', 'n_tokens_mistral': 1055, 'n_tokens_neox': 883, 'n_words': 357}