use of aima.core.environment.vacuum.ModelBasedReflexVacuumAgent 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));
}
use of aima.core.environment.vacuum.ModelBasedReflexVacuumAgent in project aima-java by aimacode.
the class VacuumEnvironmentTest method setUp.
@Before
public void setUp() {
tve = new VacuumEnvironment(VacuumEnvironment.LocationState.Dirty, VacuumEnvironment.LocationState.Dirty);
tve2 = new VacuumEnvironment(VacuumEnvironment.LocationState.Clean, VacuumEnvironment.LocationState.Clean);
tve3 = new VacuumEnvironment(VacuumEnvironment.LocationState.Clean, VacuumEnvironment.LocationState.Dirty);
tve4 = new VacuumEnvironment(VacuumEnvironment.LocationState.Dirty, VacuumEnvironment.LocationState.Clean);
a = new ModelBasedReflexVacuumAgent();
}
use of aima.core.environment.vacuum.ModelBasedReflexVacuumAgent in project aima-java by aimacode.
the class ModelBasedReflexVacuumAgentTest method setUp.
@Before
public void setUp() {
agent = new ModelBasedReflexVacuumAgent();
envChanges = new StringBuilder();
}
Aggregations