fipaos.ont.fipa.fipaman
Class AgentID


public class AgentID
implements Cloneable, Serializable

This class represents an AID, as described in the FIPA99 specification


Constructor Summary
AgentID()
          Constructs a blank AgentID.
AgentID(String aid)
          Constructs an AgentID from the given String, which is expected to conform to the FIPA99 representation for an AID

Method Summary
 Objectclone()
           
 booleanequals(Object other)
          Compare this with another object
 ListgetAddresses()
          Gets a List of addresses (URL's) associated with this AgentID
 static ListgetAgentIDs(String aids)
          Converts a list of stringified AgentID's into a List of AgentID objects
 StringgetName()
          Gets the name associated with this AgentID
 ListgetResolvers()
          Gets a List of resolvers for the Agent represented by this
 static voidmain(String[] args)
           
 voidsetAddresses(String addresses)
          Sets the addresses associated with this AgentID
 voidsetAddresses(List addresses)
          Sets the addresses (URL's) through which the Agent can be contacted
 voidsetName(String name)
          Sets the name of the Agent represented by this AgentID
 voidsetResolvers(String resolvers)
          Sets the list of resolvers for this Agent
 voidsetResolvers(List resolvers)
          Sets tbe resolvers of this Agent
 StringtoString()
          Converts this into the FIPA99 AgentID format

Constructor Detail

AgentID

public AgentID()
Constructs a blank AgentID.

AgentID

public AgentID(String aid)
throws fipaos.parser.ParserException
Constructs an AgentID from the given String, which is expected to conform to the FIPA99 representation for an AID
Parameters:
aid - The stringified AID to parse
Throws:
ParserException - Thrown if the AID specified is malformed
Method Detail

clone

public Object clone()

equals

public boolean equals(Object other)
Compare this with another object

getAddresses

public List getAddresses()
Gets a List of addresses (URL's) associated with this AgentID
Returns: A List of addresses (URL's) in stringified form

getAgentIDs

public static List getAgentIDs(String aids)
Converts a list of stringified AgentID's into a List of AgentID objects

getName

public String getName()
Gets the name associated with this AgentID
Returns: A String containing the Agent name

getResolvers

public List getResolvers()
Gets a List of resolvers for the Agent represented by this
Returns: A List containing AgentID's of resolvers for this

main

public static void main(String[] args)
throws java.lang.Exception

setAddresses

public void setAddresses(String addresses)
Sets the addresses associated with this AgentID
Parameters:
addresses - String containing the addresses of the Agent in stringified form

setAddresses

public void setAddresses(List addresses)
Sets the addresses (URL's) through which the Agent can be contacted
Parameters:
addresses - List of fipaos.util.URL objects

setName

public void setName(String name)
Sets the name of the Agent represented by this AgentID
Parameters:
name - The name to set

setResolvers

public void setResolvers(String resolvers)
Sets the list of resolvers for this Agent
Parameters:
resolvers - Stringified version of the list of resolvers

setResolvers

public void setResolvers(List resolvers)
Sets tbe resolvers of this Agent
Parameters:
resolvers - A List of AgentID's, which can resolve the Agent

toString

public String toString()
Converts this into the FIPA99 AgentID format
Returns: A String representation of this

Association Links

to Class java.lang.String

to Class java.util.List

to Class java.util.List