Class UtilityFunction

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<net.sf.tweety.arg.dung.divisions.Division,​Double>

    public class UtilityFunction
    extends HashMap<net.sf.tweety.arg.dung.divisions.Division,​Double>
    A utility function that maps divisions to utilities
    Author:
    Matthias Thimm
    See Also:
    Serialized Form
    • Constructor Detail

      • UtilityFunction

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

      • 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​(net.sf.tweety.arg.dung.syntax.DungTheory theory,
                                 net.sf.tweety.arg.dung.semantics.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.