Examples of GPS


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

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

    }

    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

Examples of components.gps.GPS

    if (Simulation.getCurrent() != null) {
      // Se detiene la simulaci�n que est� corriendo.
      Simulation.getCurrent().stop();

      // Se cierra el GPS.
      GPS gps = Simulation.getCurrent().getGps();
      if (gps != null && !gps.isDisposed()) {
        gps.close();
        gps.dispose();
      }

      // Se liberan todos los recursos asociados a la simulaci�n
      Simulation.getCurrent().dispose();
    }
View Full Code Here

Examples of components.gps.GPS

    {
      // Se detiene la simulaci�n que est� corriendo.
      Simulation.getCurrent().stop();

      // Se cierra el GPS.
      GPS gps = Simulation.getCurrent().getGps();
      if ( gps != null  &&  !gps.isDisposed() )
      {
        gps.close();
        gps.dispose();
      }

      // Se liberan todos los recursos asociados a la simulaci�n
      Simulation.getCurrent().dispose();
    }
View Full Code Here

Examples of components.gps.GPS

      Factory factory = new Factory(xmlFile, xmlRulesFile);
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar el GPS." );
 
      GPS gps = (GPS)factory.digest();
      if (gps == null)
        throw new SimulationException( "No pudo cargarse el GPS." );
     
      simulation.setGps(gps);
    }
View Full Code Here

Examples of components.gps.GPS

      Factory factory = new Factory(xmlFile, xmlRulesFile);
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar el GPS." );
 
      GPS gps = (GPS)factory.digest();
      if (gps == null)
        throw new SimulationException( "No pudo cargarse el GPS." );
     
      simulation.setGps(gps);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.