de.cesr.lara.template
Class MyBehaviouralOptionOne
java.lang.Object
de.cesr.lara.components.LaraProperty<BO,Map<Class<? extends LaraPreference>,Double>>
de.cesr.lara.components.LaraBehaviouralOption<A,MyAbstractBehaviouralOption<A>>
de.cesr.lara.template.MyAbstractBehaviouralOption<MyAgent>
de.cesr.lara.template.MyBehaviouralOptionOne
- All Implemented Interfaces:
- Comparable<LaraBehaviouralOption<MyAgent,MyAbstractBehaviouralOption<MyAgent>>>
public class MyBehaviouralOptionOne
- extends MyAbstractBehaviouralOption<MyAgent>
behavioural option one - represents a behavioural option the agent decides
about. the getValue() method returns the calculated utilities towards the
relevant preferenceWeights
Methods inherited from class de.cesr.lara.components.LaraBehaviouralOption |
calculateHashCode, compareTo, equals, getAgent, getModifiableUtilities, getModifiedAgentBO, getModifiedProperty, getModifiedUtilitiesBO, getTotalSituationalUtility, getValue, hashCode, isCurrentlyApplicable, toString |
MyBehaviouralOptionOne
public MyBehaviouralOptionOne(String key,
MyAgent agent,
Map<Class<? extends LaraPreference>,Double> preferences)
- constructor
- Parameters:
key
- agent
-
getModifiedBO
public MyAbstractBehaviouralOption<MyAgent> getModifiedBO(MyAgent agent,
Map<Class<? extends LaraPreference>,Double> preferenceUtilities)
- Specified by:
getModifiedBO
in class LaraBehaviouralOption<MyAgent,MyAbstractBehaviouralOption<MyAgent>>
- Returns:
- behavioural option
getSituationalUtilities
public Map<Class<? extends LaraPreference>,Double> getSituationalUtilities(LaraDecisionConfiguration dBuilder)
- Specified by:
getSituationalUtilities
in class LaraBehaviouralOption<MyAgent,MyAbstractBehaviouralOption<MyAgent>>
- Returns:
- the current preferenceUtilities of this behavioural option