|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 a NetworkAttribute or EvaluatedNetworkAttribute object, specify its properties, and pass the object to the INetworkBuild::AddAttribute method on the network dataset.
| Method Summary | |
int |
getDataType()
Type of data used in this network attribute. |
int |
getID()
Unique identifier of this network attribute. |
java.lang.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(java.lang.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 |
public java.lang.String getName()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(java.lang.String attributeName)
throws java.io.IOException,
AutomationException
attributeName - The attributeName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getID()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDataType()
throws java.io.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 |
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataType(int dataType)
throws java.io.IOException,
AutomationException
dataType - A com.esri.arcgis.geodatabase.esriNetworkAttributeDataType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getUsageType()
throws java.io.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 |
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUsageType(int usageType)
throws java.io.IOException,
AutomationException
usageType - A com.esri.arcgis.geodatabase.esriNetworkAttributeUsageType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getUnits()
throws java.io.IOException,
AutomationException
If the attribute is not measured in units of distance or time, specify the Units as esriNAUUnknown.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUnits(int units)
throws java.io.IOException,
AutomationException
units - A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (in)
java.io.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 | |||||||||