SatelliteInformation.java

  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. import java.io.Serializable;

  19. /** Contains general information about a satellite as contained
  20.  * in an orbit file.
  21.  * @author Thomas Neidhart
  22.  */
  23. public class SatelliteInformation implements Serializable {

  24.     /** Serializable UID. */
  25.     private static final long serialVersionUID = -8329507360193822277L;

  26.     /** Id of the satellite as used in the orbit file. */
  27.     private String satelliteId;

  28.     /** One standard deviation of the orbit entries in m. */
  29.     private int accuracy;

  30.     /** Create a new {@link SatelliteInformation} object with a given
  31.      * satellite id.
  32.      * @param satId the satellite id
  33.      */
  34.     public SatelliteInformation(final String satId) {
  35.         this.satelliteId = satId;
  36.         this.accuracy = 0;
  37.     }

  38.     /** Returns the id for this satellite object.
  39.      * @return the satellite id
  40.      */
  41.     public String getSatelliteId() {
  42.         return satelliteId;
  43.     }

  44.     /** Set the id of this satellite.
  45.      * @param satId the satellite id to be set
  46.      */
  47.     public void setSatelliteId(final String satId) {
  48.         this.satelliteId = satId;
  49.     }

  50.     /** Returns the estimated accuracy of the orbit entries for this
  51.      * satellite (in m).
  52.      * @return the accuracy in m (one standard deviation)
  53.      */
  54.     public int getAccuracy() {
  55.         return accuracy;
  56.     }

  57.     /** Set the accuracy for this satellite.
  58.      * @param accuracy the accuracy in m (one standard deviation)
  59.      */
  60.     public void setAccuracy(final int accuracy) {
  61.         this.accuracy = accuracy;
  62.     }
  63. }