| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.networkanalyst.NARouteSolver
public class NARouteSolver
Performs shortest path and tour analysis.
NARouteSolver is a Network Analyst solver that computes the shortest path between a set of input stops. It can also be used to reorder the stop sequence, i.e., solve the traveling salesman problem. The NARouteSolver can also honor time windows on stops, and it has options to preserve the start and end stop while optimizing their sequences. It can generate a line feature class of the shortest path found. The NARouteSolver honors all of the settings of the INASolverSettings interface.
| Field Summary | 
|---|
| Fields inherited from interface com.esri.arcgis.networkanalyst.INASolver | 
|---|
| IID, IIDbfd9e9d5_cd3c_4f1c_b39d_40a4134e4b36, xxDummy | 
| Fields inherited from interface com.esri.arcgis.networkanalyst.INASolverSettings2 | 
|---|
| IID, IIDd3696546_2831_4aa5_a879_acd66e50a938, xxDummy | 
| Fields inherited from interface com.esri.arcgis.networkanalyst.INASolverSettings | 
|---|
| IID5a8dc105_0e57_45c8_a01d_0188ce7f7b52 | 
| Constructor Summary | |
|---|---|
| NARouteSolver()Constructs a NARouteSolver using ArcGIS Engine. | |
| NARouteSolver(Object obj)Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.  NARouteSolver theNARouteSolver = (NARouteSolver) obj; | |
| Method Summary | |
|---|---|
|  void | bind(INAContext context,
     IDENetworkDataset network,
     IGPMessages messages)Re-associate the solver with the given network dataset and its schema. | 
|  INAContext | createContext(IDENetworkDataset network,
              String name)Creates the analysis context for the solver. | 
|  INetworkForwardStarEx | createForwardStar(INAContext context,
                  boolean isForwardTraversal)Creates a network dataset forward star which honors the current solver settings as well as any barriers. | 
|  INALayer | createLayer(INAContext context)Makes a new network analysis layer for the solver context. | 
|  boolean | equals(Object o)Compare this object with another | 
|  IStringArray | getAccumulateAttributeNames()The collection of network attribute names to be accumulated with the analysis. | 
|  Object | getAttributeParameterValue(String attributeName,
                           String paramName)The value to use for an attribute parameter within the network dataset. | 
|  INamedSet | getClassDefinitions()The inputs and outputs defined by the solver. | 
|  void | getClassID(GUID[] pClassID)getClassID | 
| static String | getClsid()getClsid. | 
|  String | getDisplayName()The display name of the solver. | 
|  String | getHierarchyAttributeName()The name of the hierarchy attribute to be used in analysis. | 
|  int | getHierarchyLevelCount()The number of levels in the hierarchy attribute. | 
|  String | getImpedanceAttributeName()The network attribute name to be used as the impedance attribute in analysis. | 
|  int | getMaxValueForHierarchy(int level)The maximum value of the hierarchy attribute. | 
|  String | getName()The name of the solver. | 
|  int | getNumTransitionToHierarchy(int toLevel)The number of lower level junctions to explore before searching the next hierarchy level. | 
|  Object | getOutputGeometryPrecision()Specifies the precision of the output geometry after generalization. | 
|  int | getOutputGeometryPrecisionUnits()Specifies the units of the output geometry precision. | 
|  int | getOutputLines()Indicates if lines will be generated in the result. | 
|  IPropertySet | getProperties()The properties for the solver. | 
|  IStringArray | getRestrictionAttributeNames()The collection of network attribute names to be used as restrictions with the analysis. | 
|  int | getRestrictUTurns()Indicates how U-Turns should be restricted in the analysis. | 
|  void | getSizeMax(_ULARGE_INTEGER[] pcbSize)getSizeMax | 
|  Date | getStartTime()Specifies the time the route begins. | 
|  int | hashCode()the hashcode for this object | 
|  void | interfaceSupportsErrorInfo(GUID riid)interfaceSupportsErrorInfo | 
|  boolean | isCanAccumulateAttributes()Indicates if the solver supports using accumulate network attributes. | 
|  boolean | isCanUseHierarchy()Indicates if the solver supports using a hierarchy network attribute. | 
|  boolean | isCreateTraversalResult()Indicates if a traversal result will be generated. | 
|  void | isDirty()isDirty | 
|  boolean | isFindBestSequence()Indicates if the solver should resequence the route in the optimal order. | 
|  boolean | isIgnoreInvalidLocations()Indicates if invalid locations should be ignored or raise an error. | 
|  boolean | isPreserveFirstStop()Indicates if the solver should keep the first stop fixed in the sequence. | 
|  boolean | isPreserveLastStop()Indicates if the solver should keep the last stop fixed in the sequence. | 
|  boolean | isResetHierarchyRangesOnBind()Indicates if the hierarchy ranges will be reset to the network dataset's hierarchy settings when the solver is bound. | 
|  boolean | isUseHierarchy()Indicates if the hierarchy attribute for the network should be used in analysis. | 
|  boolean | isUseStartTime()Indicates if the solver should start the route at a particular time. | 
|  boolean | isUseTimeWindows()Indicates if the solver should consider time windows. | 
|  void | load(IStream pstm)load | 
|  void | readExternal(ObjectInput in) | 
|  void | save(IStream pstm,
     int fClearDirty)save | 
