Package de.tudresden.sumo.cmd
Class Route
java.lang.Object
de.tudresden.sumo.cmd.Route
The Class Route.
- Author:
- Mario Krumnow, Evamarie Wiessner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SumoCommand
add
(String routeID, SumoStringList edges) Add a new route.static SumoCommand
Returns the IDs of the edges this route covers.static SumoCommand
Returns the number of all Routes in the network.static SumoCommand
Returns a list of IDs of all currently loaded routes.static SumoCommand
getParameter
(String routeID, String param) Returns the chosen parameter.static SumoCommand
setParameter
(String routeID, String param, String value) Sets the chosen parameter.
-
Constructor Details
-
Route
public Route()
-
-
Method Details
-
getEdges
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
Returns a list of IDs of all currently loaded routes.- Returns:
- a list of ID's of all routes
-
getIDCount
Returns the number of all Routes in the network.- Returns:
- the number of routes in the network
-
getParameter
Returns the chosen parameter.- Parameters:
routeID
- a string identifying the routeparam
- a string identifying the parameter- Returns:
- the specific parameter
-
setParameter
Sets the chosen parameter.- Parameters:
routeID
- the route IDparam
- a string identifying the parametervalue
- a string identifying the new value- Returns:
- SumoCommand
-
add
Add a new route.- Parameters:
routeID
- a string identifying the routeedges
- list of edges the new route is following- Returns:
- SumoCommand
-