Class NaiveCircleSearcher
- java.lang.Object
-
- com.treasure.hunt.strategy.searcher.impl.NaiveCircleSearcher
-
- All Implemented Interfaces:
Searcher<CircleHint>
public class NaiveCircleSearcher extends java.lang.Object implements Searcher<CircleHint>
This type ofSearcheralways goes to the center of anCircleHint.
-
-
Constructor Summary
Constructors Constructor Description NaiveCircleSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(org.locationtech.jts.geom.Point startPosition)SearchPathmove()Use this to perform a initial move, without a hint given.SearchPathmove(CircleHint circleHint)
-
-
-
Method Detail
-
init
public void init(org.locationtech.jts.geom.Point startPosition)
- Specified by:
initin interfaceSearcher<CircleHint>- Parameters:
startPosition- theSearcherstarting position, he will initialized on.
-
move
public SearchPath move()
Description copied from interface:SearcherUse this to perform a initial move, without a hint given. This is for the case, the searcher starts. (as he does normally)- Specified by:
movein interfaceSearcher<CircleHint>- Returns:
SearchPath, containing only the starting position.
-
move
public SearchPath move(CircleHint circleHint)
- Specified by:
movein interfaceSearcher<CircleHint>- Parameters:
circleHint- the hint, theHidergave last- Returns:
SearchPath, to the center of the givenCircleHint
-
-