Interface RadioSource

All Superinterfaces:
Serializable
All Known Subinterfaces:
RadioSourceWithPower, RadioSourceWithPowerAndLocated<P>
All Known Implementing Classes:
Beacon, BeaconLocated, BeaconLocated2D, BeaconLocated3D, BeaconWithPower, BeaconWithPowerAndLocated, BeaconWithPowerAndLocated2D, BeaconWithPowerAndLocated3D, WifiAccessPoint, WifiAccessPointLocated, WifiAccessPointLocated2D, WifiAccessPointLocated3D, WifiAccessPointWithPower, WifiAccessPointWithPowerAndLocated, WifiAccessPointWithPowerAndLocated2D, WifiAccessPointWithPowerAndLocated3D

public interface RadioSource extends Serializable
Interface defining any radio source (e.g. Wi-Fi access point or Bluetooth beacon).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether two radio sources are considered equal if they share the same identifiers.
    double
    Gets frequency used by this radio source (expressed in Hz).
    Gets radio source type, which can be either a Wi-Fi Access point or a bluetooth Beacon.
  • Method Details

    • getFrequency

      double getFrequency()
      Gets frequency used by this radio source (expressed in Hz).
      Returns:
      frequency used by this radio source (expressed in Hz).
    • equals

      boolean equals(Object obj)
      Checks whether two radio sources are considered equal if they share the same identifiers.
      Overrides:
      equals in class Object
      Parameters:
      obj - radio source to be compared.
      Returns:
      true if both radio sources are considered equal, false otherwise.
    • getType

      RadioSourceType getType()
      Gets radio source type, which can be either a Wi-Fi Access point or a bluetooth Beacon.
      Returns:
      radio source type.