Class ArguingAgent
- java.lang.Object
-
- net.sf.tweety.agents.Agent
-
- net.sf.tweety.agents.dialogues.oppmodels.ArguingAgent
-
public class ArguingAgent extends net.sf.tweety.agents.AgentThis class represent a general arguing agent with an belief state.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description ArguingAgent(GroundedGameSystem.AgentFaction faction, BeliefState beliefState)Create a new agent with the given name and belief state.
-
Method Summary
Modifier and Type Method Description BeliefStategetBeliefState()Returns the belief state of the agent.GroundedGameSystem.AgentFactiongetFaction()Returns the faction of the agent.protected doublegetUtility(DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> trace)Assess the given dialogue trace with the belief states utility function.net.sf.tweety.agents.Executablenext(Collection<? extends net.sf.tweety.agents.Perceivable> percepts)
-
-
-
Constructor Detail
-
ArguingAgent
public ArguingAgent(GroundedGameSystem.AgentFaction faction, BeliefState beliefState)
Create a new agent with the given name and belief state.- Parameters:
faction- the type of the agent.beliefState- a belief state
-
-
Method Detail
-
getFaction
public GroundedGameSystem.AgentFaction getFaction()
Returns the faction of the agent.- Returns:
- the faction of the agent.
-
getBeliefState
public BeliefState getBeliefState()
Returns the belief state of the agent.- Returns:
- the belief state of the agent.
-
next
public net.sf.tweety.agents.Executable next(Collection<? extends net.sf.tweety.agents.Perceivable> percepts)
- Specified by:
nextin classnet.sf.tweety.agents.Agent
-
getUtility
protected double getUtility(DialogueTrace<net.sf.tweety.arg.dung.syntax.Argument,net.sf.tweety.arg.dung.semantics.Extension> trace)
Assess the given dialogue trace with the belief states utility function.- Parameters:
trace- a dialogue trace- Returns:
- the utility of this agent for this dialog trace
-
-