|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.core.AgentID
public final class AgentID
Represents an identifier used to univocally recognize an agent.
| Field Summary | |
|---|---|
String |
host
|
String |
name
|
String |
port
|
String |
protocol
|
| Constructor Summary | |
|---|---|
AgentID()
Empty constructor. |
|
AgentID(String id)
Constructor allows a input like http://nombreagente@localhost:8080 or a input like AgentName, in this case there are defaults options, like protocol = "qpid", host="localhost", port="8080". |
|
AgentID(String __name,
String __protocol,
String __host,
String __port)
Constructor for the ID. |
|
| Method Summary | |
|---|---|
String |
addresses_all()
Builds a string identifying this agent. |
String |
getLocalName()
Builds a string identifying this agent. |
String |
name_all()
Builds a string identifying this agent. |
String |
toString()
Creates a String containing the ID as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String name
public String protocol
public String host
public String port
| Constructor Detail |
|---|
public AgentID()
public AgentID(String __name,
String __protocol,
String __host,
String __port)
__name - The name of the agent.__protocol - The protocol being used.__host - The host where the agent is located.__port - The port in the host where the agent can listen for messages.AgentID(String)public AgentID(String id)
id - The String containing the ID coded as the example.| Method Detail |
|---|
public String toString()
toString in class ObjectAgentID(String)public String name_all()
toString()public String addresses_all()
public String getLocalName()
AgentID(String, String, String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||