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
-
-
Constructor Summary
Constructors Constructor Description RandomLotteryAgent(java.lang.String name, DungTheory theory, UtilityFunction util, Semantics semantics)Creates a new agent with the given name, theory, utility function and semantics
-
Method Summary
Modifier and Type Method Description doublegetUtility(DungTheory theory, Semantics semantics)Returns the utility of the agent wrt.ExecutableDungTheorynext(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
-
RandomLotteryAgent
public RandomLotteryAgent(java.lang.String name, DungTheory theory, UtilityFunction util, 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(java.util.Collection<? extends Perceivable> percepts)
Description copied from class:AgentDetermines the next action of this agent wrt. the given percepts.- Specified by:
nextin classAbstractLotteryAgent- Parameters:
percepts- a collection of percepts.- Returns:
- an action.
-
getUtility
public double getUtility(DungTheory theory, 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.
-
-