fr.lip6.sma.simulacion.server
Class AgentFactory
java.lang.Object
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."
Constructor Summary |
private |
AgentFactory()
Constructeur par défaut non disponible. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONSTRUCTOR_PARAMS
private static final Class[] CONSTRUCTOR_PARAMS
- Signature du constructeur.
AgentFactory
private AgentFactory()
- Constructeur par défaut non disponible.
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é.