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 net.sf.tweety.agents.AgentThis class represents an agent in a structured argumentation system.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description SasAgent(net.sf.tweety.arg.saf.syntax.StructuredArgumentationFramework view, UtilityFunction utility)Creates a new (non-single-step) SasAgent with the given (local) view and utility function.SasAgent(net.sf.tweety.arg.saf.syntax.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 net.sf.tweety.arg.saf.syntax.StructuredArgumentationFrameworkgetCommonView()Returns the common view of this agent.protected Set<net.sf.tweety.arg.dung.syntax.Argument>getPossibleArguments()Returns the set of arguments this agent may bring forward.protected UtilityFunctiongetUtilityFunction()Returns the utility function of this agent.protected net.sf.tweety.arg.saf.syntax.StructuredArgumentationFrameworkgetView()Returns the view of this agent.booleanisSingleStep()Checks whether this agent is a single-step argumentation agent, i.e.net.sf.tweety.agents.Executablenext(Collection<? extends net.sf.tweety.agents.Perceivable> percepts)intrank(Collection<? extends net.sf.tweety.logics.pl.syntax.Proposition> propositions)Ranks the given collection of propositions wrt.
-
-
-
Constructor Detail
-
SasAgent
public SasAgent(net.sf.tweety.arg.saf.syntax.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(net.sf.tweety.arg.saf.syntax.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 net.sf.tweety.agents.Executable next(Collection<? extends net.sf.tweety.agents.Perceivable> percepts)
- Specified by:
nextin classnet.sf.tweety.agents.Agent
-
getView
protected net.sf.tweety.arg.saf.syntax.StructuredArgumentationFramework getView()
Returns the view of this agent.- Returns:
- the view of this agent.
-
getCommonView
protected net.sf.tweety.arg.saf.syntax.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 Set<net.sf.tweety.arg.dung.syntax.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(Collection<? extends net.sf.tweety.logics.pl.syntax.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.
-
-