Skip to content
Snippets Groups Projects
Commit 5e7df560 authored by Clément Jonglez's avatar Clément Jonglez
Browse files

fix checkstyle warnings

parent e2f89fa4
No related branches found
No related tags found
1 merge request!8Make rugged compatible with Orekit 12
......@@ -73,14 +73,14 @@ public class FixedRotation implements TimeIndependentLOSTransform {
this.angleDriver = new ParameterDriver(name, angle, SCALE, -2 * FastMath.PI, 2 * FastMath.PI);
angleDriver.addObserver(new ParameterObserver() {
@Override
public void valueChanged(final double previousValue, final ParameterDriver driver, AbsoluteDate date) {
public void valueChanged(final double previousValue, final ParameterDriver driver, final AbsoluteDate date) {
// reset rotations to null, they will be evaluated lazily if needed
rotation = null;
rDS = null;
}
@Override
public void valueSpanMapChanged(TimeSpanMap<Double> previousValueSpanMap, ParameterDriver driver) {
public void valueSpanMapChanged(final TimeSpanMap<Double> previousValueSpanMap, final ParameterDriver driver) {
// reset rotations to null, they will be evaluated lazily if needed
rotation = null;
rDS = null;
......
......@@ -67,14 +67,14 @@ public class FixedZHomothety implements TimeIndependentLOSTransform {
this.factorDriver = new ParameterDriver(name, factorvalue, SCALE, 0, Double.POSITIVE_INFINITY);
factorDriver.addObserver(new ParameterObserver() {
@Override
public void valueChanged(final double previousValue, final ParameterDriver driver, AbsoluteDate date) {
public void valueChanged(final double previousValue, final ParameterDriver driver, final AbsoluteDate date) {
// reset factor to zero, they will be evaluated lazily if needed
factor = 0.0;
factorDS = null;
}
@Override
public void valueSpanMapChanged(TimeSpanMap<Double> previousValueSpanMap, ParameterDriver driver) {
public void valueSpanMapChanged(final TimeSpanMap<Double> previousValueSpanMap, final ParameterDriver driver) {
// reset factor to zero, they will be evaluated lazily if needed
factor = 0.0;
factorDS = null;
......
......@@ -227,13 +227,13 @@ public class LOSBuilder {
final ParameterObserver resettingObserver = new ParameterObserver() {
/** {@inheritDoc} */
@Override
public void valueChanged(final double previousValue, final ParameterDriver driver, AbsoluteDate date) {
public void valueChanged(final double previousValue, final ParameterDriver driver, final AbsoluteDate date) {
Arrays.fill(transformed, null);
}
/** {@inheritDoc} */
@Override
public void valueSpanMapChanged(TimeSpanMap<Double> previousValueSpanMap, ParameterDriver driver) {
public void valueSpanMapChanged(final TimeSpanMap<Double> previousValueSpanMap, final ParameterDriver driver) {
Arrays.fill(transformed, null);
}
};
......
......@@ -88,15 +88,15 @@ public class PolynomialRotation implements LOSTransform {
this.coefficientsDrivers = new ParameterDriver[angleCoeffs.length];
final ParameterObserver resettingObserver = new ParameterObserver() {
@Override
public void valueChanged(final double previousValue, final ParameterDriver driver, AbsoluteDate date) {
public void valueChanged(final double previousValue, final ParameterDriver driver, final AbsoluteDate date) {
// reset rotations to null, they will be evaluated lazily if needed
angle = null;
axisDS = null;
angleDS = null;
}
@Override
public void valueSpanMapChanged(TimeSpanMap<Double> previousValueSpanMap, ParameterDriver driver) {
public void valueSpanMapChanged(final TimeSpanMap<Double> previousValueSpanMap, final ParameterDriver driver) {
// reset rotations to null, they will be evaluated lazily if needed
angle = null;
axisDS = null;
......
......@@ -129,11 +129,11 @@ public class SpacecraftToObservedBody implements Serializable {
// set up the TimeStampedPVCoordinates interpolator
final TimeInterpolator<TimeStampedPVCoordinates> pvInterpolator =
new TimeStampedPVCoordinatesHermiteInterpolator(pvInterpolationNumber, pvFilter);
// set up the cache for attitudes
final TimeStampedCache<TimeStampedAngularCoordinates> aCache =
new ImmutableTimeStampedCache<>(aInterpolationNumber, quaternions);
// set up the TimeStampedAngularCoordinates Hermite interpolator
final TimeInterpolator<TimeStampedAngularCoordinates> angularInterpolator =
new TimeStampedAngularCoordinatesHermiteInterpolator(aInterpolationNumber, aFilter);
......@@ -155,7 +155,7 @@ public class SpacecraftToObservedBody implements Serializable {
pvInterpolationDate = date;
}
final TimeStampedPVCoordinates interpolatedPV =
pvInterpolator.interpolate(pvInterpolationDate,
pvInterpolator.interpolate(pvInterpolationDate,
pvCache.getNeighbors(pvInterpolationDate));
final TimeStampedPVCoordinates pv = interpolatedPV.shiftedBy(date.durationFrom(pvInterpolationDate));
......@@ -169,7 +169,7 @@ public class SpacecraftToObservedBody implements Serializable {
aInterpolationDate = date;
}
final TimeStampedAngularCoordinates interpolatedQuaternion =
angularInterpolator.interpolate(aInterpolationDate,
angularInterpolator.interpolate(aInterpolationDate,
aCache.getNeighbors(aInterpolationDate).collect(Collectors.toList()));
final TimeStampedAngularCoordinates quaternion = interpolatedQuaternion.shiftedBy(date.durationFrom(aInterpolationDate));
......
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