Commit 24b73a4c authored by Bryan Cazabonne's avatar Bryan Cazabonne
Browse files

Changed RealFieldElement to CalculusFieldElement due to Hipparchus 2.0.

parent efc3cabc
Pipeline #1091 failed with stages
in 1 minute and 19 seconds
......@@ -40,7 +40,7 @@
Field<T> getField()
}
interface "RealFieldElement<T>" as RealFieldElement_T_ {
interface "CalculusFieldElement<T>" as CalculusFieldElement_T_ {
T sin()
T cos()
...
......@@ -69,13 +69,13 @@
+double taylor(double[] delta)
}
FieldElement_T_ <.. RealFieldElement_T_
RealFieldElement_T_ <.. DerivativeStructure
FieldElement_T_ <.. CalculusFieldElement_T_
CalculusFieldElement_T_ <.. DerivativeStructure
DSFactory --> DerivativeStructure : creates
}
package util #DDEBD8 {
RealFieldElement_T_ <.. Tuple
CalculusFieldElement_T_ <.. Tuple
}
}
......@@ -83,7 +83,7 @@
package org.orekit.propagation #ECEBD8 {
interface "FieldPropagator<T>" as FieldPropagator_T_ {
}
RealFieldElement_T_ <-- FieldPropagator_T_
CalculusFieldElement_T_ <-- FieldPropagator_T_
}
@enduml
......@@ -21,7 +21,7 @@ import java.util.Map.Entry;
import java.util.NavigableMap;
import java.util.TreeMap;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.orekit.errors.OrekitException;
import org.orekit.errors.OrekitMessages;
import org.orekit.frames.Frame;
......@@ -88,7 +88,7 @@ public class AggregateBoundedAttitudeProvider implements BoundedAttitudeProvider
/** {@inheritDoc} */
@Override
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date, final Frame frame) {
// Get the attitude provider for the given date
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.orekit.frames.Frame;
import org.orekit.utils.FieldPVCoordinatesProvider;
import org.orekit.utils.PVCoordinatesProvider;
......@@ -49,7 +49,7 @@ public interface AttitudeBuilder {
* @return filtered attitude
* @param <T> the type of the field elements
*/
<T extends RealFieldElement<T>> FieldAttitude<T> build(Frame frame,
<T extends CalculusFieldElement<T>> FieldAttitude<T> build(Frame frame,
FieldPVCoordinatesProvider<T> pvProv,
TimeStampedFieldAngularCoordinates<T> rawAttitude);
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.orekit.frames.Frame;
import org.orekit.time.AbsoluteDate;
import org.orekit.time.FieldAbsoluteDate;
......@@ -47,7 +47,7 @@ public interface AttitudeProvider {
* @return attitude attitude on the specified date and position-velocity state
* @since 9.0
*/
<T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv,
<T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv,
FieldAbsoluteDate<T> date,
Frame frame);
}
......@@ -22,7 +22,7 @@ import java.util.List;
import java.util.Map;
import org.hipparchus.Field;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.ode.events.Action;
import org.orekit.errors.OrekitException;
import org.orekit.errors.OrekitMessages;
......@@ -133,7 +133,7 @@ public class AttitudesSequence implements AttitudeProvider {
* @param propagator propagator that will handle the events
* @param <T> type of the field elements
*/
public <T extends RealFieldElement<T>> void registerSwitchEvents(final Field<T> field, final FieldPropagator<T> propagator) {
public <T extends CalculusFieldElement<T>> void registerSwitchEvents(final Field<T> field, final FieldPropagator<T> propagator) {
for (final Switch<?> sw : switches) {
propagator.addEventDetector(new FieldEventDetector<T>() {
......@@ -293,7 +293,7 @@ public class AttitudesSequence implements AttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
return activated.get(date.toAbsoluteDate()).getAttitude(pvProv, date, frame);
......@@ -502,7 +502,7 @@ public class AttitudesSequence implements AttitudeProvider {
}
/** {@inheritDoc} */
public <S extends RealFieldElement<S>> FieldAttitude<S> getAttitude(final FieldPVCoordinatesProvider<S> pvProv,
public <S extends CalculusFieldElement<S>> FieldAttitude<S> getAttitude(final FieldPVCoordinatesProvider<S> pvProv,
final FieldAbsoluteDate<S> date,
final Frame frame) {
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.hipparchus.util.FastMath;
......@@ -101,7 +101,7 @@ public class BodyCenterPointing extends GroundPointing {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date, final Frame frame) {
// spacecraft coordinates in body frame
......
......@@ -17,7 +17,7 @@
package org.orekit.attitudes;
import org.hipparchus.Field;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldRotation;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Rotation;
......@@ -138,7 +138,7 @@ public class CelestialBodyPointed implements AttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......
......@@ -21,7 +21,7 @@ import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.hipparchus.Field;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldRotation;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Rotation;
......@@ -55,7 +55,7 @@ import org.orekit.utils.TimeStampedFieldAngularCoordinates;
* @author V&eacute;ronique Pommier-Maurussane
*/
public class FieldAttitude<T extends RealFieldElement<T>>
public class FieldAttitude<T extends CalculusFieldElement<T>>
implements FieldTimeStamped<T>, FieldTimeShiftable<FieldAttitude<T>, T>, FieldTimeInterpolable<FieldAttitude<T>, T> {
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.orekit.frames.FieldTransform;
import org.orekit.frames.Frame;
import org.orekit.frames.Transform;
......@@ -63,7 +63,7 @@ public class FixedFrameBuilder implements AttitudeBuilder {
/** {@inheritDoc} */
@Override
public <T extends RealFieldElement<T>> FieldAttitude<T>
public <T extends CalculusFieldElement<T>> FieldAttitude<T>
build(final Frame frame, final FieldPVCoordinatesProvider<T> pvProv,
final TimeStampedFieldAngularCoordinates<T> rawAttitude) {
......
......@@ -17,7 +17,7 @@
package org.orekit.attitudes;
import org.hipparchus.Field;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.orekit.frames.Frame;
import org.orekit.time.AbsoluteDate;
import org.orekit.time.FieldAbsoluteDate;
......@@ -54,7 +54,7 @@ public class FixedRate implements AttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
final Field<T> field = date.getField();
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.hipparchus.util.FastMath;
......@@ -110,7 +110,7 @@ public abstract class GroundPointing implements AttitudeProvider {
* in specified frame
* @since 9.0
*/
public abstract <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(FieldPVCoordinatesProvider<T> pvProv,
public abstract <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(FieldPVCoordinatesProvider<T> pvProv,
FieldAbsoluteDate<T> date,
Frame frame);
......@@ -155,7 +155,7 @@ public abstract class GroundPointing implements AttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>>FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>>FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.Rotation;
import org.orekit.annotation.DefaultDataContext;
import org.orekit.data.DataContext;
......@@ -94,7 +94,7 @@ public class InertialProvider implements AttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>>FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>>FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date, final Frame frame) {
final FieldTransform<T> t = frame.getTransformTo(satelliteFrame, date);
return new FieldAttitude<>(date, frame, t.getRotation(), t.getRotationRate(), t.getRotationAcceleration());
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldRotation;
import org.hipparchus.geometry.euclidean.threed.Rotation;
import org.hipparchus.geometry.euclidean.threed.RotationConvention;
......@@ -134,7 +134,7 @@ public class LofOffset implements AttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......
......@@ -19,7 +19,7 @@ package org.orekit.attitudes;
import java.util.ArrayList;
import java.util.List;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldLine;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Line;
......@@ -86,7 +86,7 @@ public class LofOffsetPointing extends GroundPointing {
/** {@inheritDoc} */
@Override
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date, final Frame frame) {
return attitudeLaw.getAttitude(pvProv, date, frame);
}
......@@ -129,7 +129,7 @@ public class LofOffsetPointing extends GroundPointing {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......@@ -205,7 +205,7 @@ public class LofOffsetPointing extends GroundPointing {
* @param <T> type of the field elements
* @return intersection point in body frame (only the position is set!)
*/
private <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> losIntersectionWithBody(final FieldTransform<T> scToBody) {
private <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> losIntersectionWithBody(final FieldTransform<T> scToBody) {
// compute satellite pointing axis and position/velocity in body frame
final FieldVector3D<T> pointingBodyFrame = scToBody.transformVector(satPointingVector);
......
......@@ -19,7 +19,7 @@ package org.orekit.attitudes;
import java.util.ArrayList;
import java.util.List;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.orekit.bodies.BodyShape;
......@@ -86,7 +86,7 @@ public class NadirPointing extends GroundPointing {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......@@ -139,7 +139,7 @@ public class NadirPointing extends GroundPointing {
* @return intersection point in body frame (only the position is set!)
* @since 9.0
*/
private <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> nadirRef(final TimeStampedFieldPVCoordinates<T> scRef,
private <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> nadirRef(final TimeStampedFieldPVCoordinates<T> scRef,
final FieldTransform<T> refToBody) {
final FieldVector3D<T> satInBodyFrame = refToBody.transformPosition(scRef.getPosition());
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldRotation;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Rotation;
......@@ -104,7 +104,7 @@ public class SpinStabilized implements AttitudeProviderModifier {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......
......@@ -19,7 +19,7 @@ package org.orekit.attitudes;
import java.util.List;
import java.util.stream.Collectors;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.orekit.errors.OrekitException;
import org.orekit.errors.OrekitMessages;
import org.orekit.frames.FieldTransform;
......@@ -140,7 +140,7 @@ public class TabulatedLofOffset implements BoundedAttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......
......@@ -19,7 +19,7 @@ package org.orekit.attitudes;
import java.util.List;
import java.util.stream.Collectors;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.orekit.frames.Frame;
import org.orekit.time.AbsoluteDate;
import org.orekit.time.FieldAbsoluteDate;
......@@ -108,7 +108,7 @@ public class TabulatedProvider implements BoundedAttitudeProvider {
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
......
......@@ -16,7 +16,7 @@
*/
package org.orekit.attitudes;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.orekit.bodies.BodyShape;
......@@ -87,7 +87,7 @@ public class TargetPointing extends GroundPointing {
/** {@inheritDoc} */
@Override
public <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date, final Frame frame) {
final FieldTransform<T> t = getBodyFrame().getTransformTo(frame, date);
final FieldVector3D<T> zero = FieldVector3D.getZero(date.getField());
......
......@@ -17,7 +17,7 @@
package org.orekit.attitudes;
import org.hipparchus.Field;
import org.hipparchus.RealFieldElement;
import org.hipparchus.CalculusFieldElement;
import org.hipparchus.geometry.euclidean.threed.FieldRotation;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Rotation;
......@@ -99,7 +99,7 @@ public class YawCompensation extends GroundPointing implements AttitudeProviderM
}
/** {@inheritDoc} */
public <T extends RealFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> TimeStampedFieldPVCoordinates<T> getTargetPV(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
return groundPointingLaw.getTargetPV(pvProv, date, frame);
......@@ -124,7 +124,7 @@ public class YawCompensation extends GroundPointing implements AttitudeProviderM
* @return satellite base attitude state, i.e without compensation.
* @since 9.0
*/
public <T extends RealFieldElement<T>> FieldAttitude<T> getBaseState(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getBaseState(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date, final Frame frame) {
return groundPointingLaw.getAttitude(pvProv, date, frame);
}
......@@ -186,7 +186,7 @@ public class YawCompensation extends GroundPointing implements AttitudeProviderM
/** {@inheritDoc} */
@Override
public <T extends RealFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> FieldAttitude<T> getAttitude(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date, final Frame frame) {
final Field<T> field = date.getField();
......@@ -266,7 +266,7 @@ public class YawCompensation extends GroundPointing implements AttitudeProviderM
* @return yaw compensation angle for orbit.
* @since 9.0
*/
public <T extends RealFieldElement<T>> T getYawAngle(final FieldPVCoordinatesProvider<T> pvProv,
public <T extends CalculusFieldElement<T>> T getYawAngle(final FieldPVCoordinatesProvider<T> pvProv,
final FieldAbsoluteDate<T> date,
final Frame frame) {
final FieldRotation<T> rBase = getBaseState(pvProv, date, frame).getRotation();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment