Package net.sf.tweety.arg.prob.lotteries
Class LdoUtilityFunction
- java.lang.Object
 - 
- java.util.AbstractMap<K,V>
 - 
- java.util.HashMap<LdoFormula,java.lang.Double>
 - 
- net.sf.tweety.arg.prob.lotteries.LdoUtilityFunction
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,java.lang.Cloneable,java.util.Map<LdoFormula,java.lang.Double>
public class LdoUtilityFunction extends java.util.HashMap<LdoFormula,java.lang.Double>
A utility function that maps LDO formulas to utilities- Author:
 - Matthias Thimm
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDFor serialization. 
- 
Constructor Summary
Constructors Constructor Description LdoUtilityFunction()Creates a new utility function. 
- 
Method Summary
Modifier and Type Method Description java.lang.DoublegetExpectedUtility(LdoArgumentationLottery lottery)Returns the expected utility of the given lottery.java.lang.DoublegetUtility(DungTheory theory, Semantics semantics)Gets the utility of the given theory wrt.- 
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values 
 - 
 
 - 
 
- 
- 
Field Detail
- 
serialVersionUID
private static final long serialVersionUID
For serialization.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getExpectedUtility
public java.lang.Double getExpectedUtility(LdoArgumentationLottery 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.
 
 
 - 
 
 -