Class UtilityFunction<S,T extends Collection<S>>
java.lang.Object
org.tweetyproject.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
Objects of this class represent utility function that assess
dialogue traces.
- Author:
- Tjitze Rienstra, Matthias Thimm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
getUtility
(DialogueTrace<S, T> t) Gives the utility of the given dialogue trace.abstract double
getUtility
(DialogueTrace<S, T> t, Set<S> additionalArguments, Set<Attack> additionalAttacks) Gives the utility of the given dialogue trace that takes the additional arguments and attacks into account.
-
Constructor Details
-
UtilityFunction
public UtilityFunction()
-
-
Method Details
-
getUtility
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, Set<S> additionalArguments, 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
-