public class DemandResult
extends Feature
implements java.io.Serializable
选址分区分析中的需求对象类。
该类对应于选址分区分析中的资源需求对象(弧段或结点),其中包括需求结点或弧段的 ID、资源供给中心 ID、实际被分配的资源量以及需求结果是弧段还是结点信息。
限定符和类型 | 字段和说明 |
---|---|
long |
actualResourceValue
获取需求对象实际被分配的资源量。
|
int |
demandID
获取需求结果对应的结点或弧段的 ID。
|
boolean |
isEdge
获取要素是否是弧段。
|
SupplyCenter |
supplyCenter
获取该需求结果对象对应的资源供给中心。
|
构造器和说明 |
---|
DemandResult()
构造函数。
|
public long actualResourceValue
获取需求对象实际被分配的资源量。
public int demandID
获取需求结果对应的结点或弧段的 ID。 当该类中 isEdge 字段为 true 时,该需求对象为弧段的 ID,当 isEdge 为 false 时,为需求结点的 ID。
public boolean isEdge
获取要素是否是弧段。true 表明需求结果对应的要素是弧段,false 表明需求结果对应的要素是结点。
public SupplyCenter supplyCenter
获取该需求结果对象对应的资源供给中心。