RoutingIndicatorTerm.java

  1. /* Copyright 2024-2025 The Johns Hopkins University Applied Physics Laboratory
  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.iirv.terms;

  18. import org.orekit.files.iirv.terms.base.StringValuedIIRVTerm;

  19. /**
  20.  * 4-character destination routing indicator that specifies the site for which the message was generated.
  21.  * <p>
  22.  * See {@link OriginIdentificationTerm OriginIdentificationTerm} for the related alphabetic character
  23.  * <p>
  24.  * Valid values:
  25.  * <ul>
  26.  * <li>GSFC    = NASA Goddard Space Flight Center
  27.  * <li>WLP     = Wallops Island tracking radars
  28.  * <li>ETR     = NASA/USFC Eastern Test Range
  29.  * <li>JPL     = NASA Jet Propulsion Laboratory
  30.  * <li>WTR     = NASA/USFC Western Test Range
  31.  * <li>JSC     = NASA Johnson Space Center
  32.  * <li>PMR     = Navy Pacific Missile Range
  33.  * <li>CSTC    = Air Force Satellite Control Facility
  34.  * <li>KMR     = Army Kwajalein Missile Range
  35.  * <li>CNES    = French Space Agency National Centre for Space Studies (CNES)
  36.  * <li>MANY    = Message originated from more than one of the above stations
  37.  * </ul>
  38.  *
  39.  * @author Nick LaFarge
  40.  * @since 13.0
  41.  */
  42. public class RoutingIndicatorTerm extends StringValuedIIRVTerm {

  43.     /** NASA Goddard Space Flight Center (GSFC) RoutingIndicator. */
  44.     public static final RoutingIndicatorTerm GSFC = new RoutingIndicatorTerm("GSFC");

  45.     /** Wallops Island tracking radars (WLP) RoutingIndicator. */
  46.     public static final RoutingIndicatorTerm WLP = new RoutingIndicatorTerm(" WLP");

  47.     /** NASA/USFC Eastern Test Range (ETR) RoutingIndicator. */
  48.     public static final RoutingIndicatorTerm ETR = new RoutingIndicatorTerm(" ETR");

  49.     /** NASA Jet Propulsion Laboratory (JPL) RoutingIndicator. */
  50.     public static final RoutingIndicatorTerm JPL = new RoutingIndicatorTerm(" JPL");

  51.     /** NASA/USFC Western Test Range (WTR) RoutingIndicator. */
  52.     public static final RoutingIndicatorTerm WTR = new RoutingIndicatorTerm(" WTR");

  53.     /** NASA Johnson Space Center (JSC) RoutingIndicator. */
  54.     public static final RoutingIndicatorTerm JSC = new RoutingIndicatorTerm(" JSC");

  55.     /** Navy Pacific Missile Range (PMR) RoutingIndicator. */
  56.     public static final RoutingIndicatorTerm PMR = new RoutingIndicatorTerm(" PMR");

  57.     /** Air Force Satellite Control Facility (CSTC) RoutingIndicator. */
  58.     public static final RoutingIndicatorTerm CSTC = new RoutingIndicatorTerm("CSTC");

  59.     /** Army Kwajalein Missile Range (KMR) RoutingIndicator. */
  60.     public static final RoutingIndicatorTerm KMR = new RoutingIndicatorTerm(" KMR");

  61.     /** French Space Agency National Centre for Space Studies (CNES) RoutingIndicator. */
  62.     public static final RoutingIndicatorTerm CNES = new RoutingIndicatorTerm("CNES");

  63.     /** Message originated from more than one of the above stations RoutingIndicator. */
  64.     public static final RoutingIndicatorTerm MANY = new RoutingIndicatorTerm("MANY");

  65.     /** The length of the IIRV term within the message. */
  66.     public static final int ROUTING_INDICATOR_TERM_LENGTH = 4;

  67.     /** Regular expression that ensures the validity of string values for this term. */
  68.     public static final String ROUTING_INDICATOR_TERM_PATTERN = "([A-Z ]+)";

  69.     /**
  70.      * Constructor.
  71.      * <p>
  72.      * See {@link StringValuedIIRVTerm#StringValuedIIRVTerm(String, String, int)}
  73.      *
  74.      * @param value value of the routing indicator term
  75.      */
  76.     public RoutingIndicatorTerm(final String value) {
  77.         super(ROUTING_INDICATOR_TERM_PATTERN, value, ROUTING_INDICATOR_TERM_LENGTH);
  78.     }
  79. }