1 /* Copyright 2002-2025 CS GROUP
2 * Licensed to CS GROUP (CS) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * CS licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 package org.orekit.files.sinex;
19
20 import java.util.Collection;
21 import java.util.HashMap;
22
23 import org.orekit.gnss.SatelliteSystem;
24
25 /** Container for {@link DifferentialSignalBias Differential Signal Biases} associated to one station.
26 * @author Louis Aucouturier
27 * @since 12.0
28 */
29 public class StationDifferentialSignalBias {
30
31 /** Site code. */
32 private final String siteCode;
33
34 /** Map containing DSB objects as a function of the satellite system. */
35 private final HashMap<SatelliteSystem, DifferentialSignalBias> dsbMap;
36
37 /** Simple constructor.
38 * @param siteCode the site code (station identifier)
39 */
40 public StationDifferentialSignalBias(final String siteCode) {
41 this.siteCode = siteCode;
42 this.dsbMap = new HashMap<>();
43 }
44
45 /** Get the site code (station identifier).
46 * @return the site code
47 */
48 public String getSiteCode() {
49 return siteCode;
50 }
51
52 /** Get the DSB data for a given satellite system.
53 * @param satelliteSystem satellite system
54 * @return the DSB data corresponding to the satellite system
55 */
56 public DifferentialSignalBias getDsb(final SatelliteSystem satelliteSystem) {
57 return dsbMap.computeIfAbsent(satelliteSystem, s -> new DifferentialSignalBias());
58 }
59
60 /** Get the satellite systems available for the station.
61 * @return a Set containing all SatelliteSystems available for DSB computation.
62 */
63 public Collection<SatelliteSystem> getAvailableSatelliteSystems() {
64 return dsbMap.keySet();
65 }
66
67 }