ArcObjects Library Reference (NetworkAnalyst) |
|
esriNAOrderAssignmentRule Constants
Options for order assignment rule.
Constant |
Value |
Description |
esriNAOrderExcludeFromSolve |
0 |
Exclude from solve. |
esriNAOrderPreserveRouteAndRelativeSequence |
1 |
Preserve route and relative sequence pre-assignment. |
esriNAOrderPreserveRoute |
2 |
Preserve route pre-assignment. |
esriNAOrderOverride |
3 |
Override pre-assignment. |
esriNAOrderAnchorFirst |
4 |
Anchor as first order on any route. |
esriNAOrderAnchorLast |
5 |
Anchor as last order on any route. |
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.
Remarks
The values within this enumeration are used to determine order usage and assignment within a VRP problem instance. These values are stored in the AssignmentRule field on the Orders NAClass within a VRP NAContext.
AssignmentRule field values on the Orders NAClass identify whether or not to include a given order feature within a Solve operation and how to preserve any pre-existing route assignment information.
The esriNAOrderAssignmentRule enumeration has the following values:
- esriNAOrderExcludeFromSolve - this value will ensure that the order feature is ignored during the Solve operation
- esriNAOrderPreserveRouteAndRelativeSequence - this value will ensure that any pre-existing route assignment information, as determined by both the RouteName and Sequence field values on the order feature, is preserved during the Solve operation, such that the order feature will be guaranteed to remain on the same route in the same relative sequence.
- esriNAOrderPreserveRoute - this value will ensure that any pre-existing route assignment information, as determined only by the RouteName field value on the order feature, is preserved during the Solve operation, such that the order feature will be guaranteed to remain on the same route, but it may be placed in a different sequence along that route.
- esriNAOrderOverride - this value will allow the VRP solver to override any pre-existing route assignment information stored in both the RouteName and Sequence field values on the order feature, such that the order feature may be freely assigned to any route during the Solve operation.