Class ArgumentationEnvironment
java.lang.Object
org.tweetyproject.agents.dialogues.ArgumentationEnvironment
- All Implemented Interfaces:
Environment
,Perceivable
This class models the environment for agents in argumentation games.
It consists of the universal Dung theory used
for argumentation (but not completely revealed to all agents) and
the current trace of disclosed arguments.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionArgumentationEnvironment
(DungTheory universalTheory) Creates a new grounded environment. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(Collection<? extends Executable> actions) Executes the given actions simultaneously and returns the resulting percepts.execute
(Executable action) Executes the given action and returns the resulting percepts.Returns the current dialogue trace.getPerceivedDungTheory
(Extension<DungTheory> arguments) Returns the view of the universal Dung theory restricted to the given set of arguments.getPercepts
(Agent agent) Retrieves the current percepts for the given agent.boolean
reset()
Resets the environment, i.e.
-
Constructor Details
-
ArgumentationEnvironment
Creates a new grounded environment.- Parameters:
universalTheory
- the universal Dung theory used for argumentation.
-
-
Method Details
-
execute
Description copied from interface:Environment
Executes the given action and returns the resulting percepts.- Specified by:
execute
in interfaceEnvironment
- Parameters:
action
- an executable- Returns:
- a set of percepts.
-
execute
Description copied from interface:Environment
Executes the given actions simultaneously and returns the resulting percepts.- Specified by:
execute
in interfaceEnvironment
- Parameters:
actions
- a collection of executables.- Returns:
- a set of percepts.
-
getPercepts
Description copied from interface:Environment
Retrieves the current percepts for the given agent.- Specified by:
getPercepts
in interfaceEnvironment
- Parameters:
agent
- an agent.- Returns:
- a set of percepts perceivable for the given agent.
-
getDialogueTrace
Returns the current dialogue trace.- Returns:
- the current dialogue trace.
-
reset
public boolean reset()Description copied from interface:Environment
Resets the environment, i.e. brings it to its initialization state.- Specified by:
reset
in interfaceEnvironment
- Returns:
- "true" iff reset was successful.
-
getPerceivedDungTheory
Returns the view of the universal Dung theory restricted to the given set of arguments.- Parameters:
arguments
- a set of arguments.- Returns:
- the projection of the universal theory.
-