Package de.hpi.eworld.visualizer.model

Examples of de.hpi.eworld.visualizer.model.VisualizerTrafficLight


            }
           
            angle = -angle;
            Point2D position = new Point2D.Double(center.getX() + 5 * normalized.getX(), center.getY() + 5 * normalized.getY());
           
            VisualizerTrafficLight visualizerTrafficLight = new VisualizerTrafficLight(position, angle);
            localMap.put(precRoadID, visualizerTrafficLight);
            networkViewPlugin.addVolatileModelElement(visualizerTrafficLight);
          }
        } catch (TraciException e) {
          log.error("TraCI reported an error while trying to access traffic light: " + trafficLight);
View Full Code Here


    for(Integer key : trafficLights.keySet()) {
      Map<String, VisualizerTrafficLight> localMap = trafficLights.get(key);
     
      try {
        for(TrafficLightPhase phase : traciClient.getTrafficLightStatus(key)) {
          VisualizerTrafficLight visualizerTrafficLight = localMap.get(new String(phase.getPrecRoad()));
          visualizerTrafficLight.setPhase(phase);
        }
      } catch (TraciException e) {
        log.error("TraCI reported an error while trying to update the status for traffic light: " + key);
      }
    }
View Full Code Here

TOP

Related Classes of de.hpi.eworld.visualizer.model.VisualizerTrafficLight

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.