Class StructuredArgumentationSystem.SasEnvironment
- java.lang.Object
-
- net.sf.tweety.agents.dialogues.structured.StructuredArgumentationSystem.SasEnvironment
-
- All Implemented Interfaces:
Environment
- Enclosing class:
- StructuredArgumentationSystem
private static class StructuredArgumentationSystem.SasEnvironment extends java.lang.Object implements Environment
This class models an environment for structured argumentation systems.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private PerceivableStructuredArgumentationFramework
commonView
The common view of all agents.private PerceivableStructuredArgumentationFramework
saf
The underlying structured argumentation framework.
-
Constructor Summary
Constructors Constructor Description SasEnvironment(PerceivableStructuredArgumentationFramework saf)
Creates a new SasEnvironment based on the given SAF.
-
Method Summary
Modifier and Type Method Description java.util.Set<Perceivable>
execute(java.util.Collection<? extends Executable> actions)
Executes the given actions simultaneously and returns the resulting percepts.java.util.Set<Perceivable>
execute(Executable action)
Executes the given action and returns the resulting percepts.java.util.Set<Perceivable>
getPercepts(Agent agent)
Retrieves the current percepts for the given agent.boolean
reset()
Resets the environment, i.e.
-
-
-
Field Detail
-
commonView
private PerceivableStructuredArgumentationFramework commonView
The common view of all agents.
-
saf
private PerceivableStructuredArgumentationFramework saf
The underlying structured argumentation framework.
-
-
Constructor Detail
-
SasEnvironment
public SasEnvironment(PerceivableStructuredArgumentationFramework saf)
Creates a new SasEnvironment based on the given SAF.- Parameters:
saf
- a perceivable structured argumentation framework.
-
-
Method Detail
-
execute
public java.util.Set<Perceivable> execute(Executable action)
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
public java.util.Set<Perceivable> execute(java.util.Collection<? extends Executable> actions)
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
public java.util.Set<Perceivable> getPercepts(Agent agent)
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.
-
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.
-
-