lejos.robotics.pathfinding
Class Path
java.lang.Object
java.util.ArrayList<Waypoint>
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
Constructor Summary |
Path()
|
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 |
modCount
protected transient int modCount
Path
public Path()
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