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