Changeset 860
- Timestamp:
- 01/19/2011 08:21:55 PM (10 years ago)
- Location:
- AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/Core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/Core/deliberativeLayer/EmotionalPlanner.java
r848 r860 452 452 af.SetAppraisalVariable(DeliberativeProcess.NAME, (short)7, OCCComponent.SUCCESSPROBABILITY, planProb); 453 453 af.SetAppraisalVariable(DeliberativeProcess.NAME, (short)7, OCCComponent.FAILUREPROBABILITY, 1-planProb); 454 am.updateEmotions(af); 454 455 455 456 hopeEmotion = am.getEmotionalState().GetEmotion(OCCComponent.getHopeKey(af.getEvent())); … … 493 494 auxFrame.SetAppraisalVariable(DeliberativeProcess.NAME, (short)6, OCCComponent.FAILUREPROBABILITY, prob); 494 495 auxFrame.SetAppraisalVariable(DeliberativeProcess.NAME, (short)6, OCCComponent.GOALCONDUCIVENESS, -tGoal.GetImportanceOfFailure(am)); 496 am.updateEmotions(auxFrame); 495 497 496 498 -
AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/Core/deliberativeLayer/Intention.java
r848 r860 382 382 _appraisalFrame.SetAppraisalVariable(DeliberativeProcess.NAME, (short)7, OCCComponent.FAILUREPROBABILITY, 1-probability); 383 383 _appraisalFrame.SetAppraisalVariable(DeliberativeProcess.NAME, (short)7, OCCComponent.GOALCONDUCIVENESS, goalConduciveness); 384 385 am.updateEmotions(_appraisalFrame); 384 386 385 387 //SetHope(hope); … … 402 404 af.SetAppraisalVariable(DeliberativeProcess.NAME,(short)8,OCCComponent.GOALSTATUS, OCCComponent.GOALDISCONFIRMED); 403 405 af.SetAppraisalVariable(DeliberativeProcess.NAME, (short)8,OCCComponent.GOALCONDUCIVENESS, am.getDeliberativeLayer().getUtilityStrategy().getUtility(am, _goal)); 406 am.updateEmotions(af); 404 407 405 408 if(!isRootIntention()) … … 438 441 af.SetAppraisalVariable(DeliberativeProcess.NAME,(short)8,OCCComponent.GOALSTATUS, OCCComponent.GOALCONFIRMED); 439 442 af.SetAppraisalVariable(DeliberativeProcess.NAME, (short)8,OCCComponent.GOALCONDUCIVENESS, am.getDeliberativeLayer().getUtilityStrategy().getUtility(am, _goal)); 443 am.updateEmotions(af); 440 444 441 445 AgentLogger.GetInstance().logAndPrint("Goal SUCCESS - " + getGoal().getName()); -
AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/Core/emotionalState/BaseEmotion.java
r848 r860 110 110 */ 111 111 public String GetHashKey() { 112 String aux = _cause.toString() +_cause.GetTime();112 String aux = _cause.toString(); 113 113 for(String s : _type.getAppraisalVariables()) 114 114 {
Note: See TracChangeset
for help on using the changeset viewer.