|  void | setAccumulateAttributeNamesByRef(IStringArray attributeNames)The collection of network attribute names to be accumulated with the analysis. | 
|  void | setAttributeParameterValue(String attributeName,
                           String paramName,
                           Object value)The value to use for an attribute parameter within the network dataset. | 
|  void | setCreateTraversalResult(boolean value)Indicates if a traversal result will be generated. | 
|  void | setFindBestSequence(boolean value)Indicates if the solver should resequence the route in the optimal order. | 
|  void | setHierarchyAttributeName(String attributeName)The name of the hierarchy attribute to be used in analysis. | 
|  void | setHierarchyLevelCount(int count)The number of levels in the hierarchy attribute. | 
|  void | setIgnoreInvalidLocations(boolean ignoreInvalidLocations)Indicates if invalid locations should be ignored or raise an error. | 
|  void | setImpedanceAttributeName(String attributeName)The network attribute name to be used as the impedance attribute in analysis. | 
|  void | setMaxValueForHierarchy(int level,
                        int value)The maximum value of the hierarchy attribute. | 
|  void | setNumTransitionToHierarchy(int toLevel,
                            int value)The number of lower level junctions to explore before searching the next hierarchy level. | 
|  void | setOutputGeometryPrecision(Object pValue)Specifies the precision of the output geometry after generalization. | 
|  void | setOutputGeometryPrecisionUnits(int pValue)Specifies the units of the output geometry precision. | 
|  void | setOutputLines(int value)Indicates if lines will be generated in the result. | 
|  void | setPreserveFirstStop(boolean value)Indicates if the solver should keep the first stop fixed in the sequence. | 
|  void | setPreserveLastStop(boolean value)Indicates if the solver should keep the last stop fixed in the sequence. | 
|  void | setResetHierarchyRangesOnBind(boolean value)Indicates if the hierarchy ranges will be reset to the network dataset's hierarchy settings when the solver is bound. | 
|  void | setRestrictionAttributeNamesByRef(IStringArray attributeName)The collection of network attribute names to be used as restrictions with the analysis. | 
|  void | setRestrictUTurns(int backtrack)Indicates how U-Turns should be restricted in the analysis. | 
|  void | setStartTime(Date value)Specifies the time the route begins. | 
|  void | setUseHierarchy(boolean useHierarchy)Indicates if the hierarchy attribute for the network should be used in analysis. | 
|  void | setUseStartTime(boolean value)Indicates if the solver should start the route at a particular time. | 
|  void | setUseTimeWindows(boolean value)Indicates if the solver should consider time windows. | 
|  boolean | solve(INAContext nAContext,
      IGPMessages messages,
      ITrackCancel trackCancel)Perform the network analysis and construct results. | 
|  void | updateContext(INAContext nAContext,
              IDENetworkDataset network,
              IGPMessages messages)Update the analysis context for the solver. | 
|  boolean | updateLayer(INALayer layer)Updates the layer and indicates if the layer was updated. | 
|  void | writeExternal(ObjectOutput out) | 
| 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 NARouteSolver()
              throws IOException,
                     UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NARouteSolver(Object obj)
              throws IOException
 NARouteSolver theNARouteSolver = (NARouteSolver) obj;
obj to NARouteSolver.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail | 
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getName()
               throws IOException,
                      AutomationException
