Package net.sf.tweety.agents
Class Agent
- java.lang.Object
-
- net.sf.tweety.agents.Agent
-
- Direct Known Subclasses:
DummyAgent
public abstract class Agent extends Object
An agent is a possibly proactive entity situated in some environment.- Author:
- Matthias Thimm
-
-
Method Summary
Modifier and Type Method Description StringgetName()Returns the name of this agent.abstract Executablenext(Collection<? extends Perceivable> percepts)Determines the next action of this agent wrt.StringtoString()
-
-
-
Constructor Detail
-
Agent
public Agent(String name)
Creates a new agent with the given name.- Parameters:
name- some string.
-
-
Method Detail
-
getName
public String getName()
Returns the name of this agent.- Returns:
- the name of this agent.
-
next
public abstract Executable next(Collection<? extends Perceivable> percepts)
Determines the next action of this agent wrt. the given percepts.- Parameters:
percepts- a collection of percepts.- Returns:
- an action.
-
-