com.supermap.realspace
类 RouteStops
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.realspace.RouteStops
-
public class RouteStops extends InternalHandle
飞行站点集合类,该类提供了对飞行站点对象的获取功能。飞行站点集合包含了零个或多个飞行站点对象。
-
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 intadd(RouteStop routeStop)添加站点。voidclear()清除站点集合。booleancontains(java.lang.String name)判断站点集合中是否包含指定名称。RouteStopget(int index)获取指定索引的站点。RouteStopget(java.lang.String name)获取指定名称的站点。intgetCount()返回飞行站点集合中飞行站点的个数。intgetStartIndex()获取起始站点。intindexOf(java.lang.String name)获取指定名字的站点的索引。booleaninsert(int index, RouteStop routeStop)插入站点。booleanremove(int index)删除指定索引的站点。booleanremove(java.lang.String name)删除指定名称的站点。voidset(int index, RouteStop RouteStop)设置站点的索引值。voidset(java.lang.String name, RouteStop routeStop)设置站点的名字。voidsetStartIndex(int index)设置起始站点。
-
-
-
方法详细资料
-
getStartIndex
public int getStartIndex()
获取起始站点。- 返回:
- 起始站点索引。
-
setStartIndex
public void setStartIndex(int index)
设置起始站点。- 参数:
index- 给定的起始站点索引。
-
getCount
public int getCount()
返回飞行站点集合中飞行站点的个数。- 返回:
- 飞行站点集合中飞行站点的个数。
-
indexOf
public int indexOf(java.lang.String name)
获取指定名字的站点的索引。- 参数:
name- 站点名字。- 返回:
- 返回站点索引。
-
contains
public boolean contains(java.lang.String name)
判断站点集合中是否包含指定名称。- 参数:
name- 名称。- 返回:
- 包含返回true,否则返回false。
-
add
public int add(RouteStop routeStop)
添加站点。- 参数:
routeStop- 站点。- 返回:
- 返回站点索引。
-
insert
public boolean insert(int index, RouteStop routeStop)插入站点。- 参数:
routeStop- 站点。index- 索引。- 返回:
- 成功返回true,否则返回false。
-
remove
public boolean remove(int index)
删除指定索引的站点。- 参数:
index- 索引。- 返回:
- 成功返回true,否则返回false。
-
remove
public boolean remove(java.lang.String name)
删除指定名称的站点。- 参数:
name- 名称。- 返回:
- 成功返回true,否则返回false。
-
clear
public void clear()
清除站点集合。
-
get
public RouteStop get(java.lang.String name)
获取指定名称的站点。- 参数:
name- 站点名称。- 返回:
- 返回站点。
-
get
public RouteStop get(int index)
获取指定索引的站点。- 参数:
index- 站点索引。- 返回:
- 返回站点。
-
set
public void set(java.lang.String name, RouteStop routeStop)设置站点的名字。- 参数:
name- 站点名字.routeStop- 站点。
-
set
public void set(int index, RouteStop RouteStop)设置站点的索引值。- 参数:
index- 路线索引。RouteStop- 站点。
-
-