|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.datasourcesfile.ISMRouterProxy
public class ISMRouterProxy
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.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ISMRouterProxy()
|
|
ISMRouterProxy(Object obj)
|
protected |
ISMRouterProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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. |
void |
removeListener(String iidStr,
Object theListener)
|
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. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public ISMRouterProxy()
public ISMRouterProxy(Object obj) throws IOException
IOException
protected ISMRouterProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public ISMNetBarriersCollection getBarriers() throws IOException, AutomationException
Returns the network barriers collection interface of the router object.
getBarriers
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMNetAttributesCollection getNetAttributes() throws IOException, AutomationException
Returns the network attributes collection interface of the router object.
getNetAttributes
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMRoadPreferences getPreferences() throws IOException, AutomationException
Returns the road preferences interface of the router.
getPreferences
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMSpeedGroups getSpeedGroups() throws IOException, AutomationException
Returns the speed groups interface of the router object.
getSpeedGroups
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMTripPlanSettings getTripPlanSettings() throws IOException, AutomationException
Returns the trip planning settings interface of the router object.
getTripPlanSettings
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getNetAttributeName
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
setNetAttributeName
in interface ISMRouter
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMStopsCollection reorderStops(ISMStopsCollection pISrcStops) throws IOException, AutomationException
Solves the TSP and repositions the stops collection, that is passed in, according to task solution.
reorderStops
in interface ISMRouter
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.public 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.
solve
in interface ISMRouter
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.public ISMNetAttributesAccess getNetAttributesAccess() throws IOException, AutomationException
Returns the network attributes access interface of the router object.
getNetAttributesAccess
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getProjectionString
in interface ISMRouter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMFlagCreator getFlagCreator() throws IOException, AutomationException
Returns the flag creator interface of the router object.
getFlagCreator
in interface ISMRouter
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 |