Class SasAgent
- java.lang.Object
 - 
- net.sf.tweety.agents.Agent
 - 
- net.sf.tweety.agents.dialogues.structured.SasAgent
 
 
 
- 
- Direct Known Subclasses:
 OvercautiousArgumentationAgent,TruthfulArgumentationAgent
public abstract class SasAgent extends Agent
This class represents an agent in a structured argumentation system.- Author:
 - Matthias Thimm
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private StructuredArgumentationFrameworkcommonViewThe current state of the argumentation as perceived by all agents.private booleanisSingleStepIndicates whether this agent is a single-step argumentation agent, i.e.private UtilityFunctionutilityThe utility function of this agent.private StructuredArgumentationFrameworkviewThe current view of this agent on the overall argumentation, i.e. 
- 
Constructor Summary
Constructors Constructor Description SasAgent(StructuredArgumentationFramework view, UtilityFunction utility)Creates a new (non-single-step) SasAgent with the given (local) view and utility function.SasAgent(StructuredArgumentationFramework view, UtilityFunction utility, boolean isSingleStep)Creates a new SasAgent with the given (local) view and utility function. 
- 
Method Summary
Modifier and Type Method Description protected StructuredArgumentationFrameworkgetCommonView()Returns the common view of this agent.protected java.util.Set<Argument>getPossibleArguments()Returns the set of arguments this agent may bring forward.protected UtilityFunctiongetUtilityFunction()Returns the utility function of this agent.protected StructuredArgumentationFrameworkgetView()Returns the view of this agent.booleanisSingleStep()Checks whether this agent is a single-step argumentation agent, i.e.Executablenext(java.util.Collection<? extends Perceivable> percepts)Determines the next action of this agent wrt.intrank(java.util.Collection<? extends Proposition> propositions)Ranks the given collection of propositions wrt. 
 - 
 
- 
- 
Field Detail
- 
isSingleStep
private boolean isSingleStep
Indicates whether this agent is a single-step argumentation agent, i.e. whether he may bring forward only one argument at a time or multiple. 
- 
view
private StructuredArgumentationFramework view
The current view of this agent on the overall argumentation, i.e. its subjective beliefs on the all possible arguments and their relations. 
- 
commonView
private StructuredArgumentationFramework commonView
The current state of the argumentation as perceived by all agents. 
- 
utility
private UtilityFunction utility
The utility function of this agent. 
 - 
 
- 
Constructor Detail
- 
SasAgent
public SasAgent(StructuredArgumentationFramework view, UtilityFunction utility)
Creates a new (non-single-step) SasAgent with the given (local) view and utility function.- Parameters:
 view- the view of the agent on the argumentation.utility- a utility function.
 
- 
SasAgent
public SasAgent(StructuredArgumentationFramework view, UtilityFunction utility, boolean isSingleStep)
Creates a new SasAgent with the given (local) view and utility function.- Parameters:
 view- the view of the agent on the argumentation.utility- a utility function.isSingleStep- indicates whether this agent is a single-step argumentation agent, i.e. whether he may bring forward only one argument at a time or multiple.
 
 - 
 
- 
Method Detail
- 
next
public Executable next(java.util.Collection<? extends Perceivable> percepts)
Description copied from class:AgentDetermines the next action of this agent wrt. the given percepts. 
- 
getView
protected StructuredArgumentationFramework getView()
Returns the view of this agent.- Returns:
 - the view of this agent.
 
 
- 
getCommonView
protected StructuredArgumentationFramework getCommonView()
Returns the common view of this agent.- Returns:
 - the common view of this agent.
 
 
- 
getUtilityFunction
protected UtilityFunction getUtilityFunction()
Returns the utility function of this agent.- Returns:
 - the utility function of this agent.
 
 
- 
isSingleStep
public boolean isSingleStep()
Checks whether this agent is a single-step argumentation agent, i.e. whether he may bring forward only one argument at a time or multiple.- Returns:
 - "true" if this agent is a single-step agent.
 
 
- 
getPossibleArguments
protected java.util.Set<Argument> getPossibleArguments()
Returns the set of arguments this agent may bring forward.- Returns:
 - The set of arguments this agent may bring forward.
 
 
- 
rank
public int rank(java.util.Collection<? extends Proposition> propositions)
Ranks the given collection of propositions wrt. this agent's utility function.- Parameters:
 propositions- a collection of propositions.- Returns:
 - the rank of the given collection of propositions wrt. this agent's utility function.
 
 
 - 
 
 -