Class UtilityFunction

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

public class UtilityFunction extends HashMap<Division,Double>
A utility function that maps divisions to utilities
Author:
Matthias Thimm
See Also:
  • Constructor Details

    • UtilityFunction

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

    • getExpectedUtility

      public Double getExpectedUtility(ArgumentationLottery 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.