use of aima.core.agent.Environment in project aima-java by aimacode.
the class TrivialVacuumDemo method main.
public static void main(String[] args) {
// create environment with random state of cleaning.
Environment env = new VacuumEnvironment();
EnvironmentView view = new SimpleEnvironmentView();
env.addEnvironmentView(view);
Agent a = null;
a = new ModelBasedReflexVacuumAgent();
// a = new ReflexVacuumAgent();
// a = new SimpleReflexVacuumAgent();
// a = new TableDrivenVacuumAgent();
env.addAgent(a);
env.step(16);
env.notifyViews("Performance=" + env.getPerformanceMeasure(a));
}
Aggregations