Class ProbabilisticLotteryAgent


  • public class ProbabilisticLotteryAgent
    extends AbstractLotteryAgent
    An agent in a game of argumentation lotteries.
    Author:
    Matthias Thimm
    • Constructor Summary

      Constructors 
      Constructor Description
      ProbabilisticLotteryAgent​(String name, net.sf.tweety.arg.dung.syntax.DungTheory theory, net.sf.tweety.arg.prob.lotteries.SubgraphProbabilityFunction prob, net.sf.tweety.arg.prob.lotteries.UtilityFunction util, net.sf.tweety.arg.dung.semantics.Semantics semantics)
      Creates a new lottery agent
      ProbabilisticLotteryAgent​(String name, net.sf.tweety.arg.dung.syntax.DungTheory theory, net.sf.tweety.arg.prob.lotteries.SubgraphProbabilityFunction prob, net.sf.tweety.arg.prob.lotteries.UtilityFunction util, net.sf.tweety.arg.dung.semantics.Semantics semantics, byte updatestrategy)
      Creates a new lottery agent
      ProbabilisticLotteryAgent​(String name, net.sf.tweety.arg.dung.syntax.DungTheory theory, net.sf.tweety.arg.prob.lotteries.SubgraphProbabilityFunction prob, net.sf.tweety.arg.prob.lotteries.UtilityFunction util, net.sf.tweety.arg.dung.semantics.Semantics semantics, byte updatestrategy, double stickynesscoefficient)
      Creates a new lottery agent
    • 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
    • Constructor Detail

      • ProbabilisticLotteryAgent

        public ProbabilisticLotteryAgent​(String name,
                                         net.sf.tweety.arg.dung.syntax.DungTheory theory,
                                         net.sf.tweety.arg.prob.lotteries.SubgraphProbabilityFunction prob,
                                         net.sf.tweety.arg.prob.lotteries.UtilityFunction util,
                                         net.sf.tweety.arg.dung.semantics.Semantics semantics)
        Creates a new lottery agent
        Parameters:
        name - the name of the agent
        theory - some theory
        prob - a probability function
        util - a utility function
        semantics - the used semantics
      • ProbabilisticLotteryAgent

        public ProbabilisticLotteryAgent​(String name,
                                         net.sf.tweety.arg.dung.syntax.DungTheory theory,
                                         net.sf.tweety.arg.prob.lotteries.SubgraphProbabilityFunction prob,
                                         net.sf.tweety.arg.prob.lotteries.UtilityFunction util,
                                         net.sf.tweety.arg.dung.semantics.Semantics semantics,
                                         byte updatestrategy)
        Creates a new lottery agent
        Parameters:
        name - the name of the agent
        theory - some theory
        prob - a probability function
        util - a utility function
        semantics - the used semantics
        updatestrategy - The update strategy used
      • ProbabilisticLotteryAgent

        public ProbabilisticLotteryAgent​(String name,
                                         net.sf.tweety.arg.dung.syntax.DungTheory theory,
                                         net.sf.tweety.arg.prob.lotteries.SubgraphProbabilityFunction prob,
                                         net.sf.tweety.arg.prob.lotteries.UtilityFunction util,
                                         net.sf.tweety.arg.dung.semantics.Semantics semantics,
                                         byte updatestrategy,
                                         double stickynesscoefficient)
        Creates a new lottery agent
        Parameters:
        name - the name of the agent
        theory - some theory
        prob - a probability function
        util - a utility function
        semantics - the used semantics
        updatestrategy - The update strategy used
        stickynesscoefficient - coefficient for the sticky update (only needed when updatestrategy==UPDATE_STICKY.
    • Method Detail

      • getTheory

        public net.sf.tweety.arg.dung.syntax.DungTheory getTheory()
        Returns the theory of this agent.
        Overrides:
        getTheory in class AbstractLotteryAgent
        Returns:
        the theory of this agent.
      • getUtility

        public double getUtility​(net.sf.tweety.arg.dung.syntax.DungTheory theory,
                                 net.sf.tweety.arg.dung.semantics.Semantics semantics)
        Description copied from class: AbstractLotteryAgent
        Returns the utility of the agent wrt. the given theory.
        Specified by:
        getUtility in class AbstractLotteryAgent
        Parameters:
        theory - some theory
        semantics - some semantics
        Returns:
        the utility of this agent wrt. the given theory.