public class Poi
extends Object
Constructor and Description |
---|
Poi() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
add(String poiID,
double x,
double y,
SumoColor color,
String poiType,
int layer)
Add a new point-of-interest.
|
static SumoCommand |
getColor(String poiID)
Returns the color of this poi.
|
static SumoCommand |
getIDCount()
Returns the number of all Poi's in the network.
|
static SumoCommand |
getIDList()
Returns a list of IDs of all poi.
|
static SumoCommand |
getParameter(String poiID,
String param)
Returns the chosen parameter
|
static SumoCommand |
getPosition(String poiID)
Returns the position of this poi.
|
static SumoCommand |
getType(String poiID)
Returns the type of the poi.
|
static SumoCommand |
remove(String poiID,
int layer)
Remove a poi.
|
static SumoCommand |
setColor(String poiID,
SumoColor color)
Set the color of this poi.
|
static SumoCommand |
setPosition(String poiID,
double x,
double y)
Set the position of this poi.
|
static SumoCommand |
setType(String poiID,
String poiType)
Set the type of the poi.
|
public static SumoCommand add(String poiID, double x, double y, SumoColor color, String poiType, int layer)
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 layerpublic static SumoCommand getIDCount()
public static SumoCommand getColor(String poiID)
poiID
- a string identifying the point-of-interestpublic static SumoCommand getIDList()
public static SumoCommand getParameter(String poiID, String param)
poiID
- a string identifying the poiparam
- a string identifying the parameterpublic static SumoCommand getPosition(String poiID)
poiID
- a string identifying the point-of-interestpublic static SumoCommand getType(String poiID)
poiID
- a string identifying the point-of-interestpublic static SumoCommand remove(String poiID, int layer)
poiID
- a string identifying the point-of-interestlayer
- an integer identifying the layerpublic static SumoCommand setColor(String poiID, SumoColor color)
poiID
- a string identifying the point-of-interestcolor
- value (r,g,b,a) of colorpublic static SumoCommand setPosition(String poiID, double x, double y)
poiID
- a string identifying the point-of-interestx
- x-coordinate of the pointy
- y-coordinate of the pointpublic static SumoCommand setType(String poiID, String poiType)
poiID
- a string identifying the point-of-interestpoiType
- a string identifying the type of a poi