|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetworkAttribute
Provides access to members that specify the properties of an attribute in a network dataset.
INetworkAttribute has been superseded by INetworkAttribute3.
Method Summary | |
---|---|
int |
getDataType()
Type of data used in this network attribute. |
int |
getID()
Unique identifier of this network attribute. |
String |
getName()
Name of this network attribute. |
int |
getUnits()
Units of this network attribute. |
int |
getUsageType()
Usage type of this network attribute. |
void |
setDataType(int dataType)
Type of data used in this network attribute. |
void |
setName(String attributeName)
Name of this network attribute. |
void |
setUnits(int units)
Units of this network attribute. |
void |
setUsageType(int usageType)
Usage type of this network attribute. |
Method Detail |
---|
String getName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String attributeName) throws IOException, AutomationException
attributeName
- The attributeName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDataType() throws IOException, AutomationException
The DataType for the network attribute can be either Integer, Float, Double, or Boolean.
Depending on the UsageType for the network attribute, only certain DataTypes are allowed:
UsageType: | Allowed DataTypes: |
esriNAUTCost | esriNADTInteger, esriNADTFloat, esriNADTDouble |
esriNAUTDescriptor | esriNADTInteger, esriNADTFloat, esriNADTDouble, esriNADTBoolean |
esriNAUTRestriction | esriNADTBoolean |
esriNAUTHierarchy | esriNADTInteger |
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDataType(int dataType) throws IOException, AutomationException
dataType
- A com.esri.arcgis.geodatabase.esriNetworkAttributeDataType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getUsageType() throws IOException, AutomationException
The UsageType for the network attribute can be either Cost, Descriptor, Restriction, or Hierarchy.
Depending on the UsageType for the network attribute, only certain DataTypes are allowed:
UsageType: | Allowed DataTypes: |
esriNAUTCost | esriNADTInteger, esriNADTFloat, esriNADTDouble |
esriNAUTDescriptor | esriNADTInteger, esriNADTFloat, esriNADTDouble, esriNADTBoolean |
esriNAUTRestriction | esriNADTBoolean |
esriNAUTHierarchy | esriNADTInteger |
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUsageType(int usageType) throws IOException, AutomationException
usageType
- A com.esri.arcgis.geodatabase.esriNetworkAttributeUsageType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getUnits() throws IOException, AutomationException
If the attribute is not measured in units of distance or time, specify the Units as esriNAUUnknown.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUnits(int units) throws IOException, AutomationException
units
- A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (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 |