ArcGIS Runtime SDK for iOS: AGSPointBarrier.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSPointBarrier.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/AGSBarrierType.h>
28 #import <ArcGIS/AGSRouteTypes.h>
29 
30 @class AGSPoint;
31 
32 /*@file AGSPointBarrier.h */
33 
43 @interface AGSPointBarrier : AGSObject <NSCopying>
44 
45 
46 #pragma mark -
47 #pragma mark initializers
48 
49 
50 
56 -(instancetype)initWithPoint:(AGSPoint*)point;
57 
63 +(instancetype)barrierWithPoint:(AGSPoint*)point;
64 
65 #pragma mark -
66 #pragma mark properties
67 
73 @property (nonatomic, assign, readwrite) NSInteger barrierID;
74 
78 @property (nullable, nonatomic, strong, readwrite) AGSPoint *geometry;
79 
83 @property (nonatomic, assign, readwrite) AGSBarrierType type;
84 
88 @property (nonatomic, assign, readwrite) AGSCurbApproach curbApproach;
89 
93 @property (nonatomic, assign, readonly) AGSLocationStatus locationStatus;
94 
98 @property (nonatomic, copy, readwrite) NSString *name;
99 
100 #pragma mark -
101 #pragma mark methods
102 
103 -(double)addedCostForCostAttribute:(NSString*)attributeName;
104 -(void)setAddedCost:(double)addedCost forCostAttribute:(NSString*)attributeName;
105 
106 
107 @end
AGSBarrierType
Definition: AGSBarrierType.h:35
AGSLocationStatus
Definition: AGSRouteTypes.h:57
AGSCurbApproach
Definition: AGSRouteTypes.h:35
Definition: AGSObject.h:28
A point barrier to constrain routes.
Definition: AGSPointBarrier.h:43
NSInteger barrierID
Definition: AGSPointBarrier.h:73
AGSBarrierType type
Definition: AGSPointBarrier.h:83
AGSPoint * geometry
Definition: AGSPointBarrier.h:78
NSString * name
Definition: AGSPointBarrier.h:98
AGSLocationStatus locationStatus
Definition: AGSPointBarrier.h:93
AGSCurbApproach curbApproach
Definition: AGSPointBarrier.h:88
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:73