public class ComputeWeightMatrixService
extends java.lang.Object
耗费矩阵分析服务类。
耗费矩阵是根据交通网络分析通用参数(TransportationAnalystParameter)来计算一个二维数组,用来存储任意两点间的资源消耗。
该类负责将耗费矩阵分析参数传递到服务端,并获取服务端返回的分析结果,将其存放于 ComputeWeightMatrixResult 类中。用户若需获取服务端返回的原始结果,需监听 ComputeWeightMatrixEvent.PROCESS_COMPLETE 事件,该事件中即存有原始结果,又存有最终结果(ComputeWeightMatrixResult)。
限定符和类型 | 类和说明 |
---|---|
static class |
ComputeWeightMatrixService.ComputeWeightMatrixEventListener
处理耗费矩阵分析结果的监听器抽象类。
|
构造器和说明 |
---|
ComputeWeightMatrixService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
ComputeWeightMatrixResult |
getlastResult()
获取耗费矩阵分析结果数据。
|
<T> void |
process(ComputeWeightMatrixParameters<T> parameters, ComputeWeightMatrixService.ComputeWeightMatrixEventListener listener)
根据耗费矩阵分析服务地址与服务端完成异步通讯,即发送分析参数,并通过实现ComputeWeightMatrixEventListener监听器处理查询结果。
|
public ComputeWeightMatrixService(java.lang.String url)
构造函数。
url
- 耗费矩阵分析服务地址public ComputeWeightMatrixResult getlastResult()
获取耗费矩阵分析结果数据。
public <T> void process(ComputeWeightMatrixParameters<T> parameters, ComputeWeightMatrixService.ComputeWeightMatrixEventListener listener)
根据耗费矩阵分析服务地址与服务端完成异步通讯,即发送分析参数,并通过实现ComputeWeightMatrixEventListener监听器处理查询结果。
parameters
- 耗费矩阵分析参数信息。listener
- 处理查询结果的ComputeWeightMatrixEventListener监听器。