|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.c5Algorithms.AbstractHiker
com.c5corp.c5Algorithms.StepwiseArcHiker
public class StepwiseArcHiker
The StepwiseArcHiker examines the points along a 150 degree arc at approximately a 180 meter radius in front of it, with the center of the arc facing the destination. It chooses to go straight toward the target if it can without exceeding a very reasonable (mid-moderate) slope of 15%. If this fails however, it will choose the best of the paths to other arc points (comparing all one degree and three degree sub-segments produced internally) and moves forward in a stepwise manner, maintaining a bias toward the center but moving around obstacles if it must. It is not a very good hiker if the efficency of the algorithm is your main concern, (but it is faster than the slope reduction hiker.) It tends to provide very good, hikable tracks when the terrain allows it.
Field Summary | |
---|---|
protected static int[][][] |
ARCER
This 8x9x3 array is used to project from a starting point around an arc, projecting ~ 180 meters radious in the directions indicated in a regular grid, starting from relative position (0,0). |
Fields inherited from class com.c5corp.c5Algorithms.AbstractHiker |
---|
CARDINAL_BITS, MOVE, table |
Constructor Summary | |
---|---|
StepwiseArcHiker(int zone,
java.lang.String zoneChar,
UtmCoordinatePair start,
UtmCoordinatePair target,
java.sql.Connection connection)
Note that all Virtual Hikers need the grid zone designation character (GZD). |
|
StepwiseArcHiker(int zone,
java.lang.String zoneChar,
UtmCoordinatePair start,
UtmCoordinatePair target,
int padding,
java.sql.Connection connection)
|
Method Summary | |
---|---|
VirtualHikerTrackLog |
getSmoothTrack()
Returns a VirtualHikerTrackLog object representing the results of the StepwiseArcHiker. |
VirtualHikerTrackLog |
getTrack()
Returns a VirtualHikerTrackLog object representing the results of the StepwiseArcHiker |
UtmCoordinatePairElev[][] |
getUtmCoordinatePairElevArray()
The class produces a UtmCoordinatePairElev[][] as part of its processing of the track. |
Methods inherited from class com.c5corp.c5Algorithms.AbstractHiker |
---|
calculateAzimuth, calculateCardinalDirection, getCardinalIndex, getDistance, getTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int[][][] ARCER
Constructor Detail |
---|
public StepwiseArcHiker(int zone, java.lang.String zoneChar, UtmCoordinatePair start, UtmCoordinatePair target, java.sql.Connection connection)
zone
- the UTM zonezoneChar
- the UTM grid zone designation character (GZD)start
- The starting coordinates of the virtual hikertarget
- The target coordinates of the virtual hikerconnection
- a connection object (see DbHelper)DbHelper
public StepwiseArcHiker(int zone, java.lang.String zoneChar, UtmCoordinatePair start, UtmCoordinatePair target, int padding, java.sql.Connection connection)
zone
- the UTM zonezoneChar
- the UTM grid zone designation character (GZD)start
- The starting coordinates of the virtual hikertarget
- The target coordinates of the virtual hikerpadding
- the number of meters to add around the area - If less than 1000, a default padding of 1000 will be used.connection
- a connection object (see DbHelper)DbHelper
Method Detail |
---|
public VirtualHikerTrackLog getSmoothTrack()
public VirtualHikerTrackLog getTrack()
getTrack
in class AbstractHiker
public UtmCoordinatePairElev[][] getUtmCoordinatePairElevArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |