|
|||||||||
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.INetworkDatasetProxy
public class INetworkDatasetProxy
Provides access to members that query the schema of the network dataset.
A NetworkDataset is a collection of feature classes that participate in a network relationship. Each feature class has a topological role in the network and a network may have multiple feature classes in the same role. A feature dataset may have multiple networks but a feature class can only belong to one network, either a network dataset or geometric network. A Feature class in the network dataset is called a network source. Network datasets may also have attributes which are used for solving against a network dataset. Network dataset sources can also participate within a Topology.
The IDatasetContainer2 interface should be used for creating and opening network datasets. The INetworkBuild interface should be used for adding or removing sources or attributes from a network dataset and for building a network dataset.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
INetworkDatasetProxy()
|
|
INetworkDatasetProxy(Object obj)
|
protected |
INetworkDatasetProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
INetworkSource |
esri_getSource(int index)
Network dataset source by index. |
INetworkAttribute |
getAttribute(int index)
Network dataset attribute by index. |
INetworkAttribute |
getAttributeByID(int iD)
Network dataset attribute corresponding to the specified ID. |
INetworkAttribute |
getAttributeByName(String name)
Network dataset attribute corresponding to the specified name. |
int |
getAttributeCount()
Number of attributes in the network dataset. |
int |
getNetworkType()
The type of the network dataset. |
INetworkSource |
getSourceByID(int iD)
Network dataset source corresponding to the specified ID. |
INetworkSource |
getSourceByName(String name)
Network dataset source corresponding to the specified name. |
int |
getSourceCount()
Number of sources in the network dataset. |
int |
getState()
Indicates whether the network dataset is built or not. |
boolean |
isBuildable()
Indicates if this network dataset is buildable. |
boolean |
isSupportsTurns()
Indicates if this network dataset supports network turn elements. |
void |
removeListener(String iidStr,
Object theListener)
|
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 boolean noncastable
Constructor Detail |
---|
public INetworkDatasetProxy()
public INetworkDatasetProxy(Object obj) throws IOException
IOException
protected INetworkDatasetProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public boolean isBuildable() throws IOException, AutomationException
Returns a boolean value indicating if the network dataset can be built using the INetworkBuild:BuildNetwork method. This method will return true for Geodatabase and Shapefile network datasets and false for SDC network datasets. Use the INetworkDataset:NetworkType property to determine the type of network dataset.
isBuildable
in interface INetworkDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getNetworkType() throws IOException, AutomationException
Returns the type of network dataset; geodatabase, shapefile, SDC or unknown. Use this property to handle properties that differ based on the type of network dataset.
getNetworkType
in interface INetworkDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportsTurns() throws IOException, AutomationException
Returns a boolean value indicating if the network dataset supports turns. For shapefile and geodatabase networks, this property is set on the IDENetworkDataset interface of the data element. SDC based network datasets do not support turns.
Once a network dataset is created, turn support cannot be added. This can only be specified when the network is created.
isSupportsTurns
in interface INetworkDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkAttribute getAttributeByID(int iD) throws IOException, AutomationException
getAttributeByID
in interface INetworkDataset
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkAttribute getAttributeByName(String name) throws IOException, AutomationException
getAttributeByName
in interface INetworkDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getAttributeCount() throws IOException, AutomationException
Returns the number of attributes assigned to the network dataset.
getAttributeCount
in interface INetworkDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkAttribute getAttribute(int index) throws IOException, AutomationException
getAttribute
in interface INetworkDataset
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkSource getSourceByID(int iD) throws IOException, AutomationException
getSourceByID
in interface INetworkDataset
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkSource getSourceByName(String name) throws IOException, AutomationException
getSourceByName
in interface INetworkDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSourceCount() throws IOException, AutomationException
Returns the number of sources in the network dataset.
getSourceCount
in interface INetworkDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkSource esri_getSource(int index) throws IOException, AutomationException
esri_getSource
in interface INetworkDataset
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getState() throws IOException, AutomationException
The State property indicates the current status of the network dataset; whether the network dataset is unbuilt, built or empty. Network analysis may be performed on unbuilt network datasets, but the results cannot be guaranteed to be correct and will depend on the edits that have been made.
For network datasets in an ArcSDE geodatabase, the State property will return the error "Object does not support this action."
getState
in interface INetworkDataset
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 |