com.supermap.web.iServerJava6R.networkAnalystServices
public class MTSPPath
继承 MTSPPath Inheritance TSPPath Inheritance Path Inheritance Object

多旅行商分析结果路径.

该类为配送中心点依次向所负责的配送目标点发送物资的最佳路径。



公共属性
  属性 定义方
    center : Object
该路径对应的配送中心点。
MTSPPath
  Inherited edgeFeatures : Array
分析结果路径途经弧段要素集合,每条弧段要素为 Feature 类型。
Path
  Inherited edgeIDs : Array
分析结果路径途经弧段 ID 号集合。
Path
  Inherited nodeFeatures : Array
分析结果路径途经结点要素集合。每个结点要素为 Feature 类型。
Path
  Inherited nodeIDs : Array
分析结果路径途经结点的 ID 号集合。
Path
    nodesVisited : Array
该路径途径配送目标点集合,按访问的次序排列。
MTSPPath
  Inherited pathGuideItems : Array
行驶导引数组。其中每个对象为一个行驶导引子项(PathGuideItem)。
Path
  Inherited route : Route
分析结果对应的路由对象,关于路由对象请参见 Route 类。
Path
  Inherited stopIndexes : Array
以索引表示的旅行商路径途径结点的顺序.
TSPPath
  Inherited stopWeights : Array
分析结果路径途经结点间的耗费值数组。数组中每一个元素代表了从一个结点到下一个结点间的耗费值。如下图所示的多旅行商分析,中心点1,3,4,5,6分析结果的总耗费分别为5,10,11,13,8, 则此处返回[5,10,11,13,8]。
Path
  Inherited weight : Number
整条路径的总耗费。
Path
公共方法
  方法 定义方
   
初始化 MTSPPath 类的新实例。
MTSPPath
   
fromJson(json:Object):MTSPPath
[static] 将从服务端返回的 JSON 对象转换为 MTSPPath 对象。
MTSPPath
属性详细信息
center 属性
center:Object

该路径对应的配送中心点。


Implementation
    public function get center():Object
    public function set center(value:Object):void
nodesVisited 属性  
nodesVisited:Array

该路径途径配送目标点集合,按访问的次序排列。


Implementation
    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 对象。