Package org.tweetyproject.agents
Interface Environment
- All Known Implementing Classes:
ArgumentationEnvironment
,DeductiveEnvironment
,LotteryArgumentationEnvironment
public interface Environment
This interface models an environment for agents, i.e.
an entity that reacts on actions with percepts.
- Author:
- Matthias Thimm
-
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.getPercepts
(Agent agent) Retrieves the current percepts for the given agent.boolean
reset()
Resets the environment, i.e.
-
Method Details
-
execute
Executes the given action and returns the resulting percepts.- Parameters:
action
- an executable- Returns:
- a set of percepts.
-
execute
Executes the given actions simultaneously and returns the resulting percepts.- Parameters:
actions
- a collection of executables.- Returns:
- a set of percepts.
-
getPercepts
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.
-