Package es.situm.sdk.model.calibration
Class LocalCalibration
- java.lang.Object
-
- es.situm.sdk.model.calibration.LocalCalibration
-
public class LocalCalibration extends java.lang.Object
Class to represent a calibration
-
-
Constructor Summary
Constructors Constructor Description LocalCalibration(java.io.File file)
Constructor for build a new calibration from diskLocalCalibration(java.lang.String phoneModel, java.lang.String buildingIdentifier, int floorId, java.util.Date timestamp)
Deprecated.LocalCalibration(java.lang.String phoneModel, java.lang.String buildingIdentifier, int floorId, java.util.Date timestamp, long deviceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createFile(java.io.File folder)
Creates the file to add the calibrationboolean
equals(java.lang.Object o)
java.lang.String
getBuildingIdentifier()
java.io.File
getFile()
java.lang.String
getFilename()
Get the filename where it's savedint
getFloorId()
long
getSize()
java.util.Date
getTimestamp()
java.util.List<CartesianCoordinate>
gtPoints()
int
hashCode()
boolean
isSaved()
-
-
-
Constructor Detail
-
LocalCalibration
public LocalCalibration(java.io.File file)
Constructor for build a new calibration from disk- Parameters:
file
- the calibration file
-
LocalCalibration
@Deprecated public LocalCalibration(java.lang.String phoneModel, java.lang.String buildingIdentifier, int floorId, java.util.Date timestamp)
Deprecated.Constructor when creating a new calibration- Parameters:
phoneModel
- the phone idfloorId
- the flood idtimestamp
- the starting timestamp
-
LocalCalibration
public LocalCalibration(java.lang.String phoneModel, java.lang.String buildingIdentifier, int floorId, java.util.Date timestamp, long deviceId)
-
-
Method Detail
-
gtPoints
public java.util.List<CartesianCoordinate> gtPoints()
-
createFile
public void createFile(java.io.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 java.lang.String getFilename()
Get the filename where it's saved- Returns:
- null if the calibration is not valid
-
getFile
public java.io.File getFile()
-
getSize
public long getSize()
- Returns:
- size (in bytes)
-
getFloorId
public int getFloorId()
- Returns:
- the floorId
-
getTimestamp
public java.util.Date getTimestamp()
- Returns:
- the timestamp of the session
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getBuildingIdentifier
public java.lang.String getBuildingIdentifier()
-
-