fr.lip6.sma.simulacion.server
Class AgentFactory

java.lang.Object
  extended by fr.lip6.sma.simulacion.server.AgentFactory

public final class AgentFactory
extends Object

Classe pour générer des agents à partir des configurations.

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

Field Summary
private static Class[] CONSTRUCTOR_PARAMS
          Signature du constructeur.
 
Constructor Summary
private AgentFactory()
          Constructeur par défaut non disponible.
 
Method Summary
static Agent createAgent(AgentListManager inAgentListManager, String inAgentName, Map inClassConfig, Map inAgentConfig)
          Construit un agent à partir de son nom et de sa configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSTRUCTOR_PARAMS

private static final Class[] CONSTRUCTOR_PARAMS
Signature du constructeur.

Constructor Detail

AgentFactory

private AgentFactory()
Constructeur par défaut non disponible.

Method Detail

createAgent

public static Agent createAgent(AgentListManager inAgentListManager,
                                String inAgentName,
                                Map inClassConfig,
                                Map inAgentConfig)
                         throws ServerException
Construit un agent à partir de son nom et de sa configuration.

Parameters:
inAgentListManager - gestionnaire de la liste des agents.
inAgentName - nom de l'agent.
inClassConfig - configuration pour la classe de l'agent.
inAgentConfig - configuration pour l'agent.
Returns:
un nouvel objet agent
Throws:
ServerException - si la création a échoué.