com.supermap.realspace
类 RouteStops
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.realspace.RouteStops
-
public class RouteStops extends com.supermap.data.InternalHandle
站点集合类。
-
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 int
add(RouteStop routeStop)
添加一个站点。void
clear()
清除所有站点boolean
contains(String name)
返回是否包含指定名称的站点。RouteStop
get(int index)
返回指定索引处的站点。RouteStop
get(String name)
返回站点集合中与飞行站点名称相对应的站点int
getCount()
返回站点的个数。int
getStartIndex()
返回开始飞行的站点索引。int
indexOf(String name)
返回指定名称的站点的序号。boolean
insert(int index, RouteStop stop)
在指定的索引处,插入一个站点对象。boolean
remove(int index)
删除指定索引处的站点。boolean
remove(String name)
根据给定的站点名称删除站点。void
set(int index, RouteStop stop)
使用指定的飞行站点替换站点集合中与传入索引相对应的站点。void
set(String name, RouteStop stop)
使用指定的飞行站点替换站点集合中与传入的名称相同的站点void
setStartIndex(int index)
设置开始飞行的站点索引。
-
-
-
方法详细资料
-
getStartIndex
public int getStartIndex()
返回开始飞行的站点索引。- 返回:
- 开始飞行的站点索引。
-
setStartIndex
public void setStartIndex(int index)
设置开始飞行的站点索引。- 参数:
index
- 开始飞行的站点索引。
-
getCount
public int getCount()
返回站点的个数。- 返回:
- 站点的个数。
-
indexOf
public int indexOf(String name)
返回指定名称的站点的序号。- 参数:
name
- 指定的站点名称。- 返回:
- 指定名称的站点的序号。
-
contains
public boolean contains(String name)
返回是否包含指定名称的站点。- 参数:
name
- 指定的名称。- 返回:
- 是否包含指定名称的站点。
-
add
public int add(RouteStop routeStop)
添加一个站点。- 参数:
routeStop
- 指定的站点对象。- 返回:
- 新添加对象所处的索引值。
-
insert
public boolean insert(int index, RouteStop stop)
在指定的索引处,插入一个站点对象。- 参数:
index
- 指定的索引。stop
- 待插入的 RouteStop 对象。- 返回:
- 插入成功返回 true,否则返回false。
-
remove
public boolean remove(int index)
删除指定索引处的站点。- 参数:
index
- 指定的索引。- 返回:
- 成功返回 true,否则返回false。
-
remove
public boolean remove(String name)
根据给定的站点名称删除站点。- 参数:
name
- 指定的站点名称。- 返回:
- 成功返回 true,否则返回false。
-
clear
public void clear()
清除所有站点
-
get
public RouteStop get(int index)
返回指定索引处的站点。- 参数:
index
- 指定的索引。- 返回:
- 指定索引处的站点。
-
set
public void set(String name, RouteStop stop)
使用指定的飞行站点替换站点集合中与传入的名称相同的站点- 参数:
name
- 飞行站点名称stop
- 指定的飞行站点
-
set
public void set(int index, RouteStop stop)
使用指定的飞行站点替换站点集合中与传入索引相对应的站点。- 参数:
index
- 站点索引。stop
- 指定的飞行站点。
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.