Class Reading<S extends RadioSource>

java.lang.Object
com.irurueta.navigation.indoor.Reading<S>
Type Parameters:
S - a RadioSource type.
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RangingAndRssiReading, RangingReading, RssiReading

public abstract class Reading<S extends RadioSource> extends Object implements Serializable
Contains a reading related to a given Wi-Fi access point.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private S
    Radio source associated to this reading.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor.
    protected
    Reading(S source)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets radio source associated to this reading.
    abstract ReadingType
    Contains radio source reading type.
    boolean
    hasSameSource(Reading<S> otherReading)
    Determine whether another reading is made for the same radio source as this reading or not.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • source

      private S extends RadioSource source
      Radio source associated to this reading.
  • Constructor Details

    • Reading

      protected Reading(S source)
      Constructor.
      Parameters:
      source - radio source associated to this reading.
      Throws:
      IllegalArgumentException - if radios source data is null.
    • Reading

      protected Reading()
      Empty constructor.
  • Method Details

    • getSource

      public S getSource()
      Gets radio source associated to this reading.
      Returns:
      radio source associated to this reading.
    • hasSameSource

      public boolean hasSameSource(Reading<S> otherReading)
      Determine whether another reading is made for the same radio source as this reading or not.
      Parameters:
      otherReading - other reading to be compared.
      Returns:
      true if both readings are associated to the same access point, false otherwise.
    • getType

      public abstract ReadingType getType()
      Contains radio source reading type.
      Returns:
      reading type.