com.c5corp.c5gps
Class WayPointList

java.lang.Object
  extended by com.c5corp.c5gps.WayPointList
All Implemented Interfaces:
GpsDataFileType, java.util.Enumeration

public class WayPointList
extends java.lang.Object
implements GpsDataFileType, java.util.Enumeration

A WayPointList is a container class for a list of WayPoint objects. A list of waypoints is typically stored in a file; this object represents such a file. The file has header data that applies to all of the waypoints it contains, but for WayPoints this data is added as local fields to individual WayPoint objects. These lists are not conceptually "ordered" data. Rather, individual waypoints simply describe a point on the Earth and related Date/Time data, and this list simply stores the objects.

Since:
2.0
Author:
Brett Stalbaum Copyright 2002-2006 see LICENSE.txt and UCSD_LICENSE.txt
See Also:
WayPoint, CsvWayPointListFilter

Constructor Summary
WayPointList(java.util.Vector<WayPoint> wp)
           
 
Method Summary
 boolean hasMoreElements()
          implements java.util.Enumeration
 WayPoint nextElement()
          implements java.util.Enumeration
 void reset()
          resets the java.util.Enumeration to the first element
 int size()
          returns the number of WayPoints in this WayPointList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WayPointList

public WayPointList(java.util.Vector<WayPoint> wp)
Parameters:
wp - a Vector of WayPoint objects
Method Detail

hasMoreElements

public boolean hasMoreElements()
implements java.util.Enumeration

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if has more elements
See Also:
Enumeration

nextElement

public WayPoint nextElement()
                     throws java.util.NoSuchElementException
implements java.util.Enumeration

Specified by:
nextElement in interface java.util.Enumeration
Returns:
the next WayPoint
Throws:
java.util.NoSuchElementException
See Also:
Enumeration

size

public int size()
returns the number of WayPoints in this WayPointList

Returns:
the number of WayPoints in the list

reset

public void reset()
resets the java.util.Enumeration to the first element