|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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)
AddCachedAttribute has been deprecated and should not be called. |
void |
addEdgeRestriction(INetworkEdge edge,
double fromPosition,
double toPosition)
Restricts the traversability of a range on an edge element in the adjacency queries. |
void |
addJunctionRestriction(INetworkJunction junction)
Restricts a junction element from being returned in the adjacency queries. |
void |
addRestriction(INetworkAttribute attribute)
Adds a restriction network attribute to the NetworkForwardStar object to filter elements returned. |
void |
addRestrictionAttribute(INetworkAttribute attribute)
Adds a restriction network attribute to the NetworkForwardStar object to filter elements from adjacency queries. |
void |
addTurnRestriction(INetworkTurn turn)
Restricts a turn in the adjacency queries. |
void |
adjustEdgeAttributeValue(INetworkEdge edge,
double fromPosition,
double toPosition,
INetworkAttribute attribute,
int adjustmentType,
Object value)
Adjusts the value of a network attribute for a range on an edge element. |
void |
adjustJunctionAttributeValue(INetworkJunction junction,
INetworkAttribute attribute,
int adjustmentType,
Object value)
Adjusts the value of a network attribute for a junction element. |
void |
adjustTurnAttributeValue(INetworkTurn turn,
INetworkAttribute attribute,
int adjustmentType,
Object value)
Adjusts the value of a network attribute for a turn element. |
boolean |
equals(Object o)
Compare this object with another |
int |
getBacktrack()
Policy on when to return the from-edge in the NetworkForwardStarAdjacencies object. |
int |
getBacktrackPolicy()
Policy on when to return the from-edge in the 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. |
int |
getMaxTraversableHierarchyValue()
Maximum hierarchy attribute value for elements permitted to be returned in the adjacency queries. |
INetworkDataset |
getNetworkDataset()
Network dataset on which the NetworkForwardStar 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. |
INetworkAttribute |
getRestrictionAttribute(int index)
Restriction network attribute by index in the NetworkForwardStar object. |
int |
getRestrictionAttributeCount()
Number of restriction network attributes currently applied to the NetworkForwardStar object. |
int |
getRestrictionCount()
Number of restriction network attributes applied to the NetworkForwardStar object. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isFiltered(INetworkElement element)
Indicates if the given network element is filtered out from the adjacencies object. |
boolean |
isForwardTraversal()
Indicates if the NetworkForwardStar object is used to model forward traversal through the network dataset. |
boolean |
isRestricted(INetworkElement element)
Indicates if the given network element is restricted from traversal in the NetworkForwardStar object. |
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 |
queryAttributeCutoffRange(INetworkEdge edge,
INetworkAttribute attribute,
double queryPosition,
Object cutoffValue,
double[] fromPosition,
double[] toPosition)
Returns the range of accessible positions within a specified attribute cutoff from a query position along an edge element, respective to any existing attribute adjustments along the edge. |
void |
queryEdge(int eID,
int direction,
INetworkEdge edge)
Performs a network edge element query by element ID and edge direction and populates the given edge element object. |
void |
queryJunction(int eID,
INetworkJunction junction)
Performs a network junction element query by element ID and populates the given junction element object. |
void |
queryTraversableRange(INetworkEdge edge,
double queryPosition,
double[] fromPosition,
double[] toPosition,
boolean[] isFromPositionAccessible,
boolean[] isToPositionAccessible)
Returns the range of accessible positions from a query position along an edge element, respective to any existing restrictions along the edge. |
void |
queryTurn(int eID,
INetworkTurn turn)
Performs a network turn element query by element ID and populates the given turn element object. |
void |
removeAllCachedAttributes()
RemoveAllCachedAttributes has been deprecated and should not be called. |
void |
removeAttributeValueAdjustments()
Removes all element-specific attribute value adjustments currently applied to the NetworkForwardStar object. |
void |
removeElementRestrictions()
Removes all element-specific restrictions currently applied to the NetworkForwardStar object. |
void |
removeRestriction(int index)
Removes the given restriction network attribute by index from the NetworkForwardStar object. |
void |
removeRestrictionAttributes()
Removes all restriction network attributes currently applied to 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 when to return the from-edge in the NetworkForwardStarAdjacencies object. |
void |
setBacktrackPolicy(int backtrack)
Policy on when to return the from-edge in the NetworkForwardStarAdjacencies object. |
void |
setHierarchyAttributeByRef(INetworkAttribute attribute)
Network attribute containing the hierarchy values for each network element. |
void |
setIsForwardTraversal(boolean isForwardTraversal)
Indicates if the NetworkForwardStar object 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 |
setMaxTraversableHierarchyValue(int maxValue)
Maximum hierarchy attribute value for elements permitted to be returned in the adjacency queries. |
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 Object
public 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 INetworkForwardStar
queryAdjacencies
in interface INetworkForwardStarEx
atJunction
- 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 INetworkForwardStar
element
- 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 INetworkForwardStarSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBacktrack(int backtrack) throws IOException, AutomationException
setBacktrack
in interface INetworkForwardStarSetup
backtrack
- 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 INetworkForwardStarEx
isForwardTraversal
in interface INetworkForwardStarSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIsForwardTraversal(boolean isForwardTraversal) throws IOException, AutomationException
setIsForwardTraversal
in interface INetworkForwardStarEx
setIsForwardTraversal
in interface INetworkForwardStarSetup
isForwardTraversal
- 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 INetworkForwardStarEx
getNetworkDataset
in interface INetworkForwardStarSetup
IOException
- 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 INetworkForwardStarSetup
attribute
- 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 INetworkForwardStarSetup
IOException
- 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 INetworkForwardStarSetup
attribute
- 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 INetworkForwardStarSetup
index
- 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 INetworkForwardStarSetup
IOException
- 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 INetworkForwardStarSetup
index
- 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 INetworkForwardStarEx
setHierarchyAttributeByRef
in interface INetworkForwardStarSetup
attribute
- 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 INetworkForwardStarEx
getHierarchyAttribute
in interface INetworkForwardStarSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaxHierarchyValue(int maxValue) throws IOException, AutomationException
setMaxHierarchyValue
in interface INetworkForwardStarSetup
maxValue
- 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 INetworkForwardStarSetup
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTraversable(INetworkElement element) throws IOException, AutomationException
isTraversable
in interface INetworkForwardStarSetup
element
- 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 INetworkForwardStarSetup
element
- 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 INetworkForwardStarSetup
elements
- 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 INetworkForwardStarSetup
elementType
- 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 INetworkForwardStarSetup
elementType
- 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.public void queryJunction(int eID, INetworkJunction junction) throws IOException, AutomationException
QueryJunction takes an element ID for a junction and populates the passed-in NetworkJunction object.
This method is analogous to the existing INetworkQuery::QueryJunction method, except that the NetworkForwardStar will initialize the queried element with any potential attribute adjustment information.
Any queried junction should be either initialized directly from the QueryJunction method, the INetworkForwardStarAdjacencies::QueryAtJunction, or the INetworkForwardStarAdjacencies::QueryToJunction method in order to ensure proper element awareness of attribute adjustments.
queryJunction
in interface INetworkForwardStarEx
eID
- The eID (in)junction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryEdge(int eID, int direction, INetworkEdge edge) throws IOException, AutomationException
QueryEdge takes an element ID for an edge, as well as the direction being traveled along that edge, and populates the passed-in NetworkEdge object.
This method is analogous to the existing INetworkQuery::QueryEdge method, except that the NetworkForwardStar will initialize the queried element with any potential attribute adjustment information.
Any queried edge should be either initialized directly from the QueryEdge method or the INetworkForwardStarAdjacencies::QueryEdge method in order to ensure proper element awareness of attribute adjustments.
queryEdge
in interface INetworkForwardStarEx
eID
- The eID (in)direction
- A com.esri.arcgis.geodatabase.esriNetworkEdgeDirection constant (in)edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryTurn(int eID, INetworkTurn turn) throws IOException, AutomationException
QueryTurn takes an element ID for a turn and populates the passed-in NetworkTurn object.
This method is analogous to the existing INetworkQuery::QueryTurn method, except that the NetworkForwardStar will initialize the queried element with any potential attribute adjustment information.
Any queried edge should be either initialized directly from the QueryTurn method or the INetworkForwardStarAdjacencies::QueryTurn method in order to ensure proper element awareness of attribute adjustments.
queryTurn
in interface INetworkForwardStarEx
eID
- The eID (in)turn
- A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryTraversableRange(INetworkEdge edge, double queryPosition, double[] fromPosition, double[] toPosition, boolean[] isFromPositionAccessible, boolean[] isToPositionAccessible) throws IOException, AutomationException
If a queried edge element is not completely restricted (as indicated by the INetworkForwardStarEx::get_IsRestricted method), then it may still have partial edge restrictions associated with it. The QueryTraversableRange method may be used to determine the appropriate range of accessibility along that edge from a given query position.
The isFromJunctionAccessible and isToJunctionAccessible return values indicate whether or not the fromPosition and toPosition of the traversable range are also accessible from the current position, respectively. For example, in the graphic above, the isFromPositionAccessible return value will be True and the isToPositionAccessible return value will be False.
queryTraversableRange
in interface INetworkForwardStarEx
edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)queryPosition
- The queryPosition (in)fromPosition
- The fromPosition (out: use single element array)toPosition
- The toPosition (out: use single element array)isFromPositionAccessible
- The isFromPositionAccessible (out: use single element array)isToPositionAccessible
- The isToPositionAccessible (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryAttributeCutoffRange(INetworkEdge edge, INetworkAttribute attribute, double queryPosition, Object cutoffValue, double[] fromPosition, double[] toPosition) throws IOException, AutomationException
queryAttributeCutoffRange
in interface INetworkForwardStarEx
edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)attribute
- A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)queryPosition
- The queryPosition (in)cutoffValue
- A Variant (in)fromPosition
- The fromPosition (out: use single element array)toPosition
- The toPosition (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBacktrackPolicy() throws IOException, AutomationException
BacktrackPolicy is also known as the U-Turn Policy. The NetworkForwardStar filters/excludes an element from being returned by QueryAdjacencies if that element violates the current u-turn/backtrack policy. For example, if the incoming edge is provided in the call to query adjacency information from the NetworkForwardStar and the current backtrack policy is "no backtrack allowed", then the NetworkForwardStar will exclude this incoming edge from being returned in the adjacency query.
Please see esriNetworkForwardStarBacktrack for information about specific enumerations.
getBacktrackPolicy
in interface INetworkForwardStarEx
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBacktrackPolicy(int backtrack) throws IOException, AutomationException
setBacktrackPolicy
in interface INetworkForwardStarEx
backtrack
- A com.esri.arcgis.geodatabase.esriNetworkForwardStarBacktrack constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addRestrictionAttribute(INetworkAttribute attribute) throws IOException, AutomationException
The AddRestrictionAttribute method adds a NetworkAttribute to the NetworkForwardStar object. This prevents network elements that have a value of True for this attribute from being returned by the forward star in QueryAdjacencies. This is useful when performing a network analysis only on those network elements that permit travel.
Only a NetworkAttribute with a UsageType of esriNAUTRestriction can be added to the NetworkForwardStar as a restriction.
addRestrictionAttribute
in interface INetworkForwardStarEx
attribute
- 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 getRestrictionAttribute(int index) throws IOException, AutomationException
getRestrictionAttribute
in interface INetworkForwardStarEx
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getRestrictionAttributeCount() throws IOException, AutomationException
RestrictionAttributeCount retrieves the number of restriction attributes that have been applied to the NetworkForwardStar object. This count can be used to set up an iteration of the applied restriction attributes.
getRestrictionAttributeCount
in interface INetworkForwardStarEx
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeRestrictionAttributes() throws IOException, AutomationException
The RemoveRestrictionAttributes method removes the NetworkAttributes of usage type restriction from being applied as a restriction in the NetworkForwardStar object. The network attributes were added to the NetworkForwardStar using the AddRestrictionAttribute method.
RemoveRestrictionAttributes is analogous to INetworkForwardStarSetup::RemoveRestriction method. However, RemoveRestriction could be used to remove an individual attribute.
removeRestrictionAttributes
in interface INetworkForwardStarEx
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMaxTraversableHierarchyValue() throws IOException, AutomationException
If a HierarchyAttribute is specified, then, in calls to QueryAdjacencies, the NetworkForwardStar object will only return network edge elements whose HierarchyAttribute value is less than or equal to the MaxTraversableHierarchyValue value.
getMaxTraversableHierarchyValue
in interface INetworkForwardStarEx
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaxTraversableHierarchyValue(int maxValue) throws IOException, AutomationException
setMaxTraversableHierarchyValue
in interface INetworkForwardStarEx
maxValue
- The maxValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addJunctionRestriction(INetworkJunction junction) throws IOException, AutomationException
AddJunctionRestriction restricts the input junction from being used in calls to QueryAdjacencies. The RemoveElementRestrictions method can be used for removing all element-specific restrictions.
AddJunctionRestriction, AddEdgeRestriction, and AddTurnRestriction are intended as a replacement to INetworkForwardStarSetup::Traversable, as well as the related INetworkForwardStar::SetAllTraversable, INetworkForwardStarSetup::SetTraversable, and INetworkForwardStarSetup::NonTraversableElements.
addJunctionRestriction
in interface INetworkForwardStarEx
junction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addEdgeRestriction(INetworkEdge edge, double fromPosition, double toPosition) throws IOException, AutomationException
AddEdgeRestriction restricts a given range for the input edge. Multiple, disjoint partial-edge restrictions may be applied to the same edge. The RemoveElementRestrictions method can be used for removing all element-specific restrictions.
If the traversal cannot enter the edge from the atJunction of a QueryAdjacencies call due to partial (or whole) edge restrictions, then the edge will not be included in the NetworkForwardStarAdjacencies object.
AddJunctionRestriction, AddEdgeRestriction, and AddTurnRestriction are intended as a replacement to INetworkForwardStarSetup::Traversable, as well as the related INetworkForwardStar::SetAllTraversable, INetworkForwardStarSetup::SetTraversable, and INetworkForwardStarSetup::NonTraversableElements.
addEdgeRestriction
in interface INetworkForwardStarEx
edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addTurnRestriction(INetworkTurn turn) throws IOException, AutomationException
AddTurnRestriction restricts the input turn's associated traversal maneuver in the NetworkForwardStar. The RemoveElementRestrictions method can be used for removing all element-specific restrictions.
AddJunctionRestriction, AddEdgeRestriction, and AddTurnRestriction are intended as a replacement to INetworkForwardStarSetup::Traversable, as well as the related INetworkForwardStar::SetAllTraversable, INetworkForwardStarSetup::SetTraversable, and INetworkForwardStarSetup::NonTraversableElements.
addTurnRestriction
in interface INetworkForwardStarEx
turn
- A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeElementRestrictions() throws IOException, AutomationException
RemoveElementRestrictions removes all element-specific restrictions that have been added to the NetworkForwardStar via the AddEdgeRestriction, AddJunctionRestriction, or AddTurnRestriction methods.
Removing element-specific restrictions with this method does not affect filtering of elements in the NetworkForwardStar based on restriction attributes (i.e., elements may still be restricted by their restriction attribute values).
removeElementRestrictions
in interface INetworkForwardStarEx
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void adjustJunctionAttributeValue(INetworkJunction junction, INetworkAttribute attribute, int adjustmentType, Object value) throws IOException, AutomationException
AdjustJunctionAttributeValue applies attribute adjustments to the input junction.
Attribute adjustments at the NetworkForwardStar level allow dynamically adjusting network attribute values at runtime. For example, it is possible to add a constant value to a cost attribute or scale a cost attribute by a constant factor, as well as dynamically replacing attribute values.
Please see the help for esriNetworkAttributeAdjustmentType for attribute adjustment usage protocols.
adjustJunctionAttributeValue
in interface INetworkForwardStarEx
junction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)attribute
- A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)adjustmentType
- A com.esri.arcgis.geodatabase.esriNetworkAttributeAdjustmentType constant (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void adjustEdgeAttributeValue(INetworkEdge edge, double fromPosition, double toPosition, INetworkAttribute attribute, int adjustmentType, Object value) throws IOException, AutomationException
AdjustEdgeAttributeValue applies attribute adjustments along a given range for the input edge. Multiple, disjoint partial-edge attribute adjustments may be applied to the same edge. The RemoveAttributeAdjustments method can be used for removing all element-specific attribute adjustments.
Attribute adjustments at the NetworkForwardStar level allow dynamically adjusting network attribute values at runtime. For example, it is possible to add a constant value to a cost attribute or scale a cost attribute by a constant factor, as well as dynamically replacing attribute values.
Please see the help for esriNetworkAttributeAdjustmentType for attribute adjustment usage protocols, including rules for overlapping attribute adjustments along an edge.
adjustEdgeAttributeValue
in interface INetworkForwardStarEx
edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)attribute
- A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)adjustmentType
- A com.esri.arcgis.geodatabase.esriNetworkAttributeAdjustmentType constant (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void adjustTurnAttributeValue(INetworkTurn turn, INetworkAttribute attribute, int adjustmentType, Object value) throws IOException, AutomationException
AdjustTurnAttributeValue applies attribute adjustments to the input turn.
Attribute adjustments at the NetworkForwardStar level allow dynamically adjusting network attribute values at runtime. For example, it is possible to add a constant value to a cost attribute or scale a cost attribute by a constant factor, as well as dynamically replacing attribute values.
Please see the help for esriNetworkAttributeAdjustmentType for attribute adjustment usage protocols.
adjustTurnAttributeValue
in interface INetworkForwardStarEx
turn
- A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)attribute
- A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)adjustmentType
- A com.esri.arcgis.geodatabase.esriNetworkAttributeAdjustmentType constant (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAttributeValueAdjustments() throws IOException, AutomationException
Removes all element-specific attribute value adjustments currently applied to the NetworkForwardStar object.
removeAttributeValueAdjustments
in interface INetworkForwardStarEx
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRestricted(INetworkElement element) throws IOException, AutomationException
isRestricted
in interface INetworkForwardStarEx
element
- 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 interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 |