|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.NetworkForwardStar
public class NetworkForwardStar
A container for querying information about adjacent elements in the network dataset.
For a given network junction element and, optionally, incoming edge elements in a network dataset, the NetworkForwardStar object efficiently queries adjacent network elements and their attribute values. This query can be performed repeatedly using the NetworkForwardStar on the adjacent elements returned by previous queries, allowing one to traverse throughout the network to perform a network analysis.
The NetworkForwardStar is not merely the object through which to retrieve adjacency information from the elements of a network dataset. While this is indeed part of its intended usage, the network dataset itself already provides a raw, unfiltered view of all of the data stored within the dataset (including all elements' raw attribute and adjacency information). Therefore, clients of the network dataset can retrieve adjacency information and attribute data directly from the elements themselves, without the need for any intermediate objects. The true purpose of the NetworkForwardStar component is to provide an automatically-filtered, problem-specific view of this raw information to be used by client algorithms of the network dataset (e.g., which restrictions, U-turn policies, attribute adjustments, etc. to honor during network adjacency traversal).
The NetworkForwardStar object is created by calling the INetworkQuery::CreateForwardStar method on the network dataset. This method can only be called when a Network license is checked out.
| Constructor Summary | |
|---|---|
NetworkForwardStar(Object obj)
Construct a NetworkForwardStar using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
void |
addCachedAttribute(INetworkAttribute attribute)
Adds a network attribute to the NetworkForwardStar object for optimized querying of element attribute values. |
void |
addRestriction(INetworkAttribute attribute)
Adds a restriction network attribute to the NetworkForwardStar object to filter elements returned. |
boolean |
equals(Object o)
Compare this object with another |
int |
getBacktrack()
Policy on whether to filter the from-edge element from the output NetworkForwardStarAdjacencies object. |
INetworkAttribute |
getHierarchyAttribute()
Network attribute containing the hierarchy values for each network element. |
int |
getMaxHierarchyValue()
Maximum hierarchy attribute value permitted to be returned in the NetworkForwardStarAdjacencies object. |
INetworkDataset |
getNetworkDataset()
Network dataset on which the forward star object is querying. |
IEnumNetworkElement |
getNonTraversableElements(int elementType,
int direction)
The collection of network elements of the given type that are set to not traversable. |
INetworkAttribute |
getRestriction(int index)
Restriction network attribute by index applied to the NetworkForwardStar object. |
int |
getRestrictionCount()
Number of restriction network attributes applied to the NetworkForwardStar object. |
int |
hashCode()
the hashcode for this object |
boolean |
isFiltered(INetworkElement element)
Indicates if the given network element is filtered out from the adjacencies object. |
boolean |
isForwardTraversal()
Indicates if the forward star is used to model forward traversal through the network dataset. |
boolean |
isTraversable(INetworkElement element)
Indicates if the given network element is travserable by the NetworkForwardStar object. |
void |
queryAdjacencies(INetworkJunction atJunction,
INetworkEdge fromEdge,
INetworkEdge lastExteriorEdge,
INetworkForwardStarAdjacencies adjacencies)
Finds all network elements that are adjacent to the given sequence of network elements. |
void |
removeAllCachedAttributes()
Clears the collection of attributes that are cached. |
void |
removeRestriction(int index)
Removes the given restriction network attribute by index from the NetworkForwardStar object. |
void |
setAllTraversable(int elementType,
boolean traversable)
Sets all network elements of the given element type to be traversable or non-traversable. |
void |
setBacktrack(int backtrack)
Policy on whether to filter the from-edge element from the output NetworkForwardStarAdjacencies object. |
void |
setHierarchyAttributeByRef(INetworkAttribute attribute)
Network attribute containing the hierarchy values for each network element. |
void |
setIsForwardTraversal(boolean isForwardTraversal)
Indicates if the forward star is used to model forward traversal through the network dataset. |
void |
setMaxHierarchyValue(int maxValue)
Maximum hierarchy attribute value permitted to be returned in the NetworkForwardStarAdjacencies object. |
void |
setTraversable(INetworkElement element,
boolean traversable)
Indicates if the given network element is travserable by the NetworkForwardStar object. |
void |
setTraversable2(IEnumNetworkElement elements,
boolean traversable)
Sets the given network elements to be traversable or non-traversable. |
| 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 NetworkForwardStar(Object obj)
throws IOException
obj to NetworkForwardStar. *
NetworkForwardStar o = (NetworkForwardStar)obj; // will not work
NetworkForwardStar o = new NetworkForwardStar(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
NetworkForwardStar theNetworkForwardStar = (NetworkForwardStar) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void queryAdjacencies(INetworkJunction atJunction,
INetworkEdge fromEdge,
INetworkEdge lastExteriorEdge,
INetworkForwardStarAdjacencies adjacencies)
throws IOException,
AutomationException
This method has been superceded by the QueryAdjacencies method on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
queryAdjacencies in interface INetworkForwardStaratJunction - A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)fromEdge - A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)lastExteriorEdge - A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)adjacencies - A reference to a com.esri.arcgis.geodatabase.INetworkForwardStarAdjacencies (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFiltered(INetworkElement element)
throws IOException,
AutomationException
isFiltered in interface INetworkForwardStarelement - A reference to a com.esri.arcgis.geodatabase.INetworkElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBacktrack()
throws IOException,
AutomationException
This property has been superceded by the BacktrackPolicy property on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
getBacktrack in interface INetworkForwardStarSetupIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBacktrack(int backtrack)
throws IOException,
AutomationException
setBacktrack in interface INetworkForwardStarSetupbacktrack - A com.esri.arcgis.geodatabase.esriNetworkForwardStarBacktrack constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isForwardTraversal()
throws IOException,
AutomationException
This property has been superceded by the IsForwardTraversal property on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
isForwardTraversal in interface INetworkForwardStarSetupIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIsForwardTraversal(boolean isForwardTraversal)
throws IOException,
AutomationException
setIsForwardTraversal in interface INetworkForwardStarSetupisForwardTraversal - The isForwardTraversal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkDataset getNetworkDataset()
throws IOException,
AutomationException
This property has been superceded by the NetworkDataset property on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
getNetworkDataset in interface INetworkForwardStarSetupIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addCachedAttribute(INetworkAttribute attribute)
throws IOException,
AutomationException
This method has been deprecated.
addCachedAttribute in interface INetworkForwardStarSetupattribute - A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllCachedAttributes()
throws IOException,
AutomationException
This method has been deprecated.
removeAllCachedAttributes in interface INetworkForwardStarSetupIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addRestriction(INetworkAttribute attribute)
throws IOException,
AutomationException
This method has been superceded by the AddRestrictionAttribute method on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
addRestriction in interface INetworkForwardStarSetupattribute - A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkAttribute getRestriction(int index)
throws IOException,
AutomationException
getRestriction in interface INetworkForwardStarSetupindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getRestrictionCount()
throws IOException,
AutomationException
This property has been superceded by the RestrictionAttributeCount property on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
getRestrictionCount in interface INetworkForwardStarSetupIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeRestriction(int index)
throws IOException,
AutomationException
This property has been superceded by the RemoveRestrictionAttributes method on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
removeRestriction in interface INetworkForwardStarSetupindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHierarchyAttributeByRef(INetworkAttribute attribute)
throws IOException,
AutomationException
setHierarchyAttributeByRef in interface INetworkForwardStarSetupattribute - A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkAttribute getHierarchyAttribute()
throws IOException,
AutomationException
This property has been superceded by the HierarchyAttribute property on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
getHierarchyAttribute in interface INetworkForwardStarSetupIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaxHierarchyValue(int maxValue)
throws IOException,
AutomationException
setMaxHierarchyValue in interface INetworkForwardStarSetupmaxValue - The maxValue (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaxHierarchyValue()
throws IOException,
AutomationException
This property has been superceded by the MaxTraversableHierarchyValue property on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
getMaxHierarchyValue in interface INetworkForwardStarSetupIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isTraversable(INetworkElement element)
throws IOException,
AutomationException
isTraversable in interface INetworkForwardStarSetupelement - A reference to a com.esri.arcgis.geodatabase.INetworkElement (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTraversable(INetworkElement element,
boolean traversable)
throws IOException,
AutomationException
The SetTraversable method with a Traversable parameter value of True sets all network elements in the given enumeration as Traversable.
The SetTraversable method with a Traversable parameter value of False sets all network elements in the given enumeration as not Traversable.
setTraversable in interface INetworkForwardStarSetupelement - A reference to a com.esri.arcgis.geodatabase.INetworkElement (in)traversable - The traversable (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTraversable2(IEnumNetworkElement elements,
boolean traversable)
throws IOException,
AutomationException
setTraversable2 in interface INetworkForwardStarSetupelements - A reference to a com.esri.arcgis.geodatabase.IEnumNetworkElement (in)traversable - The traversable (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAllTraversable(int elementType,
boolean traversable)
throws IOException,
AutomationException
This property has been superceded by the RemoveElementRestrictions property on the INetworkForwardStarEx interface. Please refer to that interface for usage instructions.
setAllTraversable in interface INetworkForwardStarSetupelementType - A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)traversable - The traversable (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumNetworkElement getNonTraversableElements(int elementType,
int direction)
throws IOException,
AutomationException
getNonTraversableElements in interface INetworkForwardStarSetupelementType - A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)direction - A com.esri.arcgis.geodatabase.esriNetworkEdgeDirection 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 | ||||||||