de.cesr.lara.template
Class MyBehaviouralOptionZero

java.lang.Object
  extended by de.cesr.lara.components.LaraProperty<BO,Map<Class<? extends LaraPreference>,Double>>
      extended by de.cesr.lara.components.LaraBehaviouralOption<A,MyAbstractBehaviouralOption<A>>
          extended by de.cesr.lara.template.MyAbstractBehaviouralOption<MyAgent>
              extended by de.cesr.lara.template.MyBehaviouralOptionZero
All Implemented Interfaces:
Comparable<LaraBehaviouralOption<MyAgent,MyAbstractBehaviouralOption<MyAgent>>>

public class MyBehaviouralOptionZero
extends MyAbstractBehaviouralOption<MyAgent>

behavioural option zero - represents a behavioural option the agent decides about. the getValue() method returns the calculated utilities towards the relevant preferenceWeights


Constructor Summary
MyBehaviouralOptionZero(String key, MyAgent agent, Map<Class<? extends LaraPreference>,Double> preferences)
          constructor
 
Method Summary
 MyAbstractBehaviouralOption<MyAgent> getModifiedBO(MyAgent agent, Map<Class<? extends LaraPreference>,Double> preferenceUtilities)
           
 Map<Class<? extends LaraPreference>,Double> getSituationalUtilities(LaraDecisionConfiguration dBuilder)
           
 
Methods inherited from class de.cesr.lara.components.LaraBehaviouralOption
calculateHashCode, compareTo, equals, getAgent, getModifiableUtilities, getModifiedAgentBO, getModifiedProperty, getModifiedUtilitiesBO, getTotalSituationalUtility, getValue, hashCode, isCurrentlyApplicable, toString
 
Methods inherited from class de.cesr.lara.components.LaraProperty
getKey, getRefreshedProperty, getTimestamp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyBehaviouralOptionZero

public MyBehaviouralOptionZero(String key,
                               MyAgent agent,
                               Map<Class<? extends LaraPreference>,Double> preferences)
constructor

Parameters:
key -
agent -
Method Detail

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
See Also:
LaraBehaviouralOption.getModifiedBO(de.cesr.lara.components.agents.LaraAgent, java.util.Map)

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