|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Address is a pure virtual class because we need to deal with Zeus based port and socket addressing, and FIPA GUI addressing, and any bizzar LEAP or Biz talk addressing that is implemented in the future
| Method Summary | |
boolean |
equals(Address addr)
is this the same as another address? |
java.lang.String |
getHost()
getHost returns the name of the host that the agent that has this address is currently present on |
java.lang.String |
getName()
getName returns the name of the agent that has this address |
int |
getPort()
getPort returns the port that is listened to by the transport mechanism for the agent in the case of FIPA-IIOP agents this will generally be "900", as this is the default IIOP port number, FIPA-HTTP agents the port number might be "8080" for instance |
java.lang.String |
getType()
getType is a Zeus specific method, in Zeus it is used to denote "ANS" or "FACILITATOR". |
boolean |
sameAddress(Address addr)
returns true if these two agents share a machine and port - ie. they both live at the same address.... ahhh sweeeet. |
void |
setName(java.lang.String val)
set the name field |
void |
setType(java.lang.String type)
allow the type to be manipulated |
java.lang.String |
toString()
produce a nice string version of the address. |
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String val)
public java.lang.String getHost()
public java.lang.String getType()
public int getPort()
public boolean equals(Address addr)
public boolean sameAddress(Address addr)
public java.lang.String toString()
public void setType(java.lang.String type)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||