ArcGIS Runtime SDK for iOS: AGSIncident.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSIncident.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSObject.h>
27 #import <ArcGIS/AGSRouteTypes.h>
28 
29 @class AGSPoint;
30 @class AGSNetworkLocation;
31  //Required for Globals API doc
33 
41 @interface AGSIncident : AGSObject <NSCopying>
42 
43 
44 #pragma mark -
45 #pragma mark initializers
46 
47 
48 
54 -(instancetype)initWithPoint:(AGSPoint*)point;
55 
61 +(instancetype)incidentWithPoint:(AGSPoint*)point;
62 
63 #pragma mark -
64 #pragma mark properties
65 
70 @property (nonatomic, assign, readwrite) AGSCurbApproach curbApproach;
71 
76 @property (nonatomic, assign, readonly) double distanceToNetworkLocation;
77 
83 @property (nonatomic, assign, readwrite) NSInteger incidentID;
84 
88 @property (nonatomic, strong, readonly) AGSPoint *geometry;
89 
93 @property (nonatomic, assign, readwrite) double impedanceCutoff;
94 
99 @property (nonatomic, assign, readonly) AGSLocationStatus locationStatus;
100 
104 @property (nonatomic, copy, readwrite) NSString *name;
105 
112 @property (nullable, nonatomic, strong, readwrite) AGSNetworkLocation *networkLocation;
113 
118 @property (nonatomic, assign, readwrite) NSInteger targetFacilityCount;
119 
126 @property (nonatomic, assign, readwrite) double currentBearing;
127 
131 @property (nonatomic, assign, readwrite) double currentBearingTolerance;
132 
136 @property (nonatomic, assign, readwrite) double navigationLatency;
137 
141 @property (nonatomic, assign, readwrite) double navigationSpeed;
142 
143 #pragma mark -
144 #pragma mark methods
145 
152  -(double)addedCostForCostAttribute:(NSString*)attributeName;
153 
160 -(void)setAddedCost:(double)addedCost forCostAttribute:(NSString*)attributeName;
161 
162 
163 @end
AGSLocationStatus
Definition: AGSRouteTypes.h:57
AGSCurbApproach
Definition: AGSRouteTypes.h:35
An incident to use in closest facility analysis.
Definition: AGSIncident.h:41
AGSLocationStatus locationStatus
Definition: AGSIncident.h:99
double currentBearing
Definition: AGSIncident.h:126
double distanceToNetworkLocation
Definition: AGSIncident.h:76
double currentBearingTolerance
Definition: AGSIncident.h:131
AGSPoint * geometry
Definition: AGSIncident.h:88
NSInteger targetFacilityCount
Definition: AGSIncident.h:118
NSInteger incidentID
Definition: AGSIncident.h:83
double impedanceCutoff
Definition: AGSIncident.h:93
double navigationLatency
Definition: AGSIncident.h:136
NSString * name
Definition: AGSIncident.h:104
AGSNetworkLocation * networkLocation
Definition: AGSIncident.h:112
AGSCurbApproach curbApproach
Definition: AGSIncident.h:70
double navigationSpeed
Definition: AGSIncident.h:141
References a specific location/position along a transportation network source feature.
Definition: AGSNetworkLocation.h:39
Definition: AGSObject.h:28
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73