Class ProbabilisticLotteryAgent
- java.lang.Object
-
- net.sf.tweety.agents.Agent
-
- net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
-
- net.sf.tweety.agents.dialogues.lotteries.ProbabilisticLotteryAgent
-
public class ProbabilisticLotteryAgent extends AbstractLotteryAgent
An agent in a game of argumentation lotteries.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private SubgraphProbabilityFunctionprobUncertainty on sub graphs.private doublestickynesscoefficientStickyness coefficient for the sticky update.static byteUPDATE_NAIVEConstant for denoting the naive update.static byteUPDATE_ROUGHConstant for denoting the rough update.static byteUPDATE_SIMPLEConstant for denoting the simple update.static byteUPDATE_STICKYConstant for denoting the sticky update.private byteupdatestrategyThe update strategy used.private UtilityFunctionutilUtility function-
Fields inherited from class net.sf.tweety.agents.dialogues.lotteries.AbstractLotteryAgent
semantics, theory
-
-
Constructor Summary
Constructors Constructor Description ProbabilisticLotteryAgent(java.lang.String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics)Creates a new lottery agentProbabilisticLotteryAgent(java.lang.String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics, byte updatestrategy)Creates a new lottery agentProbabilisticLotteryAgent(java.lang.String name, DungTheory theory, SubgraphProbabilityFunction prob, UtilityFunction util, Semantics semantics, byte updatestrategy, double stickynesscoefficient)Creates a new lottery agent
-
Method Summary
Modifier and Type Method Description DungTheorygetTheory()Returns the theory of this agent.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
-
-
-
-
Field Detail
-
UPDATE_NAIVE
public static final byte UPDATE_NAIVE
Constant for denoting the naive update.- See Also:
- Constant Field Values
-
UPDATE_SIMPLE
public static final byte UPDATE_SIMPLE
Constant for denoting the simple update.- See Also:
- Constant Field Values
-
UPDATE_STICKY
public static final byte UPDATE_STICKY
Constant for denoting the sticky update.- See Also:
- Constant Field Values
-
UPDATE_ROUGH
public static final byte UPDATE_ROUGH
Constant for denoting the rough update.- See Also:
- Constant Field Values
-
stickynesscoefficient
private double stickynesscoefficient
Stickyness coefficient for the sticky update.
-
updatestrategy
private byte updatestrategy
The update strategy used.
-
prob
private SubgraphProbabilityFunction prob
Uncertainty on sub graphs.
-
util
private UtilityFunction util
Utility function
-
-
Constructor Detail
-
ProbabilisticLotteryAgent
public ProbabilisticLotteryAgent(java.lang.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(java.lang.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(java.lang.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 Detail
-
getTheory
public DungTheory getTheory()
Returns the theory of this agent.- Overrides:
getTheoryin classAbstractLotteryAgent- Returns:
- the theory of this agent.
-
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.
-
-