Class AbstractLotteryAgent
- java.lang.Object
-
- net.sf.tweety.agents.Agent
-
- net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
-
- Direct Known Subclasses:
DummyLotteryAgent,ProbabilisticLotteryAgent,RandomLotteryAgent,UtilityBasedLotteryAgent
public abstract class AbstractLotteryAgent extends Agent
An agent in a game of argumentation lotteries.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description protected SemanticssemanticsThe used semanticsprotected DungTheorytheoryThe theory of this agent.
-
Constructor Summary
Constructors Constructor Description AbstractLotteryAgent(java.lang.String name, DungTheory theory, Semantics semantics)Creates a new lottery agent
-
Method Summary
Modifier and Type Method Description SemanticsgetSemantics()Returns the semantics.DungTheorygetTheory()Returns the theory of this agent.abstract doublegetUtility(DungTheory theory, Semantics semantics)Returns the utility of the agent wrt.abstract ExecutableDungTheorynext(java.util.Collection<? extends Perceivable> percepts)Determines the next action of this agent wrt.
-
-
-
Field Detail
-
theory
protected DungTheory theory
The theory of this agent.
-
semantics
protected Semantics semantics
The used semantics
-
-
Constructor Detail
-
AbstractLotteryAgent
public AbstractLotteryAgent(java.lang.String name, DungTheory theory, Semantics semantics)Creates a new lottery agent- Parameters:
name- the name of the agenttheory- some theorysemantics- the semantics underlying the theory
-
-
Method Detail
-
getTheory
public DungTheory getTheory()
Returns the theory of this agent.- Returns:
- the theory of this agent.
-
next
public abstract ExecutableDungTheory next(java.util.Collection<? extends Perceivable> percepts)
Description copied from class:AgentDetermines the next action of this agent wrt. the given percepts.
-
getUtility
public abstract double getUtility(DungTheory theory, Semantics semantics)
Returns the utility of the agent wrt. the given theory.- Parameters:
theory- some theorysemantics- some semantics- Returns:
- the utility of this agent wrt. the given theory.
-
getSemantics
public Semantics getSemantics()
Returns the semantics.- Returns:
- the semantics.
-
-