Class Poi


  • public class Poi
    extends java.lang.Object
    Author:
    Mario Krumnow, Evamarie Wiessner
    • Constructor Summary

      Constructors 
      Constructor Description
      Poi()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SumoCommand add​(java.lang.String poiID, double x, double y, SumoColor color, java.lang.String poiType, int layer)
      Add a new point-of-interest.
      static SumoCommand getColor​(java.lang.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​(java.lang.String poiID, java.lang.String param)
      Returns the chosen parameter
      static SumoCommand getPosition​(java.lang.String poiID)
      Returns the position of this poi.
      static SumoCommand getType​(java.lang.String poiID)
      Returns the type of the poi.
      static SumoCommand remove​(java.lang.String poiID, int layer)
      Remove a poi.
      static SumoCommand setColor​(java.lang.String poiID, SumoColor color)
      Set the color of this poi.
      static SumoCommand setParameter​(java.lang.String poiID, java.lang.String param, java.lang.String value)
      Sets the chosen parameter
      static SumoCommand setPosition​(java.lang.String poiID, double x, double y)
      Set the position of this poi.
      static SumoCommand setType​(java.lang.String poiID, java.lang.String poiType)
      Set the type of the poi.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Poi

        public Poi()
    • Method Detail

      • add

        public static SumoCommand add​(java.lang.String poiID,
                                      double x,
                                      double y,
                                      SumoColor color,
                                      java.lang.String poiType,
                                      int layer)
        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
        Returns:
        SumoCommand
      • getIDCount

        public static SumoCommand getIDCount()
        Returns the number of all Poi's in the network.
        Returns:
        the number of POI's in the network
      • getColor

        public static SumoCommand getColor​(java.lang.String poiID)
        Returns the color of this poi.
        Parameters:
        poiID - a string identifying the point-of-interest
        Returns:
        color value
      • getIDList

        public static SumoCommand getIDList()
        Returns a list of IDs of all poi.
        Returns:
        a list of IDs of all points of interest
      • getParameter

        public static SumoCommand getParameter​(java.lang.String poiID,
                                               java.lang.String param)
        Returns the chosen parameter
        Parameters:
        poiID - a string identifying the poi
        param - a string identifying the parameter
        Returns:
        the specific parameter
      • setParameter

        public static SumoCommand setParameter​(java.lang.String poiID,
                                               java.lang.String param,
                                               java.lang.String value)
        Sets the chosen parameter
        Parameters:
        vehID - a string identifying the vehicle
        param - a string identifying the parameter
        value - a string identifying the new value
        Returns:
        SumoCommand
      • getPosition

        public static SumoCommand getPosition​(java.lang.String poiID)
        Returns the position of this poi.
        Parameters:
        poiID - a string identifying the point-of-interest
        Returns:
        position of the point
      • getType

        public static SumoCommand getType​(java.lang.String poiID)
        Returns the type of the poi.
        Parameters:
        poiID - a string identifying the point-of-interest
        Returns:
        type of the point
      • remove

        public static SumoCommand remove​(java.lang.String poiID,
                                         int layer)
        Remove a poi.
        Parameters:
        poiID - a string identifying the point-of-interest
        layer - an integer identifying the layer
        Returns:
        SumoCommand
      • setColor

        public static SumoCommand setColor​(java.lang.String poiID,
                                           SumoColor color)
        Set the color of this poi.
        Parameters:
        poiID - a string identifying the point-of-interest
        color - value (r,g,b,a) of color
        Returns:
        SumoCommand
      • setPosition

        public static SumoCommand setPosition​(java.lang.String poiID,
                                              double x,
                                              double y)
        Set 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
      • setType

        public static SumoCommand setType​(java.lang.String poiID,
                                          java.lang.String poiType)
        Set 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