Class ProbabilisticLotteryAgent
java.lang.Object
org.tweetyproject.agents.Agent
org.tweetyproject.agents.dialogues.lotteries.AbstractLotteryAgent
org.tweetyproject.agents.dialogues.lotteries.ProbabilisticLotteryAgent
An agent in a game of argumentation lotteries.
- Author:
- Matthias Thimm
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
Constant for denoting the naive update.static final byte
Constant for denoting the rough update.static final byte
Constant for denoting the simple update.static final byte
Constant for denoting the sticky update. -
Constructor Summary
ConstructorDescriptionProbabilisticLotteryAgent
(String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics) Creates a new lottery agentProbabilisticLotteryAgent
(String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics, byte updatestrategy) Creates a new lottery agentProbabilisticLotteryAgent
(String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics, byte updatestrategy, double stickynesscoefficient) Creates a new lottery agent -
Method Summary
Modifier and TypeMethodDescriptionReturns the theory of this agent.double
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
-
Field Details
-
UPDATE_NAIVE
public static final byte UPDATE_NAIVEConstant for denoting the naive update.- See Also:
-
UPDATE_SIMPLE
public static final byte UPDATE_SIMPLEConstant for denoting the simple update.- See Also:
-
UPDATE_STICKY
public static final byte UPDATE_STICKYConstant for denoting the sticky update.- See Also:
-
UPDATE_ROUGH
public static final byte UPDATE_ROUGHConstant for denoting the rough update.- See Also:
-
-
Constructor Details
-
ProbabilisticLotteryAgent
public ProbabilisticLotteryAgent(String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics) Creates a new lottery agent- Parameters:
name
- the name of the agenttheory
- some theoryprob
- a probability functionutil
- a utility functionsemantics
- the used semantics
-
ProbabilisticLotteryAgent
public ProbabilisticLotteryAgent(String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics, byte updatestrategy) Creates a new lottery agent- Parameters:
name
- the name of the agenttheory
- some theoryprob
- a probability functionutil
- a utility functionsemantics
- the used semanticsupdatestrategy
- The update strategy used
-
ProbabilisticLotteryAgent
public ProbabilisticLotteryAgent(String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics, byte updatestrategy, double stickynesscoefficient) Creates a new lottery agent- Parameters:
name
- the name of the agenttheory
- some theoryprob
- a probability functionutil
- a utility functionsemantics
- the used semanticsupdatestrategy
- The update strategy usedstickynesscoefficient
- coefficient for the sticky update (only needed when updatestrategy==UPDATE_STICKY.
-
-
Method Details
-
getTheory
Returns the theory of this agent.- Overrides:
getTheory
in classAbstractLotteryAgent
- Returns:
- the theory of this agent.
-
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.
-