zeus.concepts
Interface Address

All Known Implementing Classes:
FIPA_AID_Address, ZeusAddress

public interface Address

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

getName

public java.lang.String getName()
getName returns the name of the agent that has this address


setName

public void setName(java.lang.String val)
set the name field


getHost

public java.lang.String getHost()
getHost returns the name of the host that the agent that has this address is currently present on


getType

public java.lang.String getType()
getType is a Zeus specific method, in Zeus it is used to denote "ANS" or "FACILITATOR". Non Zeus agents should be typed as "FIPA-IIOP" or "LEAP" for example. Other types of agent may be implemented if other addressing is used i.e. "LDAP"


getPort

public 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


equals

public boolean equals(Address addr)
is this the same as another address? The behaviour should be that if a FIPA-IIOP agent of name X is present on host Y and also there is a FIPA-HTTP X,Y then FIPA-IIOP == FIPA-HTTP (if you follow my thread) However, since the implementation is left to others don't be surprised if this always returns false or something dumb like that...


sameAddress

public 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.


toString

public java.lang.String toString()
produce a nice string version of the address. The string produced MUST be in a format that can be parsed.


setType

public void setType(java.lang.String type)
allow the type to be manipulated



Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.