edu.memphis.ccrg.lida.framework.initialization
Class AgentXmlFactory

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.initialization.AgentXmlFactory
All Implemented Interfaces:
AgentFactory

public class AgentXmlFactory
extends java.lang.Object
implements AgentFactory

Creates and returns a Agent Object based on an XML file. Each module that is created is instantiated using Class.forName(String). Next its Initializable.init() method is run. After all modules have been created in this way, all associated modules are added for each module FullyInitializable.setAssociatedModule(FrameworkModule, String) Finally each module's initializer is run if it has one. Thus associated modules should not be used by the init method of modules, only constants and other variables should be set.

Author:
Javier Snaider, Ryan J. McCall

Constructor Summary
AgentXmlFactory()
           
 
Method Summary
 Agent getAgent(java.util.Properties properties)
          Creates and returns a Agent from specified Properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentXmlFactory

public AgentXmlFactory()
Method Detail

getAgent

public Agent getAgent(java.util.Properties properties)
Description copied from interface: AgentFactory
Creates and returns a Agent from specified Properties

Specified by:
getAgent in interface AgentFactory
Parameters:
properties - Agent properties
Returns:
Constructed Agent object