Package es.situm.sdk.model.calibration
Class LocalCalibration
- java.lang.Object
-
- es.situm.sdk.model.calibration.LocalCalibration
-
public class LocalCalibration extends Object
Class to represent a calibration
-
-
Constructor Summary
Constructors Constructor Description LocalCalibration(File file)
Constructor for build a new calibration from diskLocalCalibration(String phoneModel, String buildingIdentifier, int floorId, Date timestamp)
Deprecated.LocalCalibration(String phoneModel, String buildingIdentifier, int floorId, Date timestamp, long deviceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createFile(File folder)
Creates the file to add the calibrationboolean
equals(Object o)
String
getBuildingIdentifier()
File
getFile()
String
getFilename()
Get the filename where it's savedint
getFloorId()
long
getSize()
Date
getTimestamp()
List<CartesianCoordinate>
gtPoints()
int
hashCode()
boolean
isSaved()
-
-
-
Constructor Detail
-
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 idfloorId
- the flood idtimestamp
- the starting timestamp
-
-
Method Detail
-
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
-
getBuildingIdentifier
public String getBuildingIdentifier()
-
-