fr.lifl.magique.util
Class Agenda

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byfr.lifl.magique.util.Agenda
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Agenda
extends java.util.Hashtable

stores the agents i am connected to. The value in the Hashtabe could be used to store informations about each agent.

See Also:
Hashtable, Serialized Form

Constructor Summary
Agenda()
           
 
Method Summary
 java.lang.String getFullName(java.lang.String name)
          returns name if it is already a full name or not a known short name the (full name of the) key whose short name is name
 java.lang.Object getInfo(java.lang.String theOther)
          gives the value associates to theOther, this could be some informations about him
 java.lang.String nTh(int index)
          give the nth key
 void removeAgent(java.lang.String agent)
          supprime l'agent de l'agenda
 
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
 

Constructor Detail

Agenda

public Agenda()
Method Detail

getInfo

public java.lang.Object getInfo(java.lang.String theOther)
gives the value associates to theOther, this could be some informations about him

Parameters:
theOther - name of an agent
Returns:
the vallue associates with theOther

getFullName

public java.lang.String getFullName(java.lang.String name)
returns

Parameters:
name - the (maybe short) name to search for
Returns:
the full name relative to name as a key

removeAgent

public void removeAgent(java.lang.String agent)
supprime l'agent de l'agenda

Parameters:
agent - l'agent à supprimer

nTh

public java.lang.String nTh(int index)
give the nth key

Returns:
the nth key