public abstract class Agent extends Object
| Constructor and Description |
|---|
Agent(String name)
Creates a new agent with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this agent.
|
abstract Executable |
next(Collection<? extends Perceivable> percepts)
Determines the next action of this agent wrt.
|
String |
toString() |
public Agent(String name)
name - some string.public String getName()
public abstract Executable next(Collection<? extends Perceivable> percepts)
percepts - a collection of percepts.Copyright © 2018. All rights reserved.