com.supermap.realspace
Class RouteStops
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.realspace.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 stopvoid
clear()
Clear the stop collection.boolean
contains(java.lang.String name)
Determines whether the stop collection includes the specified nameRouteStop
get(int index)
Gets the stop according to the index.RouteStop
get(java.lang.String name)
Gets the stop of the specified nameint
getCount()
Returns the number of stops in the flying route stop collectionint
getStartIndex()
Gets the starting stop.int
indexOf(java.lang.String name)
Gets the index of the specifies stop nameboolean
insert(int index, RouteStop routeStop)
Inserts stopsboolean
remove(int index)
Removes the stop according to the index.boolean
remove(java.lang.String name)
Removes the stop of the specified namevoid
set(int index, RouteStop RouteStop)
Sets the index of stopvoid
set(java.lang.String name, RouteStop routeStop)
Sets the name of stop.void
setStartIndex(int index)
Sets the starting stop.
-
-
-
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
- stopsindex
- 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 namerouteStop
- stops
-
set
public void set(int index, RouteStop RouteStop)
Sets the index of stop- Parameters:
index
- route indexRouteStop
- stops
-
-