ArcGIS Runtime SDK for iOS: AGSIncident.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSIncident.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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 
110 @property (nullable, nonatomic, strong, readwrite) AGSNetworkLocation *networkLocation;
111 
116 @property (nonatomic, assign, readwrite) NSInteger targetFacilityCount;
117 
124 @property (nonatomic, assign, readwrite) double currentBearing;
125 
129 @property (nonatomic, assign, readwrite) double currentBearingTolerance;
130 
134 @property (nonatomic, assign, readwrite) double navigationLatency;
135 
139 @property (nonatomic, assign, readwrite) double navigationSpeed;
140 
141 #pragma mark -
142 #pragma mark methods
143 
150  -(double)addedCostForCostAttribute:(NSString*)attributeName;
151 
158 -(void)setAddedCost:(double)addedCost forCostAttribute:(NSString*)attributeName;
159 
160 
161 @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:124
double distanceToNetworkLocation
Definition: AGSIncident.h:76
double currentBearingTolerance
Definition: AGSIncident.h:129
AGSPoint * geometry
Definition: AGSIncident.h:88
NSInteger targetFacilityCount
Definition: AGSIncident.h:116
NSInteger incidentID
Definition: AGSIncident.h:83
double impedanceCutoff
Definition: AGSIncident.h:93
double navigationLatency
Definition: AGSIncident.h:134
NSString * name
Definition: AGSIncident.h:104
AGSNetworkLocation * networkLocation
Definition: AGSIncident.h:110
AGSCurbApproach curbApproach
Definition: AGSIncident.h:70
double navigationSpeed
Definition: AGSIncident.h:139
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