Class RectangleScanEnhanced
- java.lang.Object
-
- com.treasure.hunt.strategy.searcher.impl.minimumRectangleStrategy.RectangleScanEnhanced
-
public class RectangleScanEnhanced extends java.lang.Object
Implements some alternatives to the RectangleScan-Routine used by the paper "Deterministic Treasure Hunt in the Plane with Angular Hints" from Bouchard et al.
-
-
Constructor Summary
Constructors Constructor Description RectangleScanEnhanced(MinimumRectangleSearcher strategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SearchPath
rectangleScanEnhanced(org.locationtech.jts.geom.Coordinate a, org.locationtech.jts.geom.Coordinate b, org.locationtech.jts.geom.Coordinate c, org.locationtech.jts.geom.Coordinate d, SearchPath move)
Meanders through the rectangle to scan it like the RectangleScan Routine from the paper but uses fewer distance
-
-
-
Constructor Detail
-
RectangleScanEnhanced
public RectangleScanEnhanced(MinimumRectangleSearcher strategy)
-
-
Method Detail
-
rectangleScanEnhanced
public static SearchPath rectangleScanEnhanced(org.locationtech.jts.geom.Coordinate a, org.locationtech.jts.geom.Coordinate b, org.locationtech.jts.geom.Coordinate c, org.locationtech.jts.geom.Coordinate d, SearchPath move)
Meanders through the rectangle to scan it like the RectangleScan Routine from the paper but uses fewer distance- Parameters:
a
- a corner of the rectangle which is to be scanned, neighboring d and bb
- a corner of the rectangle which is to be scanned, neighboring a and cc
- a corner of the rectangle which is to be scanned, neighboring b and dd
- a corner of the rectangle which is to be scanned, neighboring c and amove
- the search-path the scan should be added to- Returns:
- the resulting search-path
-
-