Class RandomLotteryAgent
- java.lang.Object
-
- net.sf.tweety.agents.Agent
-
- net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
-
- net.sf.tweety.agents.dialogues.lotteries.RandomLotteryAgent
-
public class RandomLotteryAgent extends AbstractLotteryAgent
A baseline agent for argumentation games who always returns some random move.- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
semantics, theory
-
-
Constructor Summary
Constructors Constructor Description RandomLotteryAgent(String name, net.sf.tweety.arg.dung.syntax.DungTheory theory, net.sf.tweety.arg.prob.lotteries.UtilityFunction util, net.sf.tweety.arg.dung.semantics.Semantics semantics)Creates a new agent with the given name, theory, utility function and semantics
-
Method Summary
Modifier and Type Method Description doublegetUtility(net.sf.tweety.arg.dung.syntax.DungTheory theory, net.sf.tweety.arg.dung.semantics.Semantics semantics)Returns the utility of the agent wrt.ExecutableDungTheorynext(Collection<? extends net.sf.tweety.agents.Perceivable> percepts)-
Methods inherited from class net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
getSemantics, getTheory
-
-
-
-
Constructor Detail
-
RandomLotteryAgent
public RandomLotteryAgent(String name, net.sf.tweety.arg.dung.syntax.DungTheory theory, net.sf.tweety.arg.prob.lotteries.UtilityFunction util, net.sf.tweety.arg.dung.semantics.Semantics semantics)
Creates a new agent with the given name, theory, utility function and semantics- Parameters:
name- the name of the agenttheory- some theoryutil- the used utility functionsemantics- the semantics underlying the theory
-
-
Method Detail
-
next
public ExecutableDungTheory next(Collection<? extends net.sf.tweety.agents.Perceivable> percepts)
- Specified by:
nextin classAbstractLotteryAgent
-
getUtility
public double getUtility(net.sf.tweety.arg.dung.syntax.DungTheory theory, net.sf.tweety.arg.dung.semantics.Semantics semantics)Description copied from class:AbstractLotteryAgentReturns the utility of the agent wrt. the given theory.- Specified by:
getUtilityin classAbstractLotteryAgent- Parameters:
theory- some theorysemantics- some semantics- Returns:
- the utility of this agent wrt. the given theory.
-
-