Jadex 0.941

jadex.adapter.fipa
Class AgentIdentifier

java.lang.Object
  extended byjadex.runtime.BasicAgentIdentifier
      extended byjadex.adapter.fipa.AgentIdentifierData
          extended byjadex.adapter.fipa.AgentIdentifier
All Implemented Interfaces:
BeanInfo, Serializable

public class AgentIdentifier
extends AgentIdentifierData

An agent identifier (AID), see FIPASC00023.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
AgentIdentifier()
          Create a new agent identifier.
AgentIdentifier(String name)
          Create a new agent identifier.
AgentIdentifier(String name, boolean local)
          Create a new agent identifier.
AgentIdentifier(String name, boolean local, String[] addresses, AgentIdentifier[] resolvers)
          Create a new agent identifier.
AgentIdentifier(String name, String[] addresses)
          Create a new agent identifier.
 
Method Summary
 Object clone()
          Clone this agent identifier.
 String getLocalName()
           
 boolean hasAddress(String address)
          Checks if this adress equals one or more addresses in the identifier
 boolean isLocal()
          Test if the name is local.
 String toString()
          Get a string representation.
 
Methods inherited from class jadex.adapter.fipa.AgentIdentifierData
addAddress, addResolver, getAdditionalBeanInfo, getAddress, getAddresses, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors, getResolver, getResolvers, loadImage, removeAddress, removeResolver, setAddress, setAddresses, setResolver, setResolvers
 
Methods inherited from class jadex.runtime.BasicAgentIdentifier
equals, getName, hashCode, setName
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentIdentifier

public AgentIdentifier()
Create a new agent identifier.


AgentIdentifier

public AgentIdentifier(String name)
Create a new agent identifier.


AgentIdentifier

public AgentIdentifier(String name,
                       boolean local)
Create a new agent identifier.


AgentIdentifier

public AgentIdentifier(String name,
                       String[] addresses)
Create a new agent identifier.


AgentIdentifier

public AgentIdentifier(String name,
                       boolean local,
                       String[] addresses,
                       AgentIdentifier[] resolvers)
Create a new agent identifier.

Method Detail

isLocal

public boolean isLocal()
Test if the name is local.

Returns:
True, if local name.

clone

public Object clone()
Clone this agent identifier. Does a deep copy.


hasAddress

public boolean hasAddress(String address)
Checks if this adress equals one or more addresses in the identifier

Parameters:
address -
Returns:
true

toString

public String toString()
Get a string representation.

Overrides:
toString in class AgentIdentifierData
Returns:
The string representation.

getLocalName

public String getLocalName()
Returns:
the local name of an agent

Jadex 0.941

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.