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  
19  import org.orekit.files.iirv.terms.base.StringValuedIIRVTerm;
20  
21  /**
22   * 1-character alphabetic character indicating originator of message.
23   * <p>
24   * See {@link RoutingIndicatorTerm RoutingIndicatorTerm} for the related four-character routing indicator
25   * <p>
26   * Valid values:
27   * <ul>
28   * <li> ASCII space  = GSFC
29   * <li> Z            = WLP
30   * <li> E            = ETR
31   * <li> L            = JPL
32   * <li> W            = WTR
33   * <li> J            = JSC
34   * <li> P            = PMR
35   * <li> A            = CSTC
36   * <li> K            = KMR
37   * <li> C            = CNES
38   * </ul>
39   *
40   * @author Nick LaFarge
41   * @since 13.0
42   */
43  public class OriginIdentificationTerm extends StringValuedIIRVTerm {
44  
45      /** NASA Goddard Space Flight Center (GSFC) OriginIdentification. */
46      public static final OriginIdentificationTerm GSFC = new OriginIdentificationTerm(" ");
47  
48      /** Wallops Island tracking radars (WLP) OriginIdentification. */
49      public static final OriginIdentificationTerm WLP = new OriginIdentificationTerm("Z");
50  
51      /** NASA/USFC Eastern Test Range (ETR) OriginIdentification. */
52      public static final OriginIdentificationTerm ETR = new OriginIdentificationTerm("E");
53  
54      /** NASA Jet Propulsion Laboratory (JPL) OriginIdentification. */
55      public static final OriginIdentificationTerm JPL = new OriginIdentificationTerm("L");
56  
57      /** NASA/USFC Western Test Range (WTR) OriginIdentification. */
58      public static final OriginIdentificationTerm WTR = new OriginIdentificationTerm("W");
59  
60      /** NASA Johnson Space Center (JSC) OriginIdentification. */
61      public static final OriginIdentificationTerm JSC = new OriginIdentificationTerm("J");
62  
63      /** Navy Pacific Missile Range (PMR) OriginIdentification. */
64      public static final OriginIdentificationTerm PMR = new OriginIdentificationTerm("P");
65  
66      /** Air Force Satellite Control Facility (CSTC) OriginIdentification. */
67      public static final OriginIdentificationTerm CSTC = new OriginIdentificationTerm("A");
68  
69      /** Army Kwajalein Missile Range (KMR) OriginIdentification. */
70      public static final OriginIdentificationTerm KMR = new OriginIdentificationTerm("K");
71  
72      /** French Space Agency National Centre for Space Studies (CNES) OriginIdentification. */
73      public static final OriginIdentificationTerm CNES = new OriginIdentificationTerm("C");
74  
75      /** The length of the origin identification term within the IIRV vector. */
76      public static final int ORIGIN_IDENTIFICATION_TERM_LENGTH = 1;
77  
78      /** Regular expression that ensures the validity of string values for this term. */
79      public static final String ORIGIN_IDENTIFICATION_TERM_PATTERN = "[A-Z ]";
80  
81      /**
82       * Constructor.
83       * <p>
84       * See {@link StringValuedIIRVTerm#StringValuedIIRVTerm(String, String, int)}
85       *
86       * @param value value of the origin ID term
87       */
88      public OriginIdentificationTerm(final String value) {
89          super(ORIGIN_IDENTIFICATION_TERM_PATTERN, value, ORIGIN_IDENTIFICATION_TERM_LENGTH);
90      }
91  }