Class Agent

    • Constructor Summary

      Constructors 
      Constructor Description
      Agent​(java.lang.String name)
      Creates a new agent with the given name.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of this agent.
      abstract Executable next​(java.util.Collection<? extends Perceivable> percepts)
      Determines the next action of this agent wrt.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Agent

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

      • getName

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

        public abstract Executable next​(java.util.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object