Class RandomLotteryAgent
java.lang.Object
org.tweetyproject.agents.Agent
org.tweetyproject.agents.dialogues.lotteries.AbstractLotteryAgent
org.tweetyproject.agents.dialogues.lotteries.RandomLotteryAgent
A baseline agent for argumentation games who always
returns some random move.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionRandomLotteryAgent
(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 TypeMethodDescriptiondouble
getUtility
(DungTheory theory, Semantics semantics) Returns the utility of the agent wrt.next
(Collection<? extends Perceivable> percepts) Determines the next action of this agent wrt.Methods inherited from class org.tweetyproject.agents.dialogues.lotteries.AbstractLotteryAgent
getSemantics, getTheory
-
Constructor Details
-
RandomLotteryAgent
public RandomLotteryAgent(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 Details
-
next
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
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.
-