X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2Festimate%2FEstimationParameters.java;h=1b8046740b767b21bc8e55cdda4134831d092efa;hp=e78994bbed0f574650dbc2669dcb06647b653e82;hb=326f489e36aa7f235bc19409a57bf4955cd50f24;hpb=8c8868ae29b3252f02e094c02307384cf61ba667 diff --git a/tim/prune/function/estimate/EstimationParameters.java b/tim/prune/function/estimate/EstimationParameters.java index e78994b..1b80467 100644 --- a/tim/prune/function/estimate/EstimationParameters.java +++ b/tim/prune/function/estimate/EstimationParameters.java @@ -61,6 +61,19 @@ public class EstimationParameters _parseFailed = false; } + /** + * @return true if this set of parameters is the same as the default set + */ + public boolean sameAsDefaults() + { + EstimationParameters defaultParams = new EstimationParameters(); + return _flatMins == defaultParams._flatMins + && _gentleClimbMins == defaultParams._gentleClimbMins + && _steepClimbMins == defaultParams._steepClimbMins + && _gentleDescentMins == defaultParams._gentleDescentMins + && _steepDescentMins == defaultParams._steepDescentMins; + } + /** * Populate the values from the config, which means all values are metric * @param inString semicolon-separated string of five parameters