Package de.tudresden.sumo.cmd
Class Route
java.lang.Object
de.tudresden.sumo.cmd.Route
The Class Route.
- Author:
- Mario Krumnow, Evamarie Wiessner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SumoCommandadd(String routeID, SumoStringList edges) Add a new route.static SumoCommandReturns the IDs of the edges this route covers.static SumoCommandReturns the number of all Routes in the network.static SumoCommandReturns a list of IDs of all currently loaded routes.static SumoCommandgetParameter(String routeID, String param) Returns the chosen parameter.static SumoCommandsetParameter(String routeID, String param, String value) Sets the chosen parameter.
- 
Constructor Details- 
Routepublic Route()
 
- 
- 
Method Details- 
getEdgesReturns the IDs of the edges this route covers.- Parameters:
- routeID- a string identifying the route
- Returns:
- a list of IDs of the edges
 
- 
getIDListReturns a list of IDs of all currently loaded routes.- Returns:
- a list of ID's of all routes
 
- 
getIDCountReturns the number of all Routes in the network.- Returns:
- the number of routes in the network
 
- 
getParameterReturns the chosen parameter.- Parameters:
- routeID- a string identifying the route
- param- a string identifying the parameter
- Returns:
- the specific parameter
 
- 
setParameterSets the chosen parameter.- Parameters:
- routeID- the route ID
- param- a string identifying the parameter
- value- a string identifying the new value
- Returns:
- SumoCommand
 
- 
addAdd a new route.- Parameters:
- routeID- a string identifying the route
- edges- list of edges the new route is following
- Returns:
- SumoCommand
 
 
-