Package net.sf.tweety.arg.prob.lotteries
Class UtilityFunction
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<Division,java.lang.Double>
-
- net.sf.tweety.arg.prob.lotteries.UtilityFunction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<Division,java.lang.Double>
public class UtilityFunction extends java.util.HashMap<Division,java.lang.Double>
A utility function that maps divisions to utilities- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UtilityFunction()
Creates a new utility function.
-
Method Summary
Modifier and Type Method Description java.lang.Double
getExpectedUtility(ArgumentationLottery lottery)
Returns the expected utility of the given lottery.java.lang.Double
getUtility(DungTheory theory, Semantics semantics)
Gets the utility of the given theory wrt.
-
-
-
Method Detail
-
getExpectedUtility
public java.lang.Double getExpectedUtility(ArgumentationLottery lottery)
Returns the expected utility of the given lottery.- Parameters:
lottery
- some lottery- Returns:
- the expected utility of the given lottery.
-
getUtility
public java.lang.Double getUtility(DungTheory theory, Semantics semantics)
Gets the utility of the given theory wrt. the given semantics.- Parameters:
theory
- some AAFsemantics
- some semantics- Returns:
- the utility of the theory wrt. the given semantics.
-
-