Class LocalCalibration

java.lang.Object
es.situm.sdk.model.calibration.LocalCalibration

public class LocalCalibration extends Object
Class to represent a calibration
  • Constructor Details

    • LocalCalibration

      public LocalCalibration(File file)
      Constructor for build a new calibration from disk
      Parameters:
      file - the calibration file
    • LocalCalibration

      @Deprecated public LocalCalibration(String phoneModel, String buildingIdentifier, int floorId, Date timestamp)
      Deprecated.
      Constructor when creating a new calibration
      Parameters:
      phoneModel - the phone id
      floorId - the flood id
      timestamp - the starting timestamp
    • LocalCalibration

      public LocalCalibration(String phoneModel, String buildingIdentifier, int floorId, Date timestamp, long deviceId)
  • Method Details

    • gtPoints

      public List<CartesianCoordinate> gtPoints()
    • createFile

      public void createFile(File folder)
      Creates the file to add the calibration
      Parameters:
      folder -
    • isSaved

      public boolean isSaved()
      Returns:
      true if it's saved on disk
    • getFilename

      public String getFilename()
      Get the filename where it's saved
      Returns:
      null if the calibration is not valid
    • getFile

      public File getFile()
    • getSize

      public long getSize()
      Returns:
      size (in bytes)
    • getFloorId

      public int getFloorId()
      Returns:
      the floorId
    • getTimestamp

      public Date getTimestamp()
      Returns:
      the timestamp of the session
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getBuildingIdentifier

      public String getBuildingIdentifier()