Skip to content
Snippets Groups Projects
Commit 37d4a357 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

removed unneeded mapping date -> line in datation model.

parent 049902bf
No related branches found
No related tags found
No related merge requests found
......@@ -30,12 +30,6 @@ public interface LineDatation {
*/
AbsoluteDate getDate(double lineNumber);
/** Get the line for a given date.
* @param date date
* @return line number
*/
double getLine(AbsoluteDate date);
/** Get the rate of lines scanning.
* @param lineNumber line number
* @return rate of lines scanning (lines / seconds)
......
......@@ -121,18 +121,6 @@ public class LineSensor {
return date;
}
/** Get the line number.
* @param date date
* @return line number corresponding to date
* @exception RuggedException if date cannot be handled
*/
public double getLine(final AbsoluteDate date)
throws RuggedException {
final double lineNumber = datationModel.getLine(date);
DumpManager.dumpSensorDatation(this, lineNumber, date);
return lineNumber;
}
/** Get the rate of lines scanning.
* @param lineNumber line number
* @return rate of lines scanning (lines / seconds)
......
......@@ -54,12 +54,6 @@ public class LinearLineDatation implements LineDatation {
return referenceDate.shiftedBy((lineNumber - referenceLine) / rate);
}
/** {@inheritDoc} */
@Override
public double getLine(final AbsoluteDate date) {
return referenceLine + rate * date.durationFrom(referenceDate);
}
/** {@inheritDoc} */
@Override
public double getRate(final double lineNumber) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment