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.Point3D;
20
21 import java.util.List;
22
23 /**
24 * Contains 3D located ranging and RSSI readings from several radio sources.
25 *
26 * @param <S> a {@link RadioSource} type.
27 * @param <R> a {@link RangingAndRssiReading} type.
28 */
29 public class RangingAndRssiFingerprintLocated3D<S extends RadioSource, R extends RangingAndRssiReading<S>> extends
30 RangingAndRssiFingerprintLocated<S, R, Point3D> {
31
32 /**
33 * Constructor.
34 *
35 * @param readings non-located ranging and RSSI readings defining the
36 * fingerprint.
37 * @param position position where readings were made.
38 * @throws IllegalArgumentException if either readings or position are
39 * null.
40 */
41 public RangingAndRssiFingerprintLocated3D(final List<R> readings, final Point3D position) {
42 super(readings, position);
43 }
44
45 /**
46 * Constructor.
47 *
48 * @param readings non-located ranging and RSSI readings defining the
49 * fingerprint.
50 * @param position position where readings were made.
51 * @param positionCovariance 3x3 covariance of inhomogeneous coordinates of current
52 * position (if available).
53 * @throws IllegalArgumentException if either readings or position are null, or
54 * covariance has invalid size.
55 */
56 public RangingAndRssiFingerprintLocated3D(
57 final List<R> readings, final Point3D position, final Matrix positionCovariance) {
58 super(readings, position, positionCovariance);
59 }
60
61 /**
62 * Empty constructor.
63 */
64 public RangingAndRssiFingerprintLocated3D() {
65 super();
66 }
67 }