|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.ont.fipa.fipaman.AgentID
This class represents an AID, as described in the FIPA99 specification
Constructor Summary | |
AgentID()
Constructs a blank AgentID. |
|
AgentID(AgentID aid)
Deprecated. Please use clone() instead |
|
AgentID(java.lang.String aid)
Constructs an AgentID from the given String, which is expected to conform to the FIPA99 representation for an AID |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object other)
Compare this with another object |
java.util.List |
getAddresses()
Gets a List of addresses (URL's) associated with this AgentID |
static java.util.List |
getAgentIDs(java.lang.String aids)
Converts a list of stringified AgentID's into a List of AgentID objects |
static DynamicClass.PropertyHint |
getDynamicClassHints(java.lang.String prop)
Method to provide property hints to DynamicClass |
java.lang.String |
getName()
Gets the name associated with this AgentID |
java.util.List |
getResolvers()
Gets a List of resolvers for the Agent represented by this |
int |
hashCode()
|
static void |
main(java.lang.String[] args)
|
void |
setAddresses(java.util.List addresses)
Sets the addresses (URL's) through which the Agent can be contacted |
void |
setAddresses(java.lang.String addresses)
Sets the addresses associated with this AgentID |
void |
setName(java.lang.String name)
Sets the name of the Agent represented by this AgentID |
void |
setResolvers(java.util.List resolvers)
Sets tbe resolvers of this Agent |
void |
setResolvers(java.lang.String resolvers)
Sets the list of resolvers for this Agent |
java.lang.String |
toString()
Converts this into the FIPA99 AgentID format |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AgentID()
public AgentID(java.lang.String aid) throws ParserException
aid
- The stringified AID to parseParserException
- Thrown if the AID specified is malformedpublic AgentID(AgentID aid)
aid
- The AID to copyMethod Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public void setName(java.lang.String name)
name
- The name to setpublic void setAddresses(java.lang.String addresses)
addresses
- String containing the addresses of the Agent in stringified formpublic void setAddresses(java.util.List addresses)
addresses
- List of fipaos.util.URL objectspublic void setResolvers(java.lang.String resolvers)
resolvers
- Stringified version of the list of resolverspublic void setResolvers(java.util.List resolvers)
resolvers
- A List of AgentID's, which can resolve the Agentpublic java.lang.String getName()
public java.util.List getAddresses()
public java.util.List getResolvers()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.List getAgentIDs(java.lang.String aids)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public static DynamicClass.PropertyHint getDynamicClassHints(java.lang.String prop)
public int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |