Package aima.core.environment.vacuum

Examples of aima.core.environment.vacuum.VacuumEnvironment.step()


    tve.step(); // cleans location A
    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    tve.step(); // moves to lcation B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Dirty,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // cleans location B
View Full Code Here


    tve.step(); // moves to lcation B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Dirty,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // cleans location B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // NOOP
View Full Code Here

    tve.step(); // cleans location B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // NOOP
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(19, tve.getPerformanceMeasure(agent), 0.001);
  }
View Full Code Here

    tve.addAgent(agent, VacuumEnvironment.LOCATION_B);

    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(1, tve.getAgents().size());
    tve.step(); // cleans location B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // moves to lcation A
View Full Code Here

    tve.step(); // cleans location B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // moves to lcation A
    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Dirty,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    tve.step(); // cleans location A
View Full Code Here

    tve.step(); // moves to lcation A
    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Dirty,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    tve.step(); // cleans location A
    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    tve.step(); // NOOP
View Full Code Here

    tve.step(); // cleans location A
    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    tve.step(); // NOOP
    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
View Full Code Here

    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(1, tve.getAgents().size());
    tve.step(); // moves to location B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // NOOP
View Full Code Here

    tve.step(); // moves to location B
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_B));
    tve.step(); // NOOP
    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
View Full Code Here

    tve.addAgent(agent, VacuumEnvironment.LOCATION_B);

    Assert.assertEquals(VacuumEnvironment.LOCATION_B,
        tve.getAgentLocation(agent));
    Assert.assertEquals(1, tve.getAgents().size());
    tve.step(); // moves to location A
    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(VacuumEnvironment.LocationState.Clean,
        tve.getLocationState(VacuumEnvironment.LOCATION_A));
    tve.step(); // NOOP
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.