|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.NetworkAttribute
A container for describing a network dataset attribute.
A NetworkAttribute object is a light weight object that holds the information about a network attribute in a network dataset.
Network attributes control traversability over the network dataset. They specify properties of junctions, edge, and turns used as input for network solvers, such as time travel of road segments, speeds along a road, and whether a given road is one-way.
The NetworkAttribute or EvaluatedNetworkAttribute object for an existing network dataset can be accessed through the INetworkDataset interface.
| Constructor Summary | |
NetworkAttribute()
Constructs a NetworkAttribute using ArcGIS Engine. |
|
NetworkAttribute(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
java.lang.Object |
describe(java.lang.String name)
|
boolean |
equals(java.lang.Object o)
Compare this object with another |
IGPDescribe |
getAsIGPDescribe()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
INetworkAttribute |
getAsINetworkAttribute()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
INetworkAttribute2 |
getAsINetworkAttribute2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
static java.lang.String |
getClsid()
|
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. |
IArray |
getParameters()
Array of parameters. |
int |
getUnits()
Units of this network attribute. |
int |
getUsageType()
Usage type of this network attribute. |
int |
hashCode()
the hashcode for this object |
boolean |
isUseByDefault()
Indicates if this network attribute is to be used by default. |
void |
refresh()
. |
void |
setDataType(int dataType)
Type of data used in this network attribute. |
void |
setName(java.lang.String attributeName)
Name of this network attribute. |
void |
setParametersByRef(IArray parameters)
Array of parameters. |
void |
setUnits(int units)
Units of this network attribute. |
void |
setUsageType(int usageType)
Usage type of this network attribute. |
void |
setUseByDefault(boolean useByDefault)
Indicates if this network attribute is to be used by default. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NetworkAttribute()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public NetworkAttribute(java.lang.Object obj)
throws java.io.IOException
obj to NetworkAttribute. NetworkAttribute theNetworkAttribute = (NetworkAttribute) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public INetworkAttribute getAsINetworkAttribute()
public INetworkAttribute2 getAsINetworkAttribute2()
public IGPDescribe getAsIGPDescribe()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String getName()
throws java.io.IOException,
AutomationException
INetworkAttribute
getName in interface INetworkAttributejava.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
INetworkAttribute
setName in interface INetworkAttributeattributeName - The attributeName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getID()
throws java.io.IOException,
AutomationException
INetworkAttribute
getID in interface INetworkAttributejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDataType()
throws java.io.IOException,
AutomationException
INetworkAttributeThe 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 |
getDataType in interface INetworkAttributeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDataType(int dataType)
throws java.io.IOException,
AutomationException
INetworkAttribute
setDataType in interface INetworkAttributedataType - 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
INetworkAttributeThe 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 |
getUsageType in interface INetworkAttributeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setUsageType(int usageType)
throws java.io.IOException,
AutomationException
INetworkAttribute
setUsageType in interface INetworkAttributeusageType - A com.esri.arcgis.geodatabase.esriNetworkAttributeUsageType constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getUnits()
throws java.io.IOException,
AutomationException
INetworkAttributeIf the attribute is not measured in units of distance or time, specify the Units as esriNAUUnknown.
getUnits in interface INetworkAttributeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setUnits(int units)
throws java.io.IOException,
AutomationException
INetworkAttribute
setUnits in interface INetworkAttributeunits - A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getParameters()
throws java.io.IOException,
AutomationException
INetworkAttribute2This property provides access to the IArray interface that holds the collection of NetworkAttributeParameter objects that are available for this NetworkAttribute.
getParameters in interface INetworkAttribute2AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setParametersByRef(IArray parameters)
throws java.io.IOException,
AutomationException
INetworkAttribute2
setParametersByRef in interface INetworkAttribute2parameters - A reference to a com.esri.arcgis.system.IArray (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh()
throws java.io.IOException,
AutomationException
INetworkAttribute2Calling Refresh propogates the call to INetworkEvaluator2::Refresh on the attribute's underlying network evaluators that implement INetworkEvaluator2. This gives the evaluator an opportunity to update its state based on current data or parameter values. This method is called by the network analyst solvers after setting INetworkAttribute2::Parameters prior to performing the solve operation.
refresh in interface INetworkAttribute2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseByDefault()
throws java.io.IOException,
AutomationException
INetworkAttribute2If the UseByDefault property is set to True for a NetworkAttribute, the network attribute will automatically be set as an option (e.g., impedance, restriction, hierarchy) when a new network analysis layer is created in ArcMap.
isUseByDefault in interface INetworkAttribute2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseByDefault(boolean useByDefault)
throws java.io.IOException,
AutomationException
INetworkAttribute2
setUseByDefault in interface INetworkAttribute2useByDefault - The useByDefault (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.Object describe(java.lang.String name)
throws java.io.IOException,
AutomationException
describe in interface IGPDescribename - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||