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 intadd(RouteStop routeStop)Adds a stopvoidclear()Clear the stop collection.booleancontains(java.lang.String name)Determines whether the stop collection includes the specified nameRouteStopget(int index)Gets the stop according to the index.RouteStopget(java.lang.String name)Gets the stop of the specified nameintgetCount()Returns the number of stops in the flying route stop collectionintgetStartIndex()Gets the starting stop.intindexOf(java.lang.String name)Gets the index of the specifies stop namebooleaninsert(int index, RouteStop routeStop)Inserts stopsbooleanremove(int index)Removes the stop according to the index.booleanremove(java.lang.String name)Removes the stop of the specified namevoidset(int index, RouteStop RouteStop)Sets the index of stopvoidset(java.lang.String name, RouteStop routeStop)Sets the name of stop.voidsetStartIndex(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
-
-