lejos.robotics.proposal
Class SimplePathFinder
java.lang.Object
java.util.ArrayList<WayPoint>
lejos.robotics.proposal.SimplePathFinder
- All Implemented Interfaces:
- Iterable<WayPoint>, Collection<WayPoint>, List<WayPoint>, RandomAccess, PathFinder
public class SimplePathFinder
- extends ArrayList<WayPoint>
- implements PathFinder
Very simple path finder that assumes there is a direct route to the target
- Author:
- Lawrie Griffiths
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 |
SimplePathFinder
public SimplePathFinder()
findRoute
public Collection<WayPoint> findRoute(Pose start,
Point destination)
throws DestinationUnreachableException
- Specified by:
findRoute
in interface PathFinder
- Throws:
DestinationUnreachableException
findRoute
public Collection<WayPoint> findRoute(Pose start,
Pose destination)
throws DestinationUnreachableException
- Specified by:
findRoute
in interface PathFinder
- Throws:
DestinationUnreachableException
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
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>