Package de.tudresden.sumo.cmd
Class Poi
java.lang.Object
de.tudresden.sumo.cmd.Poi
The Class Poi.
- Author:
- Mario Krumnow, Evamarie Wiessner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SumoCommandadd(String poiID, double x, double y, SumoColor color, String poiType, int layer, String imgFile, double width, double height, double angle) Add a new point-of-interest.static SumoCommandReturns the color of this poi.static SumoCommandReturns the number of all Poi's in the network.static SumoCommandReturns a list of IDs of all poi.static SumoCommandgetParameter(String poiID, String param) Returns the chosen parameter.static SumoCommandgetPosition(String poiID) Returns the position of this poi.static SumoCommandReturns the type of the poi.static SumoCommandRemove a poi.static SumoCommandSet the color of this poi.static SumoCommandsetParameter(String poiID, String param, String value) Sets the chosen parameter.static SumoCommandsetPosition(String poiID, double x, double y) Set the position of this poi.static SumoCommandSet the type of the poi.
- 
Constructor Details- 
Poipublic Poi()
 
- 
- 
Method Details- 
addpublic static SumoCommand add(String poiID, double x, double y, SumoColor color, String poiType, int layer, String imgFile, double width, double height, double angle) Add a new point-of-interest.- Parameters:
- poiID- a string identifying the point-of-interest
- x- x-coordinate of the point
- y- y-coordinate of the point
- color- value (r,g,b,a) of color
- poiType- a string identifying the type of a poi
- layer- an integer identifying the layer
- imgFile- image file
- width- width of the poi
- height- height of the poi
- angle- angle of the poi
- Returns:
- SumoCommand
 
- 
getIDCountReturns the number of all Poi's in the network.- Returns:
- the number of POI's in the network
 
- 
getColorReturns the color of this poi.- Parameters:
- poiID- a string identifying the point-of-interest
- Returns:
- color value
 
- 
getIDListReturns a list of IDs of all poi.- Returns:
- a list of IDs of all points of interest
 
- 
getParameterReturns the chosen parameter.- Parameters:
- poiID- a string identifying the poi
- param- a string identifying the parameter
- Returns:
- the specific parameter
 
- 
setParameterSets the chosen parameter.- Parameters:
- poiID- the poi ID
- param- a string identifying the parameter
- value- a string identifying the new value
- Returns:
- SumoCommand
 
- 
getPositionReturns the position of this poi.- Parameters:
- poiID- a string identifying the point-of-interest
- Returns:
- position of the point
 
- 
getTypeReturns the type of the poi.- Parameters:
- poiID- a string identifying the point-of-interest
- Returns:
- type of the point
 
- 
removeRemove a poi.- Parameters:
- poiID- a string identifying the point-of-interest
- layer- an integer identifying the layer
- Returns:
- SumoCommand
 
- 
setColorSet the color of this poi.- Parameters:
- poiID- a string identifying the point-of-interest
- color- value (r,g,b,a) of color
- Returns:
- SumoCommand
 
- 
setPositionSet the position of this poi.- Parameters:
- poiID- a string identifying the point-of-interest
- x- x-coordinate of the point
- y- y-coordinate of the point
- Returns:
- SumoCommand
 
- 
setTypeSet the type of the poi.- Parameters:
- poiID- a string identifying the point-of-interest
- poiType- a string identifying the type of a poi
- Returns:
- SumoCommand
 
 
-