|
|||||||||
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.geodatabase.INetworkEvaluatorSetupProxy
Description: 'Provides access to members that set up a network evaluator for use within a network dataset.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
public class INetworkEvaluatorSetupProxy
Internal use class
Field Summary | |
---|---|
boolean |
noncastable
Deprecated. |
static java.lang.Class |
targetClass
Deprecated. |
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
INetworkEvaluatorSetupProxy()
Deprecated. For internal use only |
|
INetworkEvaluatorSetupProxy(java.lang.Object obj)
Deprecated. |
protected |
INetworkEvaluatorSetupProxy(java.lang.Object obj,
java.lang.String iid)
Deprecated. |
|
INetworkEvaluatorSetupProxy(java.lang.String CLSID,
java.lang.String host,
com.esri.arcgis.interop.AuthInfo authInfo)
Deprecated. |
protected |
INetworkEvaluatorSetupProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
com.esri.arcgis.interop.AuthInfo authInfo)
Deprecated. |
Method Summary | |
---|---|
void |
addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
Deprecated. |
IUID |
getCLSID()
Deprecated. Unique CLSID identifier for this network evaluator. |
IPropertySet |
getData()
Deprecated. The data used by this network evaluator for custom properties. |
void |
initialize(INetworkDataset networkDataset,
IDENetworkDataset dataElement,
INetworkSource source,
IEvaluatedNetworkAttribute attribute)
Deprecated. Initializes the network evaluator in preparation to evaluate the attribute value of a network element. |
boolean |
isDataHasEdits()
Deprecated. Indicates if the data for this evaluator has been edited. |
java.lang.Object |
queryValue(INetworkElement element,
IRow row)
Deprecated. Evaluates the attribute value of a network element. |
void |
removeListener(java.lang.String iidStr,
java.lang.Object theListener)
Deprecated. |
void |
setData(IPropertySet data)
Deprecated. The data used by this network evaluator for custom properties. |
boolean |
supportsDefault(int elementType,
IEvaluatedNetworkAttribute attribute)
Deprecated. Indicates if this network evaluator can be used as the default evaluator for the given network element type and network attribute. |
boolean |
supportsSource(INetworkSource source,
IEvaluatedNetworkAttribute attribute)
Deprecated. Indicates if this network evaluator can be used as the evaluator for the given network source and network attribute. |
boolean |
validateDefault(int elementType,
IEvaluatedNetworkAttribute attribute,
int[] errorCode,
java.lang.String[] errorDescription,
java.lang.String[] errorAppendInfo)
Deprecated. Indicates if the network evaluator is in a valid state for use as the default evaluator for the given element type and network attribute. |
boolean |
validateSource(IDatasetContainer2 datasetContainer,
INetworkSource networkSource,
IEvaluatedNetworkAttribute attribute,
int[] errorCode,
java.lang.String[] errorDescription,
java.lang.String[] errorAppendInfo)
Deprecated. Indicates if the network evaluator is in a valid state for use as the evaluator for the given network source and network attribute. |
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 static final java.lang.Class targetClass
public boolean noncastable
Constructor Detail |
---|
public INetworkEvaluatorSetupProxy(java.lang.String CLSID, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
public INetworkEvaluatorSetupProxy()
public INetworkEvaluatorSetupProxy(java.lang.Object obj) throws java.io.IOException
java.io.IOException
protected INetworkEvaluatorSetupProxy(java.lang.Object obj, java.lang.String iid) throws java.io.IOException
java.io.IOException
protected INetworkEvaluatorSetupProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource) throws java.io.IOException
addListener
in class com.esri.arcgis.interop.Dispatch
java.io.IOException
public void removeListener(java.lang.String iidStr, java.lang.Object theListener) throws java.io.IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
java.io.IOException
public void initialize(INetworkDataset networkDataset, IDENetworkDataset dataElement, INetworkSource source, IEvaluatedNetworkAttribute attribute) throws java.io.IOException, AutomationException
The Initialize method does all the "heavy lifting" needed to prepare the evaluator for a call to QueryValue, a lightweight method for querying the attribute value for a network element. Once the evaluator is initialized, the client can make multiple calls to this lightweight QueryValue for calculating the attribute values of multiple network elements.
When querying for attribute values in the network dataset ArcGIS calls the Initialize method immediately after it instantiates the evaluator. For evaluators with CacheAttribute = True, this occurs when building the network dataset. For evaluators with CacheAttribute = False, this occurs on the first call in the session to INetworkElement::AttributeValue or ::AttributeValueByName that requires this evaluator to determine the attribute value.
initialize
in interface INetworkEvaluatorSetup
networkDataset
- A reference to a com.esri.arcgis.geodatabase.INetworkDataset (in)dataElement
- A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset (in)source
- A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)attribute
- A reference to a com.esri.arcgis.geodatabase.IEvaluatedNetworkAttribute (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setData(IPropertySet data) throws java.io.IOException, AutomationException
setData
in interface INetworkEvaluatorSetup
data
- A reference to a com.esri.arcgis.system.IPropertySet (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getData() throws java.io.IOException, AutomationException
The Data property stores data that is needed by the evaluator. It is stored in a PropertySet object using key-value pairs.
getData
in interface INetworkEvaluatorSetup
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDataHasEdits() throws java.io.IOException, AutomationException
The DataHasEdits property indicates whether changes have been made to the Data PropertySet that have not yet been handled by the evaluator's internal logic. This is useful in determining whether the evaluator needs to be re-Initialized before making additional calls to QueryValue.
This property is only used when modifying the network dataset's evaluators via objects like the EvaluatorEditor to signify the network dataset may need to be rebuilt/reinitialized. This property is not queried prior to network analysis to determine if the evaluator needs to be re-initialized. Thus, it is not a mechanism to trigger that the evaluators need to be re-initialized based on new data between solves.
isDataHasEdits
in interface INetworkEvaluatorSetup
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getCLSID() throws java.io.IOException, AutomationException
getCLSID
in interface INetworkEvaluatorSetup
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean supportsSource(INetworkSource source, IEvaluatedNetworkAttribute attribute) throws java.io.IOException, AutomationException
TheSupportsSource method is used to determine if the evaluator can be used to assign attribute values for elements generated by the given source. If SupportsSource is False, then the evaluator does not show up as a choice for the user in the Evaluators dialog in ArcCatalog.
supportsSource
in interface INetworkEvaluatorSetup
source
- A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)attribute
- A reference to a com.esri.arcgis.geodatabase.IEvaluatedNetworkAttribute (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean supportsDefault(int elementType, IEvaluatedNetworkAttribute attribute) throws java.io.IOException, AutomationException
The SupportsDefault method is used to determine if the evaluator can be used to assign default attribute values for elements of the given type. If SupportsDefault is False, then the evaluator does not show up as a default evaluator choice for the user in the Evaluators dialog in ArcCatalog.
supportsDefault
in interface INetworkEvaluatorSetup
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)attribute
- A reference to a com.esri.arcgis.geodatabase.IEvaluatedNetworkAttribute (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean validateSource(IDatasetContainer2 datasetContainer, INetworkSource networkSource, IEvaluatedNetworkAttribute attribute, int[] errorCode, java.lang.String[] errorDescription, java.lang.String[] errorAppendInfo) throws java.io.IOException, AutomationException
validateSource
in interface INetworkEvaluatorSetup
datasetContainer
- A reference to a com.esri.arcgis.geodatabase.IDatasetContainer2 (in)networkSource
- A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)attribute
- A reference to a com.esri.arcgis.geodatabase.IEvaluatedNetworkAttribute (in)errorCode
- The errorCode (in/out: use single element array)errorDescription
- The errorDescription (in/out: use single element array)errorAppendInfo
- The errorAppendInfo (in/out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean validateDefault(int elementType, IEvaluatedNetworkAttribute attribute, int[] errorCode, java.lang.String[] errorDescription, java.lang.String[] errorAppendInfo) throws java.io.IOException, AutomationException
validateDefault
in interface INetworkEvaluatorSetup
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)attribute
- A reference to a com.esri.arcgis.geodatabase.IEvaluatedNetworkAttribute (in)errorCode
- The errorCode (in/out: use single element array)errorDescription
- The errorDescription (in/out: use single element array)errorAppendInfo
- The errorAppendInfo (in/out: use single element array)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.Object queryValue(INetworkElement element, IRow row) throws java.io.IOException, AutomationException
QueryValue uses this evaluator to compute the attribute value for the given network element.
The Row parameter is provided in order to query any information from the Row (such as field values) corresponding to the given network element when building the network dataset. When computing attribute values that will be cached within the network, QueryValue is automatically called by the system, and the Row from the corresponding source feature will be passed into QueryValue.
Note that QueryValue is also automatically called by the system when querying non-cached attribute values by using the INetworkElement interface. In this situation, the Row parameter will always be null; that is, the Row from the corresponding source feature will not be passed into QueryValue.
Before calling QueryValue, the evaluator must first be initialized by calling the Initialize method. After calling Initialize, QueryValue can be called multiple times to calculate attribute values for multiple network elements.
queryValue
in interface INetworkEvaluatorSetup
element
- A reference to a com.esri.arcgis.geodatabase.INetworkElement (in)row
- A reference to a com.esri.arcgis.geodatabase.IRow (in)
java.io.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 |