AbstractSinex.java

  1. /* Copyright 2022-2025 Luc Maisonobe
  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.sinex;

  18. import org.orekit.time.AbsoluteDate;
  19. import org.orekit.time.TimeScales;

  20. /**
  21.  * Base container for Solution INdependent EXchange (SINEX) files.
  22.  * @author Bryan Cazabonne
  23.  * @author Luc Maisonobe
  24.  * @since 13.0
  25.  */
  26. public class AbstractSinex {

  27.     /** Time scales. */
  28.     private final TimeScales timeScales;

  29.     /** SINEX file creation date as extracted for the first line. */
  30.     private final AbsoluteDate creationDate;

  31.     /** Start time of the data used in the Sinex solution.*/
  32.     private final AbsoluteDate startDate;

  33.     /** End time of the data used in the Sinex solution.*/
  34.     private final AbsoluteDate endDate;

  35.     /** Simple constructor.
  36.      * @param timeScales time scales
  37.      * @param creationDate SINEX file creation date
  38.      * @param startDate start time of the data used in the Sinex solution
  39.      * @param endDate end time of the data used in the Sinex solution
  40.      */
  41.     public AbstractSinex(final TimeScales timeScales, final AbsoluteDate creationDate,
  42.                          final AbsoluteDate startDate, final AbsoluteDate endDate) {
  43.         this.timeScales   = timeScales;
  44.         this.creationDate = creationDate;
  45.         this.startDate    = startDate;
  46.         this.endDate      = endDate;
  47.     }

  48.     /** Get the time scales.
  49.      * @return time scales
  50.      */
  51.     public TimeScales getTimeScales() {
  52.         return timeScales;
  53.     }

  54.     /** Get the creation date of the parsed SINEX file.
  55.      * @return SINEX file creation date as an AbsoluteDate
  56.      */
  57.     public AbsoluteDate getCreationDate() {
  58.         return creationDate;
  59.     }

  60.     /** Get the file epoch start time.
  61.      * @return the file epoch start time
  62.      */
  63.     public AbsoluteDate getFileEpochStartTime() {
  64.         return startDate;
  65.     }

  66.     /** Get the file epoch end time.
  67.      * @return the file epoch end time
  68.      */
  69.     public AbsoluteDate getFileEpochEndTime() {
  70.         return endDate;
  71.     }

  72. }