- Timestamp:
- 11/11/2010 03:10:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AgentMind/branches/FAtiMA-Modular/FAtiMA.culture/src/FAtiMA/culture/CulturalDimensionsComponent.java
r694 r699 61 61 aM.getDeliberativeLayer().AddOptionsStrategy(this); 62 62 aM.getDeliberativeLayer().setExpectedUtilityStrategy(this); 63 aM.getRemoteAgent().setProcessActionStrategy(new CultureProcessActionStrategy()); 63 64 } 64 65 … … 71 72 public void appraisal(Event e, AppraisalStructure as, AgentModel am) 72 73 { 74 float desirabilityForOther = 0; 75 AppraisalStructure appraisalOfOther; 73 76 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 } 75 82 76 83 float praiseWorthiness = this.determinePraiseWorthiness(
Note: See TracChangeset
for help on using the changeset viewer.