SYDriversBehaviorLog Class Reference

Driver's behavior log provides access to all recorded trips and global driver's score. More...

#import <SYDriversBehaviorLog.h>

Inheritance diagram for SYDriversBehaviorLog:
Collaboration diagram for SYDriversBehaviorLog:

Instance Methods

(nonnull SYDriversBehaviorTrip *) - tripAtIndex:
 Returns trip at given index. If index is out of range or trip has corrupted data, returns nil. More...
 
(void) - removeTripWithId:
 Removes trip with given ID from local offline log and from global score. More...
 
(void) - removeTrip:
 Removes the trip from local offline log and from global score. More...
 
(void) - startTrip:time:
 Starts trip at given position and time. More...
 
(void) - endTrip:time:
 Ends current trip at given position and time. More...
 
(void) - startOnlineSyncWithUserId:
 
(void) - stopOnlineSync
 

Properties

id< SYDriversBehaviorLogDelegatedelegate
 
SYDriversLogSettingssettings
 Settings for logger. More...
 
SYDriversBehaviorTripcurrentTrip
 Represents current trip. If it's nil there is no current trip and log is not recording. More...
 
NSUInteger tripsCount
 Number of trips in log. More...
 
SYDriversBehaviorScorescore
 Represents driver's current global cummulative score based on score of each trip. More...
 

Detailed Description

Driver's behavior log provides access to all recorded trips and global driver's score.

Method Documentation

◆ endTrip:time:()

- (void) endTrip: (nonnull SYPosition *)  position
time: (nonnull NSDate *)  time 

Ends current trip at given position and time.

◆ removeTrip:()

- (void) removeTrip: (nonnull SYDriversBehaviorTrip *)  trip

Removes the trip from local offline log and from global score.

◆ removeTripWithId:()

- (void) removeTripWithId: (nonnull NSString *)  tripId

Removes trip with given ID from local offline log and from global score.

◆ startOnlineSyncWithUserId:()

- (void) startOnlineSyncWithUserId: (nonnull NSString *)  userId

◆ startTrip:time:()

- (void) startTrip: (nonnull SYPosition *)  position
time: (nonnull NSDate *)  time 

Starts trip at given position and time.

◆ stopOnlineSync()

- (void) stopOnlineSync

◆ tripAtIndex:()

- (nonnull SYDriversBehaviorTrip*) tripAtIndex: (NSUInteger)  index

Returns trip at given index. If index is out of range or trip has corrupted data, returns nil.

Property Documentation

◆ currentTrip

- (SYDriversBehaviorTrip*) currentTrip
readnonatomicassign

Represents current trip. If it's nil there is no current trip and log is not recording.

◆ delegate

- (id<SYDriversBehaviorLogDelegate>) delegate
readwritenonatomicweak

◆ score

- (SYDriversBehaviorScore*) score
readnonatomicassign

Represents driver's current global cummulative score based on score of each trip.

◆ settings

- (SYDriversLogSettings*) settings
readnonatomicassign

Settings for logger.

◆ tripsCount

- (NSUInteger) tripsCount
readnonatomicassign

Number of trips in log.


The documentation for this class was generated from the following file: