1   /* Copyright 2002-2012 Space Applications Services
2    * Licensed to CS Systèmes d'Information (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.general;
18  
19  import java.io.Serializable;
20  
21  /** Contains general information about a satellite as contained
22   * in an orbit file.
23   * @author Thomas Neidhart
24   */
25  public class SatelliteInformation implements Serializable {
26  
27      /** Serializable UID. */
28      private static final long serialVersionUID = -8329507360193822277L;
29  
30      /** Id of the satellite as used in the orbit file. */
31      private String satelliteId;
32  
33      /** One standard deviation of the orbit entries in m. */
34      private int accuracy;
35  
36      /** Create a new {@link SatelliteInformation} object with a given
37       * satellite id.
38       * @param satId the satellite id
39       */
40      public SatelliteInformation(final String satId) {
41          this.satelliteId = satId;
42          this.accuracy = 0;
43      }
44  
45      /** Returns the id for this satellite object.
46       * @return the satellite id
47       */
48      public String getSatelliteId() {
49          return satelliteId;
50      }
51  
52      /** Set the id of this satellite.
53       * @param satId the satellite id to be set
54       */
55      public void setSatelliteId(final String satId) {
56          this.satelliteId = satId;
57      }
58  
59      /** Returns the estimated accuracy of the orbit entries for this
60       * satellite (in m).
61       * @return the accuracy in m (one standard deviation)
62       */
63      public int getAccuracy() {
64          return accuracy;
65      }
66  
67      /** Set the accuracy for this satellite.
68       * @param accuracy the accuracy in m (one standard deviation)
69       */
70      public void setAccuracy(final int accuracy) {
71          this.accuracy = accuracy;
72      }
73  }