Package net.sf.tweety.agents
Interface Environment
-
- All Known Implementing Classes:
ArgumentationEnvironment,DeductiveEnvironment,LotteryArgumentationEnvironment,StructuredArgumentationSystem.SasEnvironment
public interface EnvironmentThis interface models an environment for agents, i.e. an entity that reacts on actions with percepts.- Author:
- Matthias Thimm
-
-
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.booleanreset()Resets the environment, i.e.
-
-
-
Method Detail
-
execute
java.util.Set<Perceivable> execute(Executable action)
Executes the given action and returns the resulting percepts.- Parameters:
action- an executable- Returns:
- a set of percepts.
-
execute
java.util.Set<Perceivable> execute(java.util.Collection<? extends Executable> actions)
Executes the given actions simultaneously and returns the resulting percepts.- Parameters:
actions- a collection of executables.- Returns:
- a set of percepts.
-
getPercepts
java.util.Set<Perceivable> getPercepts(Agent agent)
Retrieves the current percepts for the given agent.- Parameters:
agent- an agent.- Returns:
- a set of percepts perceivable for the given agent.
-
reset
boolean reset()
Resets the environment, i.e. brings it to its initialization state.- Returns:
- "true" iff reset was successful.
-
-