Class GroundedGameUtilityFunction
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.UtilityFunction<Argument,Extension>
-
- net.sf.tweety.agents.dialogues.oppmodels.GroundedGameUtilityFunction
-
public class GroundedGameUtilityFunction extends UtilityFunction<Argument,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
-
-
Field Summary
Fields Modifier and Type Field Description private Argument
argument
The argument which is played for or against.private java.lang.Double
epsilon
The epsilon value.private GroundedGameSystem.AgentFaction
faction
The faction of this utility functionprivate static org.slf4j.Logger
log
Loggerprivate DungTheory
theory
The underlying Dung theory
-
Constructor Summary
Constructors Constructor Description GroundedGameUtilityFunction(DungTheory theory, Argument argument, GroundedGameSystem.AgentFaction faction)
Construct utility function.
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
double
getUtility(DialogueTrace<Argument,Extension> trace)
Gives the utility of the given dialogue trace.double
getUtility(DialogueTrace<Argument,Extension> trace, java.util.Set<Argument> additionalArguments, java.util.Set<Attack> additionalAttacks)
Gives the utility of the given dialogue trace that takes the additional arguments and attacks into account.private double
getUtility(Extension groundedExtension, DialogueTrace<Argument,Extension> trace)
Determines the utility of the given trace with the given grounded extension.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
log
private static org.slf4j.Logger log
Logger
-
argument
private final Argument argument
The argument which is played for or against.
-
faction
private GroundedGameSystem.AgentFaction faction
The faction of this utility function
-
theory
private final DungTheory theory
The underlying Dung theory
-
epsilon
private final java.lang.Double epsilon
The epsilon value.
-
-
Constructor Detail
-
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 Detail
-
getUtility
private double getUtility(Extension groundedExtension, DialogueTrace<Argument,Extension> trace)
Determines the utility of the given trace with the given grounded extension.- Parameters:
groundedExtension
- a grounded extension.trace
- some trace- Returns:
- a utility
-
getUtility
public double getUtility(DialogueTrace<Argument,Extension> trace)
Description copied from class:UtilityFunction
Gives the utility of the given dialogue trace.- Specified by:
getUtility
in classUtilityFunction<Argument,Extension>
- Parameters:
trace
- some dialogue trace.- Returns:
- the utility of the trace
-
getUtility
public double getUtility(DialogueTrace<Argument,Extension> trace, java.util.Set<Argument> additionalArguments, java.util.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>
- 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-