1   /* Copyright 2002-2026 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  package org.orekit.files.rinex.clock;
18  
19  /** Container for a receiver or a satellite with its position in the considered frame.
20   * @since 14.0
21   */
22  public class Receiver {
23  
24      /** Designator. */
25      private final String designator;
26  
27      /** Receiver identifier. */
28      private final String receiverIdentifier;
29  
30      /** X coordinates in file considered Earth centered frame (in meters). */
31      private final double x;
32  
33      /** Y coordinates in file considered Earth centered frame (in meters). */
34      private final double y;
35  
36      /** Z coordinates in file considered Earth centered frame (in meters). */
37      private final double z;
38  
39      /** Constructor.
40       * @param designator         the designator
41       * @param receiverIdentifier the receiver identifier
42       * @param x                  the X coordinate in meters in considered Earth centered frame
43       * @param y                  the Y coordinate in meters in considered Earth centered frame
44       * @param z                  the Z coordinate in meters in considered Earth centered frame
45       */
46      public Receiver(final String designator, final String receiverIdentifier,
47                      final double x, final double y, final double z) {
48          this.designator = designator;
49          this.receiverIdentifier = receiverIdentifier;
50          this.x = x;
51          this.y = y;
52          this.z = z;
53      }
54  
55      /** Getter for the designator.
56       * @return the designator
57       */
58      public String getDesignator() {
59          return designator;
60      }
61  
62      /** Getter for the receiver identifier.
63       * @return the receiver identifier
64       */
65      public String getReceiverIdentifier() {
66          return receiverIdentifier;
67      }
68  
69      /** Getter for the X coordinate in meters in considered Earth centered frame.
70       * @return the X coordinate in meters in considered Earth centered frame
71       */
72      public double getX() {
73          return x;
74      }
75  
76      /** Getter for the Y coordinate in meters in considered Earth centered frame.
77       * @return the Y coordinate in meters in considered Earth centered frame
78       */
79      public double getY() {
80          return y;
81      }
82  
83      /** Getter for the Z coordinate in meters in considered Earth centered frame.
84       * @return the Z coordinate in meters in considered Earth centered frame
85       */
86      public double getZ() {
87          return z;
88      }
89  
90  }