public abstract class TidePredictionFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<TidePrediction> |
predictions |
Constructor and Description |
---|
TidePredictionFinder() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Float |
findPrediction(java.util.Date date,
int iTide)
Decides which formula to apply (based o the previous tide).
|
java.util.ArrayList<TidePrediction> |
getPredictionsMarks() |
abstract java.lang.Float |
getTidePrediction(java.util.Date date,
boolean print)
Method that each class that implements this one must provide that transforms a date into a height.
|
protected java.lang.Float |
ihFuncAfterHighTide(int indexFirstTide,
java.util.Date wantedDate)
Applies interpolation formula for the case the date is after a hight tide.
|
protected java.lang.Float |
ihFuncAfterLowTide(int indexFirstTide,
java.util.Date wantedDate)
Applies interpolation formula for the case the date is after a hight tide.
|
protected void |
logError(java.lang.Exception e) |
protected java.util.ArrayList<TidePrediction> predictions
protected void logError(java.lang.Exception e)
protected java.lang.Float ihFuncAfterHighTide(int indexFirstTide, java.util.Date wantedDate)
indexFirstTide
- wantedDate
- protected java.lang.Float ihFuncAfterLowTide(int indexFirstTide, java.util.Date wantedDate)
indexFirstTide
- wantedDate
- public abstract java.lang.Float getTidePrediction(java.util.Date date, boolean print) throws java.lang.Exception
date
- print
- java.lang.Exception
protected java.lang.Float findPrediction(java.util.Date date, int iTide)
date
- iTide
- public java.util.ArrayList<TidePrediction> getPredictionsMarks()
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.