public interface Agent extends EnvironmentObject
Modifier and Type | Method and Description |
---|---|
Action |
execute(Percept percept)
Call the Agent's program, which maps any given percept sequences to an
action.
|
boolean |
isAlive()
Life-cycle indicator as to the liveness of an Agent.
|
void |
setAlive(boolean alive)
Set the current liveness of the Agent.
|
Action execute(Percept percept)
percept
- The current percept of a sequence perceived by the Agent.boolean isAlive()
void setAlive(boolean alive)
alive
- set to true if the Agent is to be considered alive, false
otherwise.