Ignore:
Timestamp:
11/11/2010 03:10:12 PM (10 years ago)
Author:
joao.dias
Message:
 
File:
1 edited

Legend:

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

    r694 r699  
    6161                aM.getDeliberativeLayer().AddOptionsStrategy(this); 
    6262                aM.getDeliberativeLayer().setExpectedUtilityStrategy(this); 
     63                aM.getRemoteAgent().setProcessActionStrategy(new CultureProcessActionStrategy()); 
    6364        } 
    6465         
     
    7172        public void appraisal(Event e, AppraisalStructure as, AgentModel am) 
    7273        { 
     74                float desirabilityForOther = 0; 
     75                AppraisalStructure appraisalOfOther; 
    7376                float desirability = as.getAppraisalVariable(AppraisalStructure.DESIRABILITY); 
    74                 float desirabilityForOther = as.getAppraisalVariable(AppraisalStructure.DESIRABILITY_FOR_OTHER); 
     77                for(String other : as.getOthers()) 
     78                { 
     79                        appraisalOfOther = as.getAppraisalOfOther(other); 
     80                        desirabilityForOther += appraisalOfOther.getAppraisalVariable(AppraisalStructure.DESIRABILITY); 
     81                } 
    7582                         
    7683                float praiseWorthiness = this.determinePraiseWorthiness( 
Note: See TracChangeset for help on using the changeset viewer.