Class UtilityFunction<S,T extends java.util.Collection<S>>
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.oppmodels.UtilityFunction<S,T>
-
- Type Parameters:
S
- The type of elements in a moveT
- The type of moves in this dialgoue trace
- Direct Known Subclasses:
GroundedGameUtilityFunction
public abstract class UtilityFunction<S,T extends java.util.Collection<S>> extends java.lang.Object
Objects of this class represent utility function that assess dialogue traces.- Author:
- Tjitze Rienstra, Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description UtilityFunction()
-
Method Summary
Modifier and Type Method Description abstract double
getUtility(DialogueTrace<S,T> t)
Gives the utility of the given dialogue trace.abstract double
getUtility(DialogueTrace<S,T> t, java.util.Set<S> additionalArguments, java.util.Set<Attack> additionalAttacks)
Gives the utility of the given dialogue trace that takes the additional arguments and attacks into account.
-
-
-
Method Detail
-
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, java.util.Set<S> additionalArguments, java.util.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 accountadditionalAttacks
- a set of attacks that have to be taken into account- Returns:
- the utility of the trace
-
-