SYIncidentWithOrientation Class Reference

Incident typically representing a monitoring device which is oriented to look at specific direction. More...

#import <SYIncident.h>

Inheritance diagram for SYIncidentWithOrientation:
Collaboration diagram for SYIncidentWithOrientation:

Instance Methods

(nonnull instancetype) - initWithId:location:category:validTo:heading:bidirectional:
 
- Instance Methods inherited from SYIncident
(nonnull instancetype) - initWithId:location:category:validTo:
 
((unavailable("Use init with parameters.") - __attribute__
 

Properties

SYAngle heading
 Direction (angle in degrees) where the monitoring device is looking. 0 is North, angle grows clockwise. More...
 
BOOL bidirectional
 In case of speed camera, specifies if camera detects speeding vehicles in both directions on the road. More...
 
- Properties inherited from SYIncident
SYIncidentIdid
 Identifier of the incident. More...
 
SYGeoCoordinatelocation
 Geographicatl position of the incident. More...
 
NSString * category
 Incident category. Typically it's one of SYIncidentType constants, but not limited to them. More...
 
NSDate * validTo
 Time until which the incident is considered valid (because incidents are often temporary by their nature). More...
 

Additional Inherited Members

- Class Methods inherited from SYIncident
((unavailable("Use init with parameters.") + __attribute__
 

Detailed Description

Incident typically representing a monitoring device which is oriented to look at specific direction.

Method Documentation

◆ initWithId:location:category:validTo:heading:bidirectional:

- (nonnull instancetype) initWithId: (nonnull SYIncidentId *)  id
location: (nonnull SYGeoCoordinate *)  location
category: (nonnull NSString *)  category
validTo: (nonnull NSDate *)  validTo
heading: (SYAngle)  heading
bidirectional: (BOOL)  bidirectional 

Property Documentation

◆ heading

- (SYAngle) heading
readwritenonatomicassign

Direction (angle in degrees) where the monitoring device is looking. 0 is North, angle grows clockwise.

◆ bidirectional

- (BOOL) bidirectional
readwritenonatomicassign

In case of speed camera, specifies if camera detects speeding vehicles in both directions on the road.


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