Class BruteForceSearcher

  • All Implemented Interfaces:
    Searcher<Hint>

    public class BruteForceSearcher
    extends java.lang.Object
    implements Searcher<Hint>
    This type of Searcher runs in square-shaped circles around its initial position, which increases by one, after each step.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(org.locationtech.jts.geom.Point startPosition)
      SearchPath move()
      A square-shaped circles around its initial position, increased by one relative to the previous "circle".
      SearchPath move​(Hint hint)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BruteForceSearcher

        public BruteForceSearcher()
    • Method Detail

      • init

        public void init​(org.locationtech.jts.geom.Point startPosition)
        Specified by:
        init in interface Searcher<Hint>
        Parameters:
        startPosition - the Searcher starting position, he will initialized on.
      • move

        public SearchPath move()
        A square-shaped circles around its initial position, increased by one relative to the previous "circle".
        Specified by:
        move in interface Searcher<Hint>
        Returns:
        SearchPath the SearchPath the searcher did