|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.EvaluatedNetworkAttribute
public class EvaluatedNetworkAttribute
A container for describing a network dataset attribute and its evaluators.
Network dataset attributes control traversability over the network. 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.
An EvaluatedNetworkAttribute object is a light weight object that holds the information about a network dataset attribute that determines its values by use of network evaluators. Examples of network evaluators are the NetworkConstantEvaluator, NetworkFieldEvaluator, and NetworkScriptEvaluator.
The NetworkAttribute or EvaluatedNetworkAttribute object for an existing network dataset can be accessed through the INetworkDataset interface.
Constructor Summary | |
---|---|
EvaluatedNetworkAttribute()
Constructs a EvaluatedNetworkAttribute using ArcGIS Engine. |
|
EvaluatedNetworkAttribute(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. EvaluatedNetworkAttribute theEvaluatedNetworkAttribute = (EvaluatedNetworkAttribute) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getDataType()
Type of data used in this network attribute. |
INetworkEvaluator |
getDefaultEvaluator(int elementType)
Evaluator used to derive attribute values for the given element type when an evaluator is not specified for a network element's source. |
IDENetworkDataset |
getDENetworkDataset()
Evaluator used to derive values from the given network source for this network attribute. |
INetworkEvaluator |
getEvaluator(INetworkSource networkSource,
int direction)
Evaluator used to derive values from the given network source for this network attribute. |
int |
getID()
Unique identifier of this network attribute. |
String |
getName()
Name of this network attribute. |
IArray |
getParameters()
Array of parameters for this network attribute. |
int |
getUnits()
Units of this network attribute. |
int |
getUsageType()
Usage type of this network attribute. |
int |
hashCode()
the hashcode for this object |
boolean |
isTimeAware(int elementType)
Indicates if the network attribute is time aware. |
boolean |
isUseByDefault()
Indicates if this network attribute is to be used by default. |
void |
refresh()
Refresh the network evaluators assigned to this network attribute. |
void |
setDataType(int dataType)
Type of data used in this network attribute. |
void |
setDefaultEvaluatorByRef(int elementType,
INetworkEvaluator evaluator)
Evaluator used to derive attribute values for the given element type when an evaluator is not specified for a network element's source. |
void |
setEvaluatorByRef(INetworkSource networkSource,
int direction,
INetworkEvaluator evaluator)
Evaluator used to derive values from the given network source for this network attribute. |
void |
setName(String attributeName)
Name of this network attribute. |
void |
setParametersByRef(IArray parameters)
Array of parameters for this network attribute. |
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 |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public EvaluatedNetworkAttribute() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic EvaluatedNetworkAttribute(Object obj) throws IOException
EvaluatedNetworkAttribute theEvaluatedNetworkAttribute = (EvaluatedNetworkAttribute) obj;
obj
to EvaluatedNetworkAttribute
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
getName
in interface INetworkAttribute
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String attributeName) throws IOException, AutomationException
setName
in interface INetworkAttribute
attributeName
- The attributeName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getID() throws IOException, AutomationException
getID
in interface INetworkAttribute
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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 |
getDataType
in interface INetworkAttribute
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDataType(int dataType) throws IOException, AutomationException
setDataType
in interface INetworkAttribute
dataType
- A com.esri.arcgis.geodatabase.esriNetworkAttributeDataType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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 |
getUsageType
in interface INetworkAttribute
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUsageType(int usageType) throws IOException, AutomationException
setUsageType
in interface INetworkAttribute
usageType
- A com.esri.arcgis.geodatabase.esriNetworkAttributeUsageType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getUnits() throws IOException, AutomationException
If the attribute is not measured in units of distance or time, specify the Units as esriNAUUnknown.
getUnits
in interface INetworkAttribute
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUnits(int units) throws IOException, AutomationException
setUnits
in interface INetworkAttribute
units
- A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getParameters() throws IOException, AutomationException
This property provides access to the IArray interface that holds the collection of NetworkAttributeParameter objects that are available for this NetworkAttribute.
getParameters
in interface INetworkAttribute2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setParametersByRef(IArray parameters) throws IOException, AutomationException
This property provides access to the IArray interface that holds the collection of NetworkAttributeParameter objects that are available for this NetworkAttribute.
setParametersByRef
in interface INetworkAttribute2
parameters
- A reference to a com.esri.arcgis.system.IArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh() throws IOException, AutomationException
Calling 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 INetworkAttribute2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUseByDefault() throws IOException, AutomationException
If 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 INetworkAttribute2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUseByDefault(boolean useByDefault) throws IOException, AutomationException
setUseByDefault
in interface INetworkAttribute2
useByDefault
- The useByDefault (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTimeAware(int elementType) throws IOException, AutomationException
isTimeAware
in interface INetworkAttribute3
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultEvaluatorByRef(int elementType, INetworkEvaluator evaluator) throws IOException, AutomationException
setDefaultEvaluatorByRef
in interface IEvaluatedNetworkAttribute
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)evaluator
- A reference to a com.esri.arcgis.geodatabase.INetworkEvaluator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkEvaluator getDefaultEvaluator(int elementType) throws IOException, AutomationException
getDefaultEvaluator
in interface IEvaluatedNetworkAttribute
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEvaluatorByRef(INetworkSource networkSource, int direction, INetworkEvaluator evaluator) throws IOException, AutomationException
setEvaluatorByRef
in interface IEvaluatedNetworkAttribute
networkSource
- A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)direction
- A com.esri.arcgis.geodatabase.esriNetworkEdgeDirection constant (in)evaluator
- A reference to a com.esri.arcgis.geodatabase.INetworkEvaluator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkEvaluator getEvaluator(INetworkSource networkSource, int direction) throws IOException, AutomationException
getEvaluator
in interface IEvaluatedNetworkAttribute
networkSource
- A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)direction
- A com.esri.arcgis.geodatabase.esriNetworkEdgeDirection constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDENetworkDataset getDENetworkDataset() throws IOException, AutomationException
getDENetworkDataset
in interface IEvaluatedNetworkAttribute2
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 |