lejos.robotics.proposal
Class SimplePathFinder

java.lang.Object
  extended by java.util.ArrayList<WayPoint>
      extended by 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

Field Summary
 
Fields inherited from class java.util.ArrayList
modCount
 
Constructor Summary
SimplePathFinder()
           
 
Method Summary
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean equals(Object o)
           
 Collection<WayPoint> findRoute(Pose start, Point destination)
           
 Collection<WayPoint> findRoute(Pose start, Pose destination)
           
 boolean isEmpty()
           
 Iterator<E> iterator()
           
 ListIterator<E> listIterator()
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] dest)
           
 
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, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
containsAll, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

SimplePathFinder

public SimplePathFinder()
Method Detail

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>