|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAResult2
Provides access to the results of an analysis.
The INAResult2 interface is a required interface on any network result. Objects implementing this interface may be returned by the Result property on INAContext.
This interface has methods to setup and clear the analysis results as well as methods to do high level interrogation of the results.
Method Summary | |
---|---|
void |
create(String name,
INAContextHelper nAContextHelper,
boolean isScratch)
Set up for a new analysis. |
void |
initializeEx(INAContextHelper nAContextHelper)
Provides the result object with a reference to the context. |
Methods inherited from interface com.esri.arcgis.networkanalyst.INAResult |
---|
emptyAll, getNAContext, getName, getOutputProperties, initialize, isHasValidResult, setHasValidResult |
Method Detail |
---|
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.
name
- 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.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.
nAContextHelper
- A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (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 |