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 /**
19 * Interface defining any radio source (e.g. Wi-Fi access point or
20 * Bluetooth beacon) whose transmitted power is known.
21 */
22 public interface RadioSourceWithPower extends RadioSource {
23 /**
24 * Gets transmitted power expressed in dBm's.
25 *
26 * @return transmitted power expressed in dBm's.
27 */
28 double getTransmittedPower();
29
30 /**
31 * Gets standard deviation of transmitted power value or null if unknown.
32 *
33 * @return standard deviation of transmitted power value or null if unknown.
34 */
35 Double getTransmittedPowerStandardDeviation();
36
37 /**
38 * Gets exponent typically used on free space for path loss propagation in
39 * terms of distance.
40 * On different environments path loss exponent might have different values:
41 * - Free space: 2.0
42 * - Urban Area: 2.7 to 3.5
43 * - Suburban Area: 3 to 5
44 * - Indoor (line-of-sight): 1.6 to 1.8
45 *
46 * @return path loss exponent.
47 */
48 double getPathLossExponent();
49
50 /**
51 * Gets standard deviation of path loss exponent or null if unknown.
52 *
53 * @return standard deviation of path loss exponent or null if unknown.
54 */
55 Double getPathLossExponentStandardDeviation();
56 }