1 /*
2 * Copyright (C) 2018 Alberto Irurueta Carro (alberto@irurueta.com)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package com.irurueta.navigation.indoor;
17
18 import com.irurueta.algebra.Matrix;
19 import com.irurueta.geometry.Point2D;
20
21 import java.util.List;
22
23 /**
24 * Contains 2D located ranging readings from several radio sources.
25 *
26 * @param <S> a {@link RadioSource} type.
27 * @param <R> a {@link RssiReading} type.
28 */
29 public class RangingFingerprintLocated2D<S extends RadioSource, R extends RangingReading<S>> extends
30 RangingFingerprintLocated<S, R, Point2D> {
31
32 /**
33 * Constructor.
34 *
35 * @param readings non-located ranging readings defining the fingerprint.
36 * @param position position where readings were made.
37 * @throws IllegalArgumentException if either readings or position are null.
38 */
39 public RangingFingerprintLocated2D(final List<R> readings, final Point2D position) {
40 super(readings, position);
41 }
42
43 /**
44 * Constructor.
45 *
46 * @param readings non-located ranging readings defining the fingerprint.
47 * @param position position where readings were made.
48 * @param positionCovariance 2x2 covariance of inhomogeneous coordinates of
49 * current position (if available).
50 * @throws IllegalArgumentException if either readings or position are null.
51 */
52 public RangingFingerprintLocated2D(
53 final List<R> readings, final Point2D position, final Matrix positionCovariance) {
54 super(readings, position, positionCovariance);
55 }
56
57 /**
58 * Empty constructor.
59 */
60 public RangingFingerprintLocated2D() {
61 super();
62 }
63 }