|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.core.ContainerID
A class identifying an aget container in the JADE platform. This class is a simple descriptor of JADE containers, holding their name and a few other data about them.
Field Summary | |
static java.lang.String |
DEFAULT_IMTP
String constant identifying the JADE default Internal Message Transport Protocol, connecting different containers within the same JADE platform. |
Constructor Summary | |
ContainerID()
The default costructor builds an uninitialized container ID. |
|
ContainerID(java.lang.String n,
jade.mtp.TransportAddress a)
Build a container ID with the given container name and transport address. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Equality operation over container IDs. |
java.lang.String |
getAddress()
Retrieve the transport address string. |
java.lang.String |
getID()
Retrieve a string identifying the described container. |
java.lang.String |
getName()
Retrieve the name of the described container. |
java.lang.String |
getProtocol()
Retrieves the IMTP type used to reach the described container. |
int |
hashCode()
Hash code operation, compliant with identity-by-name. |
void |
setAddress(java.lang.String a)
Set the transport address string. |
void |
setName(java.lang.String n)
Set the name of the described container. |
void |
setProtocol(java.lang.String p)
Set the IMTP type used to reach the described container. |
java.lang.String |
toString()
Retrieve a string representation for this container ID. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_IMTP
Constructor Detail |
public ContainerID()
public ContainerID(java.lang.String n, jade.mtp.TransportAddress a)
n
- The name of the described container.a
- The network address of the node where the described
container is deployed.Method Detail |
public void setName(java.lang.String n)
n
- The name to give to the described container.public java.lang.String getName()
getName
in interface Location
null
otherwise.public void setProtocol(java.lang.String p)
p
- The name of the chosen IMTP.public java.lang.String getProtocol()
DEFAULT_IMTP
constant.
getProtocol
in interface Location
public void setAddress(java.lang.String a)
a
- The string representation of the URL for the IMTP
transport endpoint of the described container.public java.lang.String getAddress()
getAddress
in interface Location
null
is returned.public java.lang.String getID()
getID
in interface Location
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
ContainerID
objects are considered equal if and
only if their name is the same (a case insensitive string
comparison is used.
equals
in class java.lang.Object
obj
parameter is an instance of
ContainerID
class and has the same name (case
insensitively) as the current object, then true
is
returned. Otherwise, this method returns false
.public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |