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

多旅行商分析参数类.

该类用于设置多旅行商分析(FindMTSPPathsService)所需的参数,包括:配送中心点集合、配送目标点集合、配送模式、交通网络通用参数等信息。

另请参见

FindMTSPPathsService
TransportationAnalystParameter


公共属性
  属性 定义方
    centers : Array
配送中心集合,必设属性.
FindMTSPPathsParameters
    hasLeastTotalCost : Boolean
配送模式是否为总耗费最小方案。默认为 false.
FindMTSPPathsParameters
    isAnalyzeById : Boolean
获取或设置配送中心点(centers)和配送目标点(nodes)是否以 ID 的形式设置,默认为 false.
FindMTSPPathsParameters
    nodes : Array
配送目标点集合,必设属性.
FindMTSPPathsParameters
    parameter : TransportationAnalystParameter
TransportationAnalystParameter 类,必设属性。用于设置障碍边、障碍点、权重字段、转向权重字段、分析结果内容等信息。
FindMTSPPathsParameters
公共方法
  方法 定义方
   
初始化 FindMTSPPathsParameters 类的新实例。
FindMTSPPathsParameters
属性详细信息
centers 属性
centers:Array

配送中心集合,必设属性.

FindMTSPPathsParameters.isAnalyzeById = false 时,centers 应为配送中心点的坐标(Point2D)数组;当 FindMTSPPathsParameters.isAnalyzeById = true 时,centers 应为配送中心点的 ID 数组。


Implementation
    public function get centers():Array
    public function set centers(value:Array):void
hasLeastTotalCost 属性  
hasLeastTotalCost:Boolean

配送模式是否为总耗费最小方案。默认为 false.

若为 true,则按照总花费最小的模式进行配送,此时可能会出现某几个配送中心点配送的花费较多而其他配送中心点的花费很少的情况。若为 false,则为局部最优,此方案会控制每个配送中心点的花费,使各个中心点花费相对平均,此时总花费不一定最小。


Implementation
    public function get hasLeastTotalCost():Boolean
    public function set hasLeastTotalCost(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
centers
nodes 属性  
nodes:Array

配送目标点集合,必设属性.

FindMTSPPathsParameters.isAnalyzeById = false 时,nodes 应为配送目标点的坐标(Point2D)数组;当 FindMTSPPathsParameters.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

另请参见

构造函数详细信息
FindMTSPPathsParameters () 构造函数
public function FindMTSPPathsParameters()

初始化 FindMTSPPathsParameters 类的新实例。