fr.lip6.sma.simulacion.server
Class LocalAwareAgentImpl

java.lang.Object
  extended by fr.lip6.sma.simulacion.server.AgentImpl
      extended by fr.lip6.sma.simulacion.server.LocalAgentImpl
          extended by fr.lip6.sma.simulacion.server.LocalAwareAgentImpl
All Implemented Interfaces:
Agent, AgentListClient, LocalAgent, LocalAgentWithProperties

public abstract class LocalAwareAgentImpl
extends LocalAgentImpl
implements AgentListClient

Classe de base pour les agents locaux qui s'intéressent à l'arrivée et au départ d'autres agents sur le réseau.

Version:
$Revision: 3 $
Author:
Paul Guyot
See Also:
"aucun test défini."

Field Summary
 
Fields inherited from interface fr.lip6.sma.simulacion.server.Agent
AVATAR_PROPERTY_KEY, CLASS_KEY, IMPLEMENTATION_KEY, LOCATION_KEY, ONMAP_KEY, PROPERTIES_KEY, TYPE_PROPERTY_KEY
 
Constructor Summary
LocalAwareAgentImpl(AgentListManager inAgentListManager, String inAgentName, Map inProperties)
          Constructeur à partir du gestionnaire de liste, d'un nom et de propriétés.
 
Method Summary
 void registrationFailed(Agent inLocalAgent)
          Méthode appelée lorsque l'enregistrement a échoué.
 void registrationSucceeded(Agent inLocalAgent)
          Méthode appelée lorsque l'enregistrement a réussi.
 
Methods inherited from class fr.lip6.sma.simulacion.server.LocalAgentImpl
addPropertyChangeListener, addPropertyChangeListener, execute, executeAsync, getAgentListManager, getAgentName, getProperty, removePropertyChangeListener, removePropertyChangeListener, setProperty
 
Methods inherited from class fr.lip6.sma.simulacion.server.AgentImpl
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.lip6.sma.simulacion.server.AgentListClient
listChanged, registrationFailed, registrationSucceeded
 
Methods inherited from interface fr.lip6.sma.simulacion.server.Agent
equals, getAgentClass, hashCode
 

Constructor Detail

LocalAwareAgentImpl

public LocalAwareAgentImpl(AgentListManager inAgentListManager,
                           String inAgentName,
                           Map inProperties)
Constructeur à partir du gestionnaire de liste, d'un nom et de propriétés.

Parameters:
inAgentListManager - gestionnaire de la liste des agents.
inAgentName - nom de l'agent.
inProperties - propriétés de l'agent.
Method Detail

registrationSucceeded

public final void registrationSucceeded(Agent inLocalAgent)
Méthode appelée lorsque l'enregistrement a réussi.

Parameters:
inLocalAgent - agent enregistré avec succès.

registrationFailed

public void registrationFailed(Agent inLocalAgent)
Méthode appelée lorsque l'enregistrement a échoué.

Parameters:
inLocalAgent - agent qui n'a pas pu être enregistré.