endian11
2020-09-16 6ec3c54a1c57b4356490a4821a2c6a7695448e22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package safeluck.drive.evaluation.routecollect.impl;
 
import com.anyun.exam.lib.IRemoteInterface;
 
import safeluck.drive.evaluation.routecollect.CollectPointResult;
import safeluck.drive.evaluation.routecollect.ILoadListener;
import safeluck.drive.evaluation.routecollect.IRouteCollectInterface;
import safeluck.drive.evaluation.routecollect.IRouteRemotePointCallback;
 
/**
 * DriveJudge
 * Created by lzw on 2020/9/16. 10:38:39
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class RouteModel implements IRouteCollectInterface,IRouteRemotePointCallback {
 
    ILoadListener iLoadListener;
    private double sx=120.0,sy=10.03;
    @Override
    public void startCollect(ILoadListener listener) {
        iLoadListener = listener;
        //调用AYSdk 方法启动采点
        //set IRouteRemotePointCallback
 
        //如果采用application的callback ,可能需要注册一个CEventLisntener
    }
 
    /**
     * 停止采点
     */
    @Override
    public void endCollect() {
        //如果采用application的callback ,可能需要反注册一个CEventLisntener 解绑
    }
 
 
    @Override
    public void javaPoint(int qf, double x, double y, double z, double heading, double pitch, double roll) {
 
        if (iLoadListener != null){
            CollectPointResult collectPointResult = new CollectPointResult();
            collectPointResult.setX(sx);
            collectPointResult.setY(sy);
            iLoadListener.finishCollectItem(collectPointResult);
        }
    }
}