|
|||||||||
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.INetworkSourceProxy
public class INetworkSourceProxy
Provides access to members that specify the properties of a source in a network dataset.
The INetworkSource interface is used to access the properties of the network source, such as its name and source type.
To access the NetworkSource object for an existing network dataset source, use the Source, SourceByID, or SourceByName methods on the INetworkDataset interface.
The INetworkSource interface is also used to define a new network source. To create a new network source, cocreate the appropriate NetworkSource object, specify its properties, and pass the object to the INetworkBuild::AddSource method on the 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 | |
---|---|
|
INetworkSourceProxy()
|
|
INetworkSourceProxy(Object obj)
|
protected |
INetworkSourceProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getElementType()
Network element type of this network source. |
int |
getID()
Unique identifier of this network source. |
String |
getName()
Name of the class associated with this network source. |
INetworkSourceDirections |
getNetworkSourceDirections()
The driving directions settings for this network source. |
IPropertySet |
getProperties()
Property set of this network source. |
int |
getSourceType()
Type of network source. |
boolean |
isUsesGeometryInConnectivity()
Indicates if the source object's geometry is used in determining network connectivity. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setElementType(int elementType)
Network element type of this network source. |
void |
setName(String sourceName)
Name of the class associated with this network source. |
void |
setNetworkSourceDirectionsByRef(INetworkSourceDirections sourceDirections)
The driving directions settings for this network source. |
void |
setProperties(IPropertySet sourceProperties)
Property set of this network source. |
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 INetworkSourceProxy()
public INetworkSourceProxy(Object obj) throws IOException
IOException
protected INetworkSourceProxy(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 int getID() throws IOException, AutomationException
Each source in a Network Dataset is identified by a unique value, the ID property. The ID property can be used to get a reference to the corresponding network source through the INetworkDataset::SourceByID property. This ID is different than the ID value returned by the IObjectClass::ObjectClassID property.
As with ObjectID values, SourceID values are never reused. They are not guaranteed to be sequential, but are guaranteed to be in increasing order based on when the source was added to the network. Unless the source is added or deleted from the DataElement, the SourceID values will remain constant after the INetworkDataset::UpdateSchema method is called.
getID
in interface INetworkSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getElementType() throws IOException, AutomationException
getElementType
in interface INetworkSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setElementType(int elementType) throws IOException, AutomationException
setElementType
in interface INetworkSource
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
The Name property for the NetworkSource is exactly the same as the name of the reference FeatureClass. The feature classes that participate in the network dataset can be opened from the NetworkDataset by simply calling IFeatureClassContainer::ClassByName and passing in this Name.
NOTE: For SDC network datasets, not all network sources have a reference feature class. Only those feature classes returned in the IFeatureClassContainer::Classes enumeration can be opened.
Unlike other network dataset types, the source names for an SDC network dataset are not the same as the feature class names of the SDC feature classes. For SDC data, the source name for the edge feature source is the same as the network dataset name (obtained from IDataset::Name).
getName
in interface INetworkSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String sourceName) throws IOException, AutomationException
setName
in interface INetworkSource
sourceName
- The sourceName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getProperties() throws IOException, AutomationException
getProperties
in interface INetworkSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setProperties(IPropertySet sourceProperties) throws IOException, AutomationException
setProperties
in interface INetworkSource
sourceProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUsesGeometryInConnectivity() throws IOException, AutomationException
The UsesGeometryInConnectivity property indicates whether the geometries of the features in a NetworkSource are used in determining how its network elements are connected to each other.
For example, the geometries of the features in an EdgeFeatureSource and JunctionFeatureSource are used to determine how the generated edge and junction elements connect to each other. The UsesGeometryInConnectivity property for these sources is True.
In contrast, the geometries of the features in a TurnFeatureSource are not used in deteriming how the turn elements are associated with the edges and junctions of the network -- the fields of the TurnFeatureSource feature class determine this. The UsesGeometryInConnectivity property for the TurnFeatureSource is False.
isUsesGeometryInConnectivity
in interface INetworkSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSourceType() throws IOException, AutomationException
getSourceType
in interface INetworkSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkSourceDirections getNetworkSourceDirections() throws IOException, AutomationException
The NetworkSourceDirections property specifies the information needed to generate driving directions when reporting routes traversing elements from this NetworkSource.
getNetworkSourceDirections
in interface INetworkSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNetworkSourceDirectionsByRef(INetworkSourceDirections sourceDirections) throws IOException, AutomationException
setNetworkSourceDirectionsByRef
in interface INetworkSource
sourceDirections
- A reference to a com.esri.arcgis.geodatabase.INetworkSourceDirections (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 |