|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jade.core.AID
This class represents a JADE Agent Identifier. JADE internal agent tables use this class to record agent names and addresses.
| Constructor Summary | |
AID()
Constructs an Agent-Identifier whose slot name is set to an empty string |
|
AID(java.lang.String guid)
Constructor for an Agent-identifier |
|
| Method Summary | |
void |
addAddresses(java.lang.String url)
This method permits to add a transport address where the agent can be contacted. |
void |
addResolvers(AID aid)
This method permits to add the AID of a resolver (an agent where name resolution services for the agent can be contacted) |
void |
addUserDefinedSlot(java.lang.String key,
java.lang.String value)
To add a user defined slot (a pair key, value). |
void |
clearAllAddresses()
To remove alla addresses of the agent |
void |
clearAllResolvers()
To remove all resolvers. |
java.lang.Object |
clone()
Clone the AID object. |
int |
compareTo(java.lang.Object o)
Comparison operation. |
boolean |
equals(java.lang.Object o)
Equality operation. |
java.lang.String[] |
getAddressesArray()
Returns an array of string containing all the addresses of the agent |
java.util.Iterator |
getAllAddresses()
Returns an iterator of all the addresses of the agent. |
java.util.Iterator |
getAllResolvers()
Returns an iterator of all the resolvers. |
java.util.Properties |
getAllUserDefinedSlot()
Returns the user-defined slots as properties. |
java.lang.String |
getName()
This method returns the name of the agent. |
AID[] |
getResolversArray()
Returns an array containing all the AIDs of the resolvers. |
int |
hashCode()
Hash code. |
boolean |
removeAddresses(java.lang.String url)
To remove a transport address. |
boolean |
removeResolvers(AID aid)
To remove a resolver. |
void |
setName(java.lang.String n)
This method permits to set the symbolic name of an agent. |
java.lang.String |
toString()
Returns the symbolic name of the agent. |
void |
toText(java.io.Writer w)
This method is called from ACLMessage in order to create the String encoding of an ACLMessage. |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public AID()
public AID(java.lang.String guid)
guid - is the Globally Unique identifer for the agent. The slot name
assumes that value in the constructed object.| Method Detail |
public void setName(java.lang.String n)
public java.lang.String getName()
public void addAddresses(java.lang.String url)
public boolean removeAddresses(java.lang.String url)
url - the address to removepublic void clearAllAddresses()
public java.util.Iterator getAllAddresses()
Iteratorpublic void addResolvers(AID aid)
public boolean removeResolvers(AID aid)
aid - the AID of the resolver to removepublic void clearAllResolvers()
public java.util.Iterator getAllResolvers()
Iterator
public void addUserDefinedSlot(java.lang.String key,
java.lang.String value)
key - the name of the propertyvalue - the corresponding value of the propertypublic java.lang.String[] getAddressesArray()
public AID[] getResolversArray()
public java.util.Properties getAllUserDefinedSlot()
java.util.Properties java Object.Propertiespublic void toText(java.io.Writer w)
public java.lang.String toString()
public java.lang.Object clone()
public boolean equals(java.lang.Object o)
AID object with
another or with a Java String. The comparison is case
insensitive.o - The Java object to compare this AID to.true if one of the following holds:
o is an AID object
with the same GUID in its name slot (apart from
differences in case).
o is a String that is
equal to the GUID contained in the name slot of this
Agent ID (apart from differences in case).
public int compareTo(java.lang.Object o)
o - Another AID object, that will be compared
with the current AID.public int hashCode()
AID objects with equal names or with names differing
only in case have the same hash code.AID object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||