Skip to content

Commit

Permalink
Add Environment to AIMA4e
Browse files Browse the repository at this point in the history
Add Environment.java to AIMA4e

Add Environment.java to AIMA4e
  • Loading branch information
ritwik12 committed Mar 14, 2018
1 parent 58e515d commit 0229025
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Java implementation of algorithms from Russell and Norvig's "Artificial Intellig
<td><b>Name/Pseudocode (in book)</b></td>
<td><b>Implementation(s)</b></td>
</tr>
<tr>
<td>2.?</td>
<td>??</td>
<td>Environment</td>
<td><a href="core/src/main/java/aima/core/agent/basic/Environment.java">Environment</a></td>
</tr>
<tr>
<td>2.?</td>
<td>??</td>
Expand Down
34 changes: 34 additions & 0 deletions core/src/main/java/aima/core/agent/basic/Environment.java
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).
*/

}

0 comments on commit 0229025

Please sign in to comment.