|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesfile.SMRouterFactory
public class SMRouterFactory
The object for creating router objects.
Constructor Summary | |
---|---|
SMRouterFactory()
Constructs a SMRouterFactory using ArcGIS Engine. |
|
SMRouterFactory(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SMRouterFactory theSMRouterFactory = (SMRouterFactory) obj; |
Method Summary | |
---|---|
ISMRouter |
createRouter(String routingFilePath)
Creates a SMRouter object based on information in the input routing initialization file. |
ISMRouter |
createRouterCfg(String routingFilePath,
String configPath)
Creates a SMRouter object based on additional information in the alternate routing configuration file. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public SMRouterFactory() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SMRouterFactory(Object obj) throws IOException
SMRouterFactory theSMRouterFactory = (SMRouterFactory) obj;
obj
to SMRouterFactory
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public ISMRouter createRouter(String routingFilePath) throws IOException, AutomationException
The method creates a SMRouter object reading necessary information from the routing initialization file that is passed in.
The method returns an instance of the SMRouter object if successful. Otherwise it returns Nothing.
A routing initialization file, for example routing.ini or routing.rs, contains the definition of the routing service based on the specific information about routing data source.
createRouter
in interface ISMRouterFactory
routingFilePath
- The routingFilePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMRouter createRouterCfg(String routingFilePath, String configPath) throws IOException, AutomationException
The method creates SMRouter object using the alternate configuration file along with the main routing initialization file.
The method returns an instance of the SMRouter object if successful. Otherwise it returns Nothing.
A routing initialization file, for example routing.ini or routing.rs, contains the definition of the routing service based on the specific information about routing data source.
A routing configuration file, for example routing.cfg, contains application specific information such as driving directions patterns, texts of directions parts, distance, time formats, and so on.
createRouterCfg
in interface ISMRouterFactory
routingFilePath
- The routingFilePath (in)configPath
- The configPath (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 |