lejos.robotics.pathfinding
Class Path

java.lang.Object
  extended by java.util.ArrayList<Waypoint>
      extended by lejos.robotics.pathfinding.Path
All Implemented Interfaces:
Iterable<Waypoint>, Collection<Waypoint>, List<Waypoint>, RandomAccess, Transmittable

public class Path
extends ArrayList<Waypoint>
implements Transmittable

Represents a path consisting of an ordered collection of waypoints

Author:
Lawrie Griffiths

Field Summary
protected  int modCount
           
 
Constructor Summary
Path()
           
 
Method Summary
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 void dumpObject(DataOutputStream dos)
           
 boolean equals(Object o)
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator<E> iterator()
           
 ListIterator<E> listIterator()
           
 void loadObject(DataInputStream dis)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] dest)
           
 String toString()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addAll, addAll, clear, ensureCapacity, get, indexOf, lastIndexOf, listIterator, remove, remove, removeRange, set, size, subList, trimToSize
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Field Detail

modCount

protected transient int modCount
Constructor Detail

Path

public Path()
Method Detail

dumpObject

public void dumpObject(DataOutputStream dos)
                throws IOException
Specified by:
dumpObject in interface Transmittable
Throws:
IOException

loadObject

public void loadObject(DataInputStream dis)
                throws IOException
Specified by:
loadObject in interface Transmittable
Throws:
IOException

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<E>

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<E>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<E>
Overrides:
hashCode in class Object

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>

listIterator

public ListIterator<E> listIterator()
Specified by:
listIterator in interface List<E>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<E>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<E>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<E>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<E>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<E>

toArray

public <T> T[] toArray(T[] dest)
Specified by:
toArray in interface Collection<E>

toString

public String toString()
Overrides:
toString in class Object