public class GroundedGameUtilityFunction extends UtilityFunction<Argument,Extension>
| Modifier and Type | Field and 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 function
|
private static org.slf4j.Logger |
log
Logger
|
private DungTheory |
theory
The underlying Dung theory
|
| Constructor and Description |
|---|
GroundedGameUtilityFunction(DungTheory theory,
Argument argument,
GroundedGameSystem.AgentFaction faction)
Construct utility function.
|
| Modifier and Type | Method and 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() |
private static org.slf4j.Logger log
private final Argument argument
private GroundedGameSystem.AgentFaction faction
private final DungTheory theory
private final java.lang.Double epsilon
public GroundedGameUtilityFunction(DungTheory theory, Argument argument, GroundedGameSystem.AgentFaction faction)
theory - A Dung theoryargument - the argument which is played for or against.faction - the type of this utility function.private double getUtility(Extension groundedExtension, DialogueTrace<Argument,Extension> trace)
groundedExtension - a grounded extension.trace - some tracepublic double getUtility(DialogueTrace<Argument,Extension> trace)
UtilityFunctiongetUtility in class UtilityFunction<Argument,Extension>trace - some dialogue trace.public double getUtility(DialogueTrace<Argument,Extension> trace, java.util.Set<Argument> additionalArguments, java.util.Set<Attack> additionalAttacks)
UtilityFunctiongetUtility in class UtilityFunction<Argument,Extension>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 accountpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object