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 /**
22 * Data related to a Wi-Fi access point whose 2D location is known.
23 */
24 public class WifiAccessPointLocated2D extends WifiAccessPointLocated<Point2D> {
25
26 /**
27 * Constructor.
28 *
29 * @param bssid basic service set identifier of this access point in the form of a six-byte MAC address:
30 * xx:xx:xx:xx:xx:xx.
31 * @param frequency frequency used by this Access Point (expressed in Hz).
32 * @param position position where access point is located.
33 * @throws IllegalArgumentException if either BSSID or position are null or
34 * frequency is negative.
35 */
36 public WifiAccessPointLocated2D(final String bssid, final double frequency, final Point2D position) {
37 super(bssid, frequency, position);
38 }
39
40 /**
41 * Constructor.
42 *
43 * @param bssid basic service set identifier of this access point in the form of a six-byte MAC address:
44 * xx:xx:xx:xx:xx:xx.
45 * @param frequency frequency used by this Access Point (expressed in Hz).
46 * @param ssid service set identifier (SSID) of this 802.11 network.
47 * @param position position where access point is located.
48 * @throws IllegalArgumentException if either BSSID or position are null or
49 * frequency is negative.
50 */
51 public WifiAccessPointLocated2D(
52 final String bssid, final double frequency, final String ssid, final Point2D position) {
53 super(bssid, frequency, ssid, position);
54 }
55
56 /**
57 * Constructor.
58 *
59 * @param bssid basic service set identifier of this access point in the form of a six-byte MAC address:
60 * xx:xx:xx:xx:xx:xx.
61 * @param frequency frequency used by this Access Point (expressed in Hz).
62 * @param position position where access point is located.
63 * @param positionCovariance covariance of inhomogeneous coordinates of current
64 * position (if available).
65 * @throws IllegalArgumentException if either BSSID or position are null or
66 * frequency is negative.
67 */
68 public WifiAccessPointLocated2D(
69 final String bssid, final double frequency, final Point2D position, final Matrix positionCovariance) {
70 super(bssid, frequency, position, positionCovariance);
71 }
72
73 /**
74 * Constructor.
75 *
76 * @param bssid basic service set identifier of this access point in the form of a six-byte MAC address:
77 * xx:xx:xx:xx:xx:xx.
78 * @param frequency frequency used by this Access Point (expressed in Hz).
79 * @param ssid service set identifier (SSID) of this 802.11 network.
80 * @param position position where access point is located.
81 * @param positionCovariance covariance of inhomogeneous coordinates of current
82 * position (if available).*
83 * @throws IllegalArgumentException if either BSSID or position are null or
84 * frequency is negative.
85 */
86 public WifiAccessPointLocated2D(
87 final String bssid, final double frequency, final String ssid, final Point2D position,
88 final Matrix positionCovariance) {
89 super(bssid, frequency, ssid, position, positionCovariance);
90 }
91
92 /**
93 * Empty constructor.
94 */
95 protected WifiAccessPointLocated2D() {
96 super();
97 }
98 }