Class UtilityFunction<S,​T extends Collection<S>>

  • Type Parameters:
    S - The type of elements in a move
    T - The type of moves in this dialgoue trace
    Direct Known Subclasses:
    GroundedGameUtilityFunction

    public abstract class UtilityFunction<S,​T extends Collection<S>>
    extends Object
    Objects of this class represent utility function that assess dialogue traces.
    Author:
    Tjitze Rienstra, Matthias Thimm
    • Constructor Detail

      • UtilityFunction

        public UtilityFunction()
    • Method Detail

      • getUtility

        public abstract double getUtility​(DialogueTrace<S,​T> t)
        Gives the utility of the given dialogue trace.
        Parameters:
        t - some dialogue trace.
        Returns:
        the utility of the trace
      • getUtility

        public abstract double getUtility​(DialogueTrace<S,​T> t,
                                          Set<S> additionalArguments,
                                          Set<net.sf.tweety.arg.dung.syntax.Attack> additionalAttacks)
        Gives the utility of the given dialogue trace that takes the additional arguments and attacks into account.
        Parameters:
        t - some dialogue trace.
        additionalArguments - a set of arguments that have to be taken into account
        additionalAttacks - a set of attacks that have to be taken into account
        Returns:
        the utility of the trace