Package de.hpi.eworld.visualizer.simulation.traci.commands.sent

Examples of de.hpi.eworld.visualizer.simulation.traci.commands.sent.SubscribeSimulationValueRetrivalCommandGenerator


   * Subscribe to the automatical retrival of simulation values after each step in SUMO.
   * The values currently contain the simulation time and list of loaded, started and arrived verhicles.
   * @throws Exception if the subscription returned an error
   */
  public void subscribeToSimulationValues() throws Exception {
    SubscribeSimulationValueRetrivalCommandGenerator simulationValue = new SubscribeSimulationValueRetrivalCommandGenerator(
        ModelManager.getInstance().getSimulationStartTime() * 1000, ModelManager.getInstance().getSimulationEndTime() * 1000);
    Message message = new Message(simulationValue);
    message.writeToStream(this.outputStream);
    Message response = Message.readFromStream(this.inputStream);
    for (Command command:response.getCommands()) {
View Full Code Here

TOP

Related Classes of de.hpi.eworld.visualizer.simulation.traci.commands.sent.SubscribeSimulationValueRetrivalCommandGenerator

Copyright © 2018 www.massapicom. 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.