Class Agent

  • Direct Known Subclasses:
    DummyAgent

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

      • Agent

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

      • 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.