Class AbstractLotteryAgent

    • Constructor Detail

      • AbstractLotteryAgent

        public AbstractLotteryAgent​(java.lang.String name,
                                    DungTheory theory,
                                    Semantics semantics)
        Creates a new lottery agent
        Parameters:
        name - the name of the agent
        theory - some theory
        semantics - 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: Agent
        Determines the next action of this agent wrt. the given percepts.
        Specified by:
        next in class Agent
        Parameters:
        percepts - a collection of percepts.
        Returns:
        an action.
      • getUtility

        public abstract double getUtility​(DungTheory theory,
                                          Semantics semantics)
        Returns the utility of the agent wrt. the given theory.
        Parameters:
        theory - some theory
        semantics - some semantics
        Returns:
        the utility of this agent wrt. the given theory.
      • getSemantics

        public Semantics getSemantics()
        Returns the semantics.
        Returns:
        the semantics.