|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDENetworkDataset
Provides access to members that describe network dataset data elements.
The IDENetworkDataset interface should be used to access certain properties of the Network Dataset, such as Hierarchy information. The IDENetworkDataset interface in combination with the INetworkBuild::UpdateSchema method, should also be used for combining schema updates into a single operation, such as adding multiple sources or attributes to a network dataset. This is the same methodology that is used by the network dataset property page in ArcCatalog.
The access the data element for a network dataset, QI to the IDatasetComponent interface and use the DataElement method
Method Summary | |
---|---|
IArray |
getAttributes()
Array of network attributes in this network dataset. |
String |
getConfigurationKeyword()
The database configuration keyword for the network dataset. |
INetworkDirections |
getDirections()
The driving directions settings for the network dataset. |
INetworkAttribute |
getHierarchyClusterAttribute()
The network attribute that is used to optimize network building for hierarchical traversal. |
int |
getHierarchyLevelCount()
The number of hierarchy levels in the network dataset. |
int |
getMaxValueForHierarchy(int level)
The maximum value for the specified hierarchy level in the network dataset. |
int |
getNetworkType()
The type of the network dataset. |
IPropertySet |
getProperties()
Property set of this network dataset. |
IArray |
getSources()
Array of network sources in this network dataset. |
IPropertySet |
getUserData()
User specified property set of this network dataset. |
boolean |
isBuildable()
Indicates if this network dataset is buildable. |
boolean |
isSupportsTurns()
Indicates if this network dataset supports network turn elements. |
void |
setAttributesByRef(IArray attributes)
Array of network attributes in this network dataset. |
void |
setBuildable(boolean supportsTurns)
Indicates if this network dataset is buildable. |
void |
setConfigurationKeyword(String configKeyword)
The database configuration keyword for the network dataset. |
void |
setDirectionsByRef(INetworkDirections directions)
The driving directions settings for the network dataset. |
void |
setHierarchyClusterAttribute(INetworkAttribute attribute)
The network attribute that is used to optimize network building for hierarchical traversal. |
void |
setHierarchyLevelCount(int count)
The number of hierarchy levels in the network dataset. |
void |
setMaxValueForHierarchy(int level,
int value)
The maximum value for the specified hierarchy level in the network dataset. |
void |
setNetworkType(int type)
The type of the network dataset. |
void |
setProperties(IPropertySet datasetProperties)
Property set of this network dataset. |
void |
setSourcesByRef(IArray sources)
Array of network sources in this network dataset. |
void |
setSupportsTurns(boolean supportsTurns)
Indicates if this network dataset supports network turn elements. |
void |
setUserData(IPropertySet userProperties)
User specified property set of this network dataset. |
Method Detail |
---|
int getNetworkType() throws IOException, AutomationException
The NetworkType property returns the type of network dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNetworkType(int type) throws IOException, AutomationException
type
- A com.esri.arcgis.geodatabase.esriNetworkDatasetType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray getAttributes() throws IOException, AutomationException
The Attributes property is used to set or get the collection of attributes associated with a network dataset. The Attributes property requires an IArray object which can be used to add, remove or iterate over the attributes.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAttributesByRef(IArray attributes) throws IOException, AutomationException
attributes
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getConfigurationKeyword() throws IOException, AutomationException
If the network dataset has been created in a File or ArcSDE geodatabase, then you may specify a configuration keyword for building your network dataset. A configuration keyword is used to specify storage and location parameters for optimal space and disk location efficiency.
The configurationKeywords for an ArcSDE instance are set up by the ArcSDE data administrator, the list of available keywords supported by a workspace may be obtained using the IWorkspaceConfiguration interface. For more information on configuration keywords, refer to the ArcSDE documentation.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConfigurationKeyword(String configKeyword) throws IOException, AutomationException
configKeyword
- The configKeyword (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IArray getSources() throws IOException, AutomationException
The Sources property is used to set or get the collection of sources associated with a network dataset. The Sources property requires an IArray object which can be used to add, remove or iterate over the attributes. Every network dataset has a system junction source; this source is added to the network dataset once the UpdateSchema method is called with the supplied data element. The system junction source is created once the first source is added to the network.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSourcesByRef(IArray sources) throws IOException, AutomationException
sources
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkDirections getDirections() throws IOException, AutomationException
The Directions property is used to specify or return the Directions for the network dataset. The network dataset must have certain parameters in order to specify directions:
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDirectionsByRef(INetworkDirections directions) throws IOException, AutomationException
directions
- A reference to a com.esri.arcgis.geodatabase.INetworkDirections (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSupportsTurns() throws IOException, AutomationException
The SupportsTurns property indicates whether the network dataset can support turns. Once created, the turn support property of a network dataset cannot be changed. Specifying that a network dataset can support turns will allow Turn sources to be added to the network and also allow Turn evaluators to be added to the network dataset. This will allow evaluators such as “All left hand turns will take 15 seconds” to be specified.
If not set on the data element, the SupportsTurns property will default to True for shapefile and geodatabase networks.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSupportsTurns(boolean supportsTurns) throws IOException, AutomationException
supportsTurns
- The supportsTurns (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isBuildable() throws IOException, AutomationException
The Buildable property indicates whether the network dataset can be built with the INetworkBuild::BuildNetwork method. All shapefile and Geodatabase network datasets built through the Network Dataset Wizard will return a value of True. SDC based network datasets will return a value of False.
If not set on the data element, the Buildable property will default to True for shapefile and geodatabase networks.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBuildable(boolean supportsTurns) throws IOException, AutomationException
supportsTurns
- The supportsTurns (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPropertySet getUserData() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUserData(IPropertySet userProperties) throws IOException, AutomationException
userProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPropertySet getProperties() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setProperties(IPropertySet datasetProperties) throws IOException, AutomationException
datasetProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkAttribute getHierarchyClusterAttribute() throws IOException, AutomationException
The HierarchyClusterAttribute property is used to specify or return the attribute that will be used for specifying Hierarchy. The attribute must be of type esriNAUTHierarchy.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHierarchyClusterAttribute(INetworkAttribute attribute) throws IOException, AutomationException
attribute
- A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHierarchyLevelCount(int count) throws IOException, AutomationException
The HierarchyLevelCount property is used to return the levels supported by the hierarchy attribute. By default this value is 3, since only 3 levels of hierarchy are supported on the network dataset.
count
- The count (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHierarchyLevelCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxValueForHierarchy(int level, int value) throws IOException, AutomationException
level
- The level (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxValueForHierarchy(int level) throws IOException, AutomationException
level
- The level (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 |