Package ch.epfl.lbd.trajectories

Examples of ch.epfl.lbd.trajectories.Move


         pt = new GPSPoint(lat,lng,northing,easting,userid,datetime,name,desc);
         pt.comparePrePoint(lastPt);
         Episode lastEpisode = trj.getLastEpisode();
         if(tag.equalsIgnoreCase("B") || tag.equalsIgnoreCase("S")){
           if(lastEpisode != null && lastEpisode instanceof Move){
             lastEpisode.merge(new Move(pt));
           }
           newEpisode = new Stop(pt);
         }
         else{
           if(lastEpisode != null && lastEpisode instanceof Stop){
             newEpisode = new Move(lastPt);
             newEpisode.merge(new Move(pt));
           }
           else newEpisode = new Move(pt);
         }
         trj.addEpisode(newEpisode);
         i++;
      }
    }
View Full Code Here


       pt = new GPSPoint(lat,lng,northing,easting,userid,datetime,name,desc);
       pt.comparePrePoint(lastPt);
       Episode lastEpisode = trj.getLastEpisode();
       if(tag.equalsIgnoreCase("B") || tag.equalsIgnoreCase("S")){
         if(lastEpisode != null && lastEpisode instanceof Move){
           lastEpisode.merge(new Move(pt));
         }
         newEpisode = new Stop(pt);
       }
       else{
         if(lastEpisode != null && lastEpisode instanceof Stop){
           newEpisode = new Move(lastPt);
           newEpisode.merge(new Move(pt));
         }
         else newEpisode = new Move(pt);
       }
       trj.addEpisode(newEpisode);
    }
 
    logger.info("MOVES");
View Full Code Here

TOP

Related Classes of ch.epfl.lbd.trajectories.Move

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.