1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.orekit.data;
18
19 import org.hipparchus.RealFieldElement;
20
21
22
23
24
25 class NoFarPlanetsTerm extends SeriesTerm {
26
27
28 private final int cL;
29
30
31 private final int cF;
32
33
34 private final int cD;
35
36
37 private final int cOmega;
38
39
40 private final int cMe;
41
42
43 private final int cVe;
44
45
46 private final int cE;
47
48
49 private final int cMa;
50
51
52 private final int cJu;
53
54
55 private final int cSa;
56
57
58
59
60
61
62
63
64
65
66
67
68
69 NoFarPlanetsTerm(final int cL, final int cF, final int cD, final int cOmega,
70 final int cMe, final int cVe, final int cE, final int cMa,
71 final int cJu, final int cSa) {
72 this.cL = cL;
73 this.cF = cF;
74 this.cD = cD;
75 this.cOmega = cOmega;
76 this.cMe = cMe;
77 this.cVe = cVe;
78 this.cE = cE;
79 this.cMa = cMa;
80 this.cJu = cJu;
81 this.cSa = cSa;
82 }
83
84
85 protected double argument(final BodiesElements elements) {
86 return cL * elements.getL() + cF * elements.getF() +
87 cD * elements.getD() + cOmega * elements.getOmega() +
88 cMe * elements.getLMe() + cVe * elements.getLVe() + cE * elements.getLE() +
89 cMa * elements.getLMa() + cJu * elements.getLJu() + cSa * elements.getLSa();
90 }
91
92
93 protected double argumentDerivative(final BodiesElements elements) {
94 return cL * elements.getLDot() + cF * elements.getFDot() +
95 cD * elements.getDDot() + cOmega * elements.getOmegaDot() +
96 cMe * elements.getLMeDot() + cVe * elements.getLVeDot() + cE * elements.getLEDot() +
97 cMa * elements.getLMaDot() + cJu * elements.getLJuDot() + cSa * elements.getLSaDot();
98 }
99
100
101 protected <T extends RealFieldElement<T>> T argument(final FieldBodiesElements<T> elements) {
102 return elements.getL().multiply(cL).
103 add(elements.getF().multiply(cF)).
104 add(elements.getD().multiply(cD)).
105 add(elements.getOmega().multiply(cOmega)).
106 add(elements.getLMe().multiply(cMe)).
107 add(elements.getLVe().multiply(cVe)).
108 add(elements.getLE().multiply(cE)).
109 add(elements.getLMa().multiply(cMa)).
110 add(elements.getLJu().multiply(cJu)).
111 add(elements.getLSa().multiply(cSa));
112 }
113
114
115 protected <T extends RealFieldElement<T>> T argumentDerivative(final FieldBodiesElements<T> elements) {
116 return elements.getLDot().multiply(cL).
117 add(elements.getFDot().multiply(cF)).
118 add(elements.getDDot().multiply(cD)).
119 add(elements.getOmegaDot().multiply(cOmega)).
120 add(elements.getLMeDot().multiply(cMe)).
121 add(elements.getLVeDot().multiply(cVe)).
122 add(elements.getLEDot().multiply(cE)).
123 add(elements.getLMaDot().multiply(cMa)).
124 add(elements.getLJuDot().multiply(cJu)).
125 add(elements.getLSaDot().multiply(cSa));
126 }
127
128 }