getName in interface INASolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDisplayName()
                      throws IOException,
                             AutomationException
getDisplayName in interface INASolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INamedSet getClassDefinitions()
                              throws IOException,
                                     AutomationException
getClassDefinitions in interface INASolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanUseHierarchy()
                          throws IOException,
                                 AutomationException
isCanUseHierarchy in interface INASolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanAccumulateAttributes()
                                  throws IOException,
                                         AutomationException
isCanAccumulateAttributes in interface INASolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropertySet getProperties()
                           throws IOException,
                                  AutomationException
getProperties in interface INASolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INALayer createLayer(INAContext context)
                     throws IOException,
                            AutomationException
createLayer in interface INASolvercontext - A reference to a com.esri.arcgis.networkanalyst.INAContext (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean updateLayer(INALayer layer)
                    throws IOException,
                           AutomationException
updateLayer in interface INASolverlayer - A reference to a com.esri.arcgis.networkanalyst.INALayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean solve(INAContext nAContext,
                     IGPMessages messages,
                     ITrackCancel trackCancel)
              throws IOException,
                     AutomationException
solve in interface INASolvernAContext - A reference to a com.esri.arcgis.networkanalyst.INAContext (in)messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAContext createContext(IDENetworkDataset network,
                                String name)
                         throws IOException,
                                AutomationException
createContext in interface INASolvernetwork - A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset (in)name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void updateContext(INAContext nAContext,
                          IDENetworkDataset network,
                          IGPMessages messages)
                   throws IOException,
                          AutomationException
updateContext in interface INASolvernAContext - A reference to a com.esri.arcgis.networkanalyst.INAContext (in)network - A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset (in)messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void bind(INAContext context,
                 IDENetworkDataset network,
                 IGPMessages messages)
          throws IOException,
                 AutomationException
bind in interface INASolvercontext - A reference to a com.esri.arcgis.networkanalyst.INAContext (in)network - A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset (in)messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStringArray getAccumulateAttributeNames()
                                         throws IOException,
                                                AutomationException
getAccumulateAttributeNames in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAccumulateAttributeNamesByRef(IStringArray attributeNames)
                                      throws IOException,
                                             AutomationException
setAccumulateAttributeNamesByRef in interface INASolverSettingsattributeNames - A reference to a com.esri.arcgis.system.IStringArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setImpedanceAttributeName(String attributeName)
                               throws IOException,
                                      AutomationException
setImpedanceAttributeName in interface INASolverSettingsattributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getImpedanceAttributeName()
                                 throws IOException,
                                        AutomationException
getImpedanceAttributeName in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIgnoreInvalidLocations(boolean ignoreInvalidLocations)
                               throws IOException,
                                      AutomationException
setIgnoreInvalidLocations in interface INASolverSettingsignoreInvalidLocations - The ignoreInvalidLocations (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isIgnoreInvalidLocations()
                                 throws IOException,
                                        AutomationException
isIgnoreInvalidLocations in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStringArray getRestrictionAttributeNames()
                                          throws IOException,
                                                 AutomationException
getRestrictionAttributeNames in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRestrictionAttributeNamesByRef(IStringArray attributeName)
                                       throws IOException,
                                              AutomationException
setRestrictionAttributeNamesByRef in interface INASolverSettingsattributeName - A reference to a com.esri.arcgis.system.IStringArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRestrictUTurns(int backtrack)
                       throws IOException,
                              AutomationException
setRestrictUTurns in interface INASolverSettingsbacktrack - A com.esri.arcgis.geodatabase.esriNetworkForwardStarBacktrack constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getRestrictUTurns()
                      throws IOException,
                             AutomationException
getRestrictUTurns in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseHierarchy(boolean useHierarchy)
                     throws IOException,
                            AutomationException
setUseHierarchy in interface INASolverSettingsuseHierarchy - The useHierarchy (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseHierarchy()
                       throws IOException,
                              AutomationException
isUseHierarchy in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHierarchyAttributeName(String attributeName)
                               throws IOException,
                                      AutomationException
setHierarchyAttributeName in interface INASolverSettingsattributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getHierarchyAttributeName()
                                 throws IOException,
                                        AutomationException
getHierarchyAttributeName in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHierarchyLevelCount(int count)
                            throws IOException,
                                   AutomationException
setHierarchyLevelCount in interface INASolverSettingscount - The count (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHierarchyLevelCount()
                           throws IOException,
                                  AutomationException
getHierarchyLevelCount in interface INASolverSettingsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaxValueForHierarchy(int level,
                                    int value)
                             throws IOException,
                                    AutomationException
setMaxValueForHierarchy in interface INASolverSettingslevel - The level (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaxValueForHierarchy(int level)
                            throws IOException,
                                   AutomationException
getMaxValueForHierarchy in interface INASolverSettingslevel - The level (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNumTransitionToHierarchy(int toLevel,
                                        int value)
                                 throws IOException,
                                        AutomationException
setNumTransitionToHierarchy in interface INASolverSettingstoLevel - The toLevel (in)value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getNumTransitionToHierarchy(int toLevel)
                                throws IOException,
                                       AutomationException
getNumTransitionToHierarchy in interface INASolverSettingstoLevel - The toLevel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isResetHierarchyRangesOnBind()
                                     throws IOException,
                                            AutomationException
isResetHierarchyRangesOnBind in interface INASolverSettings2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setResetHierarchyRangesOnBind(boolean value)
                                   throws IOException,
                                          AutomationException
setResetHierarchyRangesOnBind in interface INASolverSettings2value - The value (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getAttributeParameterValue(String attributeName,
                                         String paramName)
                                  throws IOException,
                                         AutomationException
getAttributeParameterValue in interface INASolverSettings2attributeName - The attributeName (in)paramName - The paramName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAttributeParameterValue(String attributeName,
                                       String paramName,
                                       Object value)
                                throws IOException,
                                       AutomationException
setAttributeParameterValue in interface INASolverSettings2attributeName - The attributeName (in)paramName - The paramName (in)value - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFindBestSequence()
                           throws IOException,
                                  AutomationException
FindBestSequence determines whether or not the route solver optimizes the sequence of stops before solving the shortest path.
isFindBestSequence in interface INARouteSolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFindBestSequence(boolean value)
                         throws IOException,
                                AutomationException
FindBestSequence determines whether or not the route solver optimizes the sequence of stops before solving the shortest path.
setFindBestSequence in interface INARouteSolvervalue - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPreserveFirstStop()
                            throws IOException,
                                   AutomationException
PreserveFirstStop allows the first stop to stay as the first stop if the FindBestSequence has been turned on to optimize the sequence of stops.
isPreserveFirstStop in interface INARouteSolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPreserveFirstStop(boolean value)
                          throws IOException,
                                 AutomationException
PreserveFirstStop allows the first stop to stay as the first stop if the FindBestSequence has been turned on to optimize the sequence of stops.
setPreserveFirstStop in interface INARouteSolvervalue - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPreserveLastStop()
                           throws IOException,
                                  AutomationException
PreserveLastStop allows the last stop to stay as the last stop if the FindBestSequence has been turned on to optimize the sequence of stops.
isPreserveLastStop in interface INARouteSolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPreserveLastStop(boolean value)
                         throws IOException,
                                AutomationException
PreserveLastStop allows the last stop to stay as the last stop if the FindBestSequence has been turned on to optimize the sequence of stops.
setPreserveLastStop in interface INARouteSolvervalue - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseTimeWindows()
                         throws IOException,
                                AutomationException
UseTimeWindows allows the use of time windows on individual stops. The route solver will change the sequence of the stops to satisfy the time windows. This is done regardless of settings for FindBestSequence.
isUseTimeWindows in interface INARouteSolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseTimeWindows(boolean value)
                       throws IOException,
                              AutomationException
UseTimeWindows allows the use of time windows on individual stops. The route solver will change the sequence of the stops to satisfy the time windows. This is done regardless of settings for FindBestSequence.
setUseTimeWindows in interface INARouteSolvervalue - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCreateTraversalResult()
                                throws IOException,
                                       AutomationException
CreateTraversalResult specifies if the traversal results will be created by the route solver.
isCreateTraversalResult in interface INARouteSolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCreateTraversalResult(boolean value)
                              throws IOException,
                                     AutomationException
CreateTraversalResult specifies if the traversal results will be created by the route solver.
setCreateTraversalResult in interface INARouteSolvervalue - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getOutputLines()
                   throws IOException,
                          AutomationException
OutputLines specifies the type of lines that are generated by the solver. The type can be true shape, true shape with measures, straight lines connecting the stops or no lines.
getOutputLines in interface INARouteSolverIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOutputLines(int value)
                    throws IOException,
                           AutomationException
OutputLines specifies the type of lines that are generated by the solver. The type can be true shape, true shape with measures, straight lines connecting the stops or no lines.
setOutputLines in interface INARouteSolvervalue - A com.esri.arcgis.networkanalyst.esriNAOutputLineType constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseStartTime(boolean value)
                     throws IOException,
                            AutomationException
UseStartTime specifies whether or not you want the solver to track the start time of the route. This property is used in conjunction with StartTime which specifies the actual start time.
setUseStartTime in interface INARouteSolver2value - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseStartTime()
                       throws IOException,
                              AutomationException
UseStartTime specifies whether or not you want the solver to track the start time of the route. This property is used in conjunction with StartTime, which specifies the actual start time.
isUseStartTime in interface INARouteSolver2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setStartTime(Date value)
                  throws IOException,
                         AutomationException
StartTime specifies the route's start time. This property is used in conjunction with the UseStartTime property which specifies if the start time is used or not. The allowable date range (for explicit dates) is 1/1/1901 through 12/31/9999.
To specify days of the week, use the following chart:
| Interpreted Day | Specific Date to Pass to the Solver | 
|---|---|
| Today | 12/30/1899 | 
| Sunday | 12/31/1899 | 
| Monday | 1/1/1900 | 
| Tuesday | 1/2/1900 | 
| Wednesday | 1/3/1900 | 
| Thursday | 1/4/1900 | 
| Friday | 1/5/1900 | 
| Saturday | 1/6/1900 | 
setStartTime in interface INARouteSolver2value - The value  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Date getStartTime()
                  throws IOException,
                         AutomationException
StartTime specifies the route's start time. This property is used in conjunction with the UseStartTime property which specifies if the start time is used or not. The allowable date range (for explicit dates) is 1/1/1901 through 12/31/9999.
To specify days of the week, use the following chart:
| Interpreted Day | Specific Date to Pass to the Solver | 
|---|---|
| Today | 12/30/1899 | 
| Sunday | 12/31/1899 | 
| Monday | 1/1/1900 | 
| Tuesday | 1/2/1900 | 
| Wednesday | 1/3/1900 | 
| Thursday | 1/4/1900 | 
| Friday | 1/5/1900 | 
| Saturday | 1/6/1900 | 
getStartTime in interface INARouteSolver2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOutputGeometryPrecision(Object pValue)
                                throws IOException,
                                       AutomationException
The precision of the output geometry after generalization.
setOutputGeometryPrecision in interface INASolverOutputGeneralizationpValue - A Variant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getOutputGeometryPrecision()
                                  throws IOException,
                                         AutomationException
getOutputGeometryPrecision in interface INASolverOutputGeneralizationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOutputGeometryPrecisionUnits(int pValue)
                                     throws IOException,
                                            AutomationException
The length units that the OutputGeometryPrecision are in. If unknown, the units are assumed to be the same as the spatial reference of the geometries.
setOutputGeometryPrecisionUnits in interface INASolverOutputGeneralizationpValue - A com.esri.arcgis.system.esriUnits constant  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getOutputGeometryPrecisionUnits()
                                    throws IOException,
                                           AutomationException
getOutputGeometryPrecisionUnits in interface INASolverOutputGeneralizationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
             throws IOException,
                    AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
          throws IOException,
                 AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
                 int fClearDirty)
          throws IOException,
                 AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream  (in)fClearDirty - The fClearDirty  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
                throws IOException,
                       AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
                throws IOException,
                       AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID  (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkForwardStarEx createForwardStar(INAContext context,
                                               boolean isForwardTraversal)
                                        throws IOException,
                                               AutomationException
CreateForwardStar will generate a NetworkForwardStar object prepared with the settings specified on the current solver and the INAContext that is passed in. The returned NetworkForwardStar object will have the INetworkForwardStarEx::IsForwardTraversal value set to match the value of the IsForwardTraversal Boolean that is passed in to CreateForwardStar.
createForwardStar in interface INASolverForwardStarcontext - A reference to a com.esri.arcgis.networkanalyst.INAContext  (in)isForwardTraversal - The isForwardTraversal  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
                   throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||