Package de.tudresden.sumo.cmd
Class Poi
java.lang.Object
de.tudresden.sumo.cmd.Poi
The Class Poi.
- Author:
- Mario Krumnow, Evamarie Wiessner
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
Poi
public Poi()
-
-
Method Details
-
add
public 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-interestx- x-coordinate of the pointy- y-coordinate of the pointcolor- value (r,g,b,a) of colorpoiType- a string identifying the type of a poilayer- an integer identifying the layerimgFile- image filewidth- width of the poiheight- height of the poiangle- angle of the poi- Returns:
- SumoCommand
-
getIDCount
Returns the number of all Poi's in the network.- Returns:
- the number of POI's in the network
-
getColor
Returns the color of this poi.- Parameters:
poiID- a string identifying the point-of-interest- Returns:
- color value
-
getIDList
Returns a list of IDs of all poi.- Returns:
- a list of IDs of all points of interest
-
getParameter
Returns the chosen parameter.- Parameters:
poiID- a string identifying the poiparam- a string identifying the parameter- Returns:
- the specific parameter
-
setParameter
Sets the chosen parameter.- Parameters:
poiID- the poi IDparam- a string identifying the parametervalue- a string identifying the new value- Returns:
- SumoCommand
-
getPosition
Returns the position of this poi.- Parameters:
poiID- a string identifying the point-of-interest- Returns:
- position of the point
-
getType
Returns the type of the poi.- Parameters:
poiID- a string identifying the point-of-interest- Returns:
- type of the point
-
remove
Remove a poi.- Parameters:
poiID- a string identifying the point-of-interestlayer- an integer identifying the layer- Returns:
- SumoCommand
-
setColor
Set the color of this poi.- Parameters:
poiID- a string identifying the point-of-interestcolor- value (r,g,b,a) of color- Returns:
- SumoCommand
-
setPosition
Set the position of this poi.- Parameters:
poiID- a string identifying the point-of-interestx- x-coordinate of the pointy- y-coordinate of the point- Returns:
- SumoCommand
-
setType
Set the type of the poi.- Parameters:
poiID- a string identifying the point-of-interestpoiType- a string identifying the type of a poi- Returns:
- SumoCommand
-