-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Environment.java to AIMA4e Add Environment.java to AIMA4e
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package aima.core.agent.basic; | ||
|
||
import aima.core.agent.api.Agent; | ||
import java.util.List; | ||
|
||
/** | ||
* Possible environments in which Agent(s) can percieve and act. | ||
* | ||
* @author Ritwik Sharma | ||
*/ | ||
public interface Environment { | ||
|
||
List<Agent> getAgents(); | ||
|
||
/** | ||
* Returns the Agent(s) belonging to this Environment. | ||
*/ | ||
void addAgent(Agent agent); | ||
|
||
/** | ||
* Add an agent to the Environment. | ||
*/ | ||
void removeAgent(Agent agent); | ||
|
||
/** | ||
* Remove an agent from the environment. | ||
*/ | ||
boolean isDone(); | ||
|
||
/** | ||
* Returns "true" if the Environment is finished with its current task(s). | ||
*/ | ||
|
||
} |