public class IndicatorUtilityFunction extends java.lang.Object implements UtilityFunction
Modifier and Type | Field and Description |
---|---|
private Proposition |
focalElement
The focal element of this function.
|
Constructor and Description |
---|
IndicatorUtilityFunction(Proposition focalElement)
Creates a new indicator utility function for the given focal element.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
int |
rank(java.util.Collection<? extends Proposition> propositions)
Rank the given collection of propositions.
|
private Proposition focalElement
public IndicatorUtilityFunction(Proposition focalElement)
focalElement
- a proposition.public int rank(java.util.Collection<? extends Proposition> propositions)
UtilityFunction
rank
in interface UtilityFunction
propositions
- a collection of propositions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object