Jadex 0.96

jadex.adapter.fipa
Class AgentIdentifier

java.lang.Object
  extended by jadex.runtime.BasicAgentIdentifier
      extended by jadex.adapter.fipa.AgentIdentifierData
          extended by jadex.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 with a given global name.
AgentIdentifier(String name, boolean local)
          Create a new agent identifier from a local or global name.
AgentIdentifier(String name, boolean local, String[] addresses, AgentIdentifier[] resolvers)
          Create a new agent identifier.
AgentIdentifier(String name, String[] addresses)
          Create a new agent identifier with a global name and given addresses.
 
Method Summary
 Object clone()
          Clone this agent identifier.
 String getLocalName()
           
 String getPlatformName()
          Get the platform name.
 boolean hasAddress(String address)
          Checks if this adress equals one or more addresses in the identifier
 
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, toString
 
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. Bean constructor


AgentIdentifier

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

Parameters:
name - A global name (e.g. "ams@lars").

AgentIdentifier

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

Parameters:
name - A local or global name.
local - True, if the name should be interpreted as local name (i.e. "@platform" will be appended).

AgentIdentifier

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

Parameters:
name - A global name (e.g. "ams@lars").
addresses - A list of transport addresses.

AgentIdentifier

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

Parameters:
name - A local or global name.
local - True, if the name should be interpreted as local name (i.e. "@platform" will be appended).
addresses - A list of transport addresses.
resolvers - A list of resolvers, which may provide additional transport adresses.
Method Detail

clone

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

Overrides:
clone in class Object

hasAddress

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

Parameters:
address -
Returns:
true

getLocalName

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

getPlatformName

public String getPlatformName()
Get the platform name.

Returns:
The platform name.

Jadex 0.96

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-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.