包 | com.supermap.web.iServerJava6R.networkAnalystServices |
类 | public class MTSPPath |
继承 | MTSPPath ![]() ![]() ![]() |
该类为配送中心点依次向所负责的配送目标点发送物资的最佳路径。
属性 | 定义方 | ||
---|---|---|---|
center : Object
该路径对应的配送中心点。
|
MTSPPath | ||
![]() |
edgeFeatures : Array
分析结果路径途经弧段要素集合,每条弧段要素为 Feature 类型。
|
Path | |
![]() |
edgeIDs : Array
分析结果路径途经弧段 ID 号集合。
|
Path | |
![]() |
nodeFeatures : Array
分析结果路径途经结点要素集合。每个结点要素为 Feature 类型。
|
Path | |
![]() |
nodeIDs : Array
分析结果路径途经结点的 ID 号集合。
|
Path | |
nodesVisited : Array
该路径途径配送目标点集合,按访问的次序排列。
|
MTSPPath | ||
![]() |
pathGuideItems : Array
行驶导引数组。其中每个对象为一个行驶导引子项(PathGuideItem)。
|
Path | |
![]() |
route : Route
分析结果对应的路由对象,关于路由对象请参见 Route 类。
|
Path | |
![]() |
stopIndexes : Array
以索引表示的旅行商路径途径结点的顺序.
|
TSPPath | |
![]() |
stopWeights : Array
分析结果路径途经结点间的耗费值数组。数组中每一个元素代表了从一个结点到下一个结点间的耗费值。如下图所示的多旅行商分析,中心点1,3,4,5,6分析结果的总耗费分别为5,10,11,13,8, 则此处返回[5,10,11,13,8]。
|
Path | |
![]() |
weight : Number
整条路径的总耗费。
|
Path |
方法 | 定义方 | ||
---|---|---|---|
MTSPPath()
初始化 MTSPPath 类的新实例。
|
MTSPPath | ||
[static] 将从服务端返回的 JSON 对象转换为 MTSPPath 对象。
|
MTSPPath |
center | 属性 |
center:Object
该路径对应的配送中心点。
public function get center():Object
public function set center(value:Object):void
nodesVisited | 属性 |
nodesVisited:Array
该路径途径配送目标点集合,按访问的次序排列。
public function get nodesVisited():Array
public function set nodesVisited(value:Array):void
MTSPPath | () | 构造函数 |
public function MTSPPath()
初始化 MTSPPath 类的新实例。
fromJson | () | 方法 |
public static function fromJson(json:Object):MTSPPath
将从服务端返回的 JSON 对象转换为 MTSPPath 对象。
参数
json:Object — 从服务端返回的 JSON 对象。 |
MTSPPath — 返回 MTSPPath 对象。 |