1 /****************************************************************************/ 2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo 3 // Copyright (C) 2017-2018 German Aerospace Center (DLR) and others. 4 // TraaS module 5 // Copyright (C) 2016-2017 Dresden University of Technology 6 // This program and the accompanying materials 7 // are made available under the terms of the Eclipse Public License v2.0 8 // which accompanies this distribution, and is available at 9 // http://www.eclipse.org/legal/epl-v20.html 10 // SPDX-License-Identifier: EPL-2.0 11 /****************************************************************************/ 12 /// @file Traci.java 13 /// @author Mario Krumnow 14 /// @author Evamarie Wiessner 15 /// @date 2016 16 /// @version $Id$ 17 /// 18 // 19 /****************************************************************************/ 20 package de.tudresden.ws; 21 22 import javax.jws.WebMethod; 23 import javax.jws.WebParam; 24 25 import de.tudresden.sumo.cmd.Edge; 26 import de.tudresden.sumo.cmd.Gui; 27 import de.tudresden.sumo.cmd.Inductionloop; 28 import de.tudresden.sumo.cmd.Junction; 29 import de.tudresden.sumo.cmd.Lanearea; 30 import de.tudresden.sumo.cmd.Lane; 31 import de.tudresden.sumo.cmd.Multientryexit; 32 import de.tudresden.sumo.cmd.Person; 33 import de.tudresden.sumo.cmd.Poi; 34 import de.tudresden.sumo.cmd.Polygon; 35 import de.tudresden.sumo.cmd.Route; 36 import de.tudresden.sumo.cmd.Simulation; 37 import de.tudresden.sumo.cmd.Trafficlight; 38 import de.tudresden.sumo.cmd.Vehicle; 39 import de.tudresden.sumo.cmd.Vehicletype; 40 import de.tudresden.ws.container.SumoBoundingBox; 41 import de.tudresden.ws.container.SumoColor; 42 import de.tudresden.ws.container.SumoGeometry; 43 import de.tudresden.ws.container.SumoLinkList; 44 import de.tudresden.ws.container.SumoPosition2D; 45 import de.tudresden.ws.container.SumoPosition3D; 46 import de.tudresden.ws.container.SumoStopFlags; 47 import de.tudresden.ws.container.SumoStringList; 48 import de.tudresden.ws.container.SumoTLSProgram; 49 import de.tudresden.ws.container.SumoTLSController; 50 import de.tudresden.ws.container.SumoVehicleData; 51 import de.tudresden.ws.log.Log; 52 import de.tudresden.sumo.util.ConvertHelper; 53 import de.tudresden.sumo.util.Sumo; 54 55 /** 56 * 57 * @author Mario Krumnow 58 * 59 */ 60 61 public class Traci{ 62 63 Sumo sumo; 64 Log logger; 65 ConvertHelper helper; 66 init(Sumo sumo, Log logger, ConvertHelper helper)67 public void init(Sumo sumo, Log logger, ConvertHelper helper){ 68 this.sumo=sumo; 69 this.logger=logger; 70 this.helper=helper; 71 } 72 73 /* 74 * Setter methods 75 */ 76 77 @WebMethod(action="Edge: adapt the Traveltime") Edge_adaptTraveltime(@ebParamname = R) String edgeID, @WebParam(name = R) int time)78 public void Edge_adaptTraveltime(@WebParam(name = "edgeID") String edgeID, @WebParam(name = "time") int time){ 79 this.sumo.set_cmd(Edge.adaptTraveltime(edgeID, time)); 80 } 81 82 @WebMethod(action="Edge: setEffort") Edge_setEffort(@ebParamname = R) String edgeID, @WebParam(name = R) double effort)83 public void Edge_setEffort(@WebParam(name = "edgeID") String edgeID, @WebParam(name = "effort") double effort){ 84 this.sumo.set_cmd(Edge.setEffort(edgeID, effort)); 85 } 86 87 @WebMethod(action="Edge: Set a new maximum speed (in m/s) for all lanes of the edge..") Edge_setMaxSpeed(@ebParamname = R) String edgeID, @WebParam(name = R) double speed)88 public void Edge_setMaxSpeed(@WebParam(name = "edgeID") String edgeID, @WebParam(name = "speed") double speed){ 89 this.sumo.set_cmd(Edge.setMaxSpeed(edgeID, speed)); 90 } 91 92 @WebMethod(action="Vehicle: add") Vehicle_add(@ebParamname = R) String vehID, @WebParam(name = R) String typeID, @WebParam(name = R) String routeID, @WebParam(name = R) int depart, @WebParam(name = R) double pos, @WebParam(name = R) double speed, @WebParam(name = R) byte lane)93 public void Vehicle_add(@WebParam(name = "vehID") String vehID, @WebParam(name = "typeID") String typeID, @WebParam(name = "routeID") String routeID, @WebParam(name = "depart") int depart, @WebParam(name = "pos") double pos, @WebParam(name = "speed") double speed, @WebParam(name = "lane") byte lane){ 94 this.sumo.set_cmd(Vehicle.add(vehID, typeID, routeID, depart, pos, speed, lane)); 95 } 96 97 @WebMethod(action="Vehicle: changeLane") Vehicle_changeLane(@ebParamname = R) String vehID, @WebParam(name = R) byte laneIndex, @WebParam(name = R) int duration)98 public void Vehicle_changeLane(@WebParam(name = "vehID") String vehID, @WebParam(name = "laneIndex") byte laneIndex, @WebParam(name = "duration") int duration){ 99 this.sumo.set_cmd(Vehicle.changeLane(vehID, laneIndex, duration)); 100 } 101 102 @WebMethod(action="Vehicle: changeTarget") Vehicle_changeTarget(@ebParamname = R) String vehID, @WebParam(name = R) String edgeID)103 public void Vehicle_changeTarget(@WebParam(name = "vehID") String vehID, @WebParam(name = "edgeID") String edgeID){ 104 this.sumo.set_cmd(Vehicle.changeTarget(vehID, edgeID)); 105 } 106 107 @WebMethod(action="Vehicle: moveTo") Vehicle_moveTo(@ebParamname = R) String vehID, @WebParam(name = R) String laneID, @WebParam(name = R) double pos)108 public void Vehicle_moveTo(@WebParam(name = "vehID") String vehID, @WebParam(name = "laneID") String laneID, @WebParam(name = "pos") double pos){ 109 this.sumo.set_cmd(Vehicle.moveTo(vehID, laneID, pos)); 110 } 111 112 @WebMethod(action="Vehicle: Remove vehicle with the given ID for the give reason. Reasons are defined in module constants and start with REMOVE_") Vehicle_remove(@ebParamname = R) String vehID, @WebParam(name = R) byte reason)113 public void Vehicle_remove(@WebParam(name = "vehID") String vehID, @WebParam(name = "reason") byte reason){ 114 this.sumo.set_cmd(Vehicle.remove(vehID, reason)); 115 } 116 117 @WebMethod(action="Vehicle: rerouteEffort") Vehicle_rerouteEffort(@ebParamname = R) String vehID)118 public void Vehicle_rerouteEffort(@WebParam(name = "vehID") String vehID){ 119 this.sumo.set_cmd(Vehicle.rerouteEffort(vehID)); 120 } 121 122 @WebMethod(action="Vehicle: rerouteTraveltime") Vehicle_rerouteTraveltime(@ebParamname = R) String vehID)123 public void Vehicle_rerouteTraveltime(@WebParam(name = "vehID") String vehID){ 124 this.sumo.set_cmd(Vehicle.rerouteTraveltime(vehID)); 125 } 126 127 @WebMethod(action="Vehicle: setAccel") Vehicle_setAccel(@ebParamname = R) String vehID, @WebParam(name = R) double accel)128 public void Vehicle_setAccel(@WebParam(name = "vehID") String vehID, @WebParam(name = "accel") double accel){ 129 this.sumo.set_cmd(Vehicle.setAccel(vehID, accel)); 130 } 131 132 @WebMethod(action="Vehicle: setAdaptedTraveltime") Vehicle_setAdaptedTraveltime(@ebParamname = R) String vehID, @WebParam(name = R) int begTime, @WebParam(name = R) int endTime, @WebParam(name = R) String edgeID, @WebParam(name = R) double time)133 public void Vehicle_setAdaptedTraveltime(@WebParam(name = "vehID") String vehID, @WebParam(name = "begTime") int begTime, @WebParam(name = "endTime") int endTime, @WebParam(name = "edgeID") String edgeID, @WebParam(name = "time") double time){ 134 this.sumo.set_cmd(Vehicle.setAdaptedTraveltime(vehID, begTime, endTime, edgeID, time)); 135 } 136 137 @WebMethod(action="Vehicle: setColor") Vehicle_setColor(@ebParamname = R) String vehID, @WebParam(name = R) SumoColor color)138 public void Vehicle_setColor(@WebParam(name = "vehID") String vehID, @WebParam(name = "color") SumoColor color){ 139 this.sumo.set_cmd(Vehicle.setColor(vehID, color)); 140 } 141 142 @WebMethod(action="Vehicle: setDecel") Vehicle_setDecel(@ebParamname = R) String vehID, @WebParam(name = R) double decel)143 public void Vehicle_setDecel(@WebParam(name = "vehID") String vehID, @WebParam(name = "decel") double decel){ 144 this.sumo.set_cmd(Vehicle.setDecel(vehID, decel)); 145 } 146 147 @WebMethod(action="Vehicle: setEffort") Vehicle_setEffort(@ebParamname = R) String vehID, @WebParam(name = R) int begTime, @WebParam(name = R) int endTime, @WebParam(name = R) String edgeID, @WebParam(name = R) double effort)148 public void Vehicle_setEffort(@WebParam(name = "vehID") String vehID, @WebParam(name = "begTime") int begTime, @WebParam(name = "endTime") int endTime, @WebParam(name = "edgeID") String edgeID, @WebParam(name = "effort") double effort){ 149 this.sumo.set_cmd(Vehicle.setEffort(vehID, begTime, endTime, edgeID, effort)); 150 } 151 152 @WebMethod(action="Vehicle: setEmissionClass") Vehicle_setEmissionClass(@ebParamname = R) String vehID, @WebParam(name = R) String clazz)153 public void Vehicle_setEmissionClass(@WebParam(name = "vehID") String vehID, @WebParam(name = "clazz") String clazz){ 154 this.sumo.set_cmd(Vehicle.setEmissionClass(vehID, clazz)); 155 } 156 157 @WebMethod(action="Vehicle: setImperfection") Vehicle_setImperfection(@ebParamname = R) String vehID, @WebParam(name = R) double imperfection)158 public void Vehicle_setImperfection(@WebParam(name = "vehID") String vehID, @WebParam(name = "imperfection") double imperfection){ 159 this.sumo.set_cmd(Vehicle.setImperfection(vehID, imperfection)); 160 } 161 162 @WebMethod(action="Vehicle: setLength") Vehicle_setLength(@ebParamname = R) String vehID, @WebParam(name = R) double length)163 public void Vehicle_setLength(@WebParam(name = "vehID") String vehID, @WebParam(name = "length") double length){ 164 this.sumo.set_cmd(Vehicle.setLength(vehID, length)); 165 } 166 167 @WebMethod(action="Vehicle: setMaxSpeed") Vehicle_setMaxSpeed(@ebParamname = R) String vehID, @WebParam(name = R) double speed)168 public void Vehicle_setMaxSpeed(@WebParam(name = "vehID") String vehID, @WebParam(name = "speed") double speed){ 169 this.sumo.set_cmd(Vehicle.setMaxSpeed(vehID, speed)); 170 } 171 172 @WebMethod(action="Vehicle: setMinGap") Vehicle_setMinGap(@ebParamname = R) String vehID, @WebParam(name = R) double minGap)173 public void Vehicle_setMinGap(@WebParam(name = "vehID") String vehID, @WebParam(name = "minGap") double minGap){ 174 this.sumo.set_cmd(Vehicle.setMinGap(vehID, minGap)); 175 } 176 177 @WebMethod(action="Vehicle: setRouteID") Vehicle_setRouteID(@ebParamname = R) String vehID, @WebParam(name = R) String routeID)178 public void Vehicle_setRouteID(@WebParam(name = "vehID") String vehID, @WebParam(name = "routeID") String routeID){ 179 this.sumo.set_cmd(Vehicle.setRouteID(vehID, routeID)); 180 } 181 182 @WebMethod(action="Vehicle: setShapeClass") Vehicle_setShapeClass(@ebParamname = R) String vehID, @WebParam(name = R) String clazz)183 public void Vehicle_setShapeClass(@WebParam(name = "vehID") String vehID, @WebParam(name = "clazz") String clazz){ 184 this.sumo.set_cmd(Vehicle.setShapeClass(vehID, clazz)); 185 } 186 187 @WebMethod(action="Vehicle: setSignals") Vehicle_setSignals(@ebParamname = R) String vehID, @WebParam(name = R) int signals)188 public void Vehicle_setSignals(@WebParam(name = "vehID") String vehID, @WebParam(name = "signals") int signals){ 189 this.sumo.set_cmd(Vehicle.setSignals(vehID, signals)); 190 } 191 192 @WebMethod(action="Vehicle: setSpeed") Vehicle_setSpeed(@ebParamname = R) String vehID, @WebParam(name = R) double speed)193 public void Vehicle_setSpeed(@WebParam(name = "vehID") String vehID, @WebParam(name = "speed") double speed){ 194 this.sumo.set_cmd(Vehicle.setSpeed(vehID, speed)); 195 } 196 197 @WebMethod(action="Vehicle: setSpeedDeviation") Vehicle_setSpeedDeviation(@ebParamname = R) String vehID, @WebParam(name = R) double deviation)198 public void Vehicle_setSpeedDeviation(@WebParam(name = "vehID") String vehID, @WebParam(name = "deviation") double deviation){ 199 this.sumo.set_cmd(Vehicle.setSpeedDeviation(vehID, deviation)); 200 } 201 202 @WebMethod(action="Vehicle: setSpeedFactor") Vehicle_setSpeedFactor(@ebParamname = R) String vehID, @WebParam(name = R) double factor)203 public void Vehicle_setSpeedFactor(@WebParam(name = "vehID") String vehID, @WebParam(name = "factor") double factor){ 204 this.sumo.set_cmd(Vehicle.setSpeedFactor(vehID, factor)); 205 } 206 207 @WebMethod(action="Vehicle: setStop") Vehicle_setStop(@ebParamname = R) String vehID, @WebParam(name = R) String edgeID, @WebParam(name = R) double pos, @WebParam(name = R) byte laneIndex, @WebParam(name = R) int duration, @WebParam(name = R) SumoStopFlags stopType)208 public void Vehicle_setStop(@WebParam(name = "vehID") String vehID, @WebParam(name = "edgeID") String edgeID, @WebParam(name = "pos") double pos, @WebParam(name = "laneIndex") byte laneIndex, @WebParam(name = "duration") int duration, @WebParam(name = "stopType") SumoStopFlags stopType){ 209 this.sumo.set_cmd(Vehicle.setStop(vehID, edgeID, pos, laneIndex, duration, stopType)); 210 } 211 212 @WebMethod(action="Vehicle: setResume") Vehicle_resume(@ebParamname = R) String vehID)213 public void Vehicle_resume(@WebParam(name = "vehID") String vehID){ 214 this.sumo.set_cmd(Vehicle.resume(vehID)); 215 } 216 217 @WebMethod(action="Vehicle: setTau") Vehicle_setTau(@ebParamname = R) String vehID, @WebParam(name = R) double tau)218 public void Vehicle_setTau(@WebParam(name = "vehID") String vehID, @WebParam(name = "tau") double tau){ 219 this.sumo.set_cmd(Vehicle.setTau(vehID, tau)); 220 } 221 222 @WebMethod(action="Vehicle: setVehicleClass") Vehicle_setVehicleClass(@ebParamname = R) String vehID, @WebParam(name = R) String clazz)223 public void Vehicle_setVehicleClass(@WebParam(name = "vehID") String vehID, @WebParam(name = "clazz") String clazz){ 224 this.sumo.set_cmd(Vehicle.setVehicleClass(vehID, clazz)); 225 } 226 227 @WebMethod(action="Vehicle: setWidth") Vehicle_setWidth(@ebParamname = R) String vehID, @WebParam(name = R) double width)228 public void Vehicle_setWidth(@WebParam(name = "vehID") String vehID, @WebParam(name = "width") double width){ 229 this.sumo.set_cmd(Vehicle.setWidth(vehID, width)); 230 } 231 232 @WebMethod(action="Trafficlights: setCompleteRedYellowGreenDefinition") Trafficlights_setCompleteRedYellowGreenDefinition(@ebParamname = R) String tlsID, @WebParam(name = R) SumoTLSProgram tls)233 public void Trafficlights_setCompleteRedYellowGreenDefinition(@WebParam(name = "tlsID") String tlsID, @WebParam(name = "tls") SumoTLSProgram tls){ 234 this.sumo.set_cmd(Trafficlight.setCompleteRedYellowGreenDefinition(tlsID, tls)); 235 } 236 237 @WebMethod(action="Trafficlights: setPhase") Trafficlights_setPhase(@ebParamname = R) String tlsID, @WebParam(name = R) int index)238 public void Trafficlights_setPhase(@WebParam(name = "tlsID") String tlsID, @WebParam(name = "index") int index){ 239 this.sumo.set_cmd(Trafficlight.setPhase(tlsID, index)); 240 } 241 242 @WebMethod(action="Trafficlights: setPhaseDuration") Trafficlights_setPhaseDuration(@ebParamname = R) String tlsID, @WebParam(name = R) int phaseDuration)243 public void Trafficlights_setPhaseDuration(@WebParam(name = "tlsID") String tlsID, @WebParam(name = "phaseDuration") int phaseDuration){ 244 this.sumo.set_cmd(Trafficlight.setPhaseDuration(tlsID, phaseDuration)); 245 } 246 247 @WebMethod(action="Trafficlights: setProgram") Trafficlights_setProgram(@ebParamname = R) String tlsID, @WebParam(name = R) String programID)248 public void Trafficlights_setProgram(@WebParam(name = "tlsID") String tlsID, @WebParam(name = "programID") String programID){ 249 this.sumo.set_cmd(Trafficlight.setProgram(tlsID, programID)); 250 } 251 252 @WebMethod(action="Trafficlights: setRedYellowGreenState") Trafficlights_setRedYellowGreenState(@ebParamname = R) String tlsID, @WebParam(name = R) String state)253 public void Trafficlights_setRedYellowGreenState(@WebParam(name = "tlsID") String tlsID, @WebParam(name = "state") String state){ 254 this.sumo.set_cmd(Trafficlight.setRedYellowGreenState(tlsID, state)); 255 } 256 257 @WebMethod(action="Vehicletype: setAccel") Vehicletype_setAccel(@ebParamname = R) String typeID, @WebParam(name = R) double accel)258 public void Vehicletype_setAccel(@WebParam(name = "typeID") String typeID, @WebParam(name = "accel") double accel){ 259 this.sumo.set_cmd(Vehicletype.setAccel(typeID, accel)); 260 } 261 262 @WebMethod(action="Vehicletype: setColor") Vehicletype_setColor(@ebParamname = R) String typeID, @WebParam(name = R) SumoColor color)263 public void Vehicletype_setColor(@WebParam(name = "typeID") String typeID, @WebParam(name = "color") SumoColor color){ 264 this.sumo.set_cmd(Vehicletype.setColor(typeID, color)); 265 } 266 267 @WebMethod(action="Vehicletype: setDecel") Vehicletype_setDecel(@ebParamname = R) String typeID, @WebParam(name = R) double decel)268 public void Vehicletype_setDecel(@WebParam(name = "typeID") String typeID, @WebParam(name = "decel") double decel){ 269 this.sumo.set_cmd(Vehicletype.setDecel(typeID, decel)); 270 } 271 272 @WebMethod(action="Vehicletype: setEmissionClass") Vehicletype_setEmissionClass(@ebParamname = R) String typeID, @WebParam(name = R) String clazz)273 public void Vehicletype_setEmissionClass(@WebParam(name = "typeID") String typeID, @WebParam(name = "clazz") String clazz){ 274 this.sumo.set_cmd(Vehicletype.setEmissionClass(typeID, clazz)); 275 } 276 277 @WebMethod(action="Vehicletype: setImperfection") Vehicletype_setImperfection(@ebParamname = R) String typeID, @WebParam(name = R) double imperfection)278 public void Vehicletype_setImperfection(@WebParam(name = "typeID") String typeID, @WebParam(name = "imperfection") double imperfection){ 279 this.sumo.set_cmd(Vehicletype.setImperfection(typeID, imperfection)); 280 } 281 282 @WebMethod(action="Vehicletype: setLength") Vehicletype_setLength(@ebParamname = R) String typeID, @WebParam(name = R) double length)283 public void Vehicletype_setLength(@WebParam(name = "typeID") String typeID, @WebParam(name = "length") double length){ 284 this.sumo.set_cmd(Vehicletype.setLength(typeID, length)); 285 } 286 287 @WebMethod(action="Vehicletype: setMaxSpeed") Vehicletype_setMaxSpeed(@ebParamname = R) String typeID, @WebParam(name = R) double speed)288 public void Vehicletype_setMaxSpeed(@WebParam(name = "typeID") String typeID, @WebParam(name = "speed") double speed){ 289 this.sumo.set_cmd(Vehicletype.setMaxSpeed(typeID, speed)); 290 } 291 292 @WebMethod(action="Vehicletype: setMinGap") Vehicletype_setMinGap(@ebParamname = R) String typeID, @WebParam(name = R) double minGap)293 public void Vehicletype_setMinGap(@WebParam(name = "typeID") String typeID, @WebParam(name = "minGap") double minGap){ 294 this.sumo.set_cmd(Vehicletype.setMinGap(typeID, minGap)); 295 } 296 297 @WebMethod(action="Vehicletype: setShapeClass") Vehicletype_setShapeClass(@ebParamname = R) String typeID, @WebParam(name = R) String clazz)298 public void Vehicletype_setShapeClass(@WebParam(name = "typeID") String typeID, @WebParam(name = "clazz") String clazz){ 299 this.sumo.set_cmd(Vehicletype.setShapeClass(typeID, clazz)); 300 } 301 302 @WebMethod(action="Vehicletype: setSpeedDeviation") Vehicletype_setSpeedDeviation(@ebParamname = R) String typeID, @WebParam(name = R) double deviation)303 public void Vehicletype_setSpeedDeviation(@WebParam(name = "typeID") String typeID, @WebParam(name = "deviation") double deviation){ 304 this.sumo.set_cmd(Vehicletype.setSpeedDeviation(typeID, deviation)); 305 } 306 307 @WebMethod(action="Vehicletype: setSpeedFactor") Vehicletype_setSpeedFactor(@ebParamname = R) String typeID, @WebParam(name = R) double factor)308 public void Vehicletype_setSpeedFactor(@WebParam(name = "typeID") String typeID, @WebParam(name = "factor") double factor){ 309 this.sumo.set_cmd(Vehicletype.setSpeedFactor(typeID, factor)); 310 } 311 312 @WebMethod(action="Vehicletype: setTau") Vehicletype_setTau(@ebParamname = R) String typeID, @WebParam(name = R) double tau)313 public void Vehicletype_setTau(@WebParam(name = "typeID") String typeID, @WebParam(name = "tau") double tau){ 314 this.sumo.set_cmd(Vehicletype.setTau(typeID, tau)); 315 } 316 317 @WebMethod(action="Vehicletype: setVehicleClass") Vehicletype_setVehicleClass(@ebParamname = R) String typeID, @WebParam(name = R) String clazz)318 public void Vehicletype_setVehicleClass(@WebParam(name = "typeID") String typeID, @WebParam(name = "clazz") String clazz){ 319 this.sumo.set_cmd(Vehicletype.setVehicleClass(typeID, clazz)); 320 } 321 322 @WebMethod(action="Vehicletype: setWidth") Vehicletype_setWidth(@ebParamname = R) String typeID, @WebParam(name = R) double width)323 public void Vehicletype_setWidth(@WebParam(name = "typeID") String typeID, @WebParam(name = "width") double width){ 324 this.sumo.set_cmd(Vehicletype.setWidth(typeID, width)); 325 } 326 327 @WebMethod(action="Lane: setAllowed") Lane_setAllowed(@ebParamname = R) String laneID, @WebParam(name = R) SumoStringList allowedClasses)328 public void Lane_setAllowed(@WebParam(name = "laneID") String laneID, @WebParam(name = "allowedClasses") SumoStringList allowedClasses){ 329 this.sumo.set_cmd(Lane.setAllowed(laneID, allowedClasses)); 330 } 331 332 @WebMethod(action="Lane: setDisallowed") Lane_setDisallowed(@ebParamname = R) String laneID, @WebParam(name = R) SumoStringList disallowedClasses)333 public void Lane_setDisallowed(@WebParam(name = "laneID") String laneID, @WebParam(name = "disallowedClasses") SumoStringList disallowedClasses){ 334 this.sumo.set_cmd(Lane.setDisallowed(laneID, disallowedClasses)); 335 } 336 337 @WebMethod(action="Lane: setLength") Lane_setLength(@ebParamname = R) String laneID, @WebParam(name = R) double length)338 public void Lane_setLength(@WebParam(name = "laneID") String laneID, @WebParam(name = "length") double length){ 339 this.sumo.set_cmd(Lane.setLength(laneID, length)); 340 } 341 342 @WebMethod(action="Lane: setMaxSpeed") Lane_setMaxSpeed(@ebParamname = R) String laneID, @WebParam(name = R) double speed)343 public void Lane_setMaxSpeed(@WebParam(name = "laneID") String laneID, @WebParam(name = "speed") double speed){ 344 this.sumo.set_cmd(Lane.setMaxSpeed(laneID, speed)); 345 } 346 347 @WebMethod(action="Polygon: add") Polygon_add(@ebParamname = R) String polygonID, @WebParam(name = R) SumoGeometry shape, @WebParam(name = R) SumoColor color, @WebParam(name = R) boolean fill, @WebParam(name = R) String polygonType, @WebParam(name = R) int layer)348 public void Polygon_add(@WebParam(name = "polygonID") String polygonID, @WebParam(name = "shape") SumoGeometry shape, @WebParam(name = "color") SumoColor color, @WebParam(name = "fill") boolean fill, @WebParam(name = "polygonType") String polygonType, @WebParam(name = "layer") int layer){ 349 this.sumo.set_cmd(Polygon.add(polygonID, shape, color, fill, polygonType, layer)); 350 } 351 352 @WebMethod(action="Polygon: remove") Polygon_remove(@ebParamname = R) String polygonID, @WebParam(name = R) int layer)353 public void Polygon_remove(@WebParam(name = "polygonID") String polygonID, @WebParam(name = "layer") int layer){ 354 this.sumo.set_cmd(Polygon.remove(polygonID, layer)); 355 } 356 357 @WebMethod(action="Polygon: setColor") Polygon_setColor(@ebParamname = R) String polygonID, @WebParam(name = R) SumoColor color)358 public void Polygon_setColor(@WebParam(name = "polygonID") String polygonID, @WebParam(name = "color") SumoColor color){ 359 this.sumo.set_cmd(Polygon.setColor(polygonID, color)); 360 } 361 362 @WebMethod(action="Polygon: setShape") Polygon_setShape(@ebParamname = R) String polygonID, @WebParam(name = R) SumoStringList shape)363 public void Polygon_setShape(@WebParam(name = "polygonID") String polygonID, @WebParam(name = "shape") SumoStringList shape){ 364 this.sumo.set_cmd(Polygon.setShape(polygonID, shape)); 365 } 366 367 @WebMethod(action="Polygon: setType") Polygon_setType(@ebParamname = R) String polygonID, @WebParam(name = R) String polygonType)368 public void Polygon_setType(@WebParam(name = "polygonID") String polygonID, @WebParam(name = "polygonType") String polygonType){ 369 this.sumo.set_cmd(Polygon.setType(polygonID, polygonType)); 370 } 371 372 @WebMethod(action="Poi: remove") Poi_remove(@ebParamname = R) String poiID, @WebParam(name = R) int layer)373 public void Poi_remove(@WebParam(name = "poiID") String poiID, @WebParam(name = "layer") int layer){ 374 this.sumo.set_cmd(Poi.remove(poiID, layer)); 375 } 376 377 @WebMethod(action="Poi: setColor") Poi_setColor(@ebParamname = R) String poiID, @WebParam(name = R) SumoColor color)378 public void Poi_setColor(@WebParam(name = "poiID") String poiID, @WebParam(name = "color") SumoColor color){ 379 this.sumo.set_cmd(Poi.setColor(poiID, color)); 380 } 381 382 @WebMethod(action="Poi: setPosition") Poi_setPosition(@ebParamname = R) String poiID, @WebParam(name = R) double x, @WebParam(name = R) double y)383 public void Poi_setPosition(@WebParam(name = "poiID") String poiID, @WebParam(name = "x") double x, @WebParam(name = "y") double y){ 384 this.sumo.set_cmd(Poi.setPosition(poiID, x, y)); 385 } 386 387 @WebMethod(action="Poi: setType") Poi_setType(@ebParamname = R) String poiID, @WebParam(name = R) String poiType)388 public void Poi_setType(@WebParam(name = "poiID") String poiID, @WebParam(name = "poiType") String poiType){ 389 this.sumo.set_cmd(Poi.setType(poiID, poiType)); 390 } 391 392 @WebMethod(action="Gui: screenshot") GUI_screenshot(@ebParamname = R) String viewID, @WebParam(name = R) String filename)393 public void GUI_screenshot(@WebParam(name = "viewID") String viewID, @WebParam(name = "filename") String filename){ 394 this.sumo.set_cmd(Gui.screenshot(viewID, filename)); 395 } 396 397 @WebMethod(action="Gui: Set the current boundary for the given view (see getBoundary()).") GUI_setBoundary(@ebParamname = R) String viewID, @WebParam(name = R) double xmin, @WebParam(name = R) double ymin, @WebParam(name = R) double xmax, @WebParam(name = R) double ymax)398 public void GUI_setBoundary(@WebParam(name = "viewID") String viewID, @WebParam(name = "xmin") double xmin, @WebParam(name = "ymin") double ymin, @WebParam(name = "xmax") double xmax, @WebParam(name = "ymax") double ymax){ 399 this.sumo.set_cmd(Gui.setBoundary(viewID, xmin, ymin, xmax, ymax)); 400 } 401 402 @WebMethod(action="Gui: Set the current offset for the given view.") GUI_setOffset(@ebParamname = R) String viewID, @WebParam(name = R) double x, @WebParam(name = R) double y)403 public void GUI_setOffset(@WebParam(name = "viewID") String viewID, @WebParam(name = "x") double x, @WebParam(name = "y") double y){ 404 this.sumo.set_cmd(Gui.setOffset(viewID, x, y)); 405 } 406 407 @WebMethod(action="Gui: Set the current coloring scheme for the given view.") GUI_setSchema(@ebParamname = R) String viewID, @WebParam(name = R) String schemeName)408 public void GUI_setSchema(@WebParam(name = "viewID") String viewID, @WebParam(name = "schemeName") String schemeName){ 409 this.sumo.set_cmd(Gui.setSchema(viewID, schemeName)); 410 } 411 412 @WebMethod(action="Gui: Set the current zoom factor for the given view.") GUI_setZoom(@ebParamname = R) String viewID, @WebParam(name = R) double zoom)413 public void GUI_setZoom(@WebParam(name = "viewID") String viewID, @WebParam(name = "zoom") double zoom){ 414 this.sumo.set_cmd(Gui.setZoom(viewID, zoom)); 415 } 416 417 @WebMethod(action="Gui: trackVehicle") GUI_trackVehicle(@ebParamname = R) String viewID, @WebParam(name = R) String vehID)418 public void GUI_trackVehicle(@WebParam(name = "viewID") String viewID, @WebParam(name = "vehID") String vehID){ 419 this.sumo.set_cmd(Gui.trackVehicle(viewID, vehID)); 420 } 421 422 @WebMethod(action="Route: add") Route_add(@ebParamname = R) String routeID, @WebParam(name = R) SumoStringList edges)423 public void Route_add(@WebParam(name = "routeID") String routeID, @WebParam(name = "edges") SumoStringList edges){ 424 this.sumo.set_cmd(Route.add(routeID, edges)); 425 } 426 427 /* 428 * Getter methods 429 */ 430 431 @WebMethod(action="Multientryexit: Returns a list of all e3 detectors in the network.") Multientryexit_getIDList()432 public SumoStringList Multientryexit_getIDList(){ 433 return this.helper.getStringList(this.sumo.get_cmd(Multientryexit.getIDList())); 434 } 435 436 @WebMethod(action="Multientryexit: Returns the number of all e3 detectors in the network.") Multientryexit_getIDCount()437 public int Multientryexit_getIDCount(){ 438 return this.helper.getInt(this.sumo.get_cmd(Multientryexit.getIDCount())); 439 } 440 441 @WebMethod(action="Multientryexit: Returns the subscription results for the last time step and the given detector.") Multientryexit_getLastStepHaltingNumber(@ebParamname = R) String detID)442 public int Multientryexit_getLastStepHaltingNumber(@WebParam(name = "detID") String detID){ 443 return this.helper.getInt(this.sumo.get_cmd(Multientryexit.getLastStepHaltingNumber(detID))); 444 } 445 446 @WebMethod(action="Multientryexit: getLastStepMeanSpeed") Multientryexit_getLastStepMeanSpeed(@ebParamname = R) String detID)447 public double Multientryexit_getLastStepMeanSpeed(@WebParam(name = "detID") String detID){ 448 return this.helper.getDouble(this.sumo.get_cmd(Multientryexit.getLastStepMeanSpeed(detID))); 449 } 450 451 @WebMethod(action="Multientryexit: getLastStepVehicleIDs") Multientryexit_getLastStepVehicleIDs(@ebParamname = R) String detID)452 public SumoStringList Multientryexit_getLastStepVehicleIDs(@WebParam(name = "detID") String detID){ 453 return this.helper.getStringList(this.sumo.get_cmd(Multientryexit.getLastStepVehicleIDs(detID))); 454 } 455 456 @WebMethod(action="Multientryexit: getLastStepVehicleNumber") Multientryexit_getLastStepVehicleNumber(@ebParamname = R) String detID)457 public int Multientryexit_getLastStepVehicleNumber(@WebParam(name = "detID") String detID){ 458 return this.helper.getInt(this.sumo.get_cmd(Multientryexit.getLastStepVehicleNumber(detID))); 459 } 460 461 @WebMethod(action="Edge: Returns the travel time value (in s) used for (re-)routing") Edge_getAdaptedTraveltime(@ebParamname = R) String edgeID, @WebParam(name = R) int time)462 public double Edge_getAdaptedTraveltime(@WebParam(name = "edgeID") String edgeID, @WebParam(name = "time") int time){ 463 return this.helper.getDouble(this.sumo.get_cmd(Edge.getAdaptedTraveltime(edgeID, time))); 464 } 465 466 @WebMethod(action="Edge: Returns the CO2 emission in mg for the last time step on the given edge.") Edge_getCO2Emission(@ebParamname = R) String edgeID)467 public double Edge_getCO2Emission(@WebParam(name = "edgeID") String edgeID){ 468 return this.helper.getDouble(this.sumo.get_cmd(Edge.getCO2Emission(edgeID))); 469 } 470 471 @WebMethod(action="Edge: Returns the CO emission in mg for the last time step on the given edge.") Edge_getCOEmission(@ebParamname = R) String edgeID)472 public double Edge_getCOEmission(@WebParam(name = "edgeID") String edgeID){ 473 return this.helper.getDouble(this.sumo.get_cmd(Edge.getCOEmission(edgeID))); 474 } 475 476 @WebMethod(action="Edge: Returns the effort value used for (re-)routing") Edge_getEffort(@ebParamname = R) String edgeID, @WebParam(name = R) int time)477 public double Edge_getEffort(@WebParam(name = "edgeID") String edgeID, @WebParam(name = "time") int time){ 478 return this.helper.getDouble(this.sumo.get_cmd(Edge.getEffort(edgeID, time))); 479 } 480 481 @WebMethod(action="Edge: getElectricityConsumption") Edge_getElectricityConsumption(@ebParamname = R) String edgeID)482 public double Edge_getElectricityConsumption(@WebParam(name = "edgeID") String edgeID){ 483 return this.helper.getDouble(this.sumo.get_cmd(Edge.getElectricityConsumption(edgeID))); 484 } 485 486 @WebMethod(action="Edge: Returns the fuel consumption in ml for the last time step on the given edge.") Edge_getFuelConsumption(@ebParamname = R) String edgeID)487 public double Edge_getFuelConsumption(@WebParam(name = "edgeID") String edgeID){ 488 return this.helper.getDouble(this.sumo.get_cmd(Edge.getFuelConsumption(edgeID))); 489 } 490 491 @WebMethod(action="Edge: Returns the HC emission in mg for the last time step on the given edge.") Edge_getHCEmission(@ebParamname = R) String edgeID)492 public double Edge_getHCEmission(@WebParam(name = "edgeID") String edgeID){ 493 return this.helper.getDouble(this.sumo.get_cmd(Edge.getHCEmission(edgeID))); 494 } 495 496 @WebMethod(action="Edge: Returns the number of edges in the network.") Edge_getIDCount()497 public int Edge_getIDCount(){ 498 return this.helper.getInt(this.sumo.get_cmd(Edge.getIDCount())); 499 } 500 501 @WebMethod(action="Edge: Returns a list of all edges in the network.") Edge_getIDList()502 public SumoStringList Edge_getIDList(){ 503 return this.helper.getStringList(this.sumo.get_cmd(Edge.getIDList())); 504 } 505 506 @WebMethod(action="Edge: Returns the total number of halting vehicles for the last time step on the given edge.") Edge_getLastStepHaltingNumber(@ebParamname = R) String edgeID)507 public int Edge_getLastStepHaltingNumber(@WebParam(name = "edgeID") String edgeID){ 508 return this.helper.getInt(this.sumo.get_cmd(Edge.getLastStepHaltingNumber(edgeID))); 509 } 510 511 @WebMethod(action="Edge: Returns the total vehicle length in m for the last time step on the given edge.") Edge_getLastStepLength(@ebParamname = R) String edgeID)512 public double Edge_getLastStepLength(@WebParam(name = "edgeID") String edgeID){ 513 return this.helper.getDouble(this.sumo.get_cmd(Edge.getLastStepLength(edgeID))); 514 } 515 516 @WebMethod(action="Edge: Returns the average speed in m/s for the last time step on the given edge.") Edge_getLastStepMeanSpeed(@ebParamname = R) String edgeID)517 public double Edge_getLastStepMeanSpeed(@WebParam(name = "edgeID") String edgeID){ 518 return this.helper.getDouble(this.sumo.get_cmd(Edge.getLastStepMeanSpeed(edgeID))); 519 } 520 521 @WebMethod(action="Edge: Returns the occupancy in % for the last time step on the given edge.") Edge_getLastStepOccupancy(@ebParamname = R) String edgeID)522 public double Edge_getLastStepOccupancy(@WebParam(name = "edgeID") String edgeID){ 523 return this.helper.getDouble(this.sumo.get_cmd(Edge.getLastStepOccupancy(edgeID))); 524 } 525 526 @WebMethod(action="Edge: Returns the subscription results for the last time step and the given edge.") Edge_getLastStepVehicleIDs(@ebParamname = R) String edgeID)527 public SumoStringList Edge_getLastStepVehicleIDs(@WebParam(name = "edgeID") String edgeID){ 528 return this.helper.getStringList(this.sumo.get_cmd(Edge.getLastStepVehicleIDs(edgeID))); 529 } 530 531 @WebMethod(action="Edge: Returns the total number of vehicles for the last time step on the given edge.") Edge_getLastStepVehicleNumber(@ebParamname = R) String edgeID)532 public int Edge_getLastStepVehicleNumber(@WebParam(name = "edgeID") String edgeID){ 533 return this.helper.getInt(this.sumo.get_cmd(Edge.getLastStepVehicleNumber(edgeID))); 534 } 535 536 @WebMethod(action="Edge: Returns the NOx emission in mg for the last time step on the given edge.") Edge_getNOxEmission(@ebParamname = R) String edgeID)537 public double Edge_getNOxEmission(@WebParam(name = "edgeID") String edgeID){ 538 return this.helper.getDouble(this.sumo.get_cmd(Edge.getNOxEmission(edgeID))); 539 } 540 541 @WebMethod(action="Edge: Returns the noise emission in db for the last time step on the given edge.") Edge_getNoiseEmission(@ebParamname = R) String edgeID)542 public double Edge_getNoiseEmission(@WebParam(name = "edgeID") String edgeID){ 543 return this.helper.getDouble(this.sumo.get_cmd(Edge.getNoiseEmission(edgeID))); 544 } 545 546 @WebMethod(action="Edge: Returns the particular matter emission in mg for the last time step on the given edge.") Edge_getPMxEmission(@ebParamname = R) String edgeID)547 public double Edge_getPMxEmission(@WebParam(name = "edgeID") String edgeID){ 548 return this.helper.getDouble(this.sumo.get_cmd(Edge.getPMxEmission(edgeID))); 549 } 550 551 @WebMethod(action="Edge: Returns the estimated travel time in s for the last time step on the given edge.") Edge_getTraveltime(@ebParamname = R) String edgeID)552 public double Edge_getTraveltime(@WebParam(name = "edgeID") String edgeID){ 553 return this.helper.getDouble(this.sumo.get_cmd(Edge.getTraveltime(edgeID))); 554 } 555 556 @WebMethod(action="Edge: Returns the waiting time in s for the last time step on the given edge.") Edge_getWaitingTime(@ebParamname = R) String edgeID)557 public double Edge_getWaitingTime(@WebParam(name = "edgeID") String edgeID){ 558 return this.helper.getDouble(this.sumo.get_cmd(Edge.getWaitingTime(edgeID))); 559 } 560 561 562 @WebMethod(action="Lanearea: getIDList") Lanearea_getIDList()563 public SumoStringList Lanearea_getIDList(){ 564 return this.helper.getStringList(this.sumo.get_cmd(Lanearea.getIDList())); 565 } 566 567 @WebMethod(action="Lanearea: getIDCount") Lanearea_getIDCount()568 public int Lanearea_getIDCount(){ 569 return this.helper.getInt(this.sumo.get_cmd(Lanearea.getIDCount())); 570 } 571 572 @WebMethod(action="Lanearea: getJamLengthVehicle") Lanearea_getJamLengthVehicle(@ebParamname = R) String loopID)573 public int Lanearea_getJamLengthVehicle(@WebParam(name = "loopID") String loopID){ 574 return this.helper.getInt(this.sumo.get_cmd(Lanearea.getJamLengthVehicle(loopID))); 575 } 576 577 @WebMethod(action="Lanearea: getJamLengthMeters") Lanearea_getJamLengthMeters(@ebParamname = R) String loopID)578 public double Lanearea_getJamLengthMeters(@WebParam(name = "loopID") String loopID){ 579 return this.helper.getDouble(this.sumo.get_cmd(Lanearea.getJamLengthMeters(loopID))); 580 } 581 582 @WebMethod(action="Lanearea: getLastStepMeanSpeed") Lanearea_getLastStepMeanSpeed(@ebParamname = R) String loopID)583 public double Lanearea_getLastStepMeanSpeed(@WebParam(name = "loopID") String loopID){ 584 return this.helper.getDouble(this.sumo.get_cmd(Lanearea.getLastStepMeanSpeed(loopID))); 585 } 586 587 @WebMethod(action="Lanearea: getLastStepOccupancy") Lanearea_getLastStepOccupancy(@ebParamname = R) String loopID)588 public double Lanearea_getLastStepOccupancy(@WebParam(name = "loopID") String loopID){ 589 return this.helper.getDouble(this.sumo.get_cmd(Lanearea.getLastStepOccupancy(loopID))); 590 } 591 592 @WebMethod(action="Person: getIDList") Person_getIDList()593 public SumoStringList Person_getIDList(){ 594 return this.helper.getStringList(this.sumo.get_cmd(Person.getIDList())); 595 } 596 597 @WebMethod(action="Person: getIDCount") Person_getIDCount()598 public int Person_getIDCount(){ 599 return this.helper.getInt(this.sumo.get_cmd(Person.getIDCount())); 600 } 601 602 @WebMethod(action="Person: getSpeed") Person_getSpeed(@ebParamname = R) String personID)603 public double Person_getSpeed(@WebParam(name = "personID") String personID){ 604 return this.helper.getDouble(this.sumo.get_cmd(Person.getSpeed(personID))); 605 } 606 607 @WebMethod(action="Person: getPosition") Person_getPosition(@ebParamname = R) String personID)608 public SumoPosition2D Person_getPosition(@WebParam(name = "personID") String personID){ 609 return this.helper.getPosition2D(this.sumo.get_cmd(Person.getPosition(personID))); 610 } 611 612 @WebMethod(action="Person: getPosition3D") Person_getPosition3D(@ebParamname = R) String personID)613 public SumoPosition3D Person_getPosition3D(@WebParam(name = "personID") String personID){ 614 return this.helper.getPosition3D(this.sumo.get_cmd(Person.getPosition3D(personID))); 615 } 616 617 @WebMethod(action="Person: getAngle") Person_getAngle(@ebParamname = R) String personID)618 public int Person_getAngle(@WebParam(name = "vehID") String personID){ 619 return this.helper.getInt(this.sumo.get_cmd(Person.getAngle(personID))); 620 } 621 622 @WebMethod(action="Person: getRoadID") Person_getRoadID(@ebParamname = R) String personID)623 public String Person_getRoadID(@WebParam(name = "personID") String personID){ 624 return this.helper.getString(this.sumo.get_cmd(Person.getRoadID(personID))); 625 } 626 627 @WebMethod(action="Person: getTypeID") Person_getTypeID(@ebParamname = R) String personID)628 public String Person_getTypeID(@WebParam(name = "personID") String personID){ 629 return this.helper.getString(this.sumo.get_cmd(Person.getTypeID(personID))); 630 } 631 632 @WebMethod(action="Person: getLanePosition") Person_getLanePosition(@ebParamname = R) String personID)633 public double Person_getLanePosition(@WebParam(name = "personID") String personID){ 634 return this.helper.getDouble(this.sumo.get_cmd(Person.getLanePosition(personID))); 635 } 636 637 @WebMethod(action="Person: getColor") Person_getColor(@ebParamname = R) String personID)638 public SumoColor Person_getColor(@WebParam(name = "personID") String personID){ 639 return this.helper.getColor(this.sumo.get_cmd(Person.getColor(personID))); 640 } 641 642 @WebMethod(action="Person: getPersonNumber") Person_getPersonNumber(@ebParamname = R) String personID)643 public int Person_getPersonNumber(@WebParam(name = "personID") String personID){ 644 return this.helper.getInt(this.sumo.get_cmd(Person.getPersonNumber(personID))); 645 } 646 647 @WebMethod(action="Person: getLength") Person_getLength(@ebParamname = R) String personID)648 public double Person_getLength(@WebParam(name = "personID") String personID){ 649 return this.helper.getDouble(this.sumo.get_cmd(Person.getLength(personID))); 650 } 651 652 @WebMethod(action="Person: getWaitingTime") Person_getWaitingTime(@ebParamname = R) String personID)653 public double Person_getWaitingTime(@WebParam(name = "personID") String personID){ 654 return this.helper.getDouble(this.sumo.get_cmd(Person.getWaitingTime(personID))); 655 } 656 657 @WebMethod(action="Person: getMinGap") Person_getMinGap(@ebParamname = R) String personID)658 public double Person_getMinGap(@WebParam(name = "personID") String personID){ 659 return this.helper.getDouble(this.sumo.get_cmd(Person.getMinGap(personID))); 660 } 661 662 @WebMethod(action="Vehicle: getAccel") Vehicle_getAccel(@ebParamname = R) String vehID)663 public double Vehicle_getAccel(@WebParam(name = "vehID") String vehID){ 664 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getAccel(vehID))); 665 } 666 667 @WebMethod(action="Vehicle: getAdaptedTraveltime") Vehicle_getAdaptedTraveltime(@ebParamname = R) String vehID, @WebParam(name = R) int time, @WebParam(name = R) String edgeID)668 public double Vehicle_getAdaptedTraveltime(@WebParam(name = "vehID") String vehID, @WebParam(name = "time") int time, @WebParam(name = "edgeID") String edgeID){ 669 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getAdaptedTraveltime(vehID, time, edgeID))); 670 } 671 672 @WebMethod(action="Vehicle: getAngle") Vehicle_getAngle(@ebParamname = R) String vehID)673 public double Vehicle_getAngle(@WebParam(name = "vehID") String vehID){ 674 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getAngle(vehID))); 675 } 676 677 @WebMethod(action="Vehicle: getBestLanes") Vehicle_getBestLanes(@ebParamname = R) String vehID)678 public SumoStringList Vehicle_getBestLanes(@WebParam(name = "vehID") String vehID){ 679 return this.helper.getStringList(this.sumo.get_cmd(Vehicle.getBestLanes(vehID))); 680 } 681 682 @WebMethod(action="Vehicle: Returns the CO2 emission in mg for the last time step.") Vehicle_getCO2Emission(@ebParamname = R) String vehID)683 public double Vehicle_getCO2Emission(@WebParam(name = "vehID") String vehID){ 684 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getCO2Emission(vehID))); 685 } 686 687 @WebMethod(action="Vehicle: Returns the CO emission in mg for the last time step.") Vehicle_getCOEmission(@ebParamname = R) String vehID)688 public double Vehicle_getCOEmission(@WebParam(name = "vehID") String vehID){ 689 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getCOEmission(vehID))); 690 } 691 692 @WebMethod(action="Vehicle: getColor") Vehicle_getColor(@ebParamname = R) String vehID)693 public SumoColor Vehicle_getColor(@WebParam(name = "vehID") String vehID){ 694 return this.helper.getColor(this.sumo.get_cmd(Vehicle.getColor(vehID))); 695 } 696 697 @WebMethod(action="Vehicle: getDecel") Vehicle_getDecel(@ebParamname = R) String vehID)698 public double Vehicle_getDecel(@WebParam(name = "vehID") String vehID){ 699 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getDecel(vehID))); 700 } 701 702 @WebMethod(action="Vehicle: getDrivingDistance") Vehicle_getDrivingDistance(@ebParamname = R) String vehID, @WebParam(name = R) String edgeID, @WebParam(name = R) double pos, @WebParam(name = R) byte laneID)703 public double Vehicle_getDrivingDistance(@WebParam(name = "vehID") String vehID, @WebParam(name = "edgeID") String edgeID, @WebParam(name = "pos") double pos, @WebParam(name = "laneID") byte laneID){ 704 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getDrivingDistance(vehID, edgeID, pos, laneID))); 705 } 706 707 @WebMethod(action="Vehicle: Returns the subscription results for the last time step and the given vehicle.") Vehicle_getDrivingDistance2D(@ebParamname = R) String vehID, @WebParam(name = R) double x, @WebParam(name = R) double y)708 public double Vehicle_getDrivingDistance2D(@WebParam(name = "vehID") String vehID, @WebParam(name = "x") double x, @WebParam(name = "y") double y){ 709 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getDrivingDistance2D(vehID, x, y))); 710 } 711 712 @WebMethod(action="Vehicle: getEffort") Vehicle_getEffort(@ebParamname = R) String vehID, @WebParam(name = R) int time, @WebParam(name = R) String edgeID)713 public double Vehicle_getEffort(@WebParam(name = "vehID") String vehID, @WebParam(name = "time") int time, @WebParam(name = "edgeID") String edgeID){ 714 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getEffort(vehID, time, edgeID))); 715 } 716 717 @WebMethod(action="Vehicle: getEmissionClass") Vehicle_getEmissionClass(@ebParamname = R) String vehID)718 public String Vehicle_getEmissionClass(@WebParam(name = "vehID") String vehID){ 719 return this.helper.getString(this.sumo.get_cmd(Vehicle.getEmissionClass(vehID))); 720 } 721 722 @WebMethod(action="Vehicle: Returns the fuel consumption in ml for the last time step.") Vehicle_getFuelConsumption(@ebParamname = R) String vehID)723 public double Vehicle_getFuelConsumption(@WebParam(name = "vehID") String vehID){ 724 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getFuelConsumption(vehID))); 725 } 726 727 @WebMethod(action="Vehicle: Returns the HC emission in mg for the last time step.") Vehicle_getHCEmission(@ebParamname = R) String vehID)728 public double Vehicle_getHCEmission(@WebParam(name = "vehID") String vehID){ 729 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getHCEmission(vehID))); 730 } 731 732 @WebMethod(action="Vehicle: Returns a list of all known vehicles.") Vehicle_getIDList()733 public SumoStringList Vehicle_getIDList(){ 734 return this.helper.getStringList(this.sumo.get_cmd(Vehicle.getIDList())); 735 } 736 737 @WebMethod(action="Vehicle: Returns the number of all known vehicles.") Vehicle_getIDCount()738 public int Vehicle_getIDCount(){ 739 return this.helper.getInt(this.sumo.get_cmd(Vehicle.getIDCount())); 740 } 741 742 @WebMethod(action="Vehicle: getImperfection") Vehicle_getImperfection(@ebParamname = R) String vehID)743 public double Vehicle_getImperfection(@WebParam(name = "vehID") String vehID){ 744 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getImperfection(vehID))); 745 } 746 747 @WebMethod(action="Vehicle: getAllowedSpeed") Vehicle_getAllowedSpeed(@ebParamname = R) String vehID)748 public double Vehicle_getAllowedSpeed(@WebParam(name = "vehID") String vehID){ 749 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getAllowedSpeed(vehID))); 750 } 751 752 @WebMethod(action="Vehicle: getPersonNumber") Vehicle_getPersonNumber(@ebParamname = R) String vehID)753 public int Vehicle_getPersonNumber(@WebParam(name = "vehID") String vehID){ 754 return this.helper.getInt(this.sumo.get_cmd(Vehicle.getPersonNumber(vehID))); 755 } 756 757 @WebMethod(action="Vehicle: getDistance") Vehicle_getDistance(@ebParamname = R) String vehID)758 public double Vehicle_getDistance(@WebParam(name = "vehID") String vehID){ 759 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getDistance(vehID))); 760 } 761 762 @WebMethod(action="Vehicle: getElectricityConsumption") Vehicle_getElectricityConsumption(@ebParamname = R) String vehID)763 public double Vehicle_getElectricityConsumption(@WebParam(name = "vehID") String vehID){ 764 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getElectricityConsumption(vehID))); 765 } 766 @WebMethod(action="Vehicle: getWaitingTime") Vehicle_getWaitingTime(@ebParamname = R) String vehID)767 public double Vehicle_getWaitingTime(@WebParam(name = "vehID") String vehID){ 768 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getWaitingTime(vehID))); 769 } 770 771 @WebMethod(action="Vehicle: getLaneID") Vehicle_getLaneID(@ebParamname = R) String vehID)772 public String Vehicle_getLaneID(@WebParam(name = "vehID") String vehID){ 773 return this.helper.getString(this.sumo.get_cmd(Vehicle.getLaneID(vehID))); 774 } 775 776 @WebMethod(action="Vehicle: getLaneIndex") Vehicle_getLaneIndex(@ebParamname = R) String vehID)777 public int Vehicle_getLaneIndex(@WebParam(name = "vehID") String vehID){ 778 return this.helper.getInt(this.sumo.get_cmd(Vehicle.getLaneIndex(vehID))); 779 } 780 781 @WebMethod(action="Vehicle: getLanePosition") Vehicle_getLanePosition(@ebParamname = R) String vehID)782 public double Vehicle_getLanePosition(@WebParam(name = "vehID") String vehID){ 783 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getLanePosition(vehID))); 784 } 785 786 @WebMethod(action="Vehicle: getLeader") Vehicle_getLeader(@ebParamname = R) String vehID, @WebParam(name = R) double dist)787 public String Vehicle_getLeader(@WebParam(name = "vehID") String vehID, @WebParam(name = "dist") double dist){ 788 return this.helper.getString(this.sumo.get_cmd(Vehicle.getLeader(vehID, dist))); 789 } 790 791 @WebMethod(action="Vehicle: getLength") Vehicle_getLength(@ebParamname = R) String vehID)792 public double Vehicle_getLength(@WebParam(name = "vehID") String vehID){ 793 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getLength(vehID))); 794 } 795 796 @WebMethod(action="Vehicle: getMaxSpeed") Vehicle_getMaxSpeed(@ebParamname = R) String vehID)797 public double Vehicle_getMaxSpeed(@WebParam(name = "vehID") String vehID){ 798 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getMaxSpeed(vehID))); 799 } 800 801 @WebMethod(action="Vehicle: getMinGap") Vehicle_getMinGap(@ebParamname = R) String vehID)802 public double Vehicle_getMinGap(@WebParam(name = "vehID") String vehID){ 803 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getMinGap(vehID))); 804 } 805 806 @WebMethod(action="Vehicle: Returns the NOx emission in mg for the last time step.") Vehicle_getNOxEmission(@ebParamname = R) String vehID)807 public double Vehicle_getNOxEmission(@WebParam(name = "vehID") String vehID){ 808 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getNOxEmission(vehID))); 809 } 810 811 @WebMethod(action="Vehicle: Returns the noise emission in db for the last time step.") Vehicle_getNoiseEmission(@ebParamname = R) String vehID)812 public double Vehicle_getNoiseEmission(@WebParam(name = "vehID") String vehID){ 813 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getNoiseEmission(vehID))); 814 } 815 816 @WebMethod(action="Vehicle: Returns the particular matter emission in mg for the last time step.") Vehicle_getPMxEmission(@ebParamname = R) String vehID)817 public double Vehicle_getPMxEmission(@WebParam(name = "vehID") String vehID){ 818 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getPMxEmission(vehID))); 819 } 820 821 @WebMethod(action="Vehicle: Returns the position of the named vehicle within the last step [m,m].") Vehicle_getPosition(@ebParamname = R) String vehID)822 public SumoPosition2D Vehicle_getPosition(@WebParam(name = "vehID") String vehID){ 823 return this.helper.getPosition2D(this.sumo.get_cmd(Vehicle.getPosition(vehID))); 824 } 825 826 @WebMethod(action="Vehicle: Returns the position of the named vehicle within the last step [m,m].") Vehicle_getPosition3D(@ebParamname = R) String vehID)827 public SumoPosition3D Vehicle_getPosition3D(@WebParam(name = "vehID") String vehID){ 828 return this.helper.getPosition3D(this.sumo.get_cmd(Vehicle.getPosition3D(vehID))); 829 } 830 831 @WebMethod(action="Vehicle: getRoadID") Vehicle_getRoadID(@ebParamname = R) String vehID)832 public String Vehicle_getRoadID(@WebParam(name = "vehID") String vehID){ 833 return this.helper.getString(this.sumo.get_cmd(Vehicle.getRoadID(vehID))); 834 } 835 836 @WebMethod(action="Vehicle: getRoute") Vehicle_getRoute(@ebParamname = R) String vehID)837 public SumoStringList Vehicle_getRoute(@WebParam(name = "vehID") String vehID){ 838 return this.helper.getStringList(this.sumo.get_cmd(Vehicle.getRoute(vehID))); 839 } 840 841 @WebMethod(action="Vehicle: getRouteID") Vehicle_getRouteID(@ebParamname = R) String vehID)842 public String Vehicle_getRouteID(@WebParam(name = "vehID") String vehID){ 843 return this.helper.getString(this.sumo.get_cmd(Vehicle.getRouteID(vehID))); 844 } 845 846 @WebMethod(action="Vehicle: getShapeClass") Vehicle_getShapeClass(@ebParamname = R) String vehID)847 public String Vehicle_getShapeClass(@WebParam(name = "vehID") String vehID){ 848 return this.helper.getString(this.sumo.get_cmd(Vehicle.getShapeClass(vehID))); 849 } 850 851 @WebMethod(action="Vehicle: getSignals") Vehicle_getSignals(@ebParamname = R) String vehID)852 public int Vehicle_getSignals(@WebParam(name = "vehID") String vehID){ 853 return this.helper.getInt(this.sumo.get_cmd(Vehicle.getSignals(vehID))); 854 } 855 856 @WebMethod(action="Vehicle: getSlope") Vehicle_getSlope(@ebParamname = R) String vehID)857 public double Vehicle_getSlope(@WebParam(name = "vehID") String vehID){ 858 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getSlope(vehID))); 859 } 860 861 @WebMethod(action="Vehicle: getSpeed") Vehicle_getSpeed(@ebParamname = R) String vehID)862 public double Vehicle_getSpeed(@WebParam(name = "vehID") String vehID){ 863 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getSpeed(vehID))); 864 } 865 866 @WebMethod(action="Vehicle: getSpeedDeviation") Vehicle_getSpeedDeviation(@ebParamname = R) String vehID)867 public double Vehicle_getSpeedDeviation(@WebParam(name = "vehID") String vehID){ 868 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getSpeedDeviation(vehID))); 869 } 870 871 @WebMethod(action="Vehicle: getSpeedFactor") Vehicle_getSpeedFactor(@ebParamname = R) String vehID)872 public double Vehicle_getSpeedFactor(@WebParam(name = "vehID") String vehID){ 873 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getSpeedFactor(vehID))); 874 } 875 876 @WebMethod(action="Vehicle: getSpeedMode") Vehicle_getSpeedMode(@ebParamname = R) String vehID)877 public double Vehicle_getSpeedMode(@WebParam(name = "vehID") String vehID){ 878 return this.helper.getInt(this.sumo.get_cmd(Vehicle.getSpeedMode(vehID))); 879 } 880 881 @WebMethod(action="Vehicle: getSpeedWithoutTraCI") Vehicle_getSpeedWithoutTraCI(@ebParamname = R) String vehID)882 public double Vehicle_getSpeedWithoutTraCI(@WebParam(name = "vehID") String vehID){ 883 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getSpeedWithoutTraCI(vehID))); 884 } 885 886 @WebMethod(action="Vehicle: getTau") Vehicle_getTau(@ebParamname = R) String vehID)887 public double Vehicle_getTau(@WebParam(name = "vehID") String vehID){ 888 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getTau(vehID))); 889 } 890 891 @WebMethod(action="Vehicle: getTypeID") Vehicle_getTypeID(@ebParamname = R) String vehID)892 public String Vehicle_getTypeID(@WebParam(name = "vehID") String vehID){ 893 return this.helper.getString(this.sumo.get_cmd(Vehicle.getTypeID(vehID))); 894 } 895 896 @WebMethod(action="Vehicle: getVehicleClass") Vehicle_getVehicleClass(@ebParamname = R) String vehID)897 public String Vehicle_getVehicleClass(@WebParam(name = "vehID") String vehID){ 898 return this.helper.getString(this.sumo.get_cmd(Vehicle.getVehicleClass(vehID))); 899 } 900 901 @WebMethod(action="Vehicle: getWidth") Vehicle_getWidth(@ebParamname = R) String vehID)902 public double Vehicle_getWidth(@WebParam(name = "vehID") String vehID){ 903 return this.helper.getDouble(this.sumo.get_cmd(Vehicle.getWidth(vehID))); 904 } 905 906 @WebMethod(action="Vehicle: isRouteValid") Vehicle_isRouteValid(@ebParamname = R) String vehID)907 public int Vehicle_isRouteValid(@WebParam(name = "vehID") String vehID){ 908 return this.helper.getInt(this.sumo.get_cmd(Vehicle.isRouteValid(vehID))); 909 } 910 911 @WebMethod(action="Vehicle: setRoute") Vehicle_setRoute(@ebParamname = R) String vehID, @WebParam(name = R) SumoStringList edgeList)912 public void Vehicle_setRoute(@WebParam(name = "vehID") String vehID, @WebParam(name = "edgeList") SumoStringList edgeList){ 913 this.sumo.set_cmd(Vehicle.setRoute(vehID, edgeList)); 914 } 915 916 @WebMethod(action="Vehicle: setLaneChangeMode") Vehicle_setLaneChangeMode(@ebParamname = R) String vehID, @WebParam(name = R) int lcm)917 public void Vehicle_setLaneChangeMode(@WebParam(name = "vehID") String vehID, @WebParam(name = "lcm") int lcm){ 918 this.sumo.set_cmd(Vehicle.setLaneChangeMode(vehID, lcm)); 919 } 920 921 @WebMethod(action="Vehicle: setType") Vehicle_setType(@ebParamname = R) String vehID, @WebParam(name = R) String typeID)922 public void Vehicle_setType(@WebParam(name = "vehID") String vehID, @WebParam(name = "typeID") String typeID){ 923 this.sumo.get_cmd(Vehicle.setType(vehID, typeID)); 924 } 925 926 @WebMethod(action="Vehicle: slowDown") Vehicle_slowDown(@ebParamname = R) String vehID, @WebParam(name = R) double speed, @WebParam(name = R) int duration)927 public void Vehicle_slowDown(@WebParam(name = "vehID") String vehID, @WebParam(name = "speed") double speed, @WebParam(name = "duration") int duration){ 928 this.sumo.set_cmd(Vehicle.slowDown(vehID, speed, duration)); 929 } 930 931 @WebMethod(action="Simulation: clearPending") GUI_clearPending(@ebParamname = R) String routeID)932 public void GUI_clearPending(@WebParam(name = "routeID") String routeID){ 933 this.sumo.set_cmd(Simulation.clearPending(routeID)); 934 } 935 936 @WebMethod(action="Simulation: convert2D") Simulation_convert2D(@ebParamname = R) String edgeID, @WebParam(name = R) double pos, @WebParam(name = R) byte laneIndex, @WebParam(name = R) String toGeo)937 public SumoStringList Simulation_convert2D(@WebParam(name = "edgeID") String edgeID, @WebParam(name = "pos") double pos, @WebParam(name = "laneIndex") byte laneIndex, @WebParam(name = "toGeo") String toGeo){ 938 return this.helper.getStringList(this.sumo.get_cmd(Simulation.convert2D(edgeID, pos, laneIndex, toGeo))); 939 } 940 941 @WebMethod(action="Simulation: convert3D") Simulation_convert3D(@ebParamname = R) String edgeID, @WebParam(name = R) double pos, @WebParam(name = R) byte laneIndex, @WebParam(name = R) String toGeo)942 public SumoStringList Simulation_convert3D(@WebParam(name = "edgeID") String edgeID, @WebParam(name = "pos") double pos, @WebParam(name = "laneIndex") byte laneIndex, @WebParam(name = "toGeo") String toGeo){ 943 return this.helper.getStringList(this.sumo.get_cmd(Simulation.convert3D(edgeID, pos, laneIndex, toGeo))); 944 } 945 946 @WebMethod(action="Simulation: convertGeo") Simulation_convertGeo(@ebParamname = R) double x, @WebParam(name = R) double y, @WebParam(name = R) boolean fromGeo)947 public SumoStringList Simulation_convertGeo(@WebParam(name = "x") double x, @WebParam(name = "y") double y, @WebParam(name = "fromGeo") boolean fromGeo){ 948 return this.helper.getStringList(this.sumo.get_cmd(Simulation.convertGeo(x, y, fromGeo))); 949 } 950 951 @WebMethod(action="Simulation: convertRoad") Simulation_convertRoad(@ebParamname = R) double x, @WebParam(name = R) double y, @WebParam(name = R) String isGeo)952 public SumoPosition2D Simulation_convertRoad(@WebParam(name = "x") double x, @WebParam(name = "y") double y, @WebParam(name = "isGeo") String isGeo){ 953 return this.helper.getPosition2D(this.sumo.get_cmd(Simulation.convertRoad(x, y, isGeo))); 954 } 955 956 @WebMethod(action="Simulation: getArrivedIDList") Simulation_getArrivedIDList()957 public SumoStringList Simulation_getArrivedIDList(){ 958 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getArrivedIDList())); 959 } 960 961 @WebMethod(action="Simulation: getArrivedNumber") Simulation_getArrivedNumber()962 public int Simulation_getArrivedNumber(){ 963 return this.helper.getInt(this.sumo.get_cmd(Simulation.getArrivedNumber())); 964 } 965 966 @WebMethod(action="Simulation: getCurrentTime") Simulation_getCurrentTime()967 public int Simulation_getCurrentTime(){ 968 return this.helper.getInt(this.sumo.get_cmd(Simulation.getCurrentTime())); 969 } 970 971 972 @WebMethod(action="Simulation: getBusStopWaiting") Simulation_getBusStopWaiting()973 public int Simulation_getBusStopWaiting(){ 974 return this.helper.getInt(this.sumo.get_cmd(Simulation.getBusStopWaiting())); 975 } 976 977 @WebMethod(action="Simulation: getParkingEndingVehiclesIDList") Simulation_getParkingEndingVehiclesIDList()978 public SumoStringList Simulation_getParkingEndingVehiclesIDList(){ 979 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getParkingEndingVehiclesIDList())); 980 } 981 982 983 @WebMethod(action="Simulation: getParkingEndingVehiclesNumber") Simulation_getParkingEndingVehiclesNumber()984 public int Simulation_getParkingEndingVehiclesNumber(){ 985 return this.helper.getInt(this.sumo.get_cmd(Simulation.getParkingEndingVehiclesNumber())); 986 } 987 988 @WebMethod(action="Simulation: getParkingStartingVehiclesIDList") Simulation_getParkingStartingVehiclesIDList()989 public SumoStringList Simulation_getParkingStartingVehiclesIDList(){ 990 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getParkingStartingVehiclesIDList())); 991 } 992 993 @WebMethod(action="Simulation: getParkingStartingVehiclesNumber") Simulation_getParkingStartingVehiclesNumber()994 public int Simulation_getParkingStartingVehiclesNumber(){ 995 return this.helper.getInt(this.sumo.get_cmd(Simulation.getParkingStartingVehiclesNumber())); 996 } 997 998 @WebMethod(action="Simulation: getStopEndingVehiclesIDList") Simulation_getStopEndingVehiclesIDList()999 public SumoStringList Simulation_getStopEndingVehiclesIDList(){ 1000 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getStopEndingVehiclesIDList())); 1001 } 1002 1003 @WebMethod(action="Simulation: getStopEndingVehiclesNumber") Simulation_getStopEndingVehiclesNumber()1004 public int Simulation_getStopEndingVehiclesNumber(){ 1005 return this.helper.getInt(this.sumo.get_cmd(Simulation.getStopEndingVehiclesNumber())); 1006 } 1007 1008 @WebMethod(action="Simulation: getStopStartingVehiclesIDList") Simulation_getStopStartingVehiclesIDList()1009 public SumoStringList Simulation_getStopStartingVehiclesIDList(){ 1010 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getStopStartingVehiclesIDList())); 1011 } 1012 1013 @WebMethod(action="Simulation: getStopStartingVehiclesNumber") Simulation_getStopStartingVehiclesNumber()1014 public int Simulation_getStopStartingVehiclesNumber(){ 1015 return this.helper.getInt(this.sumo.get_cmd(Simulation.getStopStartingVehiclesNumber())); 1016 } 1017 1018 1019 @WebMethod(action="Simulation: getDeltaT") Simulation_getDeltaT()1020 public int Simulation_getDeltaT(){ 1021 return this.helper.getInt(this.sumo.get_cmd(Simulation.getDeltaT())); 1022 } 1023 1024 @WebMethod(action="Simulation: getDepartedIDList") Simulation_getDepartedIDList()1025 public SumoStringList Simulation_getDepartedIDList(){ 1026 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getDepartedIDList())); 1027 } 1028 1029 @WebMethod(action="Simulation: getDepartedNumber") Simulation_getDepartedNumber()1030 public int Simulation_getDepartedNumber(){ 1031 return this.helper.getInt(this.sumo.get_cmd(Simulation.getDepartedNumber())); 1032 } 1033 1034 @WebMethod(action="Simulation: getDistance2D") Simulation_getDistance2D(@ebParamname = R) double x1, @WebParam(name = R) double y1, @WebParam(name = R) double x2, @WebParam(name = R) double y2, @WebParam(name = R) boolean isGeo, @WebParam(name = R) boolean isDriving)1035 public double Simulation_getDistance2D(@WebParam(name = "x1") double x1, @WebParam(name = "y1") double y1, @WebParam(name = "x2") double x2, @WebParam(name = "y2") double y2, @WebParam(name = "isGeo") boolean isGeo, @WebParam(name = "isDriving") boolean isDriving){ 1036 return this.helper.getDouble(this.sumo.get_cmd(Simulation.getDistance2D(x1, y1, x2, y2, isGeo, isDriving))); 1037 } 1038 1039 @WebMethod(action="Simulation: Returns the subscription results for the last time step.") Simulation_getDistanceRoad(@ebParamname = R) String edgeID1, @WebParam(name = R) double pos1, @WebParam(name = R) String edgeID2, @WebParam(name = R) double pos2, @WebParam(name = R) boolean isDriving)1040 public double Simulation_getDistanceRoad(@WebParam(name = "edgeID1") String edgeID1, @WebParam(name = "pos1") double pos1, @WebParam(name = "edgeID2") String edgeID2, @WebParam(name = "pos2") double pos2, @WebParam(name = "isDriving") boolean isDriving){ 1041 return this.helper.getDouble(this.sumo.get_cmd(Simulation.getDistanceRoad(edgeID1, pos1, edgeID2, pos2, isDriving))); 1042 } 1043 1044 @WebMethod(action="Simulation: getEndingTeleportIDList") Simulation_getEndingTeleportIDList()1045 public SumoStringList Simulation_getEndingTeleportIDList(){ 1046 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getEndingTeleportIDList())); 1047 } 1048 1049 @WebMethod(action="Simulation: getEndingTeleportNumber") Simulation_getEndingTeleportNumber()1050 public int Simulation_getEndingTeleportNumber(){ 1051 return this.helper.getInt(this.sumo.get_cmd(Simulation.getEndingTeleportNumber())); 1052 } 1053 1054 @WebMethod(action="Simulation: getLoadedIDList") Simulation_getLoadedIDList()1055 public SumoStringList Simulation_getLoadedIDList(){ 1056 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getLoadedIDList())); 1057 } 1058 1059 @WebMethod(action="Simulation: getLoadedNumber") Simulation_getLoadedNumber()1060 public int Simulation_getLoadedNumber(){ 1061 return this.helper.getInt(this.sumo.get_cmd(Simulation.getLoadedNumber())); 1062 } 1063 1064 @WebMethod(action="Simulation: getMinExpectedNumber") Simulation_getMinExpectedNumber()1065 public int Simulation_getMinExpectedNumber(){ 1066 return this.helper.getInt(this.sumo.get_cmd(Simulation.getMinExpectedNumber())); 1067 } 1068 1069 @WebMethod(action="Simulation: getNetBoundary") Simulation_getNetBoundary()1070 public SumoStringList Simulation_getNetBoundary(){ 1071 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getNetBoundary())); 1072 } 1073 1074 @WebMethod(action="Simulation: getStartingTeleportIDList") Simulation_getStartingTeleportIDList()1075 public SumoStringList Simulation_getStartingTeleportIDList(){ 1076 return this.helper.getStringList(this.sumo.get_cmd(Simulation.getStartingTeleportIDList())); 1077 } 1078 1079 @WebMethod(action="Simulation: getStartingTeleportNumber") Simulation_getStartingTeleportNumber()1080 public int Simulation_getStartingTeleportNumber(){ 1081 return this.helper.getInt(this.sumo.get_cmd(Simulation.getStartingTeleportNumber())); 1082 } 1083 1084 @WebMethod(action="Trafficlights: getCompleteRedYellowGreenDefinition") Trafficlights_getCompleteRedYellowGreenDefinition(@ebParamname = R) String tlsID)1085 public SumoTLSController Trafficlights_getCompleteRedYellowGreenDefinition(@WebParam(name = "tlsID") String tlsID){ 1086 return this.helper.getTLSProgram(this.sumo.get_cmd(Trafficlight.getCompleteRedYellowGreenDefinition(tlsID))); 1087 } 1088 1089 @WebMethod(action="Trafficlights: getControlledLanes") Trafficlights_getControlledLanes(@ebParamname = R) String tlsID)1090 public SumoStringList Trafficlights_getControlledLanes(@WebParam(name = "tlsID") String tlsID){ 1091 return this.helper.getStringList(this.sumo.get_cmd(Trafficlight.getControlledLanes(tlsID))); 1092 } 1093 1094 @WebMethod(action="Trafficlights: getControlledLinks") Trafficlights_getControlledLinks(@ebParamname = R) String tlsID)1095 public SumoStringList Trafficlights_getControlledLinks(@WebParam(name = "tlsID") String tlsID){ 1096 return this.helper.getStringList(this.sumo.get_cmd(Trafficlight.getControlledLinks(tlsID))); 1097 } 1098 1099 @WebMethod(action="Trafficlights: Returns a list of all traffic lights in the network.") Trafficlights_getIDList()1100 public SumoStringList Trafficlights_getIDList(){ 1101 return this.helper.getStringList(this.sumo.get_cmd(Trafficlight.getIDList())); 1102 } 1103 1104 @WebMethod(action="Trafficlights: Returns the number of all traffic lights in the network.") Trafficlights_getIDCount()1105 public int Trafficlights_getIDCount(){ 1106 return this.helper.getInt(this.sumo.get_cmd(Trafficlight.getIDCount())); 1107 } 1108 1109 @WebMethod(action="Trafficlights: Returns the next switch") Trafficlights_getNextSwitch(@ebParamname = R) String tlsID)1110 public int Trafficlights_getNextSwitch(@WebParam(name = "tlsID") String tlsID){ 1111 return this.helper.getInt(this.sumo.get_cmd(Trafficlight.getNextSwitch(tlsID))); 1112 } 1113 1114 @WebMethod(action="Trafficlights: Returns the phase duration") Trafficlights_getPhaseDuration(@ebParamname = R) String tlsID)1115 public int Trafficlights_getPhaseDuration(@WebParam(name = "tlsID") String tlsID){ 1116 return this.helper.getInt(this.sumo.get_cmd(Trafficlight.getPhaseDuration(tlsID))); 1117 } 1118 1119 @WebMethod(action="Trafficlights: getPhase") Trafficlights_getPhase(@ebParamname = R) String tlsID)1120 public int Trafficlights_getPhase(@WebParam(name = "tlsID") String tlsID){ 1121 return this.helper.getInt(this.sumo.get_cmd(Trafficlight.getPhase(tlsID))); 1122 } 1123 1124 @WebMethod(action="Trafficlights: getProgram") Trafficlights_getProgram(@ebParamname = R) String tlsID)1125 public String Trafficlights_getProgram(@WebParam(name = "tlsID") String tlsID){ 1126 return this.helper.getString(this.sumo.get_cmd(Trafficlight.getProgram(tlsID))); 1127 } 1128 1129 @WebMethod(action="Trafficlights: getRedYellowGreenState") Trafficlights_getRedYellowGreenState(@ebParamname = R) String tlsID)1130 public String Trafficlights_getRedYellowGreenState(@WebParam(name = "tlsID") String tlsID){ 1131 return this.helper.getString(this.sumo.get_cmd(Trafficlight.getRedYellowGreenState(tlsID))); 1132 } 1133 1134 @WebMethod(action="Vehicletype: getAccel") Vehicletype_getAccel(@ebParamname = R) String typeID)1135 public double Vehicletype_getAccel(@WebParam(name = "typeID") String typeID){ 1136 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getAccel(typeID))); 1137 } 1138 1139 @WebMethod(action="Vehicletype: Returns the subscription results for the last time step and the given vehicle type.") Vehicletype_getColor(@ebParamname = R) String typeID)1140 public SumoColor Vehicletype_getColor(@WebParam(name = "typeID") String typeID){ 1141 return this.helper.getColor(this.sumo.get_cmd(Vehicletype.getColor(typeID))); 1142 } 1143 1144 @WebMethod(action="Vehicletype: getDecel") Vehicletype_getDecel(@ebParamname = R) String typeID)1145 public double Vehicletype_getDecel(@WebParam(name = "typeID") String typeID){ 1146 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getDecel(typeID))); 1147 } 1148 1149 @WebMethod(action="Vehicletype: getEmissionClass") Vehicletype_getEmissionClass(@ebParamname = R) String typeID)1150 public String Vehicletype_getEmissionClass(@WebParam(name = "typeID") String typeID){ 1151 return this.helper.getString(this.sumo.get_cmd(Vehicletype.getEmissionClass(typeID))); 1152 } 1153 1154 @WebMethod(action="Vehicletype: Returns a list of all known vehicle types.") Vehicletype_getIDList()1155 public SumoStringList Vehicletype_getIDList(){ 1156 return this.helper.getStringList(this.sumo.get_cmd(Vehicletype.getIDList())); 1157 } 1158 1159 @WebMethod(action="Vehicletype: Returns the number of all known vehicle types.") Vehicletype_getIDCount()1160 public int Vehicletype_getIDCount(){ 1161 return this.helper.getInt(this.sumo.get_cmd(Vehicletype.getIDCount())); 1162 } 1163 1164 @WebMethod(action="Vehicletype: getImperfection") Vehicletype_getImperfection(@ebParamname = R) String typeID)1165 public double Vehicletype_getImperfection(@WebParam(name = "typeID") String typeID){ 1166 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getImperfection(typeID))); 1167 } 1168 1169 @WebMethod(action="Vehicletype: getLength") Vehicletype_getLength(@ebParamname = R) String typeID)1170 public double Vehicletype_getLength(@WebParam(name = "typeID") String typeID){ 1171 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getLength(typeID))); 1172 } 1173 1174 @WebMethod(action="Vehicletype: getMaxSpeed") Vehicletype_getMaxSpeed(@ebParamname = R) String typeID)1175 public double Vehicletype_getMaxSpeed(@WebParam(name = "typeID") String typeID){ 1176 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getMaxSpeed(typeID))); 1177 } 1178 1179 @WebMethod(action="Vehicletype: getMinGap") Vehicletype_getMinGap(@ebParamname = R) String typeID)1180 public double Vehicletype_getMinGap(@WebParam(name = "typeID") String typeID){ 1181 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getMinGap(typeID))); 1182 } 1183 1184 @WebMethod(action="Vehicletype: getShapeClass") Vehicletype_getShapeClass(@ebParamname = R) String typeID)1185 public String Vehicletype_getShapeClass(@WebParam(name = "typeID") String typeID){ 1186 return this.helper.getString(this.sumo.get_cmd(Vehicletype.getShapeClass(typeID))); 1187 } 1188 1189 @WebMethod(action="Vehicletype: getSpeedDeviation") Vehicletype_getSpeedDeviation(@ebParamname = R) String typeID)1190 public double Vehicletype_getSpeedDeviation(@WebParam(name = "typeID") String typeID){ 1191 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getSpeedDeviation(typeID))); 1192 } 1193 1194 @WebMethod(action="Vehicletype: getSpeedFactor") Vehicletype_getSpeedFactor(@ebParamname = R) String typeID)1195 public double Vehicletype_getSpeedFactor(@WebParam(name = "typeID") String typeID){ 1196 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getSpeedFactor(typeID))); 1197 } 1198 1199 @WebMethod(action="Vehicletype: getTau") Vehicletype_getTau(@ebParamname = R) String typeID)1200 public double Vehicletype_getTau(@WebParam(name = "typeID") String typeID){ 1201 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getTau(typeID))); 1202 } 1203 1204 @WebMethod(action="Vehicletype: getVehicleClass") Vehicletype_getVehicleClass(@ebParamname = R) String typeID)1205 public String Vehicletype_getVehicleClass(@WebParam(name = "typeID") String typeID){ 1206 return this.helper.getString(this.sumo.get_cmd(Vehicletype.getVehicleClass(typeID))); 1207 } 1208 1209 @WebMethod(action="Vehicletype: getWidth") Vehicletype_getWidth(@ebParamname = R) String typeID)1210 public double Vehicletype_getWidth(@WebParam(name = "typeID") String typeID){ 1211 return this.helper.getDouble(this.sumo.get_cmd(Vehicletype.getWidth(typeID))); 1212 } 1213 1214 @WebMethod(action="Lane: getAllowed") Lane_getAllowed(@ebParamname = R) String laneID)1215 public SumoStringList Lane_getAllowed(@WebParam(name = "laneID") String laneID){ 1216 return this.helper.getStringList(this.sumo.get_cmd(Lane.getAllowed(laneID))); 1217 } 1218 1219 @WebMethod(action="Lane: Returns the CO2 emission in mg for the last time step on the given lane.") Lane_getCO2Emission(@ebParamname = R) String laneID)1220 public double Lane_getCO2Emission(@WebParam(name = "laneID") String laneID){ 1221 return this.helper.getDouble(this.sumo.get_cmd(Lane.getCO2Emission(laneID))); 1222 } 1223 1224 @WebMethod(action="Lane: Returns the CO emission in mg for the last time step on the given lane.") Lane_getCOEmission(@ebParamname = R) String laneID)1225 public double Lane_getCOEmission(@WebParam(name = "laneID") String laneID){ 1226 return this.helper.getDouble(this.sumo.get_cmd(Lane.getCOEmission(laneID))); 1227 } 1228 1229 @WebMethod(action="Lane: getDisallowed") Lane_getDisallowed(@ebParamname = R) String laneID)1230 public SumoStringList Lane_getDisallowed(@WebParam(name = "laneID") String laneID){ 1231 return this.helper.getStringList(this.sumo.get_cmd(Lane.getDisallowed(laneID))); 1232 } 1233 1234 @WebMethod(action="Lane: getEdgeID") Lane_getEdgeID(@ebParamname = R) String laneID)1235 public String Lane_getEdgeID(@WebParam(name = "laneID") String laneID){ 1236 return this.helper.getString(this.sumo.get_cmd(Lane.getEdgeID(laneID))); 1237 } 1238 1239 @WebMethod(action="Lane: getElectricityConsumption") Lane_getElectricityConsumption(@ebParamname = R) String laneID)1240 public String Lane_getElectricityConsumption(@WebParam(name = "laneID") String laneID){ 1241 return this.helper.getString(this.sumo.get_cmd(Lane.getElectricityConsumption(laneID))); 1242 } 1243 1244 @WebMethod(action="Lane: Returns the fuel consumption in ml for the last time step on the given lane.") Lane_getFuelConsumption(@ebParamname = R) String laneID)1245 public double Lane_getFuelConsumption(@WebParam(name = "laneID") String laneID){ 1246 return this.helper.getDouble(this.sumo.get_cmd(Lane.getFuelConsumption(laneID))); 1247 } 1248 1249 @WebMethod(action="Lane: Returns the HC emission in mg for the last time step on the given lane.") Lane_getHCEmission(@ebParamname = R) String laneID)1250 public double Lane_getHCEmission(@WebParam(name = "laneID") String laneID){ 1251 return this.helper.getDouble(this.sumo.get_cmd(Lane.getHCEmission(laneID))); 1252 } 1253 1254 @WebMethod(action="Lane: Returns a list of all lanes in the network.") Lane_getIDList()1255 public SumoStringList Lane_getIDList(){ 1256 return this.helper.getStringList(this.sumo.get_cmd(Lane.getIDList())); 1257 } 1258 1259 @WebMethod(action="Lane: Returns the number of all lanes in the network.") Lane_getIDCount()1260 public int Lane_getIDCount(){ 1261 return this.helper.getInt(this.sumo.get_cmd(Lane.getIDCount())); 1262 } 1263 1264 1265 @WebMethod(action="Lane: Returns the total number of halting vehicles for the last time step on the given lane.") Lane_getLastStepHaltingNumber(@ebParamname = R) String laneID)1266 public int Lane_getLastStepHaltingNumber(@WebParam(name = "laneID") String laneID){ 1267 return this.helper.getInt(this.sumo.get_cmd(Lane.getLastStepHaltingNumber(laneID))); 1268 } 1269 1270 @WebMethod(action="Lane: Returns the total vehicle length in m for the last time step on the given lane.") Lane_getLastStepLength(@ebParamname = R) String laneID)1271 public double Lane_getLastStepLength(@WebParam(name = "laneID") String laneID){ 1272 return this.helper.getDouble(this.sumo.get_cmd(Lane.getLastStepLength(laneID))); 1273 } 1274 1275 @WebMethod(action="Lane: Returns the average speed in m/s for the last time step on the given lane.") Lane_getLastStepMeanSpeed(@ebParamname = R) String laneID)1276 public double Lane_getLastStepMeanSpeed(@WebParam(name = "laneID") String laneID){ 1277 return this.helper.getDouble(this.sumo.get_cmd(Lane.getLastStepMeanSpeed(laneID))); 1278 } 1279 1280 @WebMethod(action="Lane: Returns the occupancy in % for the last time step on the given lane.") Lane_getLastStepOccupancy(@ebParamname = R) String laneID)1281 public double Lane_getLastStepOccupancy(@WebParam(name = "laneID") String laneID){ 1282 return this.helper.getDouble(this.sumo.get_cmd(Lane.getLastStepOccupancy(laneID))); 1283 } 1284 1285 @WebMethod(action="Lane: Returns the subscription results for the last time step and the given lane.") Lane_getLastStepVehicleIDs(@ebParamname = R) String laneID)1286 public SumoStringList Lane_getLastStepVehicleIDs(@WebParam(name = "laneID") String laneID){ 1287 return this.helper.getStringList(this.sumo.get_cmd(Lane.getLastStepVehicleIDs(laneID))); 1288 } 1289 1290 @WebMethod(action="Lane: Returns the total number of vehicles for the last time step on the given lane.") Lane_getLastStepVehicleNumber(@ebParamname = R) String laneID)1291 public int Lane_getLastStepVehicleNumber(@WebParam(name = "laneID") String laneID){ 1292 return this.helper.getInt(this.sumo.get_cmd(Lane.getLastStepVehicleNumber(laneID))); 1293 } 1294 1295 @WebMethod(action="Lane: getLength") Lane_getLength(@ebParamname = R) String laneID)1296 public double Lane_getLength(@WebParam(name = "laneID") String laneID){ 1297 return this.helper.getDouble(this.sumo.get_cmd(Lane.getLength(laneID))); 1298 } 1299 1300 @WebMethod(action="Lane: getLinkNumber") Lane_getLinkNumber(@ebParamname = R) String laneID)1301 public byte Lane_getLinkNumber(@WebParam(name = "laneID") String laneID){ 1302 return this.helper.getByte(this.sumo.get_cmd(Lane.getLinkNumber(laneID))); 1303 } 1304 1305 @WebMethod(action="Lane: getLinks") Lane_getLinks(@ebParamname = R) String laneID)1306 public SumoLinkList Lane_getLinks(@WebParam(name = "laneID") String laneID){ 1307 return this.helper.getLaneLinks(this.sumo.get_cmd(Lane.getLinks(laneID))); 1308 } 1309 1310 @WebMethod(action="Lane: getMaxSpeed") Lane_getMaxSpeed(@ebParamname = R) String laneID)1311 public double Lane_getMaxSpeed(@WebParam(name = "laneID") String laneID){ 1312 return this.helper.getDouble(this.sumo.get_cmd(Lane.getMaxSpeed(laneID))); 1313 } 1314 1315 @WebMethod(action="Lane: getWaitingTime") Lane_getWaitingTime(@ebParamname = R) String laneID)1316 public double Lane_getWaitingTime(@WebParam(name = "laneID") String laneID){ 1317 return this.helper.getDouble(this.sumo.get_cmd(Lane.getWaitingTime(laneID))); 1318 } 1319 1320 @WebMethod(action="Lane: Returns the NOx emission in mg for the last time step on the given lane.") Lane_getNOxEmission(@ebParamname = R) String laneID)1321 public double Lane_getNOxEmission(@WebParam(name = "laneID") String laneID){ 1322 return this.helper.getDouble(this.sumo.get_cmd(Lane.getNOxEmission(laneID))); 1323 } 1324 1325 @WebMethod(action="Lane: Returns the noise emission in db for the last time step on the given lane.") Lane_getNoiseEmission(@ebParamname = R) String laneID)1326 public double Lane_getNoiseEmission(@WebParam(name = "laneID") String laneID){ 1327 return this.helper.getDouble(this.sumo.get_cmd(Lane.getNoiseEmission(laneID))); 1328 } 1329 1330 @WebMethod(action="Lane: Returns the particular matter emission in mg for the last time step on the given lane.") Lane_getPMxEmission(@ebParamname = R) String laneID)1331 public double Lane_getPMxEmission(@WebParam(name = "laneID") String laneID){ 1332 return this.helper.getDouble(this.sumo.get_cmd(Lane.getPMxEmission(laneID))); 1333 } 1334 1335 @WebMethod(action="Lane: getShape") Lane_getShape(@ebParamname = R) String laneID)1336 public SumoGeometry Lane_getShape(@WebParam(name = "laneID") String laneID){ 1337 return this.helper.getPolygon(this.sumo.get_cmd(Lane.getShape(laneID))); 1338 } 1339 1340 @WebMethod(action="Lane: Returns the estimated travel time in s for the last time step on the given lane.") Lane_getTraveltime(@ebParamname = R) String laneID)1341 public double Lane_getTraveltime(@WebParam(name = "laneID") String laneID){ 1342 return this.helper.getDouble(this.sumo.get_cmd(Lane.getTraveltime(laneID))); 1343 } 1344 1345 @WebMethod(action="Lane: getWidth") Lane_getWidth(@ebParamname = R) String laneID)1346 public double Lane_getWidth(@WebParam(name = "laneID") String laneID){ 1347 return this.helper.getDouble(this.sumo.get_cmd(Lane.getWidth(laneID))); 1348 } 1349 1350 @WebMethod(action="Polygon: Returns the subscription results for the last time step and the given poi.") Polygon_getColor(@ebParamname = R) String polygonID)1351 public SumoColor Polygon_getColor(@WebParam(name = "polygonID") String polygonID){ 1352 return this.helper.getColor(this.sumo.get_cmd(Polygon.getColor(polygonID))); 1353 } 1354 1355 @WebMethod(action="Polygon: Returns a list of all polygons in the network.") Polygon_getIDList()1356 public SumoStringList Polygon_getIDList(){ 1357 return this.helper.getStringList(this.sumo.get_cmd(Polygon.getIDList())); 1358 } 1359 1360 @WebMethod(action="Polygon: Returns the number of all polygons in the network.") Polygon_getIDCount()1361 public int Polygon_getIDCount(){ 1362 return this.helper.getInt(this.sumo.get_cmd(Polygon.getIDCount())); 1363 } 1364 1365 @WebMethod(action="Polygon: getShape") Polygon_getShape(@ebParamname = R) String polygonID)1366 public SumoGeometry Polygon_getShape(@WebParam(name = "polygonID") String polygonID){ 1367 return this.helper.getPolygon(this.sumo.get_cmd(Polygon.getShape(polygonID))); 1368 } 1369 1370 @WebMethod(action="Polygon: getType") Polygon_getType(@ebParamname = R) String polygonID)1371 public String Polygon_getType(@WebParam(name = "polygonID") String polygonID){ 1372 return this.helper.getString(this.sumo.get_cmd(Polygon.getType(polygonID))); 1373 } 1374 1375 @WebMethod(action="Poi: add") Poi_add(@ebParamname = R) String poiID, @WebParam(name = R) double x, @WebParam(name = R) double y, @WebParam(name = R) SumoColor color, @WebParam(name = R) String poiType, @WebParam(name = R) int layer)1376 public void Poi_add(@WebParam(name = "poiID") String poiID, @WebParam(name = "x") double x, @WebParam(name = "y") double y, @WebParam(name = "color") SumoColor color, @WebParam(name = "poiType") String poiType, @WebParam(name = "layer") int layer){ 1377 this.sumo.get_cmd(Poi.add(poiID, x, y, color, poiType, layer)); 1378 } 1379 1380 @WebMethod(action="Poi: Returns the color of the given poi.") Poi_getColor(@ebParamname = R) String poiID)1381 public SumoColor Poi_getColor(@WebParam(name = "poiID") String poiID){ 1382 return this.helper.getColor(this.sumo.get_cmd(Poi.getColor(poiID))); 1383 } 1384 1385 @WebMethod(action="Poi: Returns a list of all pois in the network.") Poi_getIDList()1386 public SumoStringList Poi_getIDList(){ 1387 return this.helper.getStringList(this.sumo.get_cmd(Poi.getIDList())); 1388 } 1389 1390 @WebMethod(action="Poi: Returns the number of all pois in the network.") Poi_getIDCount()1391 public int Poi_getIDCount(){ 1392 return this.helper.getInt(this.sumo.get_cmd(Poi.getIDCount())); 1393 } 1394 1395 @WebMethod(action="Poi: getPosition") Poi_getPosition(@ebParamname = R) String poiID)1396 public SumoPosition2D Poi_getPosition(@WebParam(name = "poiID") String poiID){ 1397 return this.helper.getPosition2D(this.sumo.get_cmd(Poi.getPosition(poiID))); 1398 } 1399 1400 @WebMethod(action="Poi: getType") Poi_getType(@ebParamname = R) String poiID)1401 public String Poi_getType(@WebParam(name = "poiID") String poiID){ 1402 return this.helper.getString(this.sumo.get_cmd(Poi.getType(poiID))); 1403 } 1404 1405 @WebMethod(action="Junction: Returns a list of all junctions in the network.") Junction_getIDList()1406 public SumoStringList Junction_getIDList(){ 1407 return this.helper.getStringList(this.sumo.get_cmd(Junction.getIDList())); 1408 } 1409 1410 @WebMethod(action="Junction: getShape") Junction_getShape(@ebParamname = R) String junctionID)1411 public SumoGeometry Junction_getShape(@WebParam(name = "junctionID") String junctionID){ 1412 return this.helper.getPolygon(this.sumo.get_cmd(Junction.getShape(junctionID))); 1413 } 1414 1415 @WebMethod(action="Junction: Returns the number of all junctions in the network.") Junction_getIDCount()1416 public int Junction_getIDCount(){ 1417 return this.helper.getInt(this.sumo.get_cmd(Junction.getIDCount())); 1418 } 1419 1420 @WebMethod(action="Junction: Returns the subscription results for the last time step and the given junction.") Junction_getPosition(@ebParamname = R) String junctionID)1421 public SumoPosition2D Junction_getPosition(@WebParam(name = "junctionID") String junctionID){ 1422 return this.helper.getPosition2D(this.sumo.get_cmd(Junction.getPosition(junctionID))); 1423 } 1424 1425 @WebMethod(action="Gui: Returns the subscription results for the last time step and the given view.") GUI_getBoundary(@ebParamname = R) String viewID)1426 public SumoBoundingBox GUI_getBoundary(@WebParam(name = "viewID") String viewID){ 1427 return this.helper.getBoundingBox(this.sumo.get_cmd(Gui.getBoundary(viewID))); 1428 } 1429 1430 @WebMethod(action="Gui: Returns the list of available views (open windows).") GUI_getIDList()1431 public SumoStringList GUI_getIDList(){ 1432 return this.helper.getStringList(this.sumo.get_cmd(Gui.getIDList())); 1433 } 1434 1435 @WebMethod(action="Gui: Returns the x and y offset of the center of the current view.") GUI_getOffset(@ebParamname = R) String viewID)1436 public SumoPosition2D GUI_getOffset(@WebParam(name = "viewID") String viewID){ 1437 return this.helper.getPosition2D(this.sumo.get_cmd(Gui.getOffset(viewID))); 1438 } 1439 1440 @WebMethod(action="Gui: Returns the name of the current coloring scheme.") GUI_getSchema(@ebParamname = R) String viewID)1441 public String GUI_getSchema(@WebParam(name = "viewID") String viewID){ 1442 return this.helper.getString(this.sumo.get_cmd(Gui.getSchema(viewID))); 1443 } 1444 1445 @WebMethod(action="Gui: Returns the current zoom factor.") GUI_getZoom(@ebParamname = R) String viewID)1446 public double GUI_getZoom(@WebParam(name = "viewID") String viewID){ 1447 return this.helper.getDouble(this.sumo.get_cmd(Gui.getZoom(viewID))); 1448 } 1449 1450 @WebMethod(action="Route: Returns the subscription results for the last time step and the given route.") Route_getEdges(@ebParamname = R) String routeID)1451 public SumoStringList Route_getEdges(@WebParam(name = "routeID") String routeID){ 1452 return this.helper.getStringList(this.sumo.get_cmd(Route.getEdges(routeID))); 1453 } 1454 1455 @WebMethod(action="Route: Returns a list of all routes in the network.") Route_getIDList()1456 public SumoStringList Route_getIDList(){ 1457 return this.helper.getStringList(this.sumo.get_cmd(Route.getIDList())); 1458 } 1459 1460 @WebMethod(action="Route: Returns the number of all routes in the network.") Route_getIDCount()1461 public int Route_getIDCount(){ 1462 return this.helper.getInt(this.sumo.get_cmd(Route.getIDCount())); 1463 } 1464 1465 @WebMethod(action="Inductionloop: Returns a list of all induction loops in the network.") Inductionloop_getIDList()1466 public SumoStringList Inductionloop_getIDList(){ 1467 return this.helper.getStringList(this.sumo.get_cmd(Inductionloop.getIDList())); 1468 } 1469 1470 @WebMethod(action="Inductionloop: Returns the number of induction loops in the network.") Inductionloop_getIDCount()1471 public int Inductionloop_getIDCount(){ 1472 return this.helper.getInt(this.sumo.get_cmd(Inductionloop.getIDCount())); 1473 } 1474 1475 @WebMethod(action="Inductionloop: Returns the id of the lane the loop is on.") Inductionloop_getLaneID(@ebParamname = R) String loopID)1476 public String Inductionloop_getLaneID(@WebParam(name = "loopID") String loopID){ 1477 return this.helper.getString(this.sumo.get_cmd(Inductionloop.getLaneID(loopID))); 1478 } 1479 1480 @WebMethod(action="Inductionloop: getLastStepMeanLength") Inductionloop_getLastStepMeanLength(@ebParamname = R) String loopID)1481 public double Inductionloop_getLastStepMeanLength(@WebParam(name = "loopID") String loopID){ 1482 return this.helper.getDouble(this.sumo.get_cmd(Inductionloop.getLastStepMeanLength(loopID))); 1483 } 1484 1485 @WebMethod(action="Inductionloop: getLastStepMeanSpeed") Inductionloop_getLastStepMeanSpeed(@ebParamname = R) String loopID)1486 public double Inductionloop_getLastStepMeanSpeed(@WebParam(name = "loopID") String loopID){ 1487 return this.helper.getDouble(this.sumo.get_cmd(Inductionloop.getLastStepMeanSpeed(loopID))); 1488 } 1489 1490 @WebMethod(action="Inductionloop: getLastStepOccupancy") Inductionloop_getLastStepOccupancy(@ebParamname = R) String loopID)1491 public double Inductionloop_getLastStepOccupancy(@WebParam(name = "loopID") String loopID){ 1492 return this.helper.getDouble(this.sumo.get_cmd(Inductionloop.getLastStepOccupancy(loopID))); 1493 } 1494 1495 @WebMethod(action="Inductionloop: getLastStepVehicleIDs") Inductionloop_getLastStepVehicleIDs(@ebParamname = R) String loopID)1496 public SumoStringList Inductionloop_getLastStepVehicleIDs(@WebParam(name = "loopID") String loopID){ 1497 return this.helper.getStringList(this.sumo.get_cmd(Inductionloop.getLastStepVehicleIDs(loopID))); 1498 } 1499 1500 @WebMethod(action="Inductionloop: getLastStepVehicleNumber") Inductionloop_getLastStepVehicleNumber(@ebParamname = R) String loopID)1501 public int Inductionloop_getLastStepVehicleNumber(@WebParam(name = "loopID") String loopID){ 1502 return this.helper.getInt(this.sumo.get_cmd(Inductionloop.getLastStepVehicleNumber(loopID))); 1503 } 1504 1505 @WebMethod(action="Inductionloop: Returns the position measured from the beginning of the lane.") Inductionloop_getPosition(@ebParamname = R) String loopID)1506 public double Inductionloop_getPosition(@WebParam(name = "loopID") String loopID){ 1507 return this.helper.getDouble(this.sumo.get_cmd(Inductionloop.getPosition(loopID))); 1508 } 1509 1510 @WebMethod(action="Inductionloop: getTimeSinceDetection") Inductionloop_getTimeSinceDetection(@ebParamname = R) String loopID)1511 public double Inductionloop_getTimeSinceDetection(@WebParam(name = "loopID") String loopID){ 1512 return this.helper.getDouble(this.sumo.get_cmd(Inductionloop.getTimeSinceDetection(loopID))); 1513 } 1514 1515 @WebMethod(action="Inductionloop: Returns the subscription results for the last time step and the given loop.") Inductionloop_getVehicleData(@ebParamname = R) String loopID)1516 public SumoVehicleData Inductionloop_getVehicleData(@WebParam(name = "loopID") String loopID){ 1517 return this.helper.getVehicleData(this.sumo.get_cmd(Inductionloop.getVehicleData(loopID))); 1518 } 1519 1520 1521 }