Package srsim.simulator

Examples of srsim.simulator.SmartRoomSimulator.startSimulation()


public class SmartRoomSimulatorTest {

  @Test
  public void testStartStopSimulation() throws InterruptedException {
    SmartRoomSimulator simulator = new SmartRoomSimulator();
    simulator.startSimulation();
    Assert.assertTrue(simulator.isRunning());
    simulator.stopSimulation();
    Assert.assertFalse(simulator.isRunning());
  }
 
View Full Code Here


    heatingController.attachActuator(heatingActuator);
    heatingController.attachSensor(temperatureSensor);
    room.addActuator(heatingActuator);
    room.addSensor(temperatureSensor);
    room.addController(heatingController);
    simulator.startSimulation();
  }
 
 

}
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.