|
|||||||||
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.LcpHiker
public class LcpHiker
The LcpHiker class contains methods that implement various lowest-cost-path seeking virtual hikers. The three and five degree of freedom hikers attempt to find a path that minimizes elevation change between the start coordinates and the target. Both use a stepwise approach looking only one step ahead, in various directions. Thus, they do not search the whole terrain, but normally do produce reasonable low cost path results. The one degree of freedom hiker essentially walks straight to the target point regardless of terrain. (This may often be the optimum path in flatter terrains.) The getTrack() method runs all three and returns the best result. Note: the much more computationally expensive SlopeReductionHiker often produces better LCPs for hiking.
SlopeReductionHiker
Field Summary | |
---|---|
static int |
MINIMIZE_CUMULATIVE_DISTANCE
|
static int |
MINIMIZE_CUMULATIVE_ELEVATION
|
static int |
MINIMIZE_SLOPE
|
static int |
MINIMIZE_STANDARD_DEVIATION
|
Fields inherited from class com.c5corp.c5Algorithms.AbstractHiker |
---|
CARDINAL_BITS, MOVE, table |
Constructor Summary | |
---|---|
LcpHiker(int zone,
java.lang.String zoneChar,
UtmCoordinatePair start,
UtmCoordinatePair target,
java.sql.Connection connection)
Creates an LcpHiker from the UTM zone, the zone desigination character, the starting and target point, with a default padding of 1000 meters around the rectangular area specified. |
|
LcpHiker(int zone,
java.lang.String zoneChar,
UtmCoordinatePair start,
UtmCoordinatePair target,
int padding,
java.sql.Connection connection)
Creates an LcpHiker from the UTM zone, the grid zone designation character (GZD), the UTM zone char, the starting and target coordinates, and some padding (in meters) around the rectangular area specified by the two points. |
Method Summary | |
---|---|
VirtualHikerTrackLog |
getFiveDegreeTrack()
Returns a VirtualHikerTrackLog object containing the results of a "five degree of freedom" artificial hiking algorithm. |
VirtualHikerTrackLog |
getOneDegreeTrack()
Returns a VirtualHikerTrackLog object containing the results of a "one degree of freedom" artificial hiking algorithm. |
VirtualHikerTrackLog |
getThreeDegreeTrack()
Returns a VirtualHikerTrackLog object containing the results of a "three degree of freedom" artificial hiking algorithm. |
VirtualHikerTrackLog |
getTrack()
Deprecated. simply calls getTrack(LcpHiker.MINIMIZE_CUMULATIVE_ELEVATION) |
VirtualHikerTrackLog |
getTrack(int efficiencyType)
Returns a VirtualHikerTrackLog object containing the results of a artificial hiking algorithm. |
UtmCoordinatePairElev[][] |
getUtmCoordinatePairElevArray()
The LcpHiker 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 |
---|
public static final int MINIMIZE_SLOPE
getTrack(int efficiencyType)
,
Constant Field Valuespublic static final int MINIMIZE_CUMULATIVE_DISTANCE
getTrack(int efficiencyType)
,
Constant Field Valuespublic static final int MINIMIZE_CUMULATIVE_ELEVATION
getTrack(int efficiencyType)
,
Constant Field Valuespublic static final int MINIMIZE_STANDARD_DEVIATION
getTrack(int efficiencyType)
,
Constant Field ValuesConstructor Detail |
---|
public LcpHiker(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) - if you don't know it exactly, try one nearby, or in your hemisphere.start
- The starting coordinates of the virtual hikertarget
- The target coordinates of the virtual hikerpadding
- the number of meters to add aroundconnection
- a connection object (see DbHelper)DbHelper
public LcpHiker(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
Method Detail |
---|
public VirtualHikerTrackLog getOneDegreeTrack()
public VirtualHikerTrackLog getThreeDegreeTrack()
VirtualHikerTrackLog
public VirtualHikerTrackLog getFiveDegreeTrack()
public VirtualHikerTrackLog getTrack()
getTrack
in class AbstractHiker
getTrack(int)
public VirtualHikerTrackLog getTrack(int efficiencyType)
efficiencyType
- - the type of efficiency desired
public UtmCoordinatePairElev[][] getUtmCoordinatePairElevArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |