|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.geodatabase.INetworkAttributeProxy
com.esri.arcgis.geodatabase.INetworkAttribute2Proxy
public class INetworkAttribute2Proxy
Provides access to members that specify the properties of an attribute in a network dataset.
The INetworkAttribute and INetworkAttribute2 interfaces are used to access the properties of the network attribute, such as its name and usage type.
To access the NetworkAttribute or EvaluatedNetworkAttribute object for an existing network dataset attribute, use the Attribute, AttributeByID, or AttributeByName methods on the INetworkDataset interface.
The INetworkAttribute and INetworkAttribute2 interfaces are also used to define a new network attribute. To create a new network attribute, cocreate an EvaluatedNetworkAttribute object, specify its properties, and pass the object to the INetworkBuild::AddAttribute method on the network dataset.
| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INetworkAttribute2Proxy()
|
|
INetworkAttribute2Proxy(Object obj)
|
protected |
INetworkAttribute2Proxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
IArray |
getParameters()
Array of parameters for this network attribute. |
boolean |
isUseByDefault()
Indicates if this network attribute is to be used by default. |
void |
readExternal(ObjectInput in)
|
void |
refresh()
Refresh the network evaluators assigned to this network attribute. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setParametersByRef(IArray parameters)
Array of parameters for this network attribute. |
void |
setUseByDefault(boolean useByDefault)
Indicates if this network attribute is to be used by default. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class com.esri.arcgis.geodatabase.INetworkAttributeProxy |
|---|
getDataType, getID, getName, getUnits, getUsageType, setDataType, setName, setUnits, setUsageType |
| 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, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.geodatabase.INetworkAttribute |
|---|
getDataType, getID, getName, getUnits, getUsageType, setDataType, setName, setUnits, setUsageType |
| Constructor Detail |
|---|
public INetworkAttribute2Proxy()
public INetworkAttribute2Proxy(Object obj)
throws IOException
IOException
protected INetworkAttribute2Proxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class INetworkAttributeProxyIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class INetworkAttributeProxyIOException
public IArray getParameters()
throws IOException,
AutomationException
This property provides access to the IArray interface that holds the collection of NetworkAttributeParameter objects that are available for this NetworkAttribute.
getParameters in interface INetworkAttribute2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParametersByRef(IArray parameters)
throws IOException,
AutomationException
This property provides access to the IArray interface that holds the collection of NetworkAttributeParameter objects that are available for this NetworkAttribute.
setParametersByRef in interface INetworkAttribute2parameters - A reference to a com.esri.arcgis.system.IArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh()
throws IOException,
AutomationException
Calling Refresh propogates the call to INetworkEvaluator2::Refresh on the attribute's underlying network evaluators that implement INetworkEvaluator2. This gives the evaluator an opportunity to update its state based on current data or parameter values. This method is called by the network analyst solvers after setting INetworkAttribute2::Parameters prior to performing the solve operation.
refresh in interface INetworkAttribute2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseByDefault()
throws IOException,
AutomationException
If the UseByDefault property is set to True for a NetworkAttribute, the network attribute will automatically be set as an option (e.g., impedance, restriction, hierarchy) when a new network analysis layer is created in ArcMap.
isUseByDefault in interface INetworkAttribute2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseByDefault(boolean useByDefault)
throws IOException,
AutomationException
setUseByDefault in interface INetworkAttribute2useByDefault - The useByDefault (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 ExternalizablewriteExternal in class INetworkAttributeProxyIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class INetworkAttributeProxyIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||