public abstract class Agent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
The name of the agent.
|
| Constructor and Description |
|---|
Agent(java.lang.String name)
Creates a new agent with the given name.
|
| Modifier and Type | Method and 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() |
public Agent(java.lang.String name)
name - some string.public java.lang.String getName()
public abstract Executable next(java.util.Collection<? extends Perceivable> percepts)
percepts - a collection of percepts.public java.lang.String toString()
toString in class java.lang.Object