Search in sources :

Example 16 with VacuumEnvironmentViewActionTracker

use of aima.core.environment.vacuum.VacuumEnvironmentViewActionTracker in project aima-java by aimacode.

the class ModelBasedReflexVacuumAgentTest method testCleanClean.

@Test
public void testCleanClean() {
    VacuumEnvironment tve = new VacuumEnvironment(VacuumEnvironment.LocationState.Clean, VacuumEnvironment.LocationState.Clean);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);
    tve.addEnvironmentView(new VacuumEnvironmentViewActionTracker(envChanges));
    tve.stepUntilDone();
    Assert.assertEquals("Action[name==Right]Action[name==NoOp]", envChanges.toString());
}
Also used : VacuumEnvironmentViewActionTracker(aima.core.environment.vacuum.VacuumEnvironmentViewActionTracker) VacuumEnvironment(aima.core.environment.vacuum.VacuumEnvironment) Test(org.junit.Test)

Aggregations

VacuumEnvironment (aima.core.environment.vacuum.VacuumEnvironment)16 VacuumEnvironmentViewActionTracker (aima.core.environment.vacuum.VacuumEnvironmentViewActionTracker)16 Test (org.junit.Test)16