Class SasAgent
java.lang.Object
org.tweetyproject.agents.Agent
org.tweetyproject.agents.dialogues.structured.SasAgent
- Direct Known Subclasses:
OvercautiousArgumentationAgent
,TruthfulArgumentationAgent
This class represents an agent in a structured argumentation system.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionSasAgent
(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 TypeMethodDescriptionboolean
Checks whether this agent is a single-step argumentation agent, i.e.next
(Collection<? extends Perceivable> percepts) Determines the next action of this agent wrt.int
rank
(Collection<? extends Proposition> propositions) Ranks the given collection of propositions wrt.
-
Constructor Details
-
SasAgent
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 Details
-
next
Description copied from class:Agent
Determines the next action of this agent wrt. the given percepts. -
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.
-
rank
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.
-