es.situm.sdk.calibration.CalibrationManager
@Deprecated
public class SitumCalibrationManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SitumCalibrationManager.UploadCalibrationCallback
Deprecated.
Callback to receive the status of the upload operation
|
Constructor and Description |
---|
SitumCalibrationManager(Building building)
Deprecated.
Creates an instance of SitumCalibrationManager
|
Modifier and Type | Method and Description |
---|---|
boolean |
addPoint(SitumFloorPoint fp)
Deprecated.
Stores a calibration point
|
void |
cancel()
Deprecated.
Cancel the current calibration without saving to the disk.
|
void |
deleteCalibrations(java.util.List<SitumCalibration> situmCalibrations)
Deprecated.
Delete the given list of calibrations from the device internal storage
|
CalibrationManager.Code |
errorCode()
Deprecated.
Gets the Calibration ErrorCode
|
Calibration |
getCalibration()
Deprecated.
|
java.lang.String |
getCalibrationName()
Deprecated.
|
SitumCalibration |
getCurrentCalibration()
Deprecated.
Returns the current calibration
|
static SitumCalibrationManager |
getInstance(Building building)
Deprecated.
Obtain a instance of the Calibration Manager
|
int |
getNumberOfSavedCalibrations(Context c)
Deprecated.
|
java.util.List<SitumCalibration> |
getSavedCalibrations(Context context)
Deprecated.
Return the saved calibrations not uploaded
|
boolean |
isCalibrating()
Deprecated.
Checks if currently it is calibrating
|
boolean |
isValidCalibration()
Deprecated.
Checks if the current calibration is valid
|
void |
removeLastPoint()
Deprecated.
Removes last point.
|
CalibrationReport |
report()
Deprecated.
It makes a report for the current calibration.
|
void |
startNewCalibrationAt(Context c,
SitumFloorPoint fp,
boolean recordwifi,
boolean recordble,
boolean recordAcc,
boolean recordGyro)
Deprecated.
Starts a new calibration
|
void |
startNewCalibrationAt(Context c,
SitumFloorPoint fp,
boolean recordwifi,
boolean recordble,
boolean recordAccelerometer,
boolean recordGyro,
CalibrationListener calibrationListener)
Deprecated.
Starts a new calibration with a calibration listener
|
void |
startNewCalibrationAt(Context context,
SitumFloorPoint fp,
boolean recordwifi,
boolean recordble,
boolean recordAcc,
boolean recordGyro,
CalibrationListener calibrationListener,
java.util.List<BeaconFilter> beaconFilters)
Deprecated.
Starts a new calibration with a calibration listener
|
void |
stop()
Deprecated.
Stops current calibration
|
boolean |
stopAndSaveToDisk()
Deprecated.
Stop the calibration and save the data to disk.
|
void |
uploadSavedCalibrations(Context c,
SitumCalibrationManager.UploadCalibrationCallback callback)
Deprecated.
Upload the saved calibrations to the server and delete then from disk
|
void |
uploadSelectedCalibrations(Context c,
java.util.List<SitumCalibration> situmCalibrations,
SitumCalibrationManager.UploadCalibrationCallback callback)
Deprecated.
Upload a list of calibrations previously saved in the disk.
|
public SitumCalibrationManager(Building building)
building
- to calibratepublic static SitumCalibrationManager getInstance(Building building)
building
- Building
to initialize the calibration managerpublic void startNewCalibrationAt(Context context, SitumFloorPoint fp, boolean recordwifi, boolean recordble, boolean recordAcc, boolean recordGyro, CalibrationListener calibrationListener, java.util.List<BeaconFilter> beaconFilters)
context
- Application contextfp
- A point inside the map (meters, meters). Origin is at bottom left cornerrecordwifi
- Record wifirecordble
- Record beaconscalibrationListener
- the calibration listenerbeaconFilters
- list of extra beacons to be handled during scan timerecordAcc
- Boolean value that indicates if the calibration should store accelerometer (true) or not (false)recordGyro
- true if the calibration should store the gyroscope, false otherwisepublic void startNewCalibrationAt(Context c, SitumFloorPoint fp, boolean recordwifi, boolean recordble, boolean recordAcc, boolean recordGyro)
c
- Application contextfp
- A point inside the map (meters, meters). Origin is at bottom left cornerrecordwifi
- Record wifirecordble
- Record beaconsrecordAcc
- Boolean value that indicates if the calibration should store accelerometer (true) or not (false)recordGyro
- true if the calibration should store the gyroscope, false otherwisepublic void startNewCalibrationAt(Context c, SitumFloorPoint fp, boolean recordwifi, boolean recordble, boolean recordAccelerometer, boolean recordGyro, CalibrationListener calibrationListener)
c
- Application contextfp
- A point inside the map (meters, meters). Origin is at bottom left cornerrecordwifi
- Record wifirecordble
- Record beaconsrecordAccelerometer
- Boolean value that indicates if the calibration should store accelerometer (true) or not (false)recordGyro
- true if the calibration should store the gyroscope, false otherwisecalibrationListener
- the calibration listenerpublic boolean addPoint(SitumFloorPoint fp)
fp
- A point inside the map (meters, meters). Origin is at bottom left cornerpublic void removeLastPoint()
WARNING: No more points can be added to this Calibration after calling this method. A new calibration should be created for that pourpose.
@Deprecated public int getNumberOfSavedCalibrations(Context c)
getSavedCalibrations(Context)
c
- Context used to access files and uploading them to Situm Dashboardpublic java.util.List<SitumCalibration> getSavedCalibrations(Context context)
context
- the context@Deprecated public java.lang.String getCalibrationName()
getCurrentCalibration()
public SitumCalibration getCurrentCalibration()
public Calibration getCalibration()
public boolean stopAndSaveToDisk()
public void cancel()
public void stop()
public boolean isCalibrating()
public CalibrationReport report()
isValidCalibration()
, otherwise we can obtain
the ErrorCode invoking errorCode()
.public boolean isValidCalibration()
public CalibrationManager.Code errorCode()
public void uploadSavedCalibrations(Context c, SitumCalibrationManager.UploadCalibrationCallback callback)
c
- Application contextcallback
- the callbackpublic void uploadSelectedCalibrations(Context c, java.util.List<SitumCalibration> situmCalibrations, SitumCalibrationManager.UploadCalibrationCallback callback)
c
- application contextsitumCalibrations
- list of calibration names to be uploaded to the servercallback
- the callbackpublic void deleteCalibrations(java.util.List<SitumCalibration> situmCalibrations)
situmCalibrations
- list of calibrations to be deleted