}
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);