es.uv.robotica.gvsig.mobile.gps.tracklog
Interface Tracklogger

All Known Implementing Classes:
CSVTracklogger, GPXTracklogger

public interface Tracklogger

Interface which generalizes the access to classes that store a tracklog like a GPX tracklog or a CSV tracklog

Author:
jgui
See Also:
TracklogManager, WaypointManager

Method Summary
 void clear()
          Clears the tracklog
 void close()
          Closes the tracklog
 void open(java.lang.String path)
          Opens the tracklog file in the specified path
 void start()
          Starts tracking
 void stop()
          Stops tracking
 void storeTrackpoint(Trackpoint _trkpt)
          Stores a trackpoint in the tracklog
 void storeWaypoint(Waypoint _wpt)
          Stores a waypoint in the tracklog
 

Method Detail

open

public void open(java.lang.String path)
          throws java.io.IOException
Opens the tracklog file in the specified path

Parameters:
path - the complete path, including the folder and file name
Throws:
java.io.IOException

close

public void close()
Closes the tracklog


start

public void start()
Starts tracking


stop

public void stop()
Stops tracking


clear

public void clear()
           throws java.io.IOException
Clears the tracklog

Throws:
java.io.IOException

storeTrackpoint

public void storeTrackpoint(Trackpoint _trkpt)
Stores a trackpoint in the tracklog

Parameters:
_trkpt - the trackpoint to store

storeWaypoint

public void storeWaypoint(Waypoint _wpt)
Stores a waypoint in the tracklog

Parameters:
_wpt - the waypoint to store