lejos.robotics.proposal
Class SimplePathFinder

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<WayPoint>
              extended by lejos.robotics.proposal.SimplePathFinder
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<WayPoint>, java.util.Collection<WayPoint>, java.util.List<WayPoint>, java.util.RandomAccess, PathFinder

public class SimplePathFinder
extends java.util.ArrayList<WayPoint>
implements PathFinder

Very simple path finder that assumes there is a direct route to the target

Author:
Lawrie Griffiths
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SimplePathFinder()
           
 
Method Summary
 java.util.Collection<WayPoint> findRoute(Pose start, Point destination)
           
 java.util.Collection<WayPoint> findRoute(Pose start, Pose destination)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SimplePathFinder

public SimplePathFinder()
Method Detail

findRoute

public java.util.Collection<WayPoint> findRoute(Pose start,
                                                Point destination)
                                         throws DestinationUnreachableException
Specified by:
findRoute in interface PathFinder
Throws:
DestinationUnreachableException

findRoute

public java.util.Collection<WayPoint> findRoute(Pose start,
                                                Pose destination)
                                         throws DestinationUnreachableException
Specified by:
findRoute in interface PathFinder
Throws:
DestinationUnreachableException