Examples of addAgent()


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

  @Test
  public void testDirtyDirty() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Dirty,
        VacuumEnvironment.LocationState.Dirty);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.step(8);
View Full Code Here

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

  @Test
  public void testCleanClean() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Clean,
        VacuumEnvironment.LocationState.Clean);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testCleanDirty() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Clean,
        VacuumEnvironment.LocationState.Dirty);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testDirtyClean() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Dirty,
        VacuumEnvironment.LocationState.Clean);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testDirtyDirty() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Dirty,
        VacuumEnvironment.LocationState.Dirty);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testCleanClean() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Clean,
        VacuumEnvironment.LocationState.Clean);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testCleanDirty() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Clean,
        VacuumEnvironment.LocationState.Dirty);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testDirtyClean() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Dirty,
        VacuumEnvironment.LocationState.Clean);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testDirtyDirty() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Dirty,
        VacuumEnvironment.LocationState.Dirty);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    tve.addEnvironmentView(new EnvironmentViewActionTracker(envChanges));

    tve.stepUntilDone();
View Full Code Here

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

  @Test
  public void testAgentActionNumber1() {
    VacuumEnvironment tve = new VacuumEnvironment(
        VacuumEnvironment.LocationState.Dirty,
        VacuumEnvironment.LocationState.Dirty);
    tve.addAgent(agent, VacuumEnvironment.LOCATION_A);

    Assert.assertEquals(VacuumEnvironment.LOCATION_A,
        tve.getAgentLocation(agent));
    Assert.assertEquals(1, tve.getAgents().size());
    tve.step(); // cleans location A
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.