zeus.concepts
Class FIPA_AddressBook

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byzeus.concepts.AddressBook
              extended byzeus.concepts.FIPA_AddressBook
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class FIPA_AddressBook
extends AddressBook

FIPA_AddressBook is an extention of the addressbook that can cope with fipa AID addresses, the intention is that this should be used to implement an ACC agent that can act as a gateway from Zeus agencies to the FIPA world.

The objective of this class is to provide something that can store agent aliases so that when the ACC gets a message that is addressed to testForwardACCiioptbtoledofuturesbtcom it can lookup the appropriate aid to construct a fipa performative which can be sent to the target agent

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
private  java.util.Hashtable FIPA_Addresses
           
 
Fields inherited from class zeus.concepts.AddressBook
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
FIPA_AddressBook()
           
 
Method Summary
 boolean add(FIPA_AID_Address fipa_address)
          add an address to the book
 FIPA_AID_Address checkAddress(Address addr)
          determine if the address for this agent is in the address book, return the correct address object if it is...
 FIPA_AID_Address lookupAlias(java.lang.String alias)
          find a proper address from a name of an agent
 FIPA_AID_Address lookupFIPA(java.lang.String name)
          find a proper address from a name of an agent
static java.lang.String makeAlias(Address addr)
          utility method to be used to reconsitute local platform name from an external name/host combo
 
Methods inherited from class zeus.concepts.AddressBook
add, addAddressListener, del, del, lookup, removeAddressListener, replace
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FIPA_Addresses

private java.util.Hashtable FIPA_Addresses
Constructor Detail

FIPA_AddressBook

public FIPA_AddressBook()
Method Detail

add

public boolean add(FIPA_AID_Address fipa_address)
add an address to the book


lookupFIPA

public FIPA_AID_Address lookupFIPA(java.lang.String name)
find a proper address from a name of an agent


lookupAlias

public FIPA_AID_Address lookupAlias(java.lang.String alias)
find a proper address from a name of an agent


checkAddress

public FIPA_AID_Address checkAddress(Address addr)
determine if the address for this agent is in the address book, return the correct address object if it is...


makeAlias

public static java.lang.String makeAlias(Address addr)
utility method to be used to reconsitute local platform name from an external name/host combo



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