Class IndicatorUtilityFunction
java.lang.Object
org.tweetyproject.agents.dialogues.structured.IndicatorUtilityFunction
- All Implemented Interfaces:
 UtilityFunction
This class represents an indicator utility function, i.e. a function
 that ranks a set of propositions to 1 if this function's focal element
 is part of the set, and 0 otherwise.
- Author:
 - Matthias Thimm
 
- 
Constructor Summary
ConstructorsConstructorDescriptionIndicatorUtilityFunction(Proposition focalElement) Creates a new indicator utility function for the given focal element. - 
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()intrank(Collection<? extends Proposition> propositions) Rank the given collection of propositions. 
- 
Constructor Details
- 
IndicatorUtilityFunction
Creates a new indicator utility function for the given focal element.- Parameters:
 focalElement- a proposition.
 
 - 
 - 
Method Details
- 
rank
Description copied from interface:UtilityFunctionRank the given collection of propositions. A set S is preferred to a set T if rank(S)>rank(T).- Specified by:
 rankin interfaceUtilityFunction- Parameters:
 propositions- a collection of propositions.- Returns:
 - the rank of the given collection.
 
 - 
hashCode
 - 
equals
 
 -