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 voidcreateFile(File folder)Creates the file to add the calibrationbooleanequals(Object o)StringgetBuildingIdentifier()FilegetFile()StringgetFilename()Get the filename where it's savedintgetFloorId()longgetSize()DategetTimestamp()List<CartesianCoordinate>gtPoints()inthashCode()booleanisSaved()
-
-
-
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()
-
-