Changeset 870


Ignore:
Timestamp:
01/22/2011 02:35:35 PM (8 years ago)
Author:
joao.dias
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • AgentMind/branches/FAtiMA-Modular/FAtiMA.MotivationalSystem/src/FAtiMA/motivationalSystem/MotivationalComponent.java

    r848 r870  
    4949public class MotivationalComponent implements Serializable, Cloneable, IAppraisalDerivationComponent, IModelOfOtherComponent, IExpectedUtilityStrategy, IProbabilityStrategy, IUtilityStrategy, IGoalSuccessStrategy, IGoalFailureStrategy, IActionFailureStrategy { 
    5050         
     51        private static final float UTILITY_WEIGHT = 0.2f; 
    5152        private static final long serialVersionUID = 1L; 
    5253        public static final String NAME ="MotivationalState"; 
     
    294295        public float getUtility(AgentModel am, ActivePursuitGoal g) 
    295296        { 
    296                 return getContributionToNeeds(am,g)*0.2f; 
     297                return getContributionToNeeds(am,g) * UTILITY_WEIGHT; 
    297298        } 
    298299         
Note: See TracChangeset for help on using the changeset viewer.