Class LdoUtilityFunction

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<LdoFormula,Double>
org.tweetyproject.arg.prob.lotteries.LdoUtilityFunction
All Implemented Interfaces:
Serializable, Cloneable, Map<LdoFormula,Double>

public class LdoUtilityFunction extends HashMap<LdoFormula,Double>
A utility function that maps LDO formulas to utilities
Author:
Matthias Thimm
See Also:
  • Constructor Details

    • LdoUtilityFunction

      public LdoUtilityFunction()
      Creates a new utility function.
  • Method Details

    • getExpectedUtility

      public Double getExpectedUtility(LdoArgumentationLottery lottery)
      Returns the expected utility of the given lottery.
      Parameters:
      lottery - some lottery
      Returns:
      the expected utility of the given lottery.
    • getUtility

      public Double getUtility(DungTheory theory, Semantics semantics)
      Gets the utility of the given theory wrt. the given semantics.
      Parameters:
      theory - some AAF
      semantics - some semantics
      Returns:
      the utility of the theory wrt. the given semantics.