Package de.tudresden.sumo.cmd
Class Route
- java.lang.Object
-
- de.tudresden.sumo.cmd.Route
-
public class Route extends java.lang.Object
- Author:
- Mario Krumnow, Evamarie Wiessner
-
-
Constructor Summary
Constructors Constructor Description Route()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SumoCommand
add(java.lang.String routeID, SumoStringList edges)
Add a new route.static SumoCommand
getEdges(java.lang.String routeID)
Returns the IDs of the edges this route covers.static SumoCommand
getIDCount()
Returns the number of all Routes in the network.static SumoCommand
getIDList()
Returns a list of IDs of all currently loaded routes.static SumoCommand
getParameter(java.lang.String routeID, java.lang.String param)
Returns the chosen parameterstatic SumoCommand
setParameter(java.lang.String routeID, java.lang.String param, java.lang.String value)
Sets the chosen parameter
-
-
-
Method Detail
-
getEdges
public static SumoCommand getEdges(java.lang.String routeID)
Returns the IDs of the edges this route covers.- Parameters:
routeID
- a string identifying the route- Returns:
- a list of IDs of the edges
-
getIDList
public static SumoCommand getIDList()
Returns a list of IDs of all currently loaded routes.- Returns:
- a list of ID's of all routes
-
getIDCount
public static SumoCommand getIDCount()
Returns the number of all Routes in the network.- Returns:
- the number of routes in the network
-
getParameter
public static SumoCommand getParameter(java.lang.String routeID, java.lang.String param)
Returns the chosen parameter- Parameters:
routeID
- a string identifying the routeparam
- a string identifying the parameter- Returns:
- the specific parameter
-
setParameter
public static SumoCommand setParameter(java.lang.String routeID, java.lang.String param, java.lang.String value)
Sets the chosen parameter- Parameters:
vehID
- a string identifying the vehicleparam
- a string identifying the parametervalue
- a string identifying the new value- Returns:
- SumoCommand
-
add
public static SumoCommand add(java.lang.String routeID, SumoStringList edges)
Add a new route.- Parameters:
routeID
- a string identifying the routeedges
- list of edges the new route is following- Returns:
- SumoCommand
-
-