Examples of Waypoint


Examples of at.fhj.itm.model.Waypoint

        "qweiurioewhu");

    User v = new User(-1, "Klara", "Klaustaler", "KK", "12345",
        "k.k@local.at", "004312345678", b, new Date(), "nsvjdna");

    Waypoint ab = new Waypoint(a, b, u, "", true);
    Waypoint ba = new Waypoint(b, a, u, "", true);
    Waypoint bc = new Waypoint(b, c, v, "", true);
    Waypoint ac = new Waypoint(a, c, v, "", true);
    Waypoint cd = new Waypoint(c, d, v, "", true);

    Trip trip0 = new Trip(v, new Date(), 5, ab, "");
    Trip trip1 = new Trip(v, new Date(), 4, bc, "");
    Trip trip2 = new Trip(v, new Date(), 4, ac, "");
    Trip trip3 = new Trip(v, new Date(), 5, cd, "");
View Full Code Here

Examples of at.fhj.itm.model.Waypoint

      if (stops.length > 0) {

        stopovers = new ArrayList<Waypoint>();
        for (Location l : stops) {

          stopovers.add(new Waypoint(fromLocation, l, user, null,
              true));

          stopovers
              .add(new Waypoint(l, toLocation, user, null, true));
        }
      }
      Waypoint waypoint = new Waypoint(fromLocation, toLocation, user,
          null, true);
      newTrip = new Trip(user, departure, seats, waypoint, "");

      // insert the trip to DAO
      getTripDAO().update(newTrip, getConnection());
View Full Code Here

Examples of at.fhj.itm.model.Waypoint

    Location fromLocation = this.locationDAO.getByID(from_location,connection);
    Location toLocation = this.locationDAO.getByID(to_location, connection);
    User user = this.userDAO.getByID(user_id, connection);

    return new Waypoint(id, fromLocation, toLocation, user, comment, active);
  }
View Full Code Here

Examples of at.fhj.itm.model.Waypoint

      List<Waypoint> waypoints = new ArrayList<Waypoint>();
      PreparedStatement selectAllStmt = connection
          .prepareStatement(GET_ALL_WAYPOINTS);
      ResultSet set = selectAllStmt.executeQuery();
      while (set.next()) {
        Waypoint wp = getFromResultSet(set, connection);
        waypoints.add(wp);

      }
      set.close();
      selectAllStmt.close();
View Full Code Here

Examples of at.fhj.itm.model.Waypoint

      PreparedStatement selectByIdStmt = connection
          .prepareStatement(GET_WAYPOINTS_BY_ID);
      selectByIdStmt.setInt(1, id);
      ResultSet set = selectByIdStmt.executeQuery();
      set.next();
      Waypoint wp = getFromResultSet(set, connection);
      set.close();
      selectByIdStmt.close();
     
      return wp;
    } catch (SQLException e) {
View Full Code Here

Examples of com.l2client.navigation.Path.WayPoint

 
 
  public void initByWayPoint(Path p){
    ArrayList<WayPoint> wpl = p.WaypointList();
    WayPoint wp = wpl.get(0);
    path = p;
    mesh = wp.mesh;
    cell = wp.cell;
    position.set(wp.position);
    if(wpl.size()>1){
View Full Code Here

Examples of com.l2client.navigation.Path.WayPoint

  }

  public void ResolveMotionOnMesh(PositioningComponent comp, Vector3f endPos) {
    if((getNavMesh(comp.mesh)).isBorderCell(comp.cell)) {
      if(comp.position.distanceSquared(endPos) < 0.000001f){
        WayPoint c = null;
       
        ArrayList<WayPoint> arr = comp.path.WaypointList();
       
        for(WayPoint p : arr){
          //one after current
View Full Code Here

Examples of com.l2client.navigation.Path.WayPoint

       
      com.position.set(endPos);

     
      //reached the waypoint, is it the last? stop, otherwise go to next one
      WayPoint last = com.path.WaypointList().get(com.path.WaypointList().size()-1);
      if(com.cell == last.cell){
        float dist = endPos.distanceSquared(last.position);
        if(dist < 0.000001f){
          com.position.set(last.position);
          signalStopToEnv(com);
View Full Code Here

Examples of general.datastructures.Waypoint

  }
 
  @Test
  public void testWaypoint()
  {
    Waypoint wp1, wp2, wp3, wp4, wp5;
    wp1 = new Waypoint(new Vector2f(3, 4), 0);
    assertNotNull(wp1);
    assertNull(wp1.getPredecessor());
    assertEquals(new Vector2f(3,4),wp1.getVector2f());
    assertEquals(0.0,wp1.getDistance(),1e-4);
   
    wp2 = new Waypoint(new Vector2f(3,8), 4, wp1);
    assertNotNull(wp2);
    assertEquals(wp1,wp2.getPredecessor());
   
    wp3 = new Waypoint(new Vector2f(1,8), 2, wp2);
   
    assertEquals(6, wp3.getDistance(),1e-4);
   
    Vector<Vector2f> points = new Vector<Vector2f>();
    Vector<Vector2f> actual_points = new Vector<Vector2f>();
    points = wp3.getRouteList(points);
    assertNotSame(actual_points,points);
   
    actual_points.add(wp3.getVector2f());
    actual_points.add(wp2.getVector2f());
    actual_points.add(wp1.getVector2f());
   
    assertEquals(actual_points, points);
   
    wp4 = new Waypoint(new Vector2f(3,4), 1, wp2);
    wp5 = new Waypoint(new Vector2f(2,4), 0);
   
    assertTrue(wp1.equals(wp1));
    assertTrue(wp1.equals(wp4));
    assertFalse(wp1.equals(wp2));
    assertFalse(wp1.equals(wp5));   
   
   
  }
View Full Code Here

Examples of jaron.gps.Waypoint

   *
   * @param latitude the latitude coordinate in decimal form
   * @param longitude the longitude coordinate in decimal form
   */
  public void addWaypoint(double latitude, double longitude) {
    waypoints.add(new Waypoint(latitude, longitude));
  }
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.