Class UtilityFunction<S,​T extends java.util.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 java.util.Collection<S>>
    extends java.lang.Object
    Objects of this class represent utility function that assess dialogue traces.
    Author:
    Tjitze Rienstra, Matthias Thimm
    • Constructor Summary

      Constructors 
      Constructor Description
      UtilityFunction()  
    • Method Summary

      Modifier and Type Method Description
      abstract double getUtility​(DialogueTrace<S,​T> t)
      Gives the utility of the given dialogue trace.
      abstract double getUtility​(DialogueTrace<S,​T> t, java.util.Set<S> additionalArguments, java.util.Set<Attack> additionalAttacks)
      Gives the utility of the given dialogue trace that takes the additional arguments and attacks into account.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                          java.util.Set<S> additionalArguments,
                                          java.util.Set<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