Cortex Android
 All Classes Namespaces Functions Variables
Package nl.sense_os.cortex

Classes

class  AIMHelper
 
class  AIMSensorFactory
 
class  CarryDeviceSensor
 
class  FallSensor
 
class  FilteredPositionSensor
 
class  FlightPlanSensor
 
class  GeoFenceSensor
 
class  LocationTraceSensor
 
class  LogSensor
 
class  MentalResilienceSensor
 
class  PhysicalActivitySensor
 
class  SitStandSensor
 
class  SleepTimeEstimateSensor
 
class  SleepTimeSensor
 
class  StepCountSensor
 
class  TimeActiveSensor
 
class  TimeCarriedSensor
 
class  TimeHandlerService
 
class  TopLocationsSensor
 

Detailed Description

TopLocations produces a ranked list of visited locations based on a position sensor. A visit means that some time was spend at the location, in contrast to just passing by the location.

Output:
An ordered json array where each elements contains the following fields:

  • "rank": The rank of the location, starting at 1
  • "latitude", "longitude": Coordinates of the location. These might change slightly, don't use for identification!
  • "id": Identifier of the location. This identifier is guaranteed to be unique for this location.
  • "time visited": The total time this location has been visited in seconds
  • "address": Optional, a human readable address.

A new data point is produced whenever

  1. A location is entered or left
  2. When residing at a location a new data point is produced every PROPERTY_RESIDING_UPDATE_INTERVAL seconds.

Properties:

  • MAX_INTERPOLATION_INTERVAL: Maximum interval (in seconds) between datapoints that the algorithm does interpolation
  • MIN_INITIAL_TIME: Minimum consecutive time to be at a location for it to be considered a visit.
  • MAX_NR_TOP: Maximum Number of locations to be included in the "top locations" output.
  • RESIDING_UPDATE_INTERVAL: Update interval when residing at the same location