Package net.sf.tweety.agents
Class Agent
- java.lang.Object
-
- net.sf.tweety.agents.Agent
-
- Direct Known Subclasses:
AbstractLotteryAgent
,ArguingAgent
,DummyAgent
,SasAgent
public abstract class Agent extends java.lang.Object
An agent is a possibly proactive entity situated in some environment.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description Agent(java.lang.String name)
Creates a new agent with the given name.
-
Method Summary
Modifier and Type Method 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()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of this agent.- Returns:
- the name of this agent.
-
next
public abstract Executable next(java.util.Collection<? extends Perceivable> percepts)
Determines the next action of this agent wrt. the given percepts.- Parameters:
percepts
- a collection of percepts.- Returns:
- an action.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-