Class GroundedGameUtilityFunction


  • public class GroundedGameUtilityFunction
    extends UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.semantics.Extension>
    The grounded game utility function u_a^g. See definition in paper. This function can either function as the proponent's utility or the opposite opponent's utility.
    Author:
    Tjitze Rienstra, Matthias Thimm
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(Object obj)  
      double getUtility​(DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.semantics.Extension> trace)
      Gives the utility of the given dialogue trace.
      double getUtility​(DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.semantics.Extension> trace, Set<net.sf.tweety.arg.dung.syntax.Argument> 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.
      int hashCode()  
      String toString()  
    • Constructor Detail

      • GroundedGameUtilityFunction

        public GroundedGameUtilityFunction​(net.sf.tweety.arg.dung.syntax.DungTheory theory,
                                           net.sf.tweety.arg.dung.syntax.Argument argument,
                                           GroundedGameSystem.AgentFaction faction)
        Construct utility function.
        Parameters:
        theory - A Dung theory
        argument - the argument which is played for or against.
        faction - the type of this utility function.
    • Method Detail

      • getUtility

        public double getUtility​(DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.semantics.Extension> trace)
        Description copied from class: UtilityFunction
        Gives the utility of the given dialogue trace.
        Specified by:
        getUtility in class UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.semantics.Extension>
        Parameters:
        trace - some dialogue trace.
        Returns:
        the utility of the trace
      • getUtility

        public double getUtility​(DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.semantics.Extension> trace,
                                 Set<net.sf.tweety.arg.dung.syntax.Argument> additionalArguments,
                                 Set<net.sf.tweety.arg.dung.syntax.Attack> additionalAttacks)
        Description copied from class: UtilityFunction
        Gives the utility of the given dialogue trace that takes the additional arguments and attacks into account.
        Specified by:
        getUtility in class UtilityFunction<net.sf.tweety.arg.dung.syntax.Argument,​net.sf.tweety.arg.dung.semantics.Extension>
        Parameters:
        trace - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object