
aima.core.agent.Agent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
package aima.core.agent;
/**
* Artificial Intelligence A Modern Approach (3rd Edition): Figure 2.1, page 35.
*
* Figure 2.1 Agents interact with environments through sensors and actuators.
*
* @author Ravi Mohan
* @author Ciaran O'Reilly
*/
public interface Agent extends EnvironmentObject {
/**
* Call the Agent's program, which maps any given percept sequences to an
* action.
*
* @param percept
* The current percept of a sequence perceived by the Agent.
* @return the Action to be taken in response to the currently perceived
* percept.
*/
Action execute(Percept percept);
/**
* Life-cycle indicator as to the liveness of an Agent.
*
* @return true if the Agent is to be considered alive, false otherwise.
*/
boolean isAlive();
/**
* Set the current liveness of the Agent.
*
* @param alive
* set to true if the Agent is to be considered alive, false
* otherwise.
*/
void setAlive(boolean alive);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy