Commit 98798a1f authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed test.

parent 2bb75f39
......@@ -20,7 +20,7 @@ import java.util.List;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.hipparchus.geometry.euclidean.twod.Vector2D;
import org.orekit.gnss.RinexLoader.Parser.AppliedDCBs;
import org.orekit.gnss.RinexLoader.Parser.AppliedDCBS;
import org.orekit.gnss.RinexLoader.Parser.AppliedPCVS;
import org.orekit.gnss.RinexLoader.Parser.PhaseShiftCorrection;
import org.orekit.time.AbsoluteDate;
......@@ -111,7 +111,7 @@ public class RinexHeader {
private final int clkOffset;
/** List of applied differential code bias corrections. */
private List<AppliedDCBs> listAppliedDCBS;
private List<AppliedDCBS> listAppliedDCBS;
/** List of antenna center variation corrections. */
private List<AppliedPCVS> listAppliedPCVS;
......@@ -229,7 +229,7 @@ public class RinexHeader {
final Vector3D antPhaseCenter, final Vector3D antBSight, final double antAzi,
final Vector3D antZeroDir, final Vector3D centerMass, final String sigStrengthUnit,
final double interval, final AbsoluteDate tFirstObs, final AbsoluteDate tLastObs,
final int clkOffset, final List<AppliedDCBs> listAppliedDCBS,
final int clkOffset, final List<AppliedDCBS> listAppliedDCBS,
final List<AppliedPCVS> listAppliedPCVS,
final List<PhaseShiftCorrection> phaseShiftCorrections, final int leapSeconds,
final int leapSecondsFuture, final int leapSecondsWeekNum, final int leapSecondsDayNum) {
......@@ -490,7 +490,7 @@ public class RinexHeader {
/** Get the list of applied differential code bias corrections.
* @return list of applied differential code bias corrections
*/
public List<AppliedDCBs> getListAppliedDCBS() {
public List<AppliedDCBS> getListAppliedDCBS() {
return listAppliedDCBS;
}
......
......@@ -549,7 +549,7 @@ public class RinexLoader {
int leapSecondsFuture = 0;
int leapSecondsWeekNum = 0;
int leapSecondsDayNum = 0;
final List<AppliedDCBs> listAppliedDCBs = new ArrayList<>();
final List<AppliedDCBS> listAppliedDCBs = new ArrayList<>();
final List<AppliedPCVS> listAppliedPCVS = new ArrayList<>();
SatelliteSystem satSystemScaleFactor = null;
int scaleFactor = 1;
......@@ -769,7 +769,7 @@ public class RinexLoader {
break;
case SYS_DCBS_APPLIED :
listAppliedDCBs.add(new AppliedDCBs(SatelliteSystem.parseSatelliteSystem(parseString(line, 0, 1)),
listAppliedDCBs.add(new AppliedDCBS(SatelliteSystem.parseSatelliteSystem(parseString(line, 0, 1)),
parseString(line, 2, 17), parseString(line, 20, 40)));
break;
case SYS_PCVS_APPLIED :
......@@ -1143,7 +1143,7 @@ public class RinexLoader {
* Contains information on the programs used to correct the observations
* in RINEX files for differential code biases.
*/
public class AppliedDCBs {
public class AppliedDCBS {
/** Satellite system. */
private final SatelliteSystem satelliteSystem;
......@@ -1159,7 +1159,7 @@ public class RinexLoader {
* @param progDCBS Program name used to apply DCBs
* @param sourceDCBS Source of corrections (URL)
*/
private AppliedDCBs(final SatelliteSystem satelliteSystem,
private AppliedDCBS(final SatelliteSystem satelliteSystem,
final String progDCBS, final String sourceDCBS) {
this.satelliteSystem = satelliteSystem;
this.progDCBS = progDCBS;
......
......@@ -26,7 +26,7 @@ import org.orekit.Utils;
import org.orekit.errors.OrekitException;
import org.orekit.errors.OrekitIllegalArgumentException;
import org.orekit.errors.OrekitMessages;
import org.orekit.gnss.RinexLoader.Parser.AppliedDCBs;
import org.orekit.gnss.RinexLoader.Parser.AppliedDCBS;
import org.orekit.gnss.RinexLoader.Parser.AppliedPCVS;
import org.orekit.time.AbsoluteDate;
import org.orekit.time.TimeScale;
......@@ -432,7 +432,7 @@ public class RinexLoaderTest {
RinexLoader loader = new RinexLoader("^dcbs\\.00o$");
for (Map.Entry<RinexHeader, List<ObservationDataSet>> entry : loader.getObservations().entrySet()) {
RinexHeader header = entry.getKey();
List<AppliedDCBs> list = header.getListAppliedDCBS();
List<AppliedDCBS> list = header.getListAppliedDCBS();
Assert.assertEquals(2, list.size());
Assert.assertEquals(SatelliteSystem.GPS, list.get(0).getSatelliteSystem());
Assert.assertEquals("dcbs-program-name", list.get(0).getProgDCBS());
......@@ -445,7 +445,7 @@ public class RinexLoaderTest {
@Test
public void testPCVSApplied() throws OrekitException {
RinexLoader loader = new RinexLoader("^pcvss\\.00o$");
RinexLoader loader = new RinexLoader("^pcvs\\.00o$");
for (Map.Entry<RinexHeader, List<ObservationDataSet>> entry : loader.getObservations().entrySet()) {
RinexHeader header = entry.getKey();
List<AppliedPCVS> list = header.getListAppliedPCVS();
......
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