Changeset 956


Ignore:
Timestamp:
02/13/2011 12:41:09 PM (8 years ago)
Author:
joao.dias
Message:
 
Location:
AgentMind/branches/FAtiMA-Modular/FAtiMA.AdvancedMemory/src/main/java/FAtiMA/advancedMemoryComponent
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • AgentMind/branches/FAtiMA-Modular/FAtiMA.AdvancedMemory/src/main/java/FAtiMA/advancedMemoryComponent/ActionsLoaderHandler.java

    r950 r956  
    66import FAtiMA.Core.AgentModel; 
    77 
    8 import FAtiMA.Core.deliberativeLayer.plan.Effect; 
    9 import FAtiMA.Core.deliberativeLayer.plan.Step; 
    108 
     9import FAtiMA.Core.plans.Effect; 
     10import FAtiMA.Core.plans.Step; 
    1111import FAtiMA.Core.util.Constants; 
    1212import FAtiMA.Core.util.parsers.ReflectXMLHandler; 
  • AgentMind/branches/FAtiMA-Modular/FAtiMA.AdvancedMemory/src/main/java/FAtiMA/advancedMemoryComponent/AdvancedMemoryComponent.java

    r950 r956  
    4545import FAtiMA.Core.componentTypes.IAppraisalDerivationComponent; 
    4646import FAtiMA.Core.componentTypes.IProcessExternalRequestComponent; 
    47 import FAtiMA.Core.componentTypes.IAppraisalDerivationComponent; 
    48 import FAtiMA.Core.componentTypes.IProcessExternalRequestComponent; 
    4947import FAtiMA.Core.emotionalState.AppraisalFrame; 
    5048import FAtiMA.Core.memory.Memory; 
     
    230228 
    231229        @Override 
    232         public void processExternalRequest(String requestMsg) { 
    233                  
    234                 StringTokenizer st = new StringTokenizer(requestMsg," "); 
    235                 String msgType = st.nextToken(); 
    236                  
    237                 String perception = ""; 
    238                  
    239                 while(st.hasMoreTokens()) 
    240                 { 
    241                         perception = perception + st.nextToken() + " "; 
    242                 } 
    243                  
    244                 perception = perception.trim(); 
    245                  
     230        public void processExternalRequest(AgentModel am, String msgType, String perception) { 
     231                 
     232                StringTokenizer st; 
     233         
    246234            if(msgType.equals(SA_MEMORY)) 
    247235                { 
    248                          
    249236                        st = new StringTokenizer(perception, "$"); 
    250237                        String question = st.nextToken(); 
Note: See TracChangeset for help on using the changeset viewer.