|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISMRouter
Provides access to the main functionality for route finding.
Provides main functionality for finding routes. Contains a number of properties that allow to query and change different settings of the route solver.
Method Summary | |
---|---|
ISMNetBarriersCollection |
getBarriers()
The network barriers collection of the router object. |
ISMFlagCreator |
getFlagCreator()
The flag creator used by the router object. |
String |
getNetAttributeName()
The network attribute that the router object currently uses. |
ISMNetAttributesCollection |
getNetAttributes()
The network attributes collection of the router object. |
ISMNetAttributesAccess |
getNetAttributesAccess()
The network attributes access of the router object. |
ISMRoadPreferences |
getPreferences()
The road preferences used by the router object. |
String |
getProjectionString()
The spatial reference of the source data used by the router object. |
ISMSpeedGroups |
getSpeedGroups()
The speed groups used by the router object. |
ISMTripPlanSettings |
getTripPlanSettings()
The trip planning settings used by the router object. |
ISMStopsCollection |
reorderStops(ISMStopsCollection pISrcStops)
Reorders the stops collection to minimize total driving time or distance. |
void |
setNetAttributeName(String pVal)
The network attribute that the router object currently uses. |
ISMDirections |
solve(ISMStopsCollection pIStops,
ISMBreakTracker pITracker)
Calculates the route using the current settings of the router object. |
Method Detail |
---|
ISMNetBarriersCollection getBarriers() throws IOException, AutomationException
Returns the network barriers collection interface of the router object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMNetAttributesCollection getNetAttributes() throws IOException, AutomationException
Returns the network attributes collection interface of the router object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMRoadPreferences getPreferences() throws IOException, AutomationException
Returns the road preferences interface of the router.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMSpeedGroups getSpeedGroups() throws IOException, AutomationException
Returns the speed groups interface of the router object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMTripPlanSettings getTripPlanSettings() throws IOException, AutomationException
Returns the trip planning settings interface of the router object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getNetAttributeName() throws IOException, AutomationException
Returns the network attribute that the router object currently uses.
Currently SMRouter supports two network attributes: "Time" and "Length". Assign the NetAttributeName value "Time" if you want to find the quickest route. Assign the NetAttributeName value "Length" if you want to find the shortest route.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNetAttributeName(String pVal) throws IOException, AutomationException
Sets the network attribute that the router will use.
Currently SMRouter supports two network attributes: "Time" and "Length". Assign the NetAttributeName value "Time" if you want to find quickest route. Assign the NetAttributeName value "Length" if you want to find shortest route.
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMStopsCollection reorderStops(ISMStopsCollection pISrcStops) throws IOException, AutomationException
Solves the TSP and repositions the stops collection, that is passed in, according to task solution.
pISrcStops
- A reference to a com.esri.arcgis.datasourcesfile.ISMStopsCollection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMDirections solve(ISMStopsCollection pIStops, ISMBreakTracker pITracker) throws IOException, AutomationException
Builds the route using all the current settings of the router object.
The method returns the SMDirections object that contains the resulting path and driving directions texts. If no route is found then the method returns Nothing.
You need to pass an implementation of ISMBreakTracker interface as pBreakTracker parameter's value if you want to break route finding process according to some condition. If you don't need such functionality you can pass Nothing as the parameter's value.
pIStops
- A reference to a com.esri.arcgis.datasourcesfile.ISMStopsCollection (in)pITracker
- A reference to a com.esri.arcgis.datasourcesfile.ISMBreakTracker (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMNetAttributesAccess getNetAttributesAccess() throws IOException, AutomationException
Returns the network attributes access interface of the router object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getProjectionString() throws IOException, AutomationException
Returns the projection string that corresponds to projection information of the routing data which the router object was created on.
Projection string is returned in the same format as the CreateESRISpatialReferenceFromPRJ() method of the ISpatialReferenceFactory.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISMFlagCreator getFlagCreator() throws IOException, AutomationException
Returns the flag creator interface of the router object.
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 |