Package com.telenav.tnt.benchmark.data

Examples of com.telenav.tnt.benchmark.data.Gps


        }
    }

    private static GpsList createDuplicatedGpsList(int count) {
        GpsList gpsList = new GpsList();
        Gps gps = createGps();

        gpsList.setGpses(new Gps[count]);
        for (int i = 0; i < count; i++) {
            gpsList.getGpses()[i] = gps;
        }
View Full Code Here


    }

    private static Gps createGps() {
        Random random = new Random();

        Gps gps = new Gps();
        gps.setLat(random.nextDouble() * 90);
        gps.setLon(random.nextDouble() * 180);
        gps.setGpsTime(System.currentTimeMillis());
        gps.setCreateTime(System.currentTimeMillis());
        gps.setHeading(random.nextDouble() * 360);
        gps.setAltitude(random.nextDouble() * 120);
        gps.setVelocity(random.nextDouble() * 70);

        return gps;
    }
View Full Code Here

TOP

Related Classes of com.telenav.tnt.benchmark.data.Gps

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.