Changeset 930


Ignore:
Timestamp:
02/09/2011 05:10:39 PM (8 years ago)
Author:
joao.dias
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • AgentMind/branches/FAtiMA-Modular/AgentLauncher/src/AgentLauncher.java

    r922 r930  
    1010import FAtiMA.Core.exceptions.GoalLibParsingException; 
    1111import FAtiMA.Core.exceptions.UnknownGoalException; 
     12import FAtiMA.Core.util.ConfigurationManager; 
     13import FAtiMA.ToM.ToMComponent; 
     14import FAtiMA.culture.CulturalDimensionsComponent; 
    1215import FAtiMA.motivationalSystem.MotivationalComponent; 
     16import FAtiMA.socialRelations.SocialRelationsComponent; 
    1317 
    1418public class AgentLauncher { 
     
    2832                AgentCore aG = initializeAgentCore(args); 
    2933                ArrayList<String> extraFiles = new ArrayList<String>(); 
    30                 //String cultureFile = ConfigurationManager.getMindPath() + ConfigurationManager.getAgentProperties().get("cultureName") + ".xml";  
     34                String cultureFile = ConfigurationManager.getMindPath() + ConfigurationManager.getAgentProperties().get("cultureName") + ".xml";  
    3135                 
    3236                if (!aG.getAgentLoad()) 
    3337                { 
    34                         //extraFiles.add(cultureFile); 
    35                         //aG.addComponent(new CulturalDimensionsComponent(cultureFile)); 
    36                         //aG.addComponent(new SocialRelationsComponent(extraFiles)); 
    37                         //aG.addComponent(new MotivationalComponent(extraFiles)); 
    38                         //aG.addComponent(new ToMComponent(ConfigurationManager.getName())); 
     38                        extraFiles.add(cultureFile); 
     39                        aG.addComponent(new SocialRelationsComponent(extraFiles)); 
     40                        aG.addComponent(new MotivationalComponent(extraFiles)); 
     41                        aG.addComponent(new CulturalDimensionsComponent(cultureFile)); 
     42                        aG.addComponent(new ToMComponent(ConfigurationManager.getName())); 
    3943                        //aG.addComponent(new AdvancedMemoryComponent()); 
    4044                } 
Note: See TracChangeset for help on using the changeset viewer.