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.ObjectAn agent is a possibly proactive entity situated in some environment.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameThe name of the agent.
-
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.StringgetName()Returns the name of this agent.abstract Executablenext(java.util.Collection<? extends Perceivable> percepts)Determines the next action of this agent wrt.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-