|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.networkanalyst.NAVRPResult
public class NAVRPResult
Contains a VRP result.
This object is new at ArcGIS 9.3.
The NAVRPResult object is created by the NAVRPSolver in order to provide access to the internally-managed NAODCostMatrix object and Route NAContext used by the VRP solver in its analysis and output. The NAVRPSolver will only create an NAVRPResult when INAVRPSolver::InternalODCostMatrixType is equal to esriNAODCostMatrixFull or esriNAODCostMatrixUpdate. The NAVRPResult may be accessed from the INAContext::Result property of a VRP NAContext instance.
| Constructor Summary | |
|---|---|
NAVRPResult()
Constructs a NAVRPResult using ArcGIS Engine. |
|
NAVRPResult(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NAVRPResult theNAVRPResult = (NAVRPResult) obj; |
|
| Method Summary | |
|---|---|
void |
create(String name,
INAContextHelper nAContextHelper,
boolean isScratch)
Set up for a new analysis. |
void |
emptyAll()
Clear out all existing rows from any previous analysis. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
INAODCostMatrix |
getInternalODCostMatrix()
The internal OD cost matrix. |
INAContext |
getInternalRouteContext()
The NAContext for the internal route problem. |
INAContext |
getNAContext()
The context for the result. |
String |
getName()
The name of the result. |
IPropertySet |
getOutputProperties()
The properties of the output. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
hashCode()
the hashcode for this object |
void |
initialize(String name,
INAContext nAContext,
boolean isScratch)
Set up for a new analysis. |
void |
initializeEx(INAContextHelper nAContextHelper)
Provides the result object with a reference to the context. |
void |
isDirty()
isDirty |
boolean |
isHasValidResult()
Indicates if the current result is valid. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setHasValidResult(boolean pFlag)
Indicates if the current result is valid. |
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 NAVRPResult()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NAVRPResult(Object obj)
throws IOException
NAVRPResult theNAVRPResult = (NAVRPResult) obj;
obj to NAVRPResult.
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 void initialize(String name,
INAContext nAContext,
boolean isScratch)
throws IOException,
AutomationException
This method has been deprecated and should not be used. Instead, use INAResult2.Create to initialize a result object after creating it.
initialize in interface INAResultname - The name (in)nAContext - A reference to a com.esri.arcgis.networkanalyst.INAContext (in)isScratch - The isScratch (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropertySet getOutputProperties()
throws IOException,
AutomationException
The OutputProperties property returns a PropertySet that may contain information about the results of the network analysis.
The contents of the property set is up to the individual solver. For the solvers that ESRI has released, HasGapsInEdgeCumulativeImpedances returns True if there are impedance values on the junction elements that were traversed. This is important because measures are not generated on the resulting polyline feature class (Route, CFLines, SALines) in this case.
Closest Facility:
HasGapsInEdgeCumulativeImpedances True/False
Route:
HasGapsInEdgeCumulativeImpedances True/False
Service Area:
HasGapsInEdgeCumulativeImpedances True/False
TravelDirection TRAVEL_FROM/TRAVEL_TO
Origin Destination Cost Matrix:
** No TraversalResult generated
getOutputProperties in interface INAResultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasValidResult()
throws IOException,
AutomationException
The HasValidResult property denotes if network analysis has been performed and the result object has been populated with valid information.
isHasValidResult in interface INAResultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHasValidResult(boolean pFlag)
throws IOException,
AutomationException
The HasValidResult property denotes if network analysis has been performed and the result object has been populated with valid information.
setHasValidResult in interface INAResultpFlag - The pFlag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void emptyAll()
throws IOException,
AutomationException
Clears the traversal result.
emptyAll in interface INAResultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
The Name property returns the name of the traversal result that was set during the call to Create.
getName in interface INAResultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAContext getNAContext()
throws IOException,
AutomationException
The NAContext returns the context that this traversal result was based upon.
getNAContext in interface INAResultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void create(String name,
INAContextHelper nAContextHelper,
boolean isScratch)
throws IOException,
AutomationException
The method Create is called by the solver when it creates a new result object.
The isScratch parameter specifies if the result feature classes should be kept in memory (false) or saved on disk (true).
The NAContextHelper object passed in is used to get back to the NAContext. You can maintain a strong reference to the NAContextHelper object within your custom result object, but do not hold onto a strong reference to the NAContext itself as this will create a circular reference.
This method should be called instead of INAResult.Initialize.
create in interface INAResult2name - The name (in)nAContextHelper - A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)isScratch - The isScratch (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void initializeEx(INAContextHelper nAContextHelper)
throws IOException,
AutomationException
The InitializeEx method is called after the result object has been deserialized as part of the NAContext being loaded. It is called to pass to the result object a backpointer reference to the NAContext that it's bound to.
The NAContextHelper object passed in is used to get back to the NAContext. You can maintain a strong reference to the NAContextHelper object within your custom result object, but do not hold onto a strong reference to the NAContext itself as this will create a circular reference.
initializeEx in interface INAResult2nAContextHelper - A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAODCostMatrix getInternalODCostMatrix()
throws IOException,
AutomationException
The InternalODCostMatrix property provides access to the internally-managed NAODCostMatrixResult object generated or updated by the VRP solver during its last Solve operation.
getInternalODCostMatrix in interface INAVRPResultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAContext getInternalRouteContext()
throws IOException,
AutomationException
The InternalRouteContext property provides access to the internally-managed Route NAContext object generated or updated by the VRP solver during its last Solve operation. This internal route NAContext can be used to generate directions for a given VRP instance.
If the INAVRPSolver.GenerateInternalRouteContext property is set to False, this property will return null.
getInternalRouteContext in interface INAVRPResultIOException - 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 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 | ||||||||