Class: SupplyCenter

SupplyCenter

资源供给中心类。此类在网络分析中的资源分配和选址分区分析两个功能中使用, 此类存储了资源供给中心及其类型、最大耗费值、能提供的最大服务量或商品数量等参数。

new SupplyCenter(options)

Usage
import { SupplyCenter } from '@supermapgis/iclient-leaflet';

new SupplyCenter(options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.SupplyCenter({paramsNames});
  // 弃用的写法
  new SuperMap.SupplyCenter(options);
</script>
common/iServer/SupplyCenter.js, line 6
Name Type Description
options Object

参数。

Name Type Description
maxWeight number

最大耗费值。

nodeID number

结点 ID 号。资源供给中心必须是结点。

resourceValue number

能提供的最大服务量或商品数量。

type SupplyCenterType 可选

资源供给中心点的类型。

API Relations

Returned by: SupplyCenter.fromJson.

Members

maxWeightnumber

资源供给中心的最大耗费值。中心点最大阻值设置越小,表示中心点所提供的资源可影响范围越大。 最大阻力值是用来限制需求点到中心点的花费。 如果需求点(弧段或结点)到此中心的花费大于最大阻力值,则该需求点不属于该资源供给中心提供资源的范围。

nodeIDnumber

资源供给中心点的结点 ID 号,资源供给中心必须是结点。

resourceValuenumber

资源供给中心能提供的最大服务量或商品数量。例如资源中心为学校,资源中心资源量表示该学校能够接纳多少学生。

资源供给中心点的类型常量。资源供给中心点的类型包括非中心,固定中心和可选中心。 固定中心用于资源分配分析;固定中心和可选中心用于选址分析;非中心在两种网络分析时都不予考虑。

Methods

static fromJson(jsonObject){SupplyCenter}

common/iServer/SupplyCenter.js, line 68

将服务端 JSON 对象转换成当前客户端对象。

Name Type Description
jsonObject Object

要转换的 JSON 对象。

Returns:
Type Description
SupplyCenter SupplyCenter 对象。

destroy()

common/iServer/SupplyCenter.js, line 56

释放资源,将引用资源的属性置空。