|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetworkGlobalTurnDelayEvaluator
Provides access to the global turn delay evaluator.
This interface is new at ArcGIS 9.3.
The INetworkGlobalTurnDelayEvaluator interface accesses the settings used by a NetworkGlobalTurnDelayEvaluator object for calculating the attribute value for a network element.
Method Summary | |
---|---|
int |
getCustomPrimaryRoadCategoryMaxValue()
Custom Primary road category maximum value. |
int |
getCustomSecondaryRoadCategoryMaxValue()
Custom Secondary road category maximum value. |
double |
getDefaultSeconds()
Default traversal time in seconds (for undefined turn delay categories). |
int |
getMaxReverseTurnDeflectionAngle()
The maximum deviation from a pure reverse turn to be classified as a reverse turn. |
int |
getMaxStraightTurnDeflectionAngle()
The maximum deviation from a pure straight turn to be classified as a straight turn. |
IArray |
getTurnDelayCategories()
Array of global turn delay categories in this evaluator. |
boolean |
isUseCustomRoadCategoryRanges()
Indicates whether to use custom road category ranges. |
void |
setCustomRoadCategoryMaxValues(int maxPrimaryRoadValue,
int maxSecondaryRoadValue)
Set custom road category maximum values. |
void |
setDefaultSeconds(double seconds)
Default traversal time in seconds (for undefined turn delay categories). |
void |
setMaxReverseTurnDeflectionAngle(int maxDeflectionAngle)
The maximum deviation from a pure reverse turn to be classified as a reverse turn. |
void |
setMaxStraightTurnDeflectionAngle(int maxDeflectionAngle)
The maximum deviation from a pure straight turn to be classified as a straight turn. |
void |
setTurnDelayCategoriesByRef(IArray categories)
Array of global turn delay categories in this evaluator. |
void |
setUseCustomRoadCategoryRanges(boolean flag)
Indicates whether to use custom road category ranges. |
Method Detail |
---|
boolean isUseCustomRoadCategoryRanges() throws IOException, AutomationException
The UseCustomRoadCategoryRanges property specifies whether to use the custom road category maximum values specified on this evaluator. If set to True, then the CustomPrimaryRoadCategoryMaxValue and CustomSecondaryRoadCategoryMaxValue properties will be used to determine whether a given road is a primary, secondary, or local road. If set to False, then the MaxValueForHierarchy values on the DENetworkDataset will be used to determine the road classification.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseCustomRoadCategoryRanges(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCustomRoadCategoryMaxValues(int maxPrimaryRoadValue, int maxSecondaryRoadValue) throws IOException, AutomationException
Use the SetCustomRoadCategoryMaxValues method to simultaneously set both the the CustomPrimaryRoadCategoryMaxValue and CustomSecondaryRoadCategoryMaxValue property values.
maxPrimaryRoadValue
- The maxPrimaryRoadValue (in)maxSecondaryRoadValue
- The maxSecondaryRoadValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCustomPrimaryRoadCategoryMaxValue() throws IOException, AutomationException
The CustomPrimaryRoadCategoryMaxValue determines whether a road is classified as a primary road. If the AttributeValue of the HierarchyClusterAttribute is less than or equal to the CustomPrimaryRoadCategoryMaxValue, then it is a primary road.
Note that this property only takes effect if the UseCustomRoadCategoryRanges property is set to True. Otherwise, the level 1 value of MaxValueForHierarchy will be used instead.
The CustomPrimaryRoadCategoryMaxValue and CustomSecondaryRoadCategoryMaxValue are set by calling SetCustomRoadCategoryMaxValues.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCustomSecondaryRoadCategoryMaxValue() throws IOException, AutomationException
The CustomSecondaryRoadCategoryMaxValue determines whether a road is classified as a local road. If the AttributeValue of the HierarchyClusterAttribute is greater than the CustomSecondaryRoadCategoryMaxValue, then it is a local road.
Note that this property only takes effect if the UseCustomRoadCategoryRanges property is set to True. Otherwise, the level 2 value of MaxValueForHierarchy will be used instead.
The CustomPrimaryRoadCategoryMaxValue and CustomSecondaryRoadCategoryMaxValue are set by calling SetCustomRoadCategoryMaxValues.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getDefaultSeconds() throws IOException, AutomationException
DefaultSeconds is the travel time, in seconds, assigned to a turn that does not fall into any of the classifications defined in the TurnDelayCategories.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultSeconds(double seconds) throws IOException, AutomationException
seconds
- The seconds (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray getTurnDelayCategories() throws IOException, AutomationException
The TurnDelayCategories is an array of NetworkGlobalTurnDelayCategory objects that define the classification of turn types for this evaluator. Each category is defined by the turning angle, the road category for the starting and finishing road of the turn, and the road category for any other crossroads at that intersection. For each category, a travel time, measured in seconds, is specified.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTurnDelayCategoriesByRef(IArray categories) throws IOException, AutomationException
categories
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxStraightTurnDeflectionAngle() throws IOException, AutomationException
The MaxStraightTurnDeflectionAngle determines whether a NetworkTurnElement's is considered going straight, based on its Angle.
For example, if the MaxStraightTurnDeflectionAngle is set to 45, then a turn is considered going straight if its Angle is within 45 degrees of either 0 or 360 degrees (going perfectly straight) -- that is, if the angle is between 0 and 45 degrees or between 315 and 360 degrees, inclusive.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxStraightTurnDeflectionAngle(int maxDeflectionAngle) throws IOException, AutomationException
maxDeflectionAngle
- The maxDeflectionAngle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxReverseTurnDeflectionAngle() throws IOException, AutomationException
The MaxReverseTurnDeflectionAngle determines whether a NetworkTurnElement's is considered going in reverse, based on its Angle.
For example, if the MaxReverseTurnDeflectionAngle is set to 30, then a turn is considered going in reverse if its Angle is within 30 degrees of 180 degrees (going exactly in reverse) -- that is, if the angle is between 150 and 210 degrees, inclusive.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxReverseTurnDeflectionAngle(int maxDeflectionAngle) throws IOException, AutomationException
maxDeflectionAngle
- The maxDeflectionAngle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |