com.supermap.analyst.networkanalyst
类 SupplyCenter

java.lang.Object
  继承者 com.supermap.analyst.networkanalyst.SupplyCenter

public class SupplyCenter
extends java.lang.Object

资源供给中心类。资源供给中心类,存储了资源供给中心的信息,包括资源供给中心的 ID、最大耗费和类型。


构造方法摘要
SupplyCenter()
          构造一个新的 SupplyCenter 对象。
SupplyCenter(SupplyCenter supplyCenter)
          根据给定的 SupplyCenter 对象构造一个与其完全相同的新对象。
 
方法摘要
 int getID()
          返回资源供给中心点的 ID。
 double getMaxWeight()
          返回资源供给中心的最大耗费(阻值)。
 double getResourceValue()
          返回资源供给中心的资源量。
 SupplyCenterType getType()
          返回网络分析中资源供给中心点的类型。
 void setID(int value)
          设置资源供给中心点的 ID。
 void setMaxWeight(double value)
          设置资源供给中心的最大耗费(阻值)。
 void setResourceValue(double value)
          设置资源供给中心的资源量。
 void setType(SupplyCenterType type)
          设置网络分析中资源供给中心点的类型。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SupplyCenter

public SupplyCenter()
构造一个新的 SupplyCenter 对象。


SupplyCenter

public SupplyCenter(SupplyCenter supplyCenter)
根据给定的 SupplyCenter 对象构造一个与其完全相同的新对象。

参数:
supplyCenter - 指定的 SupplyCenter 对象。
方法详细信息

getType

public SupplyCenterType getType()
返回网络分析中资源供给中心点的类型。有关资源供给中心点的类型,请参见 SupplyCenterType

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

返回:
资源供给中心类型。
另请参见:
SupplyCenterType
默认值:
默认值为空。

setType

public void setType(SupplyCenterType type)
设置网络分析中资源供给中心点的类型。有关资源供给中心点的类型,请参见 SupplyCenterType

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

参数:
type - 资源供给中心类型。
另请参见:
SupplyCenterType

getID

public int getID()
返回资源供给中心点的 ID。

返回:
资源供给中心点的 ID。
默认值:
默认值为 -1。

setID

public void setID(int value)
设置资源供给中心点的 ID。

参数:
value - 资源供给中心点的 ID。

getMaxWeight

public double getMaxWeight()
返回资源供给中心的最大耗费(阻值)。单位与选址分区分析参数(LocationAnalystParameter)对象的 setWeightName 方法所指定的权值字段信息(WeightFieldInfo)对象的权值字段的单位相同。中心点最大阻值设置越大,表示中心点所提供的资源可影响范围越大。

最大阻力值是用来限制需求点到中心点的花费。如果需求点(弧段或结点)到此中心的花费大于最大阻力值,则该需求点被过滤掉。最大阻力值可编辑。

返回:
资源供给中心的最大耗费(阻值)。
默认值:
默认值为 0。

setMaxWeight

public void setMaxWeight(double value)
设置资源供给中心的最大耗费(阻值)。单位与选址分区分析参数(LocationAnalystParameter)对象的 setWeightName 方法所指定的权值字段信息(WeightFieldInfo)对象的权值字段的单位相同。中心点最大阻值设置越大,表示中心点所提供的资源可影响范围越大。

最大阻力值是用来限制需求点到中心点的花费。如果需求点(弧段或结点)到此中心的花费大于最大阻力值,则该需求点被过滤掉。最大阻力值可编辑。

参数:
value - 资源供给中心的最大耗费(阻值)。

getResourceValue

public double getResourceValue()
返回资源供给中心的资源量。

返回:
资源供给中心的资源量。
默认值:
默认值为 0。

setResourceValue

public void setResourceValue(double value)
设置资源供给中心的资源量。

参数:
value - 资源供给中心的资源量。