jade.core
Class ContainerID
java.lang.Object
|
+--jade.core.ContainerID
- public class ContainerID
- extends java.lang.Object
- implements Location
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAddress()
Read the address for a location. |
java.lang.String |
getID()
Read a unique ID for the location. |
java.lang.String |
getName()
Read the name of a location. |
java.lang.String |
getProtocol()
Read the protocol for a location. |
int |
hashCode()
|
void |
setAddress(java.lang.String a)
|
void |
setName(java.lang.String n)
|
void |
setProtocol(java.lang.String p)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
DEFAULT_IMTP
public static final java.lang.String DEFAULT_IMTP
ContainerID
public ContainerID()
ContainerID
public ContainerID(java.lang.String n,
jade.mtp.TransportAddress a)
setName
public void setName(java.lang.String n)
getName
public java.lang.String getName()
- Description copied from interface: Location
- Read the name of a location.
- Specified by:
- getName in interface Location
- Tags copied from interface: Location
- Returns:
- A name for this location. The name has only a local meaning.
setProtocol
public void setProtocol(java.lang.String p)
getProtocol
public java.lang.String getProtocol()
- Description copied from interface: Location
- Read the protocol for a location.
- Specified by:
- getProtocol in interface Location
- Tags copied from interface: Location
- Returns:
- The name of the protocol used to reach this location.
setAddress
public void setAddress(java.lang.String a)
getAddress
public java.lang.String getAddress()
- Description copied from interface: Location
- Read the address for a location.
- Specified by:
- getAddress in interface Location
- Tags copied from interface: Location
- Returns:
- The transport address of this location (in the specified protocol).
getID
public java.lang.String getID()
- Description copied from interface: Location
- Read a unique ID for the location.
- Specified by:
- getID in interface Location
- Tags copied from interface: Location
- Returns:
- A
String
representing the location.
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.lang.Object