Package srsim.domain

Examples of srsim.domain.Simulation.step()


    room.addController(controller);
    room.addSensor(sensor);
    double temperature = room.getLocalContext().getTemperature();
    double previousTemperature = temperature;
    while (temperature < targetTemperature) {
      simulation.step();
      previousTemperature = temperature;
      temperature = room.getLocalContext().getTemperature();
      Assert.assertTrue(temperature >= previousTemperature);
    }
  }
View Full Code Here


    room.addController(controller);
    room.addSensor(sensor);
    double brightness = room.getLocalContext().getBrightness();
    double previousBrightness = brightness;
    while (brightness < targetBrightness) {
      simulation.step();
      previousBrightness = brightness;
      brightness = room.getLocalContext().getBrightness();
      Assert.assertTrue(brightness > previousBrightness);
    }
  }
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.