1 /* Contributed in the public domain.
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.spice.binary.daf.generic;
18
19 import java.util.List;
20
21 /**
22 * Represents the summary of a single {@link DAFArray} in a {@link DAF} file.
23 *
24 * @author Rafael Ayala
25 * @since 14.0
26 */
27 public class DAFArraySummary {
28
29 /**
30 * A list with the doubles in the array summary.
31 */
32 private final List<Double> summaryDoubles;
33
34 /**
35 * A list with the integers in the array summary.
36 */
37 private final List<Integer> summaryInts;
38
39 /**
40 * The initial byte address of the array elements.
41 */
42 private final int initialArrayAddress;
43
44 /**
45 * The final byte address of the array elements.
46 */
47 private final int finalArrayAddress;
48
49 /**
50 * Simple constructor.
51 *
52 * @param summaryDoubles list of doubles in the summary
53 * @param summaryInts list of integers in the summary
54 * @param initialArrayAddress initial byte address of array elements
55 * @param finalArrayAddress final byte address of array elements
56 */
57 public DAFArraySummary(final List<Double> summaryDoubles, final List<Integer> summaryInts,
58 final int initialArrayAddress, final int finalArrayAddress) {
59 this.summaryDoubles = summaryDoubles;
60 this.summaryInts = summaryInts;
61 this.initialArrayAddress = initialArrayAddress;
62 this.finalArrayAddress = finalArrayAddress;
63 }
64
65 /**
66 * Get the summary doubles.
67 *
68 * @return list of summary doubles
69 */
70 public List<Double> getSummaryDoubles() {
71 return summaryDoubles;
72 }
73
74 /**
75 * Get the summary integers.
76 *
77 * @return list of summary integers
78 */
79 public List<Integer> getSummaryInts() {
80 return summaryInts;
81 }
82
83 /**
84 * Get the initial byte address of the array elements.
85 *
86 * @return initial byte address of the array elements
87 */
88 public int getInitialArrayAddress() {
89 return initialArrayAddress;
90 }
91
92 /**
93 * Get the final byte address of the array elements.
94 *
95 * @return final byte address of the array elements.
96 */
97 public int getFinalArrayAddress() {
98 return finalArrayAddress;
99 }
100 }