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

java.lang.Object
org.tweetyproject.agents.dialogues.oppmodels.UtilityFunction<S,T>
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 Details

    • UtilityFunction

      public UtilityFunction()
  • Method Details

    • 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<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