| 包 | com.supermap.web.iServerJava6R.networkAnalystServices |
| 类 | public class FindPathParameters |
| 继承 | FindPathParameters Object |
该类用于设置进行最佳路径分析时所需的参数,如路径途经的结点、分析结果类型等信息。
| 属性 | 定义方 | ||
|---|---|---|---|
| hasLeastEdgeCount : Boolean
是否按弧段数最少的模式查询。默认为 false.
|
FindPathParameters | ||
| isAnalyzeById : Boolean
获取或设置最佳路径分析途经的结点(nodes)是否以 ID 的形式设置,默认为 false.
|
FindPathParameters | ||
| nodes : Array
进行最佳路径分析的点集合,必设字段...
|
FindPathParameters | ||
| parameter : TransportationAnalystParameter
TransportationAnalystParameter 对象,交通网络分析通用参数。
|
FindPathParameters | ||
| 方法 | 定义方 | ||
|---|---|---|---|
|
初始化 FindPathParameters 类的新实例。
|
FindPathParameters | ||
| hasLeastEdgeCount | 属性 |
hasLeastEdgeCount:Boolean
是否按弧段数最少的模式查询。默认为 false.
true 表示结果路径由最少弧段组成。由于弧段数少并不代表弧段阻力最小,所以此时查出的结果可能不是最佳路径。
public function get hasLeastEdgeCount():Boolean public function set hasLeastEdgeCount(value:Boolean):void| isAnalyzeById | 属性 |
isAnalyzeById:Boolean
获取或设置最佳路径分析途经的结点(nodes)是否以 ID 的形式设置,默认为 false.
最佳路径分析途经的结点可以使用两种方式设置:结点 ID 号或 点坐标(Point2D 类型)。当该字段为 true 时,表示通过结点 ID 指定途经结点,即 FindPathParameters.nodes = [ID1,ID2,...];反之表示通过结点坐标指定途经点,即 FindPathParameters.nodes = [new Point2D(x1,y1),new Point2D(x2,y2),...] 。
public function get isAnalyzeById():Boolean public function set isAnalyzeById(value:Boolean):void| nodes | 属性 |
nodes:Array
进行最佳路径分析的点集合,必设字段...
public function get nodes():Array public function set nodes(value:Array):void另请参见
| parameter | 属性 |
parameter:TransportationAnalystParameter
TransportationAnalystParameter 对象,交通网络分析通用参数。
public function get parameter():TransportationAnalystParameter public function set parameter(value:TransportationAnalystParameter):void| FindPathParameters | () | 构造函数 |
public function FindPathParameters()
初始化 FindPathParameters 类的新实例。