com.supermap.realspace

Class RouteStops



  • public class RouteStops
    extends InternalHandle
    Route stop class. The class has the ability to get route stops objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int add(RouteStop routeStop)
      Adds a stop
      void clear()
      Clear the stop collection.
      boolean contains(java.lang.String name)
      Determines whether the stop collection includes the specified name
      RouteStop get(int index)
      Gets the stop according to the index.
      RouteStop get(java.lang.String name)
      Gets the stop of the specified name
      int getCount()
      Returns the number of stops in the flying route stop collection
      int getStartIndex()
      Gets the starting stop.
      int indexOf(java.lang.String name)
      Gets the index of the specifies stop name
      boolean insert(int index, RouteStop routeStop)
      Inserts stops
      boolean remove(int index)
      Removes the stop according to the index.
      boolean remove(java.lang.String name)
      Removes the stop of the specified name
      void set(int index, RouteStop RouteStop)
      Sets the index of stop
      void set(java.lang.String name, RouteStop routeStop)
      Sets the name of stop.
      void setStartIndex(int index)
      Sets the starting stop.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getStartIndex

        public int getStartIndex()
        Gets the starting stop.
        Returns:
        the starting stop index.
      • setStartIndex

        public void setStartIndex(int index)
        Sets the starting stop.
        Parameters:
        index - the given starting stop index.
      • getCount

        public int getCount()
        Returns the number of stops in the flying route stop collection
        Returns:
        the number of stops in the flying route stop collection
      • indexOf

        public int indexOf(java.lang.String name)
        Gets the index of the specifies stop name
        Parameters:
        name - Stop name
        Returns:
        returns the stop index.
      • contains

        public boolean contains(java.lang.String name)
        Determines whether the stop collection includes the specified name
        Parameters:
        name - Name
        Returns:
        Returns true if included; otherwise false.
      • add

        public int add(RouteStop routeStop)
        Adds a stop
        Parameters:
        routeStop - stop
        Returns:
        Returns stop index.
      • insert

        public boolean insert(int index,
                              RouteStop routeStop)
        Inserts stops
        Parameters:
        routeStop - stops
        index - index
        Returns:
        Returns true, if successful; otherwise false.
      • remove

        public boolean remove(int index)
        Removes the stop according to the index.
        Parameters:
        index - index
        Returns:
        Returns true, if successful; otherwise false.
      • remove

        public boolean remove(java.lang.String name)
        Removes the stop of the specified name
        Parameters:
        name - Name
        Returns:
        Returns true, if successful; otherwise false.
      • clear

        public void clear()
        Clear the stop collection.
      • get

        public RouteStop get(java.lang.String name)
        Gets the stop of the specified name
        Parameters:
        name - Stop name
        Returns:
        returns Return the stop
      • get

        public RouteStop get(int index)
        Gets the stop according to the index.
        Parameters:
        index - the stop index
        Returns:
        returns Return the stop
      • set

        public void set(java.lang.String name,
                        RouteStop routeStop)
        Sets the name of stop.
        Parameters:
        name - Stop name
        routeStop - stops
      • set

        public void set(int index,
                        RouteStop RouteStop)
        Sets the index of stop
        Parameters:
        index - route index
        RouteStop - stops