Changeset 671


Ignore:
Timestamp:
11/09/2010 01:50:25 PM (9 years ago)
Author:
joao.dias
Message:
 
Location:
AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA
Files:
1 added
3 edited
1 copied

Legend:

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

    r667 r671  
    234234                } 
    235235                 
     236                m.getDeliberativeLayer().getUtilityForTargetStrategy() 
     237                 
    236238                auxMultiplier = 1;  
    237239                ModelOfOther m = am.getToM().get(target); 
  • AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/deliberativeLayer/DefaultStrategy.java

    r643 r671  
    55import FAtiMA.util.Constants; 
    66 
    7 public class DefaultStrategy implements IUtilityForTargetStrategy, IProbabilityStrategy  
     7public class DefaultStrategy implements IUtilityStrategy, IProbabilityStrategy  
    88{        
    9         public float getUtilityForTarget(String target, AgentModel am, ActivePursuitGoal g) 
     9        public float getUtility(AgentModel am, ActivePursuitGoal g) 
    1010        { 
    11                 if(target.equals(Constants.SELF)) 
    12                         return g.GetImportanceOfSuccess(am); 
    13                  
    14                 else return 0; 
     11                return g.GetImportanceOfSuccess(am); 
    1512        } 
    1613         
  • AgentMind/branches/FAtiMA-Modular/FAtiMA/src/FAtiMA/deliberativeLayer/DeliberativeProcess.java

    r650 r671  
    186186        //strategies 
    187187        private IExpectedUtilityStrategy _EUStrategy; 
    188         private IUtilityForTargetStrategy _UStrategy; 
     188        private IUtilityStrategy _UStrategy; 
    189189        private IProbabilityStrategy _PStrategy; 
    190190        private IDetectThreatStrategy _isThreatStrat; 
     
    261261        } 
    262262         
    263         public void setUtilityForTargetStrategy(IUtilityForTargetStrategy strategy) 
     263        public void setUtilityForTargetStrategy(IUtilityStrategy strategy) 
    264264        { 
    265265                _UStrategy = strategy; 
     
    276276        } 
    277277         
    278         public IUtilityForTargetStrategy getUtilityForTargetStrategy() 
     278        public IUtilityStrategy getUtilityForTargetStrategy() 
    279279        { 
    280280                return _UStrategy; 
Note: See TracChangeset for help on using the changeset viewer.