public class RouteLocatorService
extends java.lang.Object
路由对象定位空间对象的服务类。
该类负责将客户设置路由对象定位空间对象的参数传递给服务端,并接收服务端返回的计算结果数据。
限定符和类型 | 类和说明 |
---|---|
static class |
RouteLocatorService.RouteLocatorEventListener
处理路由对象定位空间对象分析结果的监听器抽象类。
|
构造器和说明 |
---|
RouteLocatorService(java.lang.String url)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
RouteLocatorResult |
getLastResult()
返回路由对象计算指定点的M值结果。
|
void |
process(RouteLocatorParameters params, RouteLocatorService.RouteLocatorEventListener listener)
根据路由对象定位空间对象与服务端完成异步通讯,即发送分析参数,并通过实现RouteLocatorEventListener监听器处理分析结果。
|
void |
setTimeout(int timeout)
用户自定义超时时间。
|
public RouteLocatorService(java.lang.String url)
构造函数。
url
- 路由对象定位空间对象服务地址。public void process(RouteLocatorParameters params, RouteLocatorService.RouteLocatorEventListener listener)
根据路由对象定位空间对象与服务端完成异步通讯,即发送分析参数,并通过实现RouteLocatorEventListener监听器处理分析结果。
params
- 路由对象定位空间对象 参数信息。listener
- 处理分析结果的RouteLocatorEventListener监听器。public void setTimeout(int timeout)
用户自定义超时时间。
timeout
- 用户自定义超时时间。若用户不设置,则使用默认超时间为5秒。0代表无限,即代表不设置超时限制。单位默认为秒。public RouteLocatorResult getLastResult()
返回路由对象计算指定点的M值结果。