public class FindClosestFacilitiesService
extends java.lang.Object
最近设施分析服务类。
最近设施分析是指在网络上给定一个事件点和一组设施点,查找从事件点到设施点(或从设施点到事件点)以最小耗费能到达的最佳路径。设施点一般为学校、超市、加油站等服务设施;事件点为需要服务设施的事件位置。例如事件发生点是一起交通事故,要求查找在10分钟内能到达的最近医院,超过10分钟能到达的都不予考虑。此例中,事故发生地即是一个事件点,周边的医院则是设施点。最近设施查找实际上也是一种路径分析,因此对路径分析起作用的障碍边、障碍点、转向表、耗费等属性在最近设施分析时同样可设置。
最近设施查找属于网络分析的一种。网络分析是针对网络数据集的应用。网络数据集为具有拓扑关系的包含了一个网络结点子数据集的线图层,因此网络数据集拥有两个属性表,一个是记录弧段信息的属性表,一个是记录结点信息的属性表。
该类负责将客户端指定的最近设施分析参数传递给服务端,并接收服务端返回的结果数据,将最终结果存放于 FindClosestFacilitiesResult 中。
限定符和类型 | 类和说明 |
---|---|
static class |
FindClosestFacilitiesService.FindClosestFacilitiesEventListener
处理最近设施分析结果的监听器抽象类。
|
构造器和说明 |
---|
FindClosestFacilitiesService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
FindClosestFacilitiesResult |
getlastResult()
获取最近设施分析结果数据。
|
<T> void |
process(FindClosestFacilitiesParameters<T> parameters, FindClosestFacilitiesService.FindClosestFacilitiesEventListener listener)
根据最近设施分析服务地址与服务端完成异步通讯,即发送分析参数,并通过实现FindClosestFacilitiesEventListener监听器处理查询结果。
|
public FindClosestFacilitiesService(java.lang.String url)
构造函数。
url
- 最近设施分析服务地址public FindClosestFacilitiesResult getlastResult()
获取最近设施分析结果数据。
public <T> void process(FindClosestFacilitiesParameters<T> parameters, FindClosestFacilitiesService.FindClosestFacilitiesEventListener listener)
根据最近设施分析服务地址与服务端完成异步通讯,即发送分析参数,并通过实现FindClosestFacilitiesEventListener监听器处理查询结果。
parameters
- 最近设施分析参数信息。listener
- 处理查询结果的FindClosestFacilitiesEventListener监听器。