Class UtilityBasedLotteryAgent
- java.lang.Object
-
- net.sf.tweety.agents.Agent
-
- net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
-
- net.sf.tweety.agents.dialogues.lotteries.UtilityBasedLotteryAgent
-
public class UtilityBasedLotteryAgent extends AbstractLotteryAgent
-
-
Constructor Summary
Constructors Constructor Description UtilityBasedLotteryAgent(java.lang.String name, DungTheory theory, UtilityFunction util, Semantics semantics)
-
Method Summary
Modifier and Type Method Description double
getUtility(DungTheory theory, Semantics semantics)
Returns the utility of the agent wrt.ExecutableDungTheory
next(java.util.Collection<? extends Perceivable> percepts)
Determines the next action of this agent wrt.-
Methods inherited from class net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
getSemantics, getTheory
-
-
-
-
Constructor Detail
-
UtilityBasedLotteryAgent
public UtilityBasedLotteryAgent(java.lang.String name, DungTheory theory, UtilityFunction util, Semantics semantics)
-
-
Method Detail
-
next
public ExecutableDungTheory next(java.util.Collection<? extends Perceivable> percepts)
Description copied from class:Agent
Determines the next action of this agent wrt. the given percepts.- Specified by:
next
in classAbstractLotteryAgent
- Parameters:
percepts
- a collection of percepts.- Returns:
- an action.
-
getUtility
public double getUtility(DungTheory theory, Semantics semantics)
Description copied from class:AbstractLotteryAgent
Returns the utility of the agent wrt. the given theory.- Specified by:
getUtility
in classAbstractLotteryAgent
- Parameters:
theory
- some theorysemantics
- some semantics- Returns:
- the utility of this agent wrt. the given theory.
-
-