de.cesr.lara.houseplant
Class IrrigateHouseplant
java.lang.Object
de.cesr.lara.components.LaraProperty<BO,Map<Class<? extends LaraPreference>,Double>>
de.cesr.lara.components.LaraBehaviouralOption<A,AbstractIrrigationBehaviouralOption<A>>
de.cesr.lara.houseplant.AbstractIrrigationBehaviouralOption<Agent>
de.cesr.lara.houseplant.IrrigateHouseplant
- All Implemented Interfaces:
- Comparable<LaraBehaviouralOption<Agent,AbstractIrrigationBehaviouralOption<Agent>>>
public class IrrigateHouseplant
- extends AbstractIrrigationBehaviouralOption<Agent>
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 |
IrrigateHouseplant
public IrrigateHouseplant(String key,
Agent agent,
Map<Class<? extends LaraPreference>,Double> preferences)
- constructor
- Parameters:
key
- agent
-
getSituationalUtilities
public Map<Class<? extends LaraPreference>,Double> getSituationalUtilities(LaraDecisionConfiguration dBuilder)
- Specified by:
getSituationalUtilities
in class LaraBehaviouralOption<Agent,AbstractIrrigationBehaviouralOption<Agent>>
- Returns:
- the current preferenceUtilities of this behavioural option
getModifiedBO
public AbstractIrrigationBehaviouralOption<Agent> getModifiedBO(Agent agent,
Map<Class<? extends LaraPreference>,Double> preferenceUtilities)
- Specified by:
getModifiedBO
in class LaraBehaviouralOption<Agent,AbstractIrrigationBehaviouralOption<Agent>>
- Returns:
- behavioural option