public class PathGuideItem
extends java.lang.Object
implements java.io.Serializable
行驶导引子项类。
行驶导引记录了如何一步步从起点行驶到终点,其中每一步就是一个行驶导引子项,包括行驶过程中经过的点和弧段, 这些点可以是分析时选取的站点,也可以是分析结果途经的网络结点;弧段可以是网络边,也可能是一条网络边的一部分 (如果分析的站点不在网络结点上)。 利用该类可以对行驶导引对象的子项进行一些设置, 诸如返回子项的 ID、名称、序号、权值等,可以判断子项是点还是弧段,还可以返回行驶方向、转弯方向等等。
限定符和类型 | 字段和说明 |
---|---|
Rectangle2D |
bounds
行驶导引的范围,对弧段而言,为弧段的外接矩形;对点而言,为点本身。
|
java.lang.String |
description
行驶导引子项的描述信息。
|
DirectionType |
directionType
行驶的方向。
|
double |
distance
站点到弧段的距离。
|
Geometry |
geometry
行驶导引项所对应的地物对象。
|
int |
id
行驶导引对象子项的 ID。
|
int |
index
行驶导引对象子项序号。
|
java.lang.Boolean |
isEdge
判断本行驶导引子项是否是弧段。
|
java.lang.Boolean |
isStop
判断本行驶导引子项是否是站点,即用户输入的用于做路径分析的点, 站点可能与网络结点重合,也可能不在网络上。
|
double |
length
弧段的长度(行驶导引对象子项为弧段时)。
|
java.lang.String |
name
行驶导引对象子项的名称。
|
SideType |
sideType
行驶位置,是在路的左侧、右侧还是在路上。
|
double |
turnAngle
转弯的角度。
|
TurnType |
turnType
转弯的方向。
|
double |
weight
行驶导引对象子项的权值,即行使导引子项的花费
|
构造器和说明 |
---|
PathGuideItem()
构造函数。
|
public Rectangle2D bounds
行驶导引的范围,对弧段而言,为弧段的外接矩形;对点而言,为点本身。
public java.lang.String description
行驶导引子项的描述信息。
public DirectionType directionType
行驶的方向。
public double distance
站点到弧段的距离。
public Geometry geometry
行驶导引项所对应的地物对象。
public int id
行驶导引对象子项的 ID。
public int index
行驶导引对象子项序号。
public java.lang.Boolean isEdge
判断本行驶导引子项是否是弧段。
public java.lang.Boolean isStop
判断本行驶导引子项是否是站点,即用户输入的用于做路径分析的点, 站点可能与网络结点重合,也可能不在网络上。
public double length
弧段的长度(行驶导引对象子项为弧段时)。
public java.lang.String name
行驶导引对象子项的名称。
public SideType sideType
行驶位置,是在路的左侧、右侧还是在路上。
public double turnAngle
转弯的角度。
public TurnType turnType
转弯的方向。
public double weight
行驶导引对象子项的权值,即行使导引子项的花费