com.supermap.web.iServerJava6R.networkAnalystServices
public class FindTSPPathsParameters
继承 FindTSPPathsParameters Inheritance Object

旅行商分析参数类.

该类用于设置旅行商分析所需的参数,包括分析站点、交通网络通用参数(TransportationAnalystParameter)等。

另请参见

TransportationAnalystParameter


公共属性
  属性 定义方
    endNodeAssigned : Boolean
是否指定终止点,默认为 false.
FindTSPPathsParameters
    isAnalyzeById : Boolean
获取或设置配送中心点(centers)和配送目标点(nodes)是否以 ID 的形式设置,默认为 false.
FindTSPPathsParameters
    nodes : Array
旅行商分析途经站点数组,必设字段.
FindTSPPathsParameters
    parameter : TransportationAnalystParameter
TransportationAnalystParameter 类。用于设置障碍边、障碍点、权重字段、转向权重字段、分析结果内容等信息。
FindTSPPathsParameters
公共方法
  方法 定义方
   
初始化 FindTSPPathParameters 类的新实例。
FindTSPPathsParameters
属性详细信息
endNodeAssigned 属性
endNodeAssigned:Boolean

是否指定终止点,默认为 false.

true 表示指定终止点,即将 nodes 数组中的最后一个点作为终止点,则旅行商必须最后一个访问终止点


Implementation
    public function get endNodeAssigned():Boolean
    public function set endNodeAssigned(value:Boolean):void

另请参见

isAnalyzeById 属性  
isAnalyzeById:Boolean

获取或设置配送中心点(centers)和配送目标点(nodes)是否以 ID 的形式设置,默认为 false.

可以使用两种方式设置:ID 号或坐标值(Point2D 类型)。当该字段为 true 时,表示通过 ID 指定分析点,如 FindMTSPPathsParameters.nodes = [ID1,ID2,…];反之表示通过坐标指定分析点,如FindMTSPPathsParameters.nodes = [new Point2D(x1,y1),new Point2D(x2,y2),…]


Implementation
    public function get isAnalyzeById():Boolean
    public function set isAnalyzeById(value:Boolean):void
nodes 属性  
nodes:Array

旅行商分析途经站点数组,必设字段.

FindTSPPathsParameters.isAnalyzeById = false 时,nodes 应为 Point2D 数组;当 FindTSPPathsParameters.isAnalyzeById = true 时,nodes 应为 ID 数组。


Implementation
    public function get nodes():Array
    public function set nodes(value:Array):void
parameter 属性  
parameter:TransportationAnalystParameter

TransportationAnalystParameter 类。用于设置障碍边、障碍点、权重字段、转向权重字段、分析结果内容等信息。


Implementation
    public function get parameter():TransportationAnalystParameter
    public function set parameter(value:TransportationAnalystParameter):void
构造函数详细信息
FindTSPPathsParameters () 构造函数
public function FindTSPPathsParameters()

初始化 FindTSPPathParameters 类的新实例。