Class GroundedGameUtilityFunction
java.lang.Object
org.tweetyproject.agents.dialogues.oppmodels.UtilityFunction<Argument,Extension<DungTheory>>
org.tweetyproject.agents.dialogues.oppmodels.GroundedGameUtilityFunction
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
-
Constructor Summary
ConstructorDescriptionGroundedGameUtilityFunction
(DungTheory theory, Argument argument, GroundedGameSystem.AgentFaction faction) Construct utility function. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getUtility
(DialogueTrace<Argument, Extension<DungTheory>> trace) Gives the utility of the given dialogue trace.double
getUtility
(DialogueTrace<Argument, Extension<DungTheory>> trace, Set<Argument> additionalArguments, Set<Attack> additionalAttacks) Gives the utility of the given dialogue trace that takes the additional arguments and attacks into account.int
hashCode()
toString()
-
Constructor Details
-
GroundedGameUtilityFunction
public GroundedGameUtilityFunction(DungTheory theory, Argument argument, GroundedGameSystem.AgentFaction faction) Construct utility function.- Parameters:
theory
- A Dung theoryargument
- the argument which is played for or against.faction
- the type of this utility function.
-
-
Method Details
-
getUtility
Description copied from class:UtilityFunction
Gives the utility of the given dialogue trace.- Specified by:
getUtility
in classUtilityFunction<Argument,
Extension<DungTheory>> - Parameters:
trace
- some dialogue trace.- Returns:
- the utility of the trace
-
getUtility
public double getUtility(DialogueTrace<Argument, Extension<DungTheory>> trace, Set<Argument> additionalArguments, Set<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 classUtilityFunction<Argument,
Extension<DungTheory>> - Parameters:
trace
- some dialogue trace.additionalArguments
- a set of arguments that have to be taken into accountadditionalAttacks
- a set of attacks that have to be taken into account- Returns:
- the utility of the trace
-
toString
-
hashCode
-
equals
-