Class Agent

java.lang.Object
org.tweetyproject.agents.Agent
Direct Known Subclasses:
AbstractLotteryAgent, ArguingAgent, DummyAgent, SasAgent

public abstract class Agent extends Object
An agent is a possibly proactive entity situated in some environment.
Author:
Matthias Thimm
  • Constructor Details

    • Agent

      public Agent(String name)
      Creates a new agent with the given name.
      Parameters:
      name - some string.
  • Method Details

    • getName

      public String getName()
      Returns the name of this agent.
      Returns:
      the name of this agent.
    • next

      public abstract Executable next(Collection<? extends Perceivable> percepts)
      Determines the next action of this agent wrt. the given percepts.
      Parameters:
      percepts - a collection of percepts.
      Returns:
      an action.
    • toString

      public String toString()
      Overrides:
      toString in class Object