|
|||||||||
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.SlopeReductionHiker
public class SlopeReductionHiker
The SlopeReductionHiker class extends AbstractHiker, but it in fact marshals many, many iterations of the RandomHiker algorithm, and it selects from among the many VirtualHikerTrackLogs thus produced that most closely match the input criteria. Note that the "natural selection" process from among tracks that are produced with the randomization algorithm in RandomHiker makes the algorithms in this class very compute intensive, and often yields slightly different results depending upon the good luck of the random hikers. However, it often provides much better lowest-cost-paths than the stepwise LcpHiker. The SlopeReductionHiker getTrack() metod also utilizes progressive back-off in an attempt to deliver a satisficing track with a slope between the idealSlope argument and a slope of 58% (About 30 degrees of slope), beyond which paths may be barely traversable without ropes and mountaineering equipment, and beyond which "slope reduction" can be considered to have failed. Other methods of the class are modifications of getTrack() that provide extra capabilities, including a constaint of the slope considering the perpendicular slope of the trail as well as the linear slope.
RandomHiker
,
LcpHiker
Field Summary |
---|
Fields inherited from class com.c5corp.c5Algorithms.AbstractHiker |
---|
CARDINAL_BITS, MOVE, table |
Constructor Summary | |
---|---|
SlopeReductionHiker(int zone,
java.lang.String zoneChar,
UtmCoordinatePair start,
UtmCoordinatePair target,
int idealSlope,
java.sql.Connection connection)
Creates an SlopeReductionHiker from the UTM zone, zone designation character, the starting and target point, a target slope to search for, and a Connection object. |
|
SlopeReductionHiker(int zone,
java.lang.String zoneChar,
UtmCoordinatePair start,
UtmCoordinatePair target,
int padding,
int idealSlope,
java.sql.Connection connection)
Creates an SlopeReductionHiker from the UTM zone, zone designation character, the starting and target point, some padding (in meters) around the rectangular area specified by the two points, a target slope to search for, and a Connection object. |
Method Summary | |
---|---|
VirtualHikerTrackLog |
getTrack()
Returns a VirtualHikerTrackLog object containing the results of many, many iterations of the RandomHiker algorithm, and it selects from among the many VirtualHikerTrackLogs thus produced that most closely match the input criteria. |
VirtualHikerTrackLog |
getTrackPerpendicularConstraint()
Returns a VirtualHikerTrackLog object containing the results of many, many iterations of the RandomHiker algorithm, selecting from among the many VirtualHikerTrackLogs thus produced that most closely match the input criteria. |
UtmCoordinatePairElev[][] |
getUtmCoordinatePairElevArray()
The SlopeReductionHiker class produces a UtmCoordinatePairElev[][] as part of its processing of the track. |
VirtualHikerTrackLog |
overrideReasonableSlope(int override)
See the getTrack method. |
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 |
Constructor Detail |
---|
public SlopeReductionHiker(int zone, java.lang.String zoneChar, UtmCoordinatePair start, UtmCoordinatePair target, int idealSlope, 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 hikeridealSlope
- the target slope as a percentageconnection
- a connection object (see DbHelper)DbHelper
public SlopeReductionHiker(int zone, java.lang.String zoneChar, UtmCoordinatePair start, UtmCoordinatePair target, int padding, int idealSlope, 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.idealSlope
- the target slope as a percentageconnection
- a connection object (see DbHelper)DbHelper
Method Detail |
---|
public VirtualHikerTrackLog getTrack()
getTrack
in class AbstractHiker
overrideReasonableSlope(int)
public VirtualHikerTrackLog getTrackPerpendicularConstraint()
public VirtualHikerTrackLog overrideReasonableSlope(int override)
override
- specify a higher reasonable slope
getTrack()
public UtmCoordinatePairElev[][] getUtmCoordinatePairElevArